[sword-devel] reference parser - yet another bug?
Troy A. Griffitts
scribe at crosswire.org
Fri Feb 13 02:18:38 MST 2015
The SWORD parser matches alphabetically lowest partial entry as priority. So....
If a locale had entries:
J -> JUDE
JU -> JUDE
JUD -> JUDE
JUDE -> JUDE
JUDEC -> JUDECATORII
If you want different behavior, then you'll want to add an alphabetically lower entry to override it. For example, if you provided:
Then this would result in fixing the first 3 entries.
It sounds like in your case, you just need to override JUDE. I would guess probably a few more because there are many J books and we had to pick our priorities carefully. I think J goes to John, so you may need to override J as well. Best thing is to do as Greg suggests and add some tests to our testsuite verse parse test for the Romanian locale. We have a bunch for German in there and adding a few Romanian ones wouldn't hurt either.
Hope this is helpful,
On February 12, 2015 10:08:02 AM MST, Peter Von Kaehne <refdoc at gmx.net> wrote:
>Romanian for "Judges" is "Judecatori". Romanian for "Jude" is Iuda.
>So "Ju", "Jud", "Jude", probably even "J" should only ever be
>understood as "Judecatori".
>But alas, the parser, uses English abbreviations to override at certain
>and not entirely predictable places.
>So, Jude will be translated into Jude despite being a valid
>abbreviation for Judges in the Romanian locale
>If I now add "Jude=Judg" to the locale, I can fix that - but I get the
>same problem at "Jud". Why? Do I need to disable every single
>abbreviation which could be read as something in English? Our locale
>will probably need a massive overhaul if this is desired behaviour.
>I personally think once I changed my locale into a non-English one no
>other "default" locale should interfere - or at the very least it
>should function only as a fallback if there is no possible "first
>Or am I missing something?
>sword-devel mailing list: sword-devel at crosswire.org
>Instructions to unsubscribe/change your settings at above page
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sword-devel