Map Macao to ZHH lang tag
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 9 Aug 2016 00:57:06 +0000 (17:57 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 9 Aug 2016 00:57:06 +0000 (17:57 -0700)
Fixes https://github.com/behdad/harfbuzz/issues/300

src/hb-ot-tag.cc

index fdebb05..34d7b37 100644 (file)
@@ -833,11 +833,12 @@ static const LangTagLong ot_languages_zh[] = {
   /* Store longest-first, if one is a prefix of another. */
   {"zh-cn",    HB_TAG('Z','H','S',' ')},       /* Chinese (China) */
   {"zh-hk",    HB_TAG('Z','H','H',' ')},       /* Chinese (Hong Kong) */
-  {"zh-mo",    HB_TAG('Z','H','T',' ')},       /* Chinese (Macao) */
+  {"zh-mo",    HB_TAG('Z','H','H',' ')},       /* Chinese (Macao) */
   {"zh-sg",    HB_TAG('Z','H','S',' ')},       /* Chinese (Singapore) */
   {"zh-tw",    HB_TAG('Z','H','T',' ')},       /* Chinese (Taiwan) */
   {"zh-hans",  HB_TAG('Z','H','S',' ')},       /* Chinese (Simplified) */
   {"zh-hant-hk",HB_TAG('Z','H','H',' ')},      /* Chinese (Hong Kong) */
+  {"zh-hant-mo",HB_TAG('Z','H','H',' ')},      /* Chinese (Macao) */
   {"zh-hant",  HB_TAG('Z','H','T',' ')},       /* Chinese (Traditional) */
 };