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 ('ZHP')
|
||||
ot.remove_language_ot ('ZHT')
|
||||
ot.remove_language_ot ('ZHTM')
|
||||
bcp_47.macrolanguages['zh'].remove ('lzh')
|
||||
bcp_47.macrolanguages['zh'].remove ('yue')
|
||||
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-Hans', 'ZHS')
|
||||
ot.add_language ('zh-Hant', 'ZHT')
|
||||
ot.add_language ('zh-HK', 'ZHH')
|
||||
ot.add_language ('zh-MO', 'ZHH')
|
||||
ot.add_language ('zh-MO', 'ZHTM')
|
||||
ot.add_language ('zh-TW', 'ZHT')
|
||||
ot.add_language ('lzh', 'ZHT')
|
||||
ot.add_language ('lzh-Hans', 'ZHS')
|
||||
|
@ -797,6 +800,7 @@ def rank_delta (bcp_47, ot):
|
|||
disambiguation = {
|
||||
'ALT': 'alt',
|
||||
'ARK': 'rki',
|
||||
'ATH': 'ath',
|
||||
'BHI': 'bhb',
|
||||
'BLN': 'bjt',
|
||||
'BTI': 'beb',
|
||||
|
@ -821,10 +825,11 @@ disambiguation = {
|
|||
'QVI': 'qvi',
|
||||
'QWH': 'qwh',
|
||||
'SIG': 'stv',
|
||||
'TNE': 'yrk',
|
||||
'SRB': 'sr',
|
||||
'ZHH': 'zh-HK',
|
||||
'ZHS': 'zh-Hans',
|
||||
'ZHT': 'zh-Hant',
|
||||
'ZHTM': 'zh-MO',
|
||||
}
|
||||
|
||||
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-cn"); /* Chinese (China) */
|
||||
test_tag_from_language ("ZHS", "zh-sg"); /* Chinese (Singapore) */
|
||||
test_tag_from_language ("ZHH", "zh-mo"); /* Chinese (Macao) */
|
||||
test_tag_from_language ("ZHH", "zh-hant-mo"); /* Chinese (Macao) */
|
||||
test_tag_from_language ("ZHTM", "zh-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_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_language_two_way ("ZHS", "zh-Hans"); /* Chinese (Simplified) */
|
||||
test_language_two_way ("ZHT", "zh-Hant"); /* Chinese (Traditional) */
|
||||
|
|
Loading…
Reference in New Issue