Re: [sword-devel] MacSword and book problems

2002-12-03 Thread Will Thimbleby
Thanks that fixed my problem. Finally this has been the major thing thats been bothering me with MacSword for a long time. On a final note: the Luther module gives top as 2,9,2 (testament, book, verse) and bottom as 2,10,1. However it doesn't include Ephesians, can you assume a bottom verse of

Re: [sword-devel] MacSword and book problems

2002-11-30 Thread Joachim Ansorg
I found the problem, you have to call module->setSkipConsecutiveLinks(true) before you test for the books. Set it to the default value false after all tests. So the code would look in C++ this way: module()->setSkipConsecutiveLinks(true); sword::VerseKey top, bottom; *module() = sword::BO

Re: [sword-devel] MacSword and book problems

2002-11-30 Thread Will Thimbleby
Joachim, I looked at BibleTime, and in the end I opted for my own similar method, that managed to get modules such as Luther to list only Galations. Using ObjC, but should be pretty clear. VerseKey top, bottom; books = [[NSMutableArray alloc] init]; *module = BOTTOM; bottom = module->KeyText(

Re: [sword-devel] MacSword and book problems

2002-11-29 Thread Joachim Ansorg
Dear Will, in BibleTime we managed to check whether a module contains only a new testament, only an old testament or both. Is this what you wanted to check or wanted you to check every book is it exists? If you wanted to do the first I think I can give you some hints. Joachim > Hi, > > I've b