Update language system tag registry to OT 1.8.4
This commit is contained in:
parent
385d9c08d8
commit
17da41bd06
|
@ -758,14 +758,17 @@ ot.add_language ('xwo', 'TOD')
|
||||||
ot.remove_language_ot ('ZHH')
|
ot.remove_language_ot ('ZHH')
|
||||||
ot.remove_language_ot ('ZHP')
|
ot.remove_language_ot ('ZHP')
|
||||||
ot.remove_language_ot ('ZHT')
|
ot.remove_language_ot ('ZHT')
|
||||||
|
ot.remove_language_ot ('ZHTM')
|
||||||
bcp_47.macrolanguages['zh'].remove ('lzh')
|
bcp_47.macrolanguages['zh'].remove ('lzh')
|
||||||
bcp_47.macrolanguages['zh'].remove ('yue')
|
bcp_47.macrolanguages['zh'].remove ('yue')
|
||||||
ot.add_language ('zh-Hant-MO', 'ZHH')
|
ot.add_language ('zh-Hant-MO', 'ZHH')
|
||||||
|
ot.add_language ('zh-Hant-MO', 'ZHTM')
|
||||||
ot.add_language ('zh-Hant-HK', 'ZHH')
|
ot.add_language ('zh-Hant-HK', 'ZHH')
|
||||||
ot.add_language ('zh-Hans', 'ZHS')
|
ot.add_language ('zh-Hans', 'ZHS')
|
||||||
ot.add_language ('zh-Hant', 'ZHT')
|
ot.add_language ('zh-Hant', 'ZHT')
|
||||||
ot.add_language ('zh-HK', 'ZHH')
|
ot.add_language ('zh-HK', 'ZHH')
|
||||||
ot.add_language ('zh-MO', 'ZHH')
|
ot.add_language ('zh-MO', 'ZHH')
|
||||||
|
ot.add_language ('zh-MO', 'ZHTM')
|
||||||
ot.add_language ('zh-TW', 'ZHT')
|
ot.add_language ('zh-TW', 'ZHT')
|
||||||
ot.add_language ('lzh', 'ZHT')
|
ot.add_language ('lzh', 'ZHT')
|
||||||
ot.add_language ('lzh-Hans', 'ZHS')
|
ot.add_language ('lzh-Hans', 'ZHS')
|
||||||
|
@ -797,6 +800,7 @@ def rank_delta (bcp_47, ot):
|
||||||
disambiguation = {
|
disambiguation = {
|
||||||
'ALT': 'alt',
|
'ALT': 'alt',
|
||||||
'ARK': 'rki',
|
'ARK': 'rki',
|
||||||
|
'ATH': 'ath',
|
||||||
'BHI': 'bhb',
|
'BHI': 'bhb',
|
||||||
'BLN': 'bjt',
|
'BLN': 'bjt',
|
||||||
'BTI': 'beb',
|
'BTI': 'beb',
|
||||||
|
@ -821,10 +825,11 @@ disambiguation = {
|
||||||
'QVI': 'qvi',
|
'QVI': 'qvi',
|
||||||
'QWH': 'qwh',
|
'QWH': 'qwh',
|
||||||
'SIG': 'stv',
|
'SIG': 'stv',
|
||||||
'TNE': 'yrk',
|
'SRB': 'sr',
|
||||||
'ZHH': 'zh-HK',
|
'ZHH': 'zh-HK',
|
||||||
'ZHS': 'zh-Hans',
|
'ZHS': 'zh-Hans',
|
||||||
'ZHT': 'zh-Hant',
|
'ZHT': 'zh-Hant',
|
||||||
|
'ZHTM': 'zh-MO',
|
||||||
}
|
}
|
||||||
|
|
||||||
ot.inherit_from_macrolanguages ()
|
ot.inherit_from_macrolanguages ()
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -349,10 +349,12 @@ test_ot_tag_language (void)
|
||||||
test_tag_from_language ("ZHS", "zh"); /* Chinese */
|
test_tag_from_language ("ZHS", "zh"); /* Chinese */
|
||||||
test_tag_from_language ("ZHS", "zh-cn"); /* Chinese (China) */
|
test_tag_from_language ("ZHS", "zh-cn"); /* Chinese (China) */
|
||||||
test_tag_from_language ("ZHS", "zh-sg"); /* Chinese (Singapore) */
|
test_tag_from_language ("ZHS", "zh-sg"); /* Chinese (Singapore) */
|
||||||
test_tag_from_language ("ZHH", "zh-mo"); /* Chinese (Macao) */
|
test_tag_from_language ("ZHTM", "zh-mo"); /* Chinese (Macao) */
|
||||||
test_tag_from_language ("ZHH", "zh-hant-mo"); /* Chinese (Macao) */
|
test_tag_from_language ("ZHTM", "zh-hant-mo"); /* Chinese (Macao) */
|
||||||
|
test_tag_from_language ("ZHS", "zh-hans-mo"); /* Chinese (Simplified, Macao) */
|
||||||
test_language_two_way ("ZHH", "zh-HK"); /* Chinese (Hong Kong) */
|
test_language_two_way ("ZHH", "zh-HK"); /* Chinese (Hong Kong) */
|
||||||
test_tag_from_language ("ZHH", "zH-HanT-hK"); /* Chinese (Hong Kong) */
|
test_tag_from_language ("ZHH", "zH-HanT-hK"); /* Chinese (Hong Kong) */
|
||||||
|
test_tag_from_language ("ZHS", "zH-HanS-hK"); /* Chinese (Simplified, Hong Kong) */
|
||||||
test_tag_from_language ("ZHT", "zh-tw"); /* Chinese (Taiwan) */
|
test_tag_from_language ("ZHT", "zh-tw"); /* Chinese (Taiwan) */
|
||||||
test_language_two_way ("ZHS", "zh-Hans"); /* Chinese (Simplified) */
|
test_language_two_way ("ZHS", "zh-Hans"); /* Chinese (Simplified) */
|
||||||
test_language_two_way ("ZHT", "zh-Hant"); /* Chinese (Traditional) */
|
test_language_two_way ("ZHT", "zh-Hant"); /* Chinese (Traditional) */
|
||||||
|
|
Loading…
Reference in New Issue