Re: [sword-devel] BibleTime indexing problem

2012-03-03 Thread Gary Holmlund
Troy, HunKar is the only module I am aware of that has the problem. I also note that sword 1.6.2 has the problem and 1.6.1 does not. Gary On 03/03/2012 06:26 PM, Troy A. Griffitts wrote: Gary, Thank you so much for investing the time to put in the leg work to investigate this and provide a

Re: [sword-devel] BibleTime indexing problem

2012-03-03 Thread Troy A. Griffitts
Gary, Thank you so much for investing the time to put in the leg work to investigate this and provide a concise example that represents the problem. I seems to be a bug in the skipConsecutiveLinks flag with regard to Testament 1 Header. Did you say this only happens on the HunKar module? I

Re: [sword-devel] BibleTime indexing problem

2012-03-02 Thread Gary Holmlund
Troy, I found it takes both of these conditions to cause the problem. key->Headings(true); book->setSkipConsecutiveLinks(true); The program below outputs Malachi 1:1 Should BibleTime do something different or is this a sword issue. Gary #include #include #include #include

Re: [sword-devel] BibleTime indexing problem

2012-03-02 Thread scribe...@gmail.com
Gary, if you add this line to your test program (which I suspect Bibletime did similarly at some point) you should get similar values in tmpKey at that point: > return -1; > } ((VerseKey *)book->getKey())->Headings(true); > book->setPosition(TOP); > ret

Re: [sword-devel] BibleTime indexing problem

2012-03-01 Thread Gary Holmlund
On 02/28/2012 08:21 AM, Troy A. Griffitts wrote: So, a little background. SWORD keys handle versification + 4 special slots: chapter intro book intro testament intro module intro These are positioned respectively using, for example starting with John 3:16 VerseKey k("John 3:16"); k.setVers

Re: [sword-devel] BibleTime indexing problem

2012-02-28 Thread Troy A. Griffitts
So, a little background. SWORD keys handle versification + 4 special slots: chapter intro book intro testament intro module intro These are positioned respectively using, for example starting with John 3:16 VerseKey k("John 3:16"); k.setVerse(0); // chapter intro k.setChapter(0); // book int

Re: [sword-devel] BibleTime indexing problem

2012-02-27 Thread Gary Holmlund
On 02/27/2012 08:30 PM, Greg Hellings wrote: On Mon, Feb 27, 2012 at 10:24 PM, Matthew Talbert wrote: On Mon, Feb 27, 2012 at 11:05 PM, Gary Holmlund wrote: I am investigating why the searching in BibleTime for the HunKar Bible begins Tracing down through sword "book" is set to 39 in sword:V

Re: [sword-devel] BibleTime indexing problem

2012-02-27 Thread Greg Hellings
On Mon, Feb 27, 2012 at 10:24 PM, Matthew Talbert wrote: > On Mon, Feb 27, 2012 at 11:05 PM, Gary Holmlund > wrote: >> >> >> I am investigating why the searching in BibleTime for the HunKar Bible >> begins > >> Tracing down through sword "book" is set to 39 in >> sword:VerseKey::Normalize. >> He

Re: [sword-devel] BibleTime indexing problem

2012-02-27 Thread Matthew Talbert
On Mon, Feb 27, 2012 at 11:05 PM, Gary Holmlund wrote: > > > I am investigating why the searching in BibleTime for the HunKar Bible > begins > Tracing down through sword "book" is set to 39 in > sword:VerseKey::Normalize. > Here is the call stack from setPosition down to Normalize: > book is set

[sword-devel] BibleTime indexing problem

2012-02-27 Thread Gary Holmlund
I am investigating why the searching in BibleTime for the HunKar Bible begins in Malachi instead of Genesis. I found that BibleTime is building the index incorrectly. This only happens with sword 1.6.2, not 1.6.1. Further debuging gets to the following BibleTime code in CSwordModuleInfo::buil