[Libreoffice-commits] core.git: svtools/source
Caolán McNamara
caolanm at redhat.com
Mon Aug 11 04:47:35 PDT 2014
svtools/source/misc/sampletext.cxx | 12 ++++++++++++
1 file changed, 12 insertions(+)
New commits:
commit 94753833b94dee42ce2e0e7e7f3f354c2a605730
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Aug 11 12:46:43 2014 +0100
Related: fdo#82259 add Armenian preview text
Change-Id: I3698b5cbf8c39e618faaae1321eaa4442f1b2827
diff --git a/svtools/source/misc/sampletext.cxx b/svtools/source/misc/sampletext.cxx
index 28ccec9..ded181f 100644
--- a/svtools/source/misc/sampletext.cxx
+++ b/svtools/source/misc/sampletext.cxx
@@ -141,6 +141,15 @@ OUString makeShortRepresentativeTextForScript(UScriptCode eScript)
sSampleText = OUString(aArab, SAL_N_ELEMENTS(aArab));
break;
}
+ case USCRIPT_ARMENIAN:
+ {
+ const sal_Unicode aArmenian[] = {
+ 0x0561, 0x0575, 0x0562, 0x0578, 0x0582, 0x0562, 0x0565,
+ 0x0576
+ };
+ sSampleText = OUString(aArmenian, SAL_N_ELEMENTS(aArmenian));
+ break;
+ }
case USCRIPT_DEVANAGARI:
{
const sal_Unicode aDeva[] = {
@@ -504,6 +513,9 @@ OUString makeRepresentativeTextForLanguage(LanguageType eLang)
OUString sRet;
switch( eLang & LANGUAGE_MASK_PRIMARY )
{
+ case LANGUAGE_ARMENIAN & LANGUAGE_MASK_PRIMARY:
+ sRet = makeRepresentativeTextForScript(USCRIPT_ARMENIAN);
+ break;
case LANGUAGE_CHINESE & LANGUAGE_MASK_PRIMARY:
sRet = makeRepresentativeTextForScript(USCRIPT_HAN);
break;
More information about the Libreoffice-commits
mailing list