[sword-devel] UTF8Transliterator messages

Chris Little chrislit at crosswire.org
Thu Jul 18 01:36:20 MST 2013


Some history:
The ICU transliteration filter from 2002 could transliterate to/from a 
bunch of scripts beyond what stock ICU could do. Daniel Glassey added 
the ability to load & build transliterators that were not part of the 
ICU resource bundle in 2003, allowing use of stock ICU that is included 
with most distros along with our additional transliterators. But it 
hasn't been maintained or updated since 2003, and only worked on systems 
building with autotools. So that is all now removed (both the out of 
date copies of transliterators and the code for loading them).

You'll saw the missing resource errors if your system doesn't have our 
additional transliterators when Daniel's code tries to load them.

The defines I added are just there to deactivate most of Daniel's code. 
If it someday makes sense to load transliterators directly, we can 
reactivate it in 1.8.x or so. Before that, I'll pursue getting our 
transliterators incorporated into CLDR (and thus stock ICU). We would 
only need to reactivate this code if our data were rejected by Unicode.

tl;dr: Just don't define ICU_CUSTOM_RESOURCE_BUILDING and the code for 
UTF8Transliterator should now avoid all of the parts that were emitting 
error messages.

--Chris


On 7/17/2013 9:03 PM, Nic Carter wrote:
>
> Hi Chris,
>
> Can you please explain what you've done & what you are switching on/off with the new #defines? I build the lib a different way, so I'd like to see if I can incorporate your changes into my build system or to see if I still need my own custom way of switching off those error messages...  :)
> (yes, I have been seeing those error messages since day 1 with PS, but I have my own hacks to remove them and would rather use your changes!)
>
> Thanks, ybic
> 	nic...  :)
>
> On 18/07/2013, at 8:46 AM, Chris Little <chrislit at crosswire.org> wrote:
>
>> Give the latest SVN a try. All of the offending code should be disabled now.
>>
>> --Chris
>>
>> On 07/17/2013 07:10 AM, Greg Hellings wrote:
>>> So I've been plagued in the CMake builds by this message:
>>> UTF8Transliterator: ICU: no resource index to load
>>> UTF8Transliterator: ICU: status U_MISSING_RESOURCE_ERROR
>>>
>>> Now it's expanding out to repeat itself four times when I run a utility
>>> like diatheke, and Peter has claimed he sees the message when running
>>> the Python bindings in Ubuntu when building with autotools.
>>>
>>> Is there anyone who knows what this might be referring to, and how I can
>>> squelch this? I just tried building and adding libicudata.so to the
>>> build process, but to no avail. I still get the same number of messages
>>> and warnings. I'm attaching my build output to see if anyone can see
>>> what is present/missing in CMake that the autotools seems to get right
>>> (I'm guessing it still lacks the above message?).
>>>
>>> These warnings have been present throughout the history of the CMake
>>> build, but I'd like to squash them if anyone can see what's going on.
>>> I'm quite out of ideas at this point. :-/
>>>
>>> --Greg
>>>
>>>
>>> _______________________________________________
>>> 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
>> 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
> 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