[sword-devel] indexing the ZhEnglish module?

Chris Little chrislit at crosswire.org
Tue Jan 5 13:29:07 MST 2010



On 1/5/2010 2:46 AM, Manfred Bergmann wrote:
>
> Am 05.01.2010 um 10:22 schrieb Eeli Kaikkonen:
>
>> On Tue, 5 Jan 2010, Nic Carter wrote:
>>
>>>
>>> Hi all.  I'm having trouble creating a clucene index for the ZhEnglish (dictionary) module.  I'm using SWORD from SVN (r2500 I think?  pulled after 1.6.1 was tagged).
>>> Can anyone else successfully create a clucene index for this module?
>>
>> Without trying or knowing anything about this specific problem I just
>> say that ZhEnglish has been buggy for very long time. The keys can't be
>> traversed though, it will become an unending loop. Maybe this happens
>> also when creating the index. What application are you using?
>
> That's exactly the problem in MacSword and PocketSword, the unending loop when accessing the keys.
> Is there any workaround for this?

I've looked at this module a couple times to try to find the bug, but 
I've never been successful. Creating it anew from either the data file 
itself or the upstream source results in a module with the same problem.

My only guess is that our sort function for writing the module is 
different from the sort function that reads the module (which I 
doubt--I'm pretty sure we use just one) or there is something in the 
sort function that is folding/ignoring some characters in the key, so 
that it is mapping some keys in reverse order.

--Chris



More information about the sword-devel mailing list