forked from murdos/musicbrainz-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iso15924.py
102 lines (101 loc) · 2.82 KB
/
iso15924.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# http://www.unicode.org/iso15924/iso15924-codes.html
iso_code_to_unicode_alias = {
'Arab': 'Arabic',
'Armi': 'Imperial_Aramaic',
'Armn': 'Armenian',
'Avst': 'Avestan',
'Bali': 'Balinese',
'Bamu': 'Bamum',
'Batk': 'Batak',
'Beng': 'Bengali',
'Bopo': 'Bopomofo',
'Brah': 'Brahmi',
'Brai': 'Braille',
'Bugi': 'Buginese',
'Buhd': 'Buhid',
'Cans': 'Canadian_Aboriginal',
'Cari': 'Carian',
'Cham': 'Cham',
'Cher': 'Cherokee',
'Copt': 'Coptic',
'Cprt': 'Cypriot',
'Cyrl': 'Cyrillic',
'Deva': 'Devanagari',
'Dsrt': 'Deseret',
'Egyp': 'Egyptian_Hieroglyphs',
'Ethi': 'Ethiopic',
'Geor': 'Georgian',
'Glag': 'Glagolitic',
'Goth': 'Gothic',
'Grek': 'Greek',
'Gujr': 'Gujarati',
'Guru': 'Gurmukhi',
'Hang': 'Hangul',
'Hani': 'Han',
'Hano': 'Hanunoo',
'Hebr': 'Hebrew',
'Hira': 'Hiragana',
'Hrkt': 'Katakana_Or_Hiragana',
'Ital': 'Old_Italic',
'Java': 'Javanese',
'Kali': 'Kayah_Li',
'Kana': 'Katakana',
'Khar': 'Kharoshthi',
'Khmr': 'Khmer',
'Knda': 'Kannada',
'Kthi': 'Kaithi',
'Lana': 'Tai_Tham',
'Laoo': 'Lao',
'Latn': 'Latin',
'Lepc': 'Lepcha',
'Limb': 'Limbu',
'Linb': 'Linear_B',
'Lisu': 'Lisu',
'Lyci': 'Lycian',
'Lydi': 'Lydian',
'Mand': 'Mandaic',
'Mlym': 'Malayalam',
'Mong': 'Mongolian',
'Mtei': 'Meetei_Mayek',
'Mymr': 'Myanmar',
'Nkoo': 'Nko',
'Ogam': 'Ogham',
'Olck': 'Ol_Chiki',
'Orkh': 'Old_Turkic',
'Orya': 'Oriya',
'Osma': 'Osmanya',
'Phag': 'Phags_Pa',
'Phli': 'Inscriptional_Pahlavi',
'Phnx': 'Phoenician',
'Prti': 'Inscriptional_Parthian',
'Rjng': 'Rejang',
'Runr': 'Runic',
'Samr': 'Samaritan',
'Sarb': 'Old_South_Arabian',
'Saur': 'Saurashtra',
'Shaw': 'Shavian',
'Sinh': 'Sinhala',
'Sund': 'Sundanese',
'Sylo': 'Syloti_Nagri',
'Syrc': 'Syriac',
'Tagb': 'Tagbanwa',
'Tale': 'Tai_Le',
'Talu': 'New_Tai_Lue',
'Taml': 'Tamil',
'Tavt': 'Tai_Viet',
'Telu': 'Telugu',
'Tfng': 'Tifinagh',
'Tglg': 'Tagalog',
'Thaa': 'Thaana',
'Thai': 'Thai',
'Tibt': 'Tibetan',
'Ugar': 'Ugaritic',
'Vaii': 'Vai',
'Xpeo': 'Old_Persian',
'Xsux': 'Cuneiform',
'Yiii': 'Yi',
'Zinh': 'Inherited',
'Zyyy': 'Common',
'Zzzz': 'Unknown',
}
unicode_alias_to_iso_code = dict((v, k) for k, v in iso_code_to_unicode_alias.items())