summaryrefslogtreecommitdiff
path: root/i18nutil/source/utility
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2021-11-17 00:07:39 +0100
committerEike Rathke <erack@redhat.com>2021-11-17 01:51:05 +0100
commiteec32be26d5d5805c1cb8cb53ce9702c04829819 (patch)
treec351d55ec074fccd65e05eeb7ccb8db01d332bdb /i18nutil/source/utility
parent696e60427e6c355cfaca35f7b93d2001f0a12604 (diff)
Add script codes to standalone {mis} tags
Also, mis-Medf is dmf-Medf. Change-Id: I5d0766d63effb985a94355a95cfb6c447362051f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125339 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'i18nutil/source/utility')
-rw-r--r--i18nutil/source/utility/unicode.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx
index 49a0f4dafc1e..b4e3640d3d71 100644
--- a/i18nutil/source/utility/unicode.cxx
+++ b/i18nutil/source/utility/unicode.cxx
@@ -572,11 +572,11 @@ OString unicode::getExemplarLanguageForUScriptCode(UScriptCode eScript)
case USCRIPT_MANDAEAN: /* Aliased to USCRIPT_MANDAIC in icu 4.6. */
sRet = "mic";
break;
- case USCRIPT_NABATAEAN: //no language with an assigned code yet
- sRet = "mis";
+ case USCRIPT_NABATAEAN:
+ sRet = "mis-Nbat"; // Uncoded with script
break;
- case USCRIPT_PALMYRENE: //no language with an assigned code yet
- sRet = "mis";
+ case USCRIPT_PALMYRENE:
+ sRet = "mis-Palm"; // Uncoded with script
break;
case USCRIPT_BAMUM:
sRet = "bax";
@@ -633,8 +633,8 @@ OString unicode::getExemplarLanguageForUScriptCode(UScriptCode eScript)
case USCRIPT_MRO:
sRet = "cmr";
break;
- case USCRIPT_NUSHU: //no language with an assigned code yet
- sRet = "mis";
+ case USCRIPT_NUSHU:
+ sRet = "mis-Nshu"; // Uncoded with script
break;
case USCRIPT_SHARADA:
sRet = "sa";
@@ -693,10 +693,10 @@ OString unicode::getExemplarLanguageForUScriptCode(UScriptCode eScript)
#endif
#if (U_ICU_VERSION_MAJOR_NUM >= 58)
case USCRIPT_ADLAM:
- sRet = "mis"; // Adlm - Adlam for Fulani, no language code
+ sRet = "mis-Adlm"; // Adlam for Fulani, no language code
break;
case USCRIPT_BHAIKSUKI:
- sRet = "mis"; // Bhks - Bhaiksuki for some Buddhist texts, no language code
+ sRet = "mis-Bhks"; // Bhaiksuki for some Buddhist texts, no language code
break;
case USCRIPT_MARCHEN:
sRet = "bo-Marc";
@@ -708,13 +708,13 @@ OString unicode::getExemplarLanguageForUScriptCode(UScriptCode eScript)
sRet = "osa-Osge";
break;
case USCRIPT_HAN_WITH_BOPOMOFO:
- sRet = "mis"; // Hanb - Han with Bopomofo, zh-Hanb ?
+ sRet = "mis-Hanb"; // Han with Bopomofo, zh-Hanb ?
break;
case USCRIPT_JAMO:
sRet = "ko"; // Jamo - elements of Hangul Syllables
break;
case USCRIPT_SYMBOLS_EMOJI:
- sRet = "mis"; // Zsye - Emoji variant
+ sRet = "mis-Zsye"; // Emoji variant
break;
#endif
#if (U_ICU_VERSION_MAJOR_NUM >= 60)
@@ -739,7 +739,7 @@ OString unicode::getExemplarLanguageForUScriptCode(UScriptCode eScript)
sRet = "mak";
break;
case USCRIPT_MEDEFAIDRIN:
- sRet = "mis-Medf"; // Uncoded with script
+ sRet = "dmf-Medf";
break;
case USCRIPT_HANIFI_ROHINGYA:
sRet = "rhg";