Is there some docs describing how to add new transliteration method?
I need to have one-to-one transliteration with some simple
folding/decomposing (like "љ" to "lj" etc) so I tried to create
i18npool/source/transliteration/serbianCyrillicToLatin.cxx and register
it and define a class using macro.
I have defined my transliteration table as:
OneToOneMappingTable_t serbiancyrillic2latin[] = {
MAKE_PAIR(0x0402, 0xC490 ), // 'Đ'
MAKE_PAIR(0x0408, 'J' ),
...
};
And class constructor as:
serbianCyrillicToLatin::serbianCyrillicToLatin()
{
static oneToOneMapping _table(serbiancyrillic2latin,
sizeof(serbiancyrillic2latin));
func = (TransFunc) 0;
table = &_table;
transliterationName = "serbianCyrillicToLatin";
implementationName =
"com.sun.star.i18n.Transliteration.SERBIANCYRILLIC_LATIN";
}
Now my question: What is folding function prototype? I tried using:
sal_Unicode SAL_CALL
serbianCyrillicToLatin::folding(const sal_Unicode & inStr, sal_Int32 startPos,
sal_Int32 nCount, Sequence< sal_Int32 > & offset) throw
(RuntimeException)
But that is not working.
What else I need to do in order to get transliteration working inside
localized build? How this is going to be used from user interface?
Regards,
Goran Rakic
PS - What is a status of
http://qa.openoffice.org/issues/show_bug.cgi?id=86142 ? Is it assigned
to right component and person?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]