From: Johan L. <j....@oc...> - 2006-07-13 11:34:38
|
Hello, =20 Thank you for your response. However, we are still having problems adding a custom transliterator table. What we do is the following: =20 - we set ICU_DATA to the directory containing the transliterator table; - we compile the transliterator table with genrb; - we compile 'a' root file with genrb. Since we didn't know the actual structure of a root file, we located a root.res (data/out/build/icudt34b/translit/root.res) file and decompiled it with derb to discover its structure. Unfortunately, it cannot be recompiled with genrb again and we cannot find a source for this file. =20 Are there any examples for adding a custom transliterator table? =20 The situation we have here is very simple (for now): we want to add a single custom transliterator table for an existing locale. Note that we initially tried to add a transliterator table with ICU version 2.6 (no success), and are now trying to do the same for ICU version 3.4 (no success again). =20 We noticed after building ICU 3.4.1, we cannot find the source transliterator tables any more. Since the transliteration tables supplied with a default install seem to work fine, we wonder whether the source transliteration tables are generated in some way.=20 Also, when using the ICU_DATA directory and running the test program, we can find our transliterator ID with the countAvailableID/getAvailableID mechanism but opening the transliterator fails.=20 =20 =20 Kind regards, Johan List OCLC PICA BV, Leiden, The Netherlands =20 =20 ________________________________ From: icu...@li... [mailto:icu...@li...] On Behalf Of Mark Davis Sent: woensdag 12 juli 2006 19:21 To: ICU support mailing list Subject: Re: [icu-support] Adding external transliteration rulefiles/tables =20 There is an index resource in root that controls which files get used, and how they are identified. You'll need to change that also. Mark On 7/12/06, Johan List <j....@oc...> wrote: Hello, =20 I am currently trying to add an external transliteration rulefile (or table) to a system setup of ours. The scenario is in theory pretty simple: customers might desire to implement their own transliteration rulefiles and want to add those to the existing batch of rule files. =20 However, I don't have much luck in adding rulefiles to our system. Is there any way to add a transliterator file to the system-supplied files without having to rebuild or adapt the ICU installation itself? We were under the impression adding extra transliteration tables would be easy enough, by compiling and adding them to the ICU_DATA directory.=20 =20 Setting ICU_DATA to a directory containing the custom transliterator rulefile and using truss to see whether the custom table is loaded, the new table is not used at all (or at least seems to be unused after examining the transliterations).=20 =20 Maybe in the end it's really simple, but I'm kind of baffled at the moment. Anyone else who has added custom transliteration tables to a setup and wants to explain how to proceed? =20 Kind regards, Johan List OCLC PICA BV, Leiden , The Netherlands ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier=20 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ icu-support mailing list - icu...@li... To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support=20 =20 |