diff options
author | Khaled Hosny <khaled@libreoffice.org> | 2023-06-21 09:27:38 +0300 |
---|---|---|
committer | خالد حسني <khaled@libreoffice.org> | 2023-06-21 10:41:08 +0200 |
commit | bb2c55b2c8f72bfbb7f98cf88911cb88ee1a71d6 (patch) | |
tree | a01c8ce82bccc158eeb8431f7b37d567ed89360a /i18nutil | |
parent | b1d226bdf963902782abac128e155956be6aae0d (diff) |
tdf#114432: classify Tangut and Khitan Small Script as ScriptType::ASIAN
They are CJK scripts so should not get spacing applied between them and
other CJK scripts for instance.
Change-Id: Iab88ff1490733e514fd37436cff937dc5fc8dce2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153372
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'i18nutil')
-rw-r--r-- | i18nutil/source/utility/unicode.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx index c5dfc877cc5b..b98fa9cb29c4 100644 --- a/i18nutil/source/utility/unicode.cxx +++ b/i18nutil/source/utility/unicode.cxx @@ -190,6 +190,12 @@ sal_Int16 unicode::getScriptClassFromUScriptCode(UScriptCode eScript) case USCRIPT_TRADITIONAL_HAN: case USCRIPT_JAPANESE: case USCRIPT_KOREAN: +#if (U_ICU_VERSION_MAJOR_NUM > 4) || (U_ICU_VERSION_MAJOR_NUM == 4 && U_ICU_VERSION_MINOR_NUM >= 8) + case USCRIPT_TANGUT: +#endif +#if (U_ICU_VERSION_MAJOR_NUM >= 66) + case USCRIPT_KHITAN_SMALL_SCRIPT: +#endif nRet = ScriptType::ASIAN; break; case USCRIPT_ARABIC: |