On Tuesday 13 December 2005 15:26, Eike Rathke wrote: > > Now I have to make a proper name in the combobox. > > The name which I decide to use are: > > А, Б, ..., Аа, Аб (bg) > > а, б, ..., аа, аб (bg) > > А, Б, ..., Аа, Бб (bg) > > а, б, ..., аа, бб (bg) > > I'm not satisfied with the trailing (bg), personally I don't care, but > most users will not know what it stands for. Isn't there another way to > create identifiers that would distinguish them from other possible > Cyrillic numbering, without such artificial workaround? Someone proposed the table with letter to be made localizable but I do not know is it possible and how to do it. I do not know how to take the localized strings. I supose this I can look in other localization string how is it done. Is there a variable or object from which to get the current locale? It is not very good way to connect it with the locale but I do not see other way.
> > For now I do not have success to show Cyrillic in the combobox.
> > I replaced
> > return OUString::createFromAscii(aSupportedTypes[index].cSymbol);
> > with
> > return OUString(aSupportedTypes[index].cSymbol,
> > sizeof(aSupportedTypes[index].cSymbol)-1, RTL_TEXTENCODING_UTF8);
> > in DefaultNumberingProvider::makeNumberingIdentifier method
> > but without any success. When I use latin letters appears only the first
> > one. I searched for 8-bit codes and made:
> > #define C_CYR_A "\xB0"
> > #define C_CYR_B "\xB1"
> > #define S_CYR_A "\xD0"
> > #define S_CYR_B "\xD1"
> > and I tried this:
> > {style::NumberingType::CHARS_BG_CYRILLIC_UPPER_LETTER, C_CYR_A ", "
> > C_CYR_B ", ..., " C_CYR_A S_CYR_A ", " C_CYR_A S_CYR_B " (bg)",
> > LANG_ALL}, //Абв
> > but it didn't work.
>
> In this example you used ISO 8859-5 encoding for your character
> constants, but tried to convert them using an UTF-8 converter, which
> doesn't work. You'll have to use UTF-8 encoding in your constants.
I tryed with Unicode codes (I took them from the table which I made for
numbering just replaced 0x with \x) but the same result.
best regards
--
-------------------------------------------------------------
Hristo Simeonov Hristov
Leader of OpenOffice.org - Bulgarian
GnuPG key 0xD0D895EB: 0282 D8D0 90D3 963F E57E B0A7 2670 88D9 D0D8 95EB
pgpYDeOT4ovEu.pgp
Description: PGP signature
