diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-06 13:00:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-06 15:11:59 +0000 |
commit | b37bce11cf59c6c9544e62e81f71a07e4d987a34 (patch) | |
tree | 855229c7d6e375846352dad3d06610700c7f337b /i18nlangtag | |
parent | coverity#707771 coverity gold, Uninitialized m_refCount (diff) | |
download | core-b37bce11cf59c6c9544e62e81f71a07e4d987a34.tar.gz core-b37bce11cf59c6c9544e62e81f71a07e4d987a34.zip |
Resolves: rhbz#975421 wrong chart direction in Farsi
Where Farsi (and apparenly Moroccon) are RTL but have LTR
math and charts should reportedly follow the math direction
Change-Id: Ib60eaaaa90fe46ef240030a91169fdff3f736329
Diffstat (limited to 'i18nlangtag')
-rw-r--r-- | i18nlangtag/source/isolang/mslangid.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/i18nlangtag/source/isolang/mslangid.cxx b/i18nlangtag/source/isolang/mslangid.cxx index e27e13bb6c24..6bb92bbeba0d 100644 --- a/i18nlangtag/source/isolang/mslangid.cxx +++ b/i18nlangtag/source/isolang/mslangid.cxx @@ -233,6 +233,15 @@ bool MsLangId::isRightToLeft( LanguageType nLang ) } // static +bool MsLangId::isRightToLeftMath( LanguageType nLang ) +{ + //http://www.w3.org/TR/arabic-math/ + if (nLang == LANGUAGE_FARSI || nLang == LANGUAGE_ARABIC_MOROCCO) + return false; + return isRightToLeft(nLang); +} + +// static bool MsLangId::isSimplifiedChinese( LanguageType nLang ) { return isChinese(nLang) && !isTraditionalChinese(nLang); |