[sword-devel] wcharToUTF8 not yet coded

Jeff Barnes jbarnesweb at yahoo.com
Sat Sep 14 09:05:34 MST 2013

Sent from my iPhone

On Sep 14, 2013, at 1:18 AM, John Austin <gpl.programs.info at gmail.com> wrote:

> I've been testing the latest SWORD code for some time now, with xulsword, on both Windows and Linux, and it's working great. But I did just discover that Lucene searches in some non-versekey modules fail because utilstr.cpp's wcharToUTF8() has not yet been coded. It's got "TODO: finish this logic" in the code.

I recently had to code a routine to convert from UCS4 to UTF8. IIRC, I modified the fontconfig FC_Ucs4ToUtf8 function. It's very readable and fast.

> So search returns incorrect results in some modules (non-Latin dictionary and general book modules). Maybe somebody's got a quick solution? Sorry to post another issue so late- but I just discovered the problem yesterday and figured it's better to mention it than not to.
> But other than this, xulsword has been working very happily without issue using SWORD 1.7, which is terrific. A new version of xulsword is also to be released soon.
> -John
> _______________________________________________
> 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

More information about the sword-devel mailing list