[sword-devel] problem in libsword in indexing Genesis?
Zoltán Kovács
kovzol at gmail.com
Sun Jul 19 10:38:31 EDT 2026
Dear All,
Now it is clear what happens.
It is related to localized book names in the [Text] section of the
locales.d/*.conf files.
Currently, it seems the problem occurs only if a book name ends with " I".
This occurs in two files: in la-utf8.conf and hu-utf8.conf (Latin and
Hungarian):
$ *grep " I$" *-utf8.conf*
hu-utf8.conf: Genesis=Mózes I
la-utf8.conf:I Corinthians=Ad Corinthios I
la-utf8.conf:I Thessalonians=Ad Thessalonicenses I
la-utf8.conf:I Timothy=Ad Timotheum I
la-utf8.conf:I Peter=Petri I
la-utf8.conf:I John=Iohannis I
If the locale is set to either "la" or "hu" by using e.g.
CSwordBibleModuleInfo::swordModule().getKey()->setLocale("hu"), the book
names ending with an " I" cannot be correctly displayed. In BibleTime,
nothing is shown from that book. In Xiphos, only the first chapter is
shown. Diatheke is not affected.
Maybe you have a quick idea why this happens. I will try to look a bit
deeper in the SWORD code soon.
Best, Zoltan
Kristof Szabo <kristof.szabo at web.de> ezt írta (időpont: 2024. okt. 13., V,
20:01):
> Hello hello,
>
> interesting... I can reproduce in BibleTime, which is already good :)
>
> I suppose we need to look further up than sword, as diatheke seems to be ok
>
> ❯ diatheke -b HunRUF -l hu -k '1Móz 1.1-1'
>> Mózes I 1:1: Kezdetben teremtette Isten az eget és a földet.
>> (HunRUF)
>
>
> ❯ diatheke -b HunRUF -l hu -k '1 Mózes 1.1-10'
>> Mózes I 1:1: Kezdetben teremtette Isten az eget és a földet.
>>
>
>
> /irony on
> The Hungarian modules and the locale file (which I think I did (or not) a
> few decades ago) are simply perfect :) that cannot be the issue.
> /irony off
>
> Let me check BibleTime and the modules a bit more later tonight, maybe I
> can figure out something.
>
> Kind regards,
> Kristof
>
>
> On Sun, Oct 13, 2024 at 6:38 PM Kovács Zoltán <kovzol at gmail.com> wrote:
>
>> Greg, thanks for your quick response.
>>
>> It seems if I change BibleTime's setting Display > Language for names of
>> Bible books to English, then I have no problem in BibleTime:
>> [image: image.png]
>> Otherwise, if I change this to Hungarian (which is the default for me),
>> Genesis does not even show up in BibleTime.
>> I thought this is a global setting for libsword, but seemingly not. If I
>> start Xiphos, I get the same problem because the Bible book names are still
>> shown in Hungarian.
>> What I can force in Xiphos is to go to Edit > Preferences > Options and
>> set Special Locale to English, then restart Xiphos and things work
>> correctly.
>>
>> So maybe it's not about libsword but some Hungarian settings (maybe some
>> Hungarian modules) that are used automatically during the search or lookup.
>> I will try to search for that in the Hungarian Bible modules and come
>> back to you.
>>
>> Thanks, anyway!
>>
>> Best, Zoltan
>>
>> Greg Hellings <greg.hellings at gmail.com> ezt írta (időpont: 2024. okt.
>> 13., V, 16:21):
>>
>>> Can you be more specific about what it does? I haven't noticed any issue
>>> in Ezra on Android.
>>>
>>> --Greg
>>>
>>> On Sun, Oct 13, 2024, 2:45 AM Kovács Zoltán <kovzol at gmail.com> wrote:
>>>
>>>> Hi,
>>>> I use BibleTime and Xiphos on Ubuntu Linux 24.04. They are based on
>>>> libsword (version 1.9 at the moment). It seems that both programs have
>>>> issues when trying to read Genesis or jumping on certain verses in Genesis.
>>>> This is independent of which module (Bible translation) I use, I tried KJV
>>>> and others (including non-English translations), but I guess there must be
>>>> a bug somewhere in libsword. Other books than Genesis work fine.
>>>> Does anybody experience something like this? I have been
>>>> facing this problem for a couple of years already, so maybe it's related
>>>> not to version 1.9 but also earlier ones.
>>>> Thanks for any hints in advance.
>>>> Best, Zoltán
>>>>
>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20260719/741411fe/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 39056 bytes
Desc: not available
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20260719/741411fe/attachment-0001.png>
More information about the sword-devel
mailing list