| commit | 914e45a65818a52b7469161b5970db4b8c7c66a5 | [log] |
|---|---|---|
| author | Khaled Hosny <khaled@libreoffice.org> | Wed Jun 21 09:27:38 2023 +0300 |
| committer | خالد حسني <khaled@libreoffice.org> | Wed Jun 21 18:59:50 2023 +0200 |
| tree | efb954292c6eac3cbf304034953fa7517c4113e2 | |
| parent | 9a52d5b11c74d996f9300f8b4126635aad0e8317 [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> (cherry picked from commit bb2c55b2c8f72bfbb7f98cf88911cb88ee1a71d6) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153347
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx index c5dfc87..b98fa9c 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: