Add "new" Myanmar OT Script tag

Windows 8 added support for Myanmar shaping using the "mym2" script tag,
even though Windows never supported the old "mymr" tag.
This commit is contained in:
Behdad Esfahbod 2012-11-12 17:27:51 -08:00
parent 27f52dc3f6
commit de796a6fb9
2 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,7 @@ hb_ot_new_tag_from_script (hb_script_t script)
case HB_SCRIPT_ORIYA: return HB_TAG('o','r','y','2'); case HB_SCRIPT_ORIYA: return HB_TAG('o','r','y','2');
case HB_SCRIPT_TAMIL: return HB_TAG('t','m','l','2'); case HB_SCRIPT_TAMIL: return HB_TAG('t','m','l','2');
case HB_SCRIPT_TELUGU: return HB_TAG('t','e','l','2'); case HB_SCRIPT_TELUGU: return HB_TAG('t','e','l','2');
case HB_SCRIPT_MYANMAR: return HB_TAG('m','y','m','2');
} }
return HB_OT_TAG_DEFAULT_SCRIPT; return HB_OT_TAG_DEFAULT_SCRIPT;
@ -111,6 +112,7 @@ hb_ot_new_tag_to_script (hb_tag_t tag)
case HB_TAG('o','r','y','2'): return HB_SCRIPT_ORIYA; case HB_TAG('o','r','y','2'): return HB_SCRIPT_ORIYA;
case HB_TAG('t','m','l','2'): return HB_SCRIPT_TAMIL; case HB_TAG('t','m','l','2'): return HB_SCRIPT_TAMIL;
case HB_TAG('t','e','l','2'): return HB_SCRIPT_TELUGU; case HB_TAG('t','e','l','2'): return HB_SCRIPT_TELUGU;
case HB_TAG('m','y','m','2'): return HB_SCRIPT_MYANMAR;
} }
return HB_SCRIPT_UNKNOWN; return HB_SCRIPT_UNKNOWN;

View File

@ -132,6 +132,7 @@ test_ot_tag_script_indic (void)
test_indic_tags ("ory2", "orya", HB_SCRIPT_ORIYA); test_indic_tags ("ory2", "orya", HB_SCRIPT_ORIYA);
test_indic_tags ("tml2", "taml", HB_SCRIPT_TAMIL); test_indic_tags ("tml2", "taml", HB_SCRIPT_TAMIL);
test_indic_tags ("tel2", "telu", HB_SCRIPT_TELUGU); test_indic_tags ("tel2", "telu", HB_SCRIPT_TELUGU);
test_indic_tags ("mym2", "mymr", HB_SCRIPT_MYANMAR);
} }