ucode 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/unicode17_universal_glyph_set.yml +1 -1
- data/lib/ucode/cli.rb +12 -0
- data/lib/ucode/commands/emit_metadata.rb +62 -0
- data/lib/ucode/commands.rb +1 -0
- data/lib/ucode/error.rb +5 -0
- data/lib/ucode/unicode/block.rb +28 -0
- data/lib/ucode/unicode/catalog.rb +135 -0
- data/lib/ucode/unicode/metadata/v15_0_0.rb +354 -0
- data/lib/ucode/unicode/metadata/v15_1_0.rb +355 -0
- data/lib/ucode/unicode/metadata/v16_0_0.rb +365 -0
- data/lib/ucode/unicode/metadata/v17_0_0.rb +374 -0
- data/lib/ucode/unicode/metadata_writer.rb +136 -0
- data/lib/ucode/unicode/plane.rb +23 -0
- data/lib/ucode/unicode.rb +85 -0
- data/lib/ucode/version.rb +1 -1
- data/lib/ucode.rb +2 -0
- metadata +11 -1
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# AUTO-GENERATED from UCD 17.0.0. Do not edit by hand.
|
|
4
|
+
# Regenerate via: bin/ucode emit-metadata --version 17.0.0
|
|
5
|
+
# rubocop:disable all
|
|
6
|
+
|
|
7
|
+
module Ucode
|
|
8
|
+
module Unicode
|
|
9
|
+
module Metadata
|
|
10
|
+
module V17_0_0
|
|
11
|
+
UNICODE_VERSION = "17.0.0"
|
|
12
|
+
ASSIGNED_COUNT = 159866
|
|
13
|
+
|
|
14
|
+
ASSIGNED_BY_PLANE = {
|
|
15
|
+
0 => 55718,
|
|
16
|
+
1 => 28869,
|
|
17
|
+
2 => 61513,
|
|
18
|
+
3 => 13429,
|
|
19
|
+
14 => 337,
|
|
20
|
+
}.freeze
|
|
21
|
+
|
|
22
|
+
BLOCKS = [
|
|
23
|
+
{ id: "Basic_Latin", name: "Basic Latin", first_cp: 0, last_cp: 127 },
|
|
24
|
+
{ id: "Latin-1_Supplement", name: "Latin-1 Supplement", first_cp: 128, last_cp: 255 },
|
|
25
|
+
{ id: "Latin_Extended-A", name: "Latin Extended-A", first_cp: 256, last_cp: 383 },
|
|
26
|
+
{ id: "Latin_Extended-B", name: "Latin Extended-B", first_cp: 384, last_cp: 591 },
|
|
27
|
+
{ id: "IPA_Extensions", name: "IPA Extensions", first_cp: 592, last_cp: 687 },
|
|
28
|
+
{ id: "Spacing_Modifier_Letters", name: "Spacing Modifier Letters", first_cp: 688, last_cp: 767 },
|
|
29
|
+
{ id: "Combining_Diacritical_Marks", name: "Combining Diacritical Marks", first_cp: 768, last_cp: 879 },
|
|
30
|
+
{ id: "Greek_and_Coptic", name: "Greek and Coptic", first_cp: 880, last_cp: 1023 },
|
|
31
|
+
{ id: "Cyrillic", name: "Cyrillic", first_cp: 1024, last_cp: 1279 },
|
|
32
|
+
{ id: "Cyrillic_Supplement", name: "Cyrillic Supplement", first_cp: 1280, last_cp: 1327 },
|
|
33
|
+
{ id: "Armenian", name: "Armenian", first_cp: 1328, last_cp: 1423 },
|
|
34
|
+
{ id: "Hebrew", name: "Hebrew", first_cp: 1424, last_cp: 1535 },
|
|
35
|
+
{ id: "Arabic", name: "Arabic", first_cp: 1536, last_cp: 1791 },
|
|
36
|
+
{ id: "Syriac", name: "Syriac", first_cp: 1792, last_cp: 1871 },
|
|
37
|
+
{ id: "Arabic_Supplement", name: "Arabic Supplement", first_cp: 1872, last_cp: 1919 },
|
|
38
|
+
{ id: "Thaana", name: "Thaana", first_cp: 1920, last_cp: 1983 },
|
|
39
|
+
{ id: "NKo", name: "NKo", first_cp: 1984, last_cp: 2047 },
|
|
40
|
+
{ id: "Samaritan", name: "Samaritan", first_cp: 2048, last_cp: 2111 },
|
|
41
|
+
{ id: "Mandaic", name: "Mandaic", first_cp: 2112, last_cp: 2143 },
|
|
42
|
+
{ id: "Syriac_Supplement", name: "Syriac Supplement", first_cp: 2144, last_cp: 2159 },
|
|
43
|
+
{ id: "Arabic_Extended-B", name: "Arabic Extended-B", first_cp: 2160, last_cp: 2207 },
|
|
44
|
+
{ id: "Arabic_Extended-A", name: "Arabic Extended-A", first_cp: 2208, last_cp: 2303 },
|
|
45
|
+
{ id: "Devanagari", name: "Devanagari", first_cp: 2304, last_cp: 2431 },
|
|
46
|
+
{ id: "Bengali", name: "Bengali", first_cp: 2432, last_cp: 2559 },
|
|
47
|
+
{ id: "Gurmukhi", name: "Gurmukhi", first_cp: 2560, last_cp: 2687 },
|
|
48
|
+
{ id: "Gujarati", name: "Gujarati", first_cp: 2688, last_cp: 2815 },
|
|
49
|
+
{ id: "Oriya", name: "Oriya", first_cp: 2816, last_cp: 2943 },
|
|
50
|
+
{ id: "Tamil", name: "Tamil", first_cp: 2944, last_cp: 3071 },
|
|
51
|
+
{ id: "Telugu", name: "Telugu", first_cp: 3072, last_cp: 3199 },
|
|
52
|
+
{ id: "Kannada", name: "Kannada", first_cp: 3200, last_cp: 3327 },
|
|
53
|
+
{ id: "Malayalam", name: "Malayalam", first_cp: 3328, last_cp: 3455 },
|
|
54
|
+
{ id: "Sinhala", name: "Sinhala", first_cp: 3456, last_cp: 3583 },
|
|
55
|
+
{ id: "Thai", name: "Thai", first_cp: 3584, last_cp: 3711 },
|
|
56
|
+
{ id: "Lao", name: "Lao", first_cp: 3712, last_cp: 3839 },
|
|
57
|
+
{ id: "Tibetan", name: "Tibetan", first_cp: 3840, last_cp: 4095 },
|
|
58
|
+
{ id: "Myanmar", name: "Myanmar", first_cp: 4096, last_cp: 4255 },
|
|
59
|
+
{ id: "Georgian", name: "Georgian", first_cp: 4256, last_cp: 4351 },
|
|
60
|
+
{ id: "Hangul_Jamo", name: "Hangul Jamo", first_cp: 4352, last_cp: 4607 },
|
|
61
|
+
{ id: "Ethiopic", name: "Ethiopic", first_cp: 4608, last_cp: 4991 },
|
|
62
|
+
{ id: "Ethiopic_Supplement", name: "Ethiopic Supplement", first_cp: 4992, last_cp: 5023 },
|
|
63
|
+
{ id: "Cherokee", name: "Cherokee", first_cp: 5024, last_cp: 5119 },
|
|
64
|
+
{ id: "Unified_Canadian_Aboriginal_Syllabics", name: "Unified Canadian Aboriginal Syllabics", first_cp: 5120, last_cp: 5759 },
|
|
65
|
+
{ id: "Ogham", name: "Ogham", first_cp: 5760, last_cp: 5791 },
|
|
66
|
+
{ id: "Runic", name: "Runic", first_cp: 5792, last_cp: 5887 },
|
|
67
|
+
{ id: "Tagalog", name: "Tagalog", first_cp: 5888, last_cp: 5919 },
|
|
68
|
+
{ id: "Hanunoo", name: "Hanunoo", first_cp: 5920, last_cp: 5951 },
|
|
69
|
+
{ id: "Buhid", name: "Buhid", first_cp: 5952, last_cp: 5983 },
|
|
70
|
+
{ id: "Tagbanwa", name: "Tagbanwa", first_cp: 5984, last_cp: 6015 },
|
|
71
|
+
{ id: "Khmer", name: "Khmer", first_cp: 6016, last_cp: 6143 },
|
|
72
|
+
{ id: "Mongolian", name: "Mongolian", first_cp: 6144, last_cp: 6319 },
|
|
73
|
+
{ id: "Unified_Canadian_Aboriginal_Syllabics_Extended", name: "Unified Canadian Aboriginal Syllabics Extended", first_cp: 6320, last_cp: 6399 },
|
|
74
|
+
{ id: "Limbu", name: "Limbu", first_cp: 6400, last_cp: 6479 },
|
|
75
|
+
{ id: "Tai_Le", name: "Tai Le", first_cp: 6480, last_cp: 6527 },
|
|
76
|
+
{ id: "New_Tai_Lue", name: "New Tai Lue", first_cp: 6528, last_cp: 6623 },
|
|
77
|
+
{ id: "Khmer_Symbols", name: "Khmer Symbols", first_cp: 6624, last_cp: 6655 },
|
|
78
|
+
{ id: "Buginese", name: "Buginese", first_cp: 6656, last_cp: 6687 },
|
|
79
|
+
{ id: "Tai_Tham", name: "Tai Tham", first_cp: 6688, last_cp: 6831 },
|
|
80
|
+
{ id: "Combining_Diacritical_Marks_Extended", name: "Combining Diacritical Marks Extended", first_cp: 6832, last_cp: 6911 },
|
|
81
|
+
{ id: "Balinese", name: "Balinese", first_cp: 6912, last_cp: 7039 },
|
|
82
|
+
{ id: "Sundanese", name: "Sundanese", first_cp: 7040, last_cp: 7103 },
|
|
83
|
+
{ id: "Batak", name: "Batak", first_cp: 7104, last_cp: 7167 },
|
|
84
|
+
{ id: "Lepcha", name: "Lepcha", first_cp: 7168, last_cp: 7247 },
|
|
85
|
+
{ id: "Ol_Chiki", name: "Ol Chiki", first_cp: 7248, last_cp: 7295 },
|
|
86
|
+
{ id: "Cyrillic_Extended-C", name: "Cyrillic Extended-C", first_cp: 7296, last_cp: 7311 },
|
|
87
|
+
{ id: "Georgian_Extended", name: "Georgian Extended", first_cp: 7312, last_cp: 7359 },
|
|
88
|
+
{ id: "Sundanese_Supplement", name: "Sundanese Supplement", first_cp: 7360, last_cp: 7375 },
|
|
89
|
+
{ id: "Vedic_Extensions", name: "Vedic Extensions", first_cp: 7376, last_cp: 7423 },
|
|
90
|
+
{ id: "Phonetic_Extensions", name: "Phonetic Extensions", first_cp: 7424, last_cp: 7551 },
|
|
91
|
+
{ id: "Phonetic_Extensions_Supplement", name: "Phonetic Extensions Supplement", first_cp: 7552, last_cp: 7615 },
|
|
92
|
+
{ id: "Combining_Diacritical_Marks_Supplement", name: "Combining Diacritical Marks Supplement", first_cp: 7616, last_cp: 7679 },
|
|
93
|
+
{ id: "Latin_Extended_Additional", name: "Latin Extended Additional", first_cp: 7680, last_cp: 7935 },
|
|
94
|
+
{ id: "Greek_Extended", name: "Greek Extended", first_cp: 7936, last_cp: 8191 },
|
|
95
|
+
{ id: "General_Punctuation", name: "General Punctuation", first_cp: 8192, last_cp: 8303 },
|
|
96
|
+
{ id: "Superscripts_and_Subscripts", name: "Superscripts and Subscripts", first_cp: 8304, last_cp: 8351 },
|
|
97
|
+
{ id: "Currency_Symbols", name: "Currency Symbols", first_cp: 8352, last_cp: 8399 },
|
|
98
|
+
{ id: "Combining_Diacritical_Marks_for_Symbols", name: "Combining Diacritical Marks for Symbols", first_cp: 8400, last_cp: 8447 },
|
|
99
|
+
{ id: "Letterlike_Symbols", name: "Letterlike Symbols", first_cp: 8448, last_cp: 8527 },
|
|
100
|
+
{ id: "Number_Forms", name: "Number Forms", first_cp: 8528, last_cp: 8591 },
|
|
101
|
+
{ id: "Arrows", name: "Arrows", first_cp: 8592, last_cp: 8703 },
|
|
102
|
+
{ id: "Mathematical_Operators", name: "Mathematical Operators", first_cp: 8704, last_cp: 8959 },
|
|
103
|
+
{ id: "Miscellaneous_Technical", name: "Miscellaneous Technical", first_cp: 8960, last_cp: 9215 },
|
|
104
|
+
{ id: "Control_Pictures", name: "Control Pictures", first_cp: 9216, last_cp: 9279 },
|
|
105
|
+
{ id: "Optical_Character_Recognition", name: "Optical Character Recognition", first_cp: 9280, last_cp: 9311 },
|
|
106
|
+
{ id: "Enclosed_Alphanumerics", name: "Enclosed Alphanumerics", first_cp: 9312, last_cp: 9471 },
|
|
107
|
+
{ id: "Box_Drawing", name: "Box Drawing", first_cp: 9472, last_cp: 9599 },
|
|
108
|
+
{ id: "Block_Elements", name: "Block Elements", first_cp: 9600, last_cp: 9631 },
|
|
109
|
+
{ id: "Geometric_Shapes", name: "Geometric Shapes", first_cp: 9632, last_cp: 9727 },
|
|
110
|
+
{ id: "Miscellaneous_Symbols", name: "Miscellaneous Symbols", first_cp: 9728, last_cp: 9983 },
|
|
111
|
+
{ id: "Dingbats", name: "Dingbats", first_cp: 9984, last_cp: 10175 },
|
|
112
|
+
{ id: "Miscellaneous_Mathematical_Symbols-A", name: "Miscellaneous Mathematical Symbols-A", first_cp: 10176, last_cp: 10223 },
|
|
113
|
+
{ id: "Supplemental_Arrows-A", name: "Supplemental Arrows-A", first_cp: 10224, last_cp: 10239 },
|
|
114
|
+
{ id: "Braille_Patterns", name: "Braille Patterns", first_cp: 10240, last_cp: 10495 },
|
|
115
|
+
{ id: "Supplemental_Arrows-B", name: "Supplemental Arrows-B", first_cp: 10496, last_cp: 10623 },
|
|
116
|
+
{ id: "Miscellaneous_Mathematical_Symbols-B", name: "Miscellaneous Mathematical Symbols-B", first_cp: 10624, last_cp: 10751 },
|
|
117
|
+
{ id: "Supplemental_Mathematical_Operators", name: "Supplemental Mathematical Operators", first_cp: 10752, last_cp: 11007 },
|
|
118
|
+
{ id: "Miscellaneous_Symbols_and_Arrows", name: "Miscellaneous Symbols and Arrows", first_cp: 11008, last_cp: 11263 },
|
|
119
|
+
{ id: "Glagolitic", name: "Glagolitic", first_cp: 11264, last_cp: 11359 },
|
|
120
|
+
{ id: "Latin_Extended-C", name: "Latin Extended-C", first_cp: 11360, last_cp: 11391 },
|
|
121
|
+
{ id: "Coptic", name: "Coptic", first_cp: 11392, last_cp: 11519 },
|
|
122
|
+
{ id: "Georgian_Supplement", name: "Georgian Supplement", first_cp: 11520, last_cp: 11567 },
|
|
123
|
+
{ id: "Tifinagh", name: "Tifinagh", first_cp: 11568, last_cp: 11647 },
|
|
124
|
+
{ id: "Ethiopic_Extended", name: "Ethiopic Extended", first_cp: 11648, last_cp: 11743 },
|
|
125
|
+
{ id: "Cyrillic_Extended-A", name: "Cyrillic Extended-A", first_cp: 11744, last_cp: 11775 },
|
|
126
|
+
{ id: "Supplemental_Punctuation", name: "Supplemental Punctuation", first_cp: 11776, last_cp: 11903 },
|
|
127
|
+
{ id: "CJK_Radicals_Supplement", name: "CJK Radicals Supplement", first_cp: 11904, last_cp: 12031 },
|
|
128
|
+
{ id: "Kangxi_Radicals", name: "Kangxi Radicals", first_cp: 12032, last_cp: 12255 },
|
|
129
|
+
{ id: "Ideographic_Description_Characters", name: "Ideographic Description Characters", first_cp: 12272, last_cp: 12287 },
|
|
130
|
+
{ id: "CJK_Symbols_and_Punctuation", name: "CJK Symbols and Punctuation", first_cp: 12288, last_cp: 12351 },
|
|
131
|
+
{ id: "Hiragana", name: "Hiragana", first_cp: 12352, last_cp: 12447 },
|
|
132
|
+
{ id: "Katakana", name: "Katakana", first_cp: 12448, last_cp: 12543 },
|
|
133
|
+
{ id: "Bopomofo", name: "Bopomofo", first_cp: 12544, last_cp: 12591 },
|
|
134
|
+
{ id: "Hangul_Compatibility_Jamo", name: "Hangul Compatibility Jamo", first_cp: 12592, last_cp: 12687 },
|
|
135
|
+
{ id: "Kanbun", name: "Kanbun", first_cp: 12688, last_cp: 12703 },
|
|
136
|
+
{ id: "Bopomofo_Extended", name: "Bopomofo Extended", first_cp: 12704, last_cp: 12735 },
|
|
137
|
+
{ id: "CJK_Strokes", name: "CJK Strokes", first_cp: 12736, last_cp: 12783 },
|
|
138
|
+
{ id: "Katakana_Phonetic_Extensions", name: "Katakana Phonetic Extensions", first_cp: 12784, last_cp: 12799 },
|
|
139
|
+
{ id: "Enclosed_CJK_Letters_and_Months", name: "Enclosed CJK Letters and Months", first_cp: 12800, last_cp: 13055 },
|
|
140
|
+
{ id: "CJK_Compatibility", name: "CJK Compatibility", first_cp: 13056, last_cp: 13311 },
|
|
141
|
+
{ id: "CJK_Unified_Ideographs_Extension_A", name: "CJK Unified Ideographs Extension A", first_cp: 13312, last_cp: 19903 },
|
|
142
|
+
{ id: "Yijing_Hexagram_Symbols", name: "Yijing Hexagram Symbols", first_cp: 19904, last_cp: 19967 },
|
|
143
|
+
{ id: "CJK_Unified_Ideographs", name: "CJK Unified Ideographs", first_cp: 19968, last_cp: 40959 },
|
|
144
|
+
{ id: "Yi_Syllables", name: "Yi Syllables", first_cp: 40960, last_cp: 42127 },
|
|
145
|
+
{ id: "Yi_Radicals", name: "Yi Radicals", first_cp: 42128, last_cp: 42191 },
|
|
146
|
+
{ id: "Lisu", name: "Lisu", first_cp: 42192, last_cp: 42239 },
|
|
147
|
+
{ id: "Vai", name: "Vai", first_cp: 42240, last_cp: 42559 },
|
|
148
|
+
{ id: "Cyrillic_Extended-B", name: "Cyrillic Extended-B", first_cp: 42560, last_cp: 42655 },
|
|
149
|
+
{ id: "Bamum", name: "Bamum", first_cp: 42656, last_cp: 42751 },
|
|
150
|
+
{ id: "Modifier_Tone_Letters", name: "Modifier Tone Letters", first_cp: 42752, last_cp: 42783 },
|
|
151
|
+
{ id: "Latin_Extended-D", name: "Latin Extended-D", first_cp: 42784, last_cp: 43007 },
|
|
152
|
+
{ id: "Syloti_Nagri", name: "Syloti Nagri", first_cp: 43008, last_cp: 43055 },
|
|
153
|
+
{ id: "Common_Indic_Number_Forms", name: "Common Indic Number Forms", first_cp: 43056, last_cp: 43071 },
|
|
154
|
+
{ id: "Phags-pa", name: "Phags-pa", first_cp: 43072, last_cp: 43135 },
|
|
155
|
+
{ id: "Saurashtra", name: "Saurashtra", first_cp: 43136, last_cp: 43231 },
|
|
156
|
+
{ id: "Devanagari_Extended", name: "Devanagari Extended", first_cp: 43232, last_cp: 43263 },
|
|
157
|
+
{ id: "Kayah_Li", name: "Kayah Li", first_cp: 43264, last_cp: 43311 },
|
|
158
|
+
{ id: "Rejang", name: "Rejang", first_cp: 43312, last_cp: 43359 },
|
|
159
|
+
{ id: "Hangul_Jamo_Extended-A", name: "Hangul Jamo Extended-A", first_cp: 43360, last_cp: 43391 },
|
|
160
|
+
{ id: "Javanese", name: "Javanese", first_cp: 43392, last_cp: 43487 },
|
|
161
|
+
{ id: "Myanmar_Extended-B", name: "Myanmar Extended-B", first_cp: 43488, last_cp: 43519 },
|
|
162
|
+
{ id: "Cham", name: "Cham", first_cp: 43520, last_cp: 43615 },
|
|
163
|
+
{ id: "Myanmar_Extended-A", name: "Myanmar Extended-A", first_cp: 43616, last_cp: 43647 },
|
|
164
|
+
{ id: "Tai_Viet", name: "Tai Viet", first_cp: 43648, last_cp: 43743 },
|
|
165
|
+
{ id: "Meetei_Mayek_Extensions", name: "Meetei Mayek Extensions", first_cp: 43744, last_cp: 43775 },
|
|
166
|
+
{ id: "Ethiopic_Extended-A", name: "Ethiopic Extended-A", first_cp: 43776, last_cp: 43823 },
|
|
167
|
+
{ id: "Latin_Extended-E", name: "Latin Extended-E", first_cp: 43824, last_cp: 43887 },
|
|
168
|
+
{ id: "Cherokee_Supplement", name: "Cherokee Supplement", first_cp: 43888, last_cp: 43967 },
|
|
169
|
+
{ id: "Meetei_Mayek", name: "Meetei Mayek", first_cp: 43968, last_cp: 44031 },
|
|
170
|
+
{ id: "Hangul_Syllables", name: "Hangul Syllables", first_cp: 44032, last_cp: 55215 },
|
|
171
|
+
{ id: "Hangul_Jamo_Extended-B", name: "Hangul Jamo Extended-B", first_cp: 55216, last_cp: 55295 },
|
|
172
|
+
{ id: "High_Surrogates", name: "High Surrogates", first_cp: 55296, last_cp: 56191 },
|
|
173
|
+
{ id: "High_Private_Use_Surrogates", name: "High Private Use Surrogates", first_cp: 56192, last_cp: 56319 },
|
|
174
|
+
{ id: "Low_Surrogates", name: "Low Surrogates", first_cp: 56320, last_cp: 57343 },
|
|
175
|
+
{ id: "Private_Use_Area", name: "Private Use Area", first_cp: 57344, last_cp: 63743 },
|
|
176
|
+
{ id: "CJK_Compatibility_Ideographs", name: "CJK Compatibility Ideographs", first_cp: 63744, last_cp: 64255 },
|
|
177
|
+
{ id: "Alphabetic_Presentation_Forms", name: "Alphabetic Presentation Forms", first_cp: 64256, last_cp: 64335 },
|
|
178
|
+
{ id: "Arabic_Presentation_Forms-A", name: "Arabic Presentation Forms-A", first_cp: 64336, last_cp: 65023 },
|
|
179
|
+
{ id: "Variation_Selectors", name: "Variation Selectors", first_cp: 65024, last_cp: 65039 },
|
|
180
|
+
{ id: "Vertical_Forms", name: "Vertical Forms", first_cp: 65040, last_cp: 65055 },
|
|
181
|
+
{ id: "Combining_Half_Marks", name: "Combining Half Marks", first_cp: 65056, last_cp: 65071 },
|
|
182
|
+
{ id: "CJK_Compatibility_Forms", name: "CJK Compatibility Forms", first_cp: 65072, last_cp: 65103 },
|
|
183
|
+
{ id: "Small_Form_Variants", name: "Small Form Variants", first_cp: 65104, last_cp: 65135 },
|
|
184
|
+
{ id: "Arabic_Presentation_Forms-B", name: "Arabic Presentation Forms-B", first_cp: 65136, last_cp: 65279 },
|
|
185
|
+
{ id: "Halfwidth_and_Fullwidth_Forms", name: "Halfwidth and Fullwidth Forms", first_cp: 65280, last_cp: 65519 },
|
|
186
|
+
{ id: "Specials", name: "Specials", first_cp: 65520, last_cp: 65535 },
|
|
187
|
+
{ id: "Linear_B_Syllabary", name: "Linear B Syllabary", first_cp: 65536, last_cp: 65663 },
|
|
188
|
+
{ id: "Linear_B_Ideograms", name: "Linear B Ideograms", first_cp: 65664, last_cp: 65791 },
|
|
189
|
+
{ id: "Aegean_Numbers", name: "Aegean Numbers", first_cp: 65792, last_cp: 65855 },
|
|
190
|
+
{ id: "Ancient_Greek_Numbers", name: "Ancient Greek Numbers", first_cp: 65856, last_cp: 65935 },
|
|
191
|
+
{ id: "Ancient_Symbols", name: "Ancient Symbols", first_cp: 65936, last_cp: 65999 },
|
|
192
|
+
{ id: "Phaistos_Disc", name: "Phaistos Disc", first_cp: 66000, last_cp: 66047 },
|
|
193
|
+
{ id: "Lycian", name: "Lycian", first_cp: 66176, last_cp: 66207 },
|
|
194
|
+
{ id: "Carian", name: "Carian", first_cp: 66208, last_cp: 66271 },
|
|
195
|
+
{ id: "Coptic_Epact_Numbers", name: "Coptic Epact Numbers", first_cp: 66272, last_cp: 66303 },
|
|
196
|
+
{ id: "Old_Italic", name: "Old Italic", first_cp: 66304, last_cp: 66351 },
|
|
197
|
+
{ id: "Gothic", name: "Gothic", first_cp: 66352, last_cp: 66383 },
|
|
198
|
+
{ id: "Old_Permic", name: "Old Permic", first_cp: 66384, last_cp: 66431 },
|
|
199
|
+
{ id: "Ugaritic", name: "Ugaritic", first_cp: 66432, last_cp: 66463 },
|
|
200
|
+
{ id: "Old_Persian", name: "Old Persian", first_cp: 66464, last_cp: 66527 },
|
|
201
|
+
{ id: "Deseret", name: "Deseret", first_cp: 66560, last_cp: 66639 },
|
|
202
|
+
{ id: "Shavian", name: "Shavian", first_cp: 66640, last_cp: 66687 },
|
|
203
|
+
{ id: "Osmanya", name: "Osmanya", first_cp: 66688, last_cp: 66735 },
|
|
204
|
+
{ id: "Osage", name: "Osage", first_cp: 66736, last_cp: 66815 },
|
|
205
|
+
{ id: "Elbasan", name: "Elbasan", first_cp: 66816, last_cp: 66863 },
|
|
206
|
+
{ id: "Caucasian_Albanian", name: "Caucasian Albanian", first_cp: 66864, last_cp: 66927 },
|
|
207
|
+
{ id: "Vithkuqi", name: "Vithkuqi", first_cp: 66928, last_cp: 67007 },
|
|
208
|
+
{ id: "Todhri", name: "Todhri", first_cp: 67008, last_cp: 67071 },
|
|
209
|
+
{ id: "Linear_A", name: "Linear A", first_cp: 67072, last_cp: 67455 },
|
|
210
|
+
{ id: "Latin_Extended-F", name: "Latin Extended-F", first_cp: 67456, last_cp: 67519 },
|
|
211
|
+
{ id: "Cypriot_Syllabary", name: "Cypriot Syllabary", first_cp: 67584, last_cp: 67647 },
|
|
212
|
+
{ id: "Imperial_Aramaic", name: "Imperial Aramaic", first_cp: 67648, last_cp: 67679 },
|
|
213
|
+
{ id: "Palmyrene", name: "Palmyrene", first_cp: 67680, last_cp: 67711 },
|
|
214
|
+
{ id: "Nabataean", name: "Nabataean", first_cp: 67712, last_cp: 67759 },
|
|
215
|
+
{ id: "Hatran", name: "Hatran", first_cp: 67808, last_cp: 67839 },
|
|
216
|
+
{ id: "Phoenician", name: "Phoenician", first_cp: 67840, last_cp: 67871 },
|
|
217
|
+
{ id: "Lydian", name: "Lydian", first_cp: 67872, last_cp: 67903 },
|
|
218
|
+
{ id: "Sidetic", name: "Sidetic", first_cp: 67904, last_cp: 67935 },
|
|
219
|
+
{ id: "Meroitic_Hieroglyphs", name: "Meroitic Hieroglyphs", first_cp: 67968, last_cp: 67999 },
|
|
220
|
+
{ id: "Meroitic_Cursive", name: "Meroitic Cursive", first_cp: 68000, last_cp: 68095 },
|
|
221
|
+
{ id: "Kharoshthi", name: "Kharoshthi", first_cp: 68096, last_cp: 68191 },
|
|
222
|
+
{ id: "Old_South_Arabian", name: "Old South Arabian", first_cp: 68192, last_cp: 68223 },
|
|
223
|
+
{ id: "Old_North_Arabian", name: "Old North Arabian", first_cp: 68224, last_cp: 68255 },
|
|
224
|
+
{ id: "Manichaean", name: "Manichaean", first_cp: 68288, last_cp: 68351 },
|
|
225
|
+
{ id: "Avestan", name: "Avestan", first_cp: 68352, last_cp: 68415 },
|
|
226
|
+
{ id: "Inscriptional_Parthian", name: "Inscriptional Parthian", first_cp: 68416, last_cp: 68447 },
|
|
227
|
+
{ id: "Inscriptional_Pahlavi", name: "Inscriptional Pahlavi", first_cp: 68448, last_cp: 68479 },
|
|
228
|
+
{ id: "Psalter_Pahlavi", name: "Psalter Pahlavi", first_cp: 68480, last_cp: 68527 },
|
|
229
|
+
{ id: "Old_Turkic", name: "Old Turkic", first_cp: 68608, last_cp: 68687 },
|
|
230
|
+
{ id: "Old_Hungarian", name: "Old Hungarian", first_cp: 68736, last_cp: 68863 },
|
|
231
|
+
{ id: "Hanifi_Rohingya", name: "Hanifi Rohingya", first_cp: 68864, last_cp: 68927 },
|
|
232
|
+
{ id: "Garay", name: "Garay", first_cp: 68928, last_cp: 69007 },
|
|
233
|
+
{ id: "Rumi_Numeral_Symbols", name: "Rumi Numeral Symbols", first_cp: 69216, last_cp: 69247 },
|
|
234
|
+
{ id: "Yezidi", name: "Yezidi", first_cp: 69248, last_cp: 69311 },
|
|
235
|
+
{ id: "Arabic_Extended-C", name: "Arabic Extended-C", first_cp: 69312, last_cp: 69375 },
|
|
236
|
+
{ id: "Old_Sogdian", name: "Old Sogdian", first_cp: 69376, last_cp: 69423 },
|
|
237
|
+
{ id: "Sogdian", name: "Sogdian", first_cp: 69424, last_cp: 69487 },
|
|
238
|
+
{ id: "Old_Uyghur", name: "Old Uyghur", first_cp: 69488, last_cp: 69551 },
|
|
239
|
+
{ id: "Chorasmian", name: "Chorasmian", first_cp: 69552, last_cp: 69599 },
|
|
240
|
+
{ id: "Elymaic", name: "Elymaic", first_cp: 69600, last_cp: 69631 },
|
|
241
|
+
{ id: "Brahmi", name: "Brahmi", first_cp: 69632, last_cp: 69759 },
|
|
242
|
+
{ id: "Kaithi", name: "Kaithi", first_cp: 69760, last_cp: 69839 },
|
|
243
|
+
{ id: "Sora_Sompeng", name: "Sora Sompeng", first_cp: 69840, last_cp: 69887 },
|
|
244
|
+
{ id: "Chakma", name: "Chakma", first_cp: 69888, last_cp: 69967 },
|
|
245
|
+
{ id: "Mahajani", name: "Mahajani", first_cp: 69968, last_cp: 70015 },
|
|
246
|
+
{ id: "Sharada", name: "Sharada", first_cp: 70016, last_cp: 70111 },
|
|
247
|
+
{ id: "Sinhala_Archaic_Numbers", name: "Sinhala Archaic Numbers", first_cp: 70112, last_cp: 70143 },
|
|
248
|
+
{ id: "Khojki", name: "Khojki", first_cp: 70144, last_cp: 70223 },
|
|
249
|
+
{ id: "Multani", name: "Multani", first_cp: 70272, last_cp: 70319 },
|
|
250
|
+
{ id: "Khudawadi", name: "Khudawadi", first_cp: 70320, last_cp: 70399 },
|
|
251
|
+
{ id: "Grantha", name: "Grantha", first_cp: 70400, last_cp: 70527 },
|
|
252
|
+
{ id: "Tulu-Tigalari", name: "Tulu-Tigalari", first_cp: 70528, last_cp: 70655 },
|
|
253
|
+
{ id: "Newa", name: "Newa", first_cp: 70656, last_cp: 70783 },
|
|
254
|
+
{ id: "Tirhuta", name: "Tirhuta", first_cp: 70784, last_cp: 70879 },
|
|
255
|
+
{ id: "Siddham", name: "Siddham", first_cp: 71040, last_cp: 71167 },
|
|
256
|
+
{ id: "Modi", name: "Modi", first_cp: 71168, last_cp: 71263 },
|
|
257
|
+
{ id: "Mongolian_Supplement", name: "Mongolian Supplement", first_cp: 71264, last_cp: 71295 },
|
|
258
|
+
{ id: "Takri", name: "Takri", first_cp: 71296, last_cp: 71375 },
|
|
259
|
+
{ id: "Myanmar_Extended-C", name: "Myanmar Extended-C", first_cp: 71376, last_cp: 71423 },
|
|
260
|
+
{ id: "Ahom", name: "Ahom", first_cp: 71424, last_cp: 71503 },
|
|
261
|
+
{ id: "Dogra", name: "Dogra", first_cp: 71680, last_cp: 71759 },
|
|
262
|
+
{ id: "Warang_Citi", name: "Warang Citi", first_cp: 71840, last_cp: 71935 },
|
|
263
|
+
{ id: "Dives_Akuru", name: "Dives Akuru", first_cp: 71936, last_cp: 72031 },
|
|
264
|
+
{ id: "Nandinagari", name: "Nandinagari", first_cp: 72096, last_cp: 72191 },
|
|
265
|
+
{ id: "Zanabazar_Square", name: "Zanabazar Square", first_cp: 72192, last_cp: 72271 },
|
|
266
|
+
{ id: "Soyombo", name: "Soyombo", first_cp: 72272, last_cp: 72367 },
|
|
267
|
+
{ id: "Unified_Canadian_Aboriginal_Syllabics_Extended-A", name: "Unified Canadian Aboriginal Syllabics Extended-A", first_cp: 72368, last_cp: 72383 },
|
|
268
|
+
{ id: "Pau_Cin_Hau", name: "Pau Cin Hau", first_cp: 72384, last_cp: 72447 },
|
|
269
|
+
{ id: "Devanagari_Extended-A", name: "Devanagari Extended-A", first_cp: 72448, last_cp: 72543 },
|
|
270
|
+
{ id: "Sharada_Supplement", name: "Sharada Supplement", first_cp: 72544, last_cp: 72575 },
|
|
271
|
+
{ id: "Sunuwar", name: "Sunuwar", first_cp: 72640, last_cp: 72703 },
|
|
272
|
+
{ id: "Bhaiksuki", name: "Bhaiksuki", first_cp: 72704, last_cp: 72815 },
|
|
273
|
+
{ id: "Marchen", name: "Marchen", first_cp: 72816, last_cp: 72895 },
|
|
274
|
+
{ id: "Masaram_Gondi", name: "Masaram Gondi", first_cp: 72960, last_cp: 73055 },
|
|
275
|
+
{ id: "Gunjala_Gondi", name: "Gunjala Gondi", first_cp: 73056, last_cp: 73135 },
|
|
276
|
+
{ id: "Tolong_Siki", name: "Tolong Siki", first_cp: 73136, last_cp: 73199 },
|
|
277
|
+
{ id: "Makasar", name: "Makasar", first_cp: 73440, last_cp: 73471 },
|
|
278
|
+
{ id: "Kawi", name: "Kawi", first_cp: 73472, last_cp: 73567 },
|
|
279
|
+
{ id: "Lisu_Supplement", name: "Lisu Supplement", first_cp: 73648, last_cp: 73663 },
|
|
280
|
+
{ id: "Tamil_Supplement", name: "Tamil Supplement", first_cp: 73664, last_cp: 73727 },
|
|
281
|
+
{ id: "Cuneiform", name: "Cuneiform", first_cp: 73728, last_cp: 74751 },
|
|
282
|
+
{ id: "Cuneiform_Numbers_and_Punctuation", name: "Cuneiform Numbers and Punctuation", first_cp: 74752, last_cp: 74879 },
|
|
283
|
+
{ id: "Early_Dynastic_Cuneiform", name: "Early Dynastic Cuneiform", first_cp: 74880, last_cp: 75087 },
|
|
284
|
+
{ id: "Cypro-Minoan", name: "Cypro-Minoan", first_cp: 77712, last_cp: 77823 },
|
|
285
|
+
{ id: "Egyptian_Hieroglyphs", name: "Egyptian Hieroglyphs", first_cp: 77824, last_cp: 78895 },
|
|
286
|
+
{ id: "Egyptian_Hieroglyph_Format_Controls", name: "Egyptian Hieroglyph Format Controls", first_cp: 78896, last_cp: 78943 },
|
|
287
|
+
{ id: "Egyptian_Hieroglyphs_Extended-A", name: "Egyptian Hieroglyphs Extended-A", first_cp: 78944, last_cp: 82943 },
|
|
288
|
+
{ id: "Anatolian_Hieroglyphs", name: "Anatolian Hieroglyphs", first_cp: 82944, last_cp: 83583 },
|
|
289
|
+
{ id: "Gurung_Khema", name: "Gurung Khema", first_cp: 90368, last_cp: 90431 },
|
|
290
|
+
{ id: "Bamum_Supplement", name: "Bamum Supplement", first_cp: 92160, last_cp: 92735 },
|
|
291
|
+
{ id: "Mro", name: "Mro", first_cp: 92736, last_cp: 92783 },
|
|
292
|
+
{ id: "Tangsa", name: "Tangsa", first_cp: 92784, last_cp: 92879 },
|
|
293
|
+
{ id: "Bassa_Vah", name: "Bassa Vah", first_cp: 92880, last_cp: 92927 },
|
|
294
|
+
{ id: "Pahawh_Hmong", name: "Pahawh Hmong", first_cp: 92928, last_cp: 93071 },
|
|
295
|
+
{ id: "Kirat_Rai", name: "Kirat Rai", first_cp: 93504, last_cp: 93567 },
|
|
296
|
+
{ id: "Medefaidrin", name: "Medefaidrin", first_cp: 93760, last_cp: 93855 },
|
|
297
|
+
{ id: "Beria_Erfe", name: "Beria Erfe", first_cp: 93856, last_cp: 93919 },
|
|
298
|
+
{ id: "Miao", name: "Miao", first_cp: 93952, last_cp: 94111 },
|
|
299
|
+
{ id: "Ideographic_Symbols_and_Punctuation", name: "Ideographic Symbols and Punctuation", first_cp: 94176, last_cp: 94207 },
|
|
300
|
+
{ id: "Tangut", name: "Tangut", first_cp: 94208, last_cp: 100351 },
|
|
301
|
+
{ id: "Tangut_Components", name: "Tangut Components", first_cp: 100352, last_cp: 101119 },
|
|
302
|
+
{ id: "Khitan_Small_Script", name: "Khitan Small Script", first_cp: 101120, last_cp: 101631 },
|
|
303
|
+
{ id: "Tangut_Supplement", name: "Tangut Supplement", first_cp: 101632, last_cp: 101759 },
|
|
304
|
+
{ id: "Tangut_Components_Supplement", name: "Tangut Components Supplement", first_cp: 101760, last_cp: 101887 },
|
|
305
|
+
{ id: "Kana_Extended-B", name: "Kana Extended-B", first_cp: 110576, last_cp: 110591 },
|
|
306
|
+
{ id: "Kana_Supplement", name: "Kana Supplement", first_cp: 110592, last_cp: 110847 },
|
|
307
|
+
{ id: "Kana_Extended-A", name: "Kana Extended-A", first_cp: 110848, last_cp: 110895 },
|
|
308
|
+
{ id: "Small_Kana_Extension", name: "Small Kana Extension", first_cp: 110896, last_cp: 110959 },
|
|
309
|
+
{ id: "Nushu", name: "Nushu", first_cp: 110960, last_cp: 111359 },
|
|
310
|
+
{ id: "Duployan", name: "Duployan", first_cp: 113664, last_cp: 113823 },
|
|
311
|
+
{ id: "Shorthand_Format_Controls", name: "Shorthand Format Controls", first_cp: 113824, last_cp: 113839 },
|
|
312
|
+
{ id: "Symbols_for_Legacy_Computing_Supplement", name: "Symbols for Legacy Computing Supplement", first_cp: 117760, last_cp: 118463 },
|
|
313
|
+
{ id: "Miscellaneous_Symbols_Supplement", name: "Miscellaneous Symbols Supplement", first_cp: 118464, last_cp: 118527 },
|
|
314
|
+
{ id: "Znamenny_Musical_Notation", name: "Znamenny Musical Notation", first_cp: 118528, last_cp: 118735 },
|
|
315
|
+
{ id: "Byzantine_Musical_Symbols", name: "Byzantine Musical Symbols", first_cp: 118784, last_cp: 119039 },
|
|
316
|
+
{ id: "Musical_Symbols", name: "Musical Symbols", first_cp: 119040, last_cp: 119295 },
|
|
317
|
+
{ id: "Ancient_Greek_Musical_Notation", name: "Ancient Greek Musical Notation", first_cp: 119296, last_cp: 119375 },
|
|
318
|
+
{ id: "Kaktovik_Numerals", name: "Kaktovik Numerals", first_cp: 119488, last_cp: 119519 },
|
|
319
|
+
{ id: "Mayan_Numerals", name: "Mayan Numerals", first_cp: 119520, last_cp: 119551 },
|
|
320
|
+
{ id: "Tai_Xuan_Jing_Symbols", name: "Tai Xuan Jing Symbols", first_cp: 119552, last_cp: 119647 },
|
|
321
|
+
{ id: "Counting_Rod_Numerals", name: "Counting Rod Numerals", first_cp: 119648, last_cp: 119679 },
|
|
322
|
+
{ id: "Mathematical_Alphanumeric_Symbols", name: "Mathematical Alphanumeric Symbols", first_cp: 119808, last_cp: 120831 },
|
|
323
|
+
{ id: "Sutton_SignWriting", name: "Sutton SignWriting", first_cp: 120832, last_cp: 121519 },
|
|
324
|
+
{ id: "Latin_Extended-G", name: "Latin Extended-G", first_cp: 122624, last_cp: 122879 },
|
|
325
|
+
{ id: "Glagolitic_Supplement", name: "Glagolitic Supplement", first_cp: 122880, last_cp: 122927 },
|
|
326
|
+
{ id: "Cyrillic_Extended-D", name: "Cyrillic Extended-D", first_cp: 122928, last_cp: 123023 },
|
|
327
|
+
{ id: "Nyiakeng_Puachue_Hmong", name: "Nyiakeng Puachue Hmong", first_cp: 123136, last_cp: 123215 },
|
|
328
|
+
{ id: "Toto", name: "Toto", first_cp: 123536, last_cp: 123583 },
|
|
329
|
+
{ id: "Wancho", name: "Wancho", first_cp: 123584, last_cp: 123647 },
|
|
330
|
+
{ id: "Nag_Mundari", name: "Nag Mundari", first_cp: 124112, last_cp: 124159 },
|
|
331
|
+
{ id: "Ol_Onal", name: "Ol Onal", first_cp: 124368, last_cp: 124415 },
|
|
332
|
+
{ id: "Tai_Yo", name: "Tai Yo", first_cp: 124608, last_cp: 124671 },
|
|
333
|
+
{ id: "Ethiopic_Extended-B", name: "Ethiopic Extended-B", first_cp: 124896, last_cp: 124927 },
|
|
334
|
+
{ id: "Mende_Kikakui", name: "Mende Kikakui", first_cp: 124928, last_cp: 125151 },
|
|
335
|
+
{ id: "Adlam", name: "Adlam", first_cp: 125184, last_cp: 125279 },
|
|
336
|
+
{ id: "Indic_Siyaq_Numbers", name: "Indic Siyaq Numbers", first_cp: 126064, last_cp: 126143 },
|
|
337
|
+
{ id: "Ottoman_Siyaq_Numbers", name: "Ottoman Siyaq Numbers", first_cp: 126208, last_cp: 126287 },
|
|
338
|
+
{ id: "Arabic_Mathematical_Alphabetic_Symbols", name: "Arabic Mathematical Alphabetic Symbols", first_cp: 126464, last_cp: 126719 },
|
|
339
|
+
{ id: "Mahjong_Tiles", name: "Mahjong Tiles", first_cp: 126976, last_cp: 127023 },
|
|
340
|
+
{ id: "Domino_Tiles", name: "Domino Tiles", first_cp: 127024, last_cp: 127135 },
|
|
341
|
+
{ id: "Playing_Cards", name: "Playing Cards", first_cp: 127136, last_cp: 127231 },
|
|
342
|
+
{ id: "Enclosed_Alphanumeric_Supplement", name: "Enclosed Alphanumeric Supplement", first_cp: 127232, last_cp: 127487 },
|
|
343
|
+
{ id: "Enclosed_Ideographic_Supplement", name: "Enclosed Ideographic Supplement", first_cp: 127488, last_cp: 127743 },
|
|
344
|
+
{ id: "Miscellaneous_Symbols_and_Pictographs", name: "Miscellaneous Symbols and Pictographs", first_cp: 127744, last_cp: 128511 },
|
|
345
|
+
{ id: "Emoticons", name: "Emoticons", first_cp: 128512, last_cp: 128591 },
|
|
346
|
+
{ id: "Ornamental_Dingbats", name: "Ornamental Dingbats", first_cp: 128592, last_cp: 128639 },
|
|
347
|
+
{ id: "Transport_and_Map_Symbols", name: "Transport and Map Symbols", first_cp: 128640, last_cp: 128767 },
|
|
348
|
+
{ id: "Alchemical_Symbols", name: "Alchemical Symbols", first_cp: 128768, last_cp: 128895 },
|
|
349
|
+
{ id: "Geometric_Shapes_Extended", name: "Geometric Shapes Extended", first_cp: 128896, last_cp: 129023 },
|
|
350
|
+
{ id: "Supplemental_Arrows-C", name: "Supplemental Arrows-C", first_cp: 129024, last_cp: 129279 },
|
|
351
|
+
{ id: "Supplemental_Symbols_and_Pictographs", name: "Supplemental Symbols and Pictographs", first_cp: 129280, last_cp: 129535 },
|
|
352
|
+
{ id: "Chess_Symbols", name: "Chess Symbols", first_cp: 129536, last_cp: 129647 },
|
|
353
|
+
{ id: "Symbols_and_Pictographs_Extended-A", name: "Symbols and Pictographs Extended-A", first_cp: 129648, last_cp: 129791 },
|
|
354
|
+
{ id: "Symbols_for_Legacy_Computing", name: "Symbols for Legacy Computing", first_cp: 129792, last_cp: 130047 },
|
|
355
|
+
{ id: "CJK_Unified_Ideographs_Extension_B", name: "CJK Unified Ideographs Extension B", first_cp: 131072, last_cp: 173791 },
|
|
356
|
+
{ id: "CJK_Unified_Ideographs_Extension_C", name: "CJK Unified Ideographs Extension C", first_cp: 173824, last_cp: 177983 },
|
|
357
|
+
{ id: "CJK_Unified_Ideographs_Extension_D", name: "CJK Unified Ideographs Extension D", first_cp: 177984, last_cp: 178207 },
|
|
358
|
+
{ id: "CJK_Unified_Ideographs_Extension_E", name: "CJK Unified Ideographs Extension E", first_cp: 178208, last_cp: 183983 },
|
|
359
|
+
{ id: "CJK_Unified_Ideographs_Extension_F", name: "CJK Unified Ideographs Extension F", first_cp: 183984, last_cp: 191471 },
|
|
360
|
+
{ id: "CJK_Unified_Ideographs_Extension_I", name: "CJK Unified Ideographs Extension I", first_cp: 191472, last_cp: 192095 },
|
|
361
|
+
{ id: "CJK_Compatibility_Ideographs_Supplement", name: "CJK Compatibility Ideographs Supplement", first_cp: 194560, last_cp: 195103 },
|
|
362
|
+
{ id: "CJK_Unified_Ideographs_Extension_G", name: "CJK Unified Ideographs Extension G", first_cp: 196608, last_cp: 201551 },
|
|
363
|
+
{ id: "CJK_Unified_Ideographs_Extension_H", name: "CJK Unified Ideographs Extension H", first_cp: 201552, last_cp: 205743 },
|
|
364
|
+
{ id: "CJK_Unified_Ideographs_Extension_J", name: "CJK Unified Ideographs Extension J", first_cp: 205744, last_cp: 210047 },
|
|
365
|
+
{ id: "Tags", name: "Tags", first_cp: 917504, last_cp: 917631 },
|
|
366
|
+
{ id: "Variation_Selectors_Supplement", name: "Variation Selectors Supplement", first_cp: 917760, last_cp: 917999 },
|
|
367
|
+
{ id: "Supplementary_Private_Use_Area-A", name: "Supplementary Private Use Area-A", first_cp: 983040, last_cp: 1048575 },
|
|
368
|
+
{ id: "Supplementary_Private_Use_Area-B", name: "Supplementary Private Use Area-B", first_cp: 1048576, last_cp: 1114111 },
|
|
369
|
+
].freeze
|
|
370
|
+
end
|
|
371
|
+
end
|
|
372
|
+
end
|
|
373
|
+
end
|
|
374
|
+
# rubocop:enable all
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "pathname"
|
|
4
|
+
|
|
5
|
+
module Ucode
|
|
6
|
+
module Unicode
|
|
7
|
+
# Generates frozen Ruby metadata modules from UCD text files.
|
|
8
|
+
#
|
|
9
|
+
# Pure logic: takes a UCD directory path and a version string,
|
|
10
|
+
# returns the Ruby source for a metadata module. The CLI command
|
|
11
|
+
# (EmitMetadataCommand) writes the output to disk.
|
|
12
|
+
#
|
|
13
|
+
# This is the build-time tool that produces the frozen constants
|
|
14
|
+
# consumers query at runtime via {Catalog}. Run it when a new
|
|
15
|
+
# Unicode version is adopted:
|
|
16
|
+
#
|
|
17
|
+
# bin/ucode fetch ucd 18.0.0
|
|
18
|
+
# bin/ucode emit-metadata --version 18.0.0
|
|
19
|
+
# # commit the generated file + add to SUPPORTED_VERSIONS
|
|
20
|
+
#
|
|
21
|
+
module MetadataWriter
|
|
22
|
+
EXCLUDED_GC = %w[Cn Co Cs].freeze
|
|
23
|
+
private_constant :EXCLUDED_GC
|
|
24
|
+
|
|
25
|
+
module_function
|
|
26
|
+
|
|
27
|
+
# @param ucd_dir [String, Pathname] path to the unpacked UCD
|
|
28
|
+
# @param version [String] e.g. "17.0.0"
|
|
29
|
+
# @return [String] Ruby source for the metadata module
|
|
30
|
+
def generate(ucd_dir:, version:)
|
|
31
|
+
assigned_count, by_plane = compute_assigned(ucd_dir)
|
|
32
|
+
blocks = parse_blocks(ucd_dir)
|
|
33
|
+
mod_name = version_to_module(version)
|
|
34
|
+
|
|
35
|
+
build_source(version: version, mod_name: mod_name,
|
|
36
|
+
assigned_count: assigned_count,
|
|
37
|
+
by_plane: by_plane, blocks: blocks)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# @param version [String] e.g. "17.0.0"
|
|
41
|
+
# @return [String] e.g. "v17_0_0"
|
|
42
|
+
def version_to_filename(version)
|
|
43
|
+
"v#{version.tr('.', '_').downcase}"
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# @param version [String] e.g. "17.0.0"
|
|
47
|
+
# @return [String] e.g. "V17_0_0"
|
|
48
|
+
def version_to_module(version)
|
|
49
|
+
"V#{version.tr('.', '_')}"
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# ---- Internal: data extraction -----------------------------------
|
|
53
|
+
|
|
54
|
+
def compute_assigned(ucd_dir)
|
|
55
|
+
count = 0
|
|
56
|
+
by_plane = Hash.new(0)
|
|
57
|
+
path = Pathname.new(ucd_dir).join("extracted", "DerivedGeneralCategory.txt")
|
|
58
|
+
|
|
59
|
+
File.foreach(path) do |line|
|
|
60
|
+
next if line.start_with?("#") || line.strip.empty?
|
|
61
|
+
|
|
62
|
+
m = line.match(/^([0-9A-Fa-f]+)(?:\.\.([0-9A-Fa-f]+))?\s*;\s*(\w+)/)
|
|
63
|
+
next unless m
|
|
64
|
+
next if EXCLUDED_GC.include?(m[3])
|
|
65
|
+
|
|
66
|
+
first = m[1].to_i(16)
|
|
67
|
+
last = m[2] ? m[2].to_i(16) : first
|
|
68
|
+
n = last - first + 1
|
|
69
|
+
count += n
|
|
70
|
+
by_plane[first >> 16] += n
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
[count, by_plane]
|
|
74
|
+
end
|
|
75
|
+
private_class_method :compute_assigned
|
|
76
|
+
|
|
77
|
+
def parse_blocks(ucd_dir)
|
|
78
|
+
path = Pathname.new(ucd_dir).join("Blocks.txt")
|
|
79
|
+
blocks = []
|
|
80
|
+
|
|
81
|
+
File.foreach(path) do |line|
|
|
82
|
+
next if line.start_with?("#") || line.strip.empty?
|
|
83
|
+
|
|
84
|
+
m = line.match(/^([0-9A-Fa-f]+)\.\.([0-9A-Fa-f]+)\s*;\s*(.+)/)
|
|
85
|
+
next unless m
|
|
86
|
+
|
|
87
|
+
name = m[3].strip
|
|
88
|
+
blocks << {
|
|
89
|
+
id: name.gsub(/\s+/, "_"),
|
|
90
|
+
name: name,
|
|
91
|
+
first_cp: m[1].to_i(16),
|
|
92
|
+
last_cp: m[2].to_i(16),
|
|
93
|
+
}
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
blocks
|
|
97
|
+
end
|
|
98
|
+
private_class_method :parse_blocks
|
|
99
|
+
|
|
100
|
+
# ---- Internal: source generation ---------------------------------
|
|
101
|
+
|
|
102
|
+
def build_source(version:, mod_name:, assigned_count:, by_plane:, blocks:)
|
|
103
|
+
lines = []
|
|
104
|
+
lines << "# frozen_string_literal: true"
|
|
105
|
+
lines << ""
|
|
106
|
+
lines << "# AUTO-GENERATED from UCD #{version}. Do not edit by hand."
|
|
107
|
+
lines << "# Regenerate via: bin/ucode emit-metadata --version #{version}"
|
|
108
|
+
lines << "# rubocop:disable all"
|
|
109
|
+
lines << ""
|
|
110
|
+
lines << "module Ucode"
|
|
111
|
+
lines << " module Unicode"
|
|
112
|
+
lines << " module Metadata"
|
|
113
|
+
lines << " module #{mod_name}"
|
|
114
|
+
lines << " UNICODE_VERSION = \"#{version}\""
|
|
115
|
+
lines << " ASSIGNED_COUNT = #{assigned_count}"
|
|
116
|
+
lines << ""
|
|
117
|
+
lines << " ASSIGNED_BY_PLANE = {"
|
|
118
|
+
by_plane.sort.each { |p, n| lines << " #{p} => #{n}," }
|
|
119
|
+
lines << " }.freeze"
|
|
120
|
+
lines << ""
|
|
121
|
+
lines << " BLOCKS = ["
|
|
122
|
+
blocks.each do |b|
|
|
123
|
+
lines << " { id: \"#{b[:id]}\", name: \"#{b[:name]}\", first_cp: #{b[:first_cp]}, last_cp: #{b[:last_cp]} },"
|
|
124
|
+
end
|
|
125
|
+
lines << " ].freeze"
|
|
126
|
+
lines << " end"
|
|
127
|
+
lines << " end"
|
|
128
|
+
lines << " end"
|
|
129
|
+
lines << "end"
|
|
130
|
+
lines << "# rubocop:enable all"
|
|
131
|
+
"#{lines.join("\n")}\n"
|
|
132
|
+
end
|
|
133
|
+
private_class_method :build_source
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ucode
|
|
4
|
+
module Unicode
|
|
5
|
+
# A Unicode plane — a contiguous range of 65_536 codepoints.
|
|
6
|
+
# There are 17 planes (0–16). Only 7 have official short names.
|
|
7
|
+
#
|
|
8
|
+
# Pure value object: carries data, nothing else. Not a lutaml-model
|
|
9
|
+
# (those are serialization DTOs). Constructed frozen by {Catalog}.
|
|
10
|
+
Plane = Struct.new(
|
|
11
|
+
:number,
|
|
12
|
+
:range,
|
|
13
|
+
:short_name,
|
|
14
|
+
:display_name,
|
|
15
|
+
:assigned_count,
|
|
16
|
+
keyword_init: true,
|
|
17
|
+
) do
|
|
18
|
+
def cover?(codepoint)
|
|
19
|
+
range.cover?(codepoint)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ucode
|
|
4
|
+
# Unicode metadata Ruby API.
|
|
5
|
+
#
|
|
6
|
+
# Provides version-specific access to plane, block, and assigned-codepoint
|
|
7
|
+
# counts without requiring UCD text files at runtime. Metadata is shipped
|
|
8
|
+
# as frozen Ruby constants (one module per Unicode version) so consumers
|
|
9
|
+
# get O(1) lookup with no file I/O.
|
|
10
|
+
#
|
|
11
|
+
# Multiple Unicode versions are supported simultaneously — a consumer
|
|
12
|
+
# auditing a Unicode 16.0 font queries v16 metadata while the gem also
|
|
13
|
+
# ships v17 as the default.
|
|
14
|
+
#
|
|
15
|
+
# @example Default (latest version)
|
|
16
|
+
# Ucode::Unicode.assigned_count # => 159_866
|
|
17
|
+
# Ucode::Unicode.find_block("Basic_Latin")
|
|
18
|
+
#
|
|
19
|
+
# @example Version-specific
|
|
20
|
+
# catalog = Ucode::Unicode.for_version("16.0")
|
|
21
|
+
# catalog.assigned_count # => v16 count (different)
|
|
22
|
+
# catalog.find_plane_by_codepoint(0x41)
|
|
23
|
+
#
|
|
24
|
+
module Unicode
|
|
25
|
+
SUPPORTED_VERSIONS = %w[15.0.0 15.1.0 16.0.0 17.0.0].freeze
|
|
26
|
+
|
|
27
|
+
LATEST_VERSION = "17.0.0"
|
|
28
|
+
|
|
29
|
+
# Official Unicode plane short names. Planes 4–13 are unassigned
|
|
30
|
+
# and have no short name. Used by {Catalog} when building Plane
|
|
31
|
+
# objects.
|
|
32
|
+
PLANE_NAMES = {
|
|
33
|
+
0 => { short_name: :BMP, display_name: "Basic Multilingual Plane" },
|
|
34
|
+
1 => { short_name: :SMP, display_name: "Supplementary Multilingual Plane" },
|
|
35
|
+
2 => { short_name: :SIP, display_name: "Supplementary Ideographic Plane" },
|
|
36
|
+
3 => { short_name: :TIP, display_name: "Tertiary Ideographic Plane" },
|
|
37
|
+
14 => { short_name: :SSP, display_name: "Supplementary Special-purpose Plane" },
|
|
38
|
+
15 => { short_name: :"SPUA-A", display_name: "Supplementary Private Use Area-A" },
|
|
39
|
+
16 => { short_name: :"SPUA-B", display_name: "Supplementary Private Use Area-B" },
|
|
40
|
+
}.freeze
|
|
41
|
+
|
|
42
|
+
autoload :Plane, "ucode/unicode/plane"
|
|
43
|
+
autoload :Block, "ucode/unicode/block"
|
|
44
|
+
autoload :Catalog, "ucode/unicode/catalog"
|
|
45
|
+
autoload :MetadataWriter, "ucode/unicode/metadata_writer"
|
|
46
|
+
|
|
47
|
+
module Metadata
|
|
48
|
+
# Module names mirror the dotted version with underscores.
|
|
49
|
+
# rubocop:disable Naming/VariableNumber
|
|
50
|
+
autoload :V15_0_0, "ucode/unicode/metadata/v15_0_0"
|
|
51
|
+
autoload :V15_1_0, "ucode/unicode/metadata/v15_1_0"
|
|
52
|
+
autoload :V16_0_0, "ucode/unicode/metadata/v16_0_0"
|
|
53
|
+
autoload :V17_0_0, "ucode/unicode/metadata/v17_0_0"
|
|
54
|
+
# rubocop:enable Naming/VariableNumber
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
class << self
|
|
58
|
+
def for_version(version = LATEST_VERSION)
|
|
59
|
+
Catalog.new(version: normalize_version(version))
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def assigned_count
|
|
63
|
+
for_version.assigned_count
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def unicode_version
|
|
67
|
+
LATEST_VERSION
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
private
|
|
71
|
+
|
|
72
|
+
def normalize_version(input)
|
|
73
|
+
parts = input.split(".")
|
|
74
|
+
normalized = (parts + ["0", "0", "0"]).first(3).join(".")
|
|
75
|
+
unless SUPPORTED_VERSIONS.include?(normalized)
|
|
76
|
+
raise Ucode::UnknownUnicodeVersionError.new(
|
|
77
|
+
"unsupported Unicode version #{input.inspect}",
|
|
78
|
+
context: { version: input, supported: SUPPORTED_VERSIONS },
|
|
79
|
+
)
|
|
80
|
+
end
|
|
81
|
+
normalized
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
data/lib/ucode/version.rb
CHANGED