On Thursday 01 December 2005 13:33, Eike Rathke wrote:
> Hi Hristo,
Hi Eik
> On Thu, Dec 01, 2005 at 08:31:25 +0200, Hristo Hristov wrote:
> > Strange. I removed the condition
> > (aLangOpt.IsCJKFontEnabled() || aLangOpt.IsCTLFontEnabled()) and I tried
> > this:
> > {style::NumberingType::CHARS_BG_CYRILLIC_UPPER_LETTER,
> > "BCD", LANG_ALL}, //Абв
> > [...]
> >
> > and they do not appear in Options tab. They appeared when I switched on
> > CTL.
>
> Strange. Where did you remove the condition? There are three files where
> calls of getSupportedNumberingTypes() are encapsulated in the CJK/CTL
> condition, see issue 58666 I created yesterday. I didn't check which
> place is responsible for what behavior, maybe changing just
> sw/source/ui/misc/numberingtypelistbox.cxx isn't enough, though the name
> suggested it would be.. and the code also looked like.
> Judging from the getSupportedNumberingTypes implementation in
> i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
>
> for(sal_Int16 i = 0; i < nSupported_NumberingTypes; i++) {
> if ( (aSupportedTypes[i].langOption & LANG_ALL) ||
> (aSupportedTypes[i].langOption & LANG_CJK) &&
> cjkEnabled || (aSupportedTypes[i].langOption & LANG_CTL) && ctlEnabled)
> pArray[i] = aSupportedTypes[i].nType;
>
> using LANG_ALL really should work if the method was called. You may
> verify, and also whether it's called at all, by placing a breakpoint or
> some fprintf() there.
You were right. I didn't know that there are other two files with such check.
When I removed it from other two files it apears in the combo in Options tab.
Now I have to make a proper name in the combobox.
The name which I decide to use are:
А, Б, ..., Аа, Аб (bg)
а, б, ..., аа, аб (bg)
А, Б, ..., Аа, Бб (bg)
а, б, ..., аа, бб (bg)
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.
Did I do something wrong?
best regards.
--
-------------------------------------------------------------
Hristo Simeonov Hristov
Leader of OpenOffice.org - Bulgarian
GnuPG key 0xD0D895EB: 0282 D8D0 90D3 963F E57E B0A7 2670 88D9 D0D8 95EB
pgpNGPvfnC2YX.pgp
Description: PGP signature
