[sword-devel] Need help tracking down a bug in the API...

Troy A. Griffitts scribe at crosswire.org
Wed Dec 19 09:08:49 MST 2012

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.


Greg Hellings <greg.hellings at 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.
>On Wed, Dec 19, 2012 at 9:03 AM, David Haslam <dfhmch at googlemail.com>
>> 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:
>> Sent from the SWORD Dev mailing list archive at Nabble.com.
>> _______________________________________________
>> sword-devel mailing list: sword-devel at 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 at crosswire.org
>Instructions to unsubscribe/change your settings at above page

Sent from my Android phone with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20121219/d01e87fb/attachment.html>

More information about the sword-devel mailing list