"Yes, the trailing '.' does change the behavior: 1Ti2:6f." yields the whole chapter "Ga1:1,11f." behaves the same as without the trailing '.'
On Wed, Dec 19, 2012 at 10:08 AM, Troy A. Griffitts <scr...@crosswire.org> wrote: > Thanks guys. I was, too, going to try the parsekey test in the engine. In > the testsuite we have a zillion verse reference patterns we support and I'm > sure we have 'f' and 'ff' tests. What I suspect the problem might be is the > trailing '.'. We parse this as an acceptable book.chapter.verse separator > and I suspect we need to tweak it slightly for this case. Nic, David, Greg, > you guys have provided great information and saved me tons of time digging > myself. Thank you. > > Troy > > > Greg Hellings <greg.helli...@gmail.com> wrote: >> >> We might get better information on what is happening by passing each >> of the noted references to the verserangeparse command line example >> from the engine: >> >> Passing in "1Ti2:6f" gives 1 Timothy 2:6-7. >> "1Ti2:6ff" gives 1 Timothy 2:6-15. >> "Ga1:1,11f" gives Galatians 1:1 and 1:11-12. >> >> The engine appears to handle these references correctly. >> >> --Greg >> >> >> On Wed, Dec 19, 2012 at 9:03 AM, David Haslam <dfh...@googlemail.com> >> wrote: >>> >>> These analysis statistics might give further clues for investigation. >>> >>> For module RWP, in the output of mod2imp, ... >>> >>> There are 22159 matches to "</scripRef>" in total. >>> >>> There are 736 matches to the exact pattern "f.</scripRef>". >>> btw. The same number as when matched even without the "f". >>> >>> cf. There are 21117 matches to regexp "(\d+)</scripRef>" >>> >>> There are 304 matches to regexp "[a-z]</scripRef>" >>> of which 299 match exactly to "f</scripRef>" >>> among which 40 match exactly to "ff</scripRef>" >>> >>> btw. By my reckoning, this leaves 2 patterns yet to account for. >>> 22159 - 21117 - 736 - 304 = 2 >>> >>> David >>> >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://sword-dev.350566.n4.nabble.com/Need-help-tracking-down-a-bug-in-the-API-tp4651439p4651446.html >>> Sent from the SWORD Dev mailing list archive at Nabble.com. >>> >>> ________________________________ >>> >>> sword-devel mailing list: sword-devel@crosswire.org >>> http://www.crosswire.org/mailman/listinfo/sword-devel >>> Instructions to unsubscribe/change your settings at above page >> >> >> ________________________________ >> >> sword-devel mailing list: sword-devel@crosswire.org >> http://www.crosswire.org/mailman/listinfo/sword-devel >> Instructions to unsubscribe/change your settings at above page > > > -- > Sent from my Android phone with K-9 Mail. Please excuse my brevity. > > _______________________________________________ > sword-devel mailing list: sword-devel@crosswire.org > http://www.crosswire.org/mailman/listinfo/sword-devel > Instructions to unsubscribe/change your settings at above page _______________________________________________ sword-devel mailing list: sword-devel@crosswire.org http://www.crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page