|
From: Jonatan P. <jon...@pe...> - 2016-01-18 10:41:32
|
Hello Mow,
Thanks for the help. I managed to get my converter going. I think my main
issue was that I had a dash in my package name ("ebu-latin"), when I
debugged icu I noticed that the dash was treated as a directory separator,
which was not my intention. I was also not using the makeconv tool, which
was probably causing issues.
I wrote up a small example of creating a ucm file, compiling to cnv and
finally loading using libicu and put it on GitHub, if anyone else has the
same issues in the future. Here it is:
https://github.com/Pelagicore/icu-ebu-latin-converter . Also, if anyone
needs to convert between EBU Latin and Unicode, the above URL also contains
a converter for this.
Thanks again!
On 16 January 2016 at 08:07, mow <mo...@ic...> wrote:
> You can get more information about custom converters here:
>
> http://userguide.icu-project.org/conversion/data
>
> You should use the makeconv tool to convert the ucm file to cnv file.
>
> The ucnv_countAvailable function lists only the converters in the alias
> file.
>
> You should be able to load the converter (after using the makeconv tool)
> by either using the ICU_DATA or u_setDataDirectory() to where the dat file
> is located.
>
-- Jonatan
|