unihan2 0.0.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fae40954138f855d868c2da82c7d2974bd494b23
4
- data.tar.gz: 5ec39c9d749eb1a5e84807539853d1e5e8fe0d08
2
+ SHA256:
3
+ metadata.gz: bdf1a1097cf82e04012ee56a8da5352a98f18534fd276eb3e6d0645df1184acc
4
+ data.tar.gz: 75cd8de8996d247ded27ffc4b006a6eb3dd294250751802e0ec7942e87c88d14
5
5
  SHA512:
6
- metadata.gz: fda3134caa396c7523a2e9d9d265fd842776aa831050481a93dc4a33be2e47e27f304d2288831a1e4ad7bffbb3a80e5ad0a80209354871a083748b6729de65a1
7
- data.tar.gz: 102fcab8c21dba8be7182c80b214ab23c90f3925a7a8d2dae0dce9b07e39478d8641fc1bceaba745986ba5176b127bdae34c1b4598d1ff4d31c975876136a623
6
+ metadata.gz: 03c0bf03d87baa8b6021019e7125acf91a55323c8849993c421eff47f943625ee554a41f1d8ae260148d40150ac3fdcac9289f4e0e5168c3eae20a7916cc8c52
7
+ data.tar.gz: d6be98c8d34a98c34df690d89a172cb5cd0ecbd699aae1634c4cee083eb35b41ab9d8322566db2c60e3070be8318298d8fa2ccaa8a8aedcbd8d4f879ae453b5e
@@ -0,0 +1,1145 @@
1
+ cp1,cp2,age
2
+ 0000,01F5,1.1
3
+ 01F6,01F9,3.0
4
+ 01FA,0217,1.1
5
+ 0218,021F,3.0
6
+ 0220,0220,3.2
7
+ 0221,0221,4.0
8
+ 0222,0233,3.0
9
+ 0234,0236,4.0
10
+ 0237,0241,4.1
11
+ 0242,024F,5.0
12
+ 0250,02A8,1.1
13
+ 02A9,02AD,3.0
14
+ 02AE,02AF,4.0
15
+ 02B0,02DE,1.1
16
+ 02DF,02DF,3.0
17
+ 02E0,02E9,1.1
18
+ 02EA,02EE,3.0
19
+ 02EF,02FF,4.0
20
+ 0300,0345,1.1
21
+ 0346,034E,3.0
22
+ 034F,034F,3.2
23
+ 0350,0357,4.0
24
+ 0358,035C,4.1
25
+ 035D,035F,4.0
26
+ 0360,0361,1.1
27
+ 0362,0362,3.0
28
+ 0363,036F,3.2
29
+ 0370,0373,5.1
30
+ 0374,0375,1.1
31
+ 0376,0377,5.1
32
+ 037A,037A,1.1
33
+ 037B,037D,5.0
34
+ 037E,037E,1.1
35
+ 037F,037F,7.0
36
+ 0384,03CE,1.1
37
+ 03CF,03CF,5.1
38
+ 03D0,03D6,1.1
39
+ 03D7,03D7,3.0
40
+ 03D8,03D9,3.2
41
+ 03DA,03DA,1.1
42
+ 03DB,03DB,3.0
43
+ 03DC,03DC,1.1
44
+ 03DD,03DD,3.0
45
+ 03DE,03DE,1.1
46
+ 03DF,03DF,3.0
47
+ 03E0,03E0,1.1
48
+ 03E1,03E1,3.0
49
+ 03E2,03F3,1.1
50
+ 03F4,03F5,3.1
51
+ 03F6,03F6,3.2
52
+ 03F7,03FB,4.0
53
+ 03FC,03FF,4.1
54
+ 0400,0400,3.0
55
+ 0401,040C,1.1
56
+ 040D,040D,3.0
57
+ 040E,044F,1.1
58
+ 0450,0450,3.0
59
+ 0451,045C,1.1
60
+ 045D,045D,3.0
61
+ 045E,0486,1.1
62
+ 0487,0487,5.1
63
+ 0488,0489,3.0
64
+ 048A,048B,3.2
65
+ 048C,048F,3.0
66
+ 0490,04C4,1.1
67
+ 04C5,04C6,3.2
68
+ 04C7,04C8,1.1
69
+ 04C9,04CA,3.2
70
+ 04CB,04CC,1.1
71
+ 04CD,04CE,3.2
72
+ 04CF,04CF,5.0
73
+ 04D0,04EB,1.1
74
+ 04EC,04ED,3.0
75
+ 04EE,04F5,1.1
76
+ 04F6,04F7,4.1
77
+ 04F8,04F9,1.1
78
+ 04FA,04FF,5.0
79
+ 0500,050F,3.2
80
+ 0510,0513,5.0
81
+ 0514,0523,5.1
82
+ 0524,0525,5.2
83
+ 0526,0527,6.0
84
+ 0528,052F,7.0
85
+ 0531,055F,1.1
86
+ 0560,0560,11.0
87
+ 0561,0587,1.1
88
+ 0588,0588,11.0
89
+ 0589,0589,1.1
90
+ 058A,058A,3.0
91
+ 058D,058E,7.0
92
+ 058F,058F,6.1
93
+ 0591,05A1,2.0
94
+ 05A2,05A2,4.1
95
+ 05A3,05AF,2.0
96
+ 05B0,05B9,1.1
97
+ 05BA,05BA,5.0
98
+ 05BB,05C3,1.1
99
+ 05C4,05C4,2.0
100
+ 05C5,05C7,4.1
101
+ 05D0,05EA,1.1
102
+ 05EF,05EF,11.0
103
+ 05F0,05F4,1.1
104
+ 0600,0603,4.0
105
+ 0604,0604,6.1
106
+ 0605,0605,7.0
107
+ 0606,060A,5.1
108
+ 060B,060B,4.1
109
+ 060C,060C,1.1
110
+ 060D,0615,4.0
111
+ 0616,061A,5.1
112
+ 061B,061B,1.1
113
+ 061C,061C,6.3
114
+ 061E,061E,4.1
115
+ 061F,061F,1.1
116
+ 0620,0620,6.0
117
+ 0621,063A,1.1
118
+ 063B,063F,5.1
119
+ 0640,0652,1.1
120
+ 0653,0655,3.0
121
+ 0656,0658,4.0
122
+ 0659,065E,4.1
123
+ 065F,065F,6.0
124
+ 0660,066D,1.1
125
+ 066E,066F,3.2
126
+ 0670,06B7,1.1
127
+ 06B8,06B9,3.0
128
+ 06BA,06BE,1.1
129
+ 06BF,06BF,3.0
130
+ 06C0,06CE,1.1
131
+ 06CF,06CF,3.0
132
+ 06D0,06ED,1.1
133
+ 06EE,06EF,4.0
134
+ 06F0,06F9,1.1
135
+ 06FA,06FE,3.0
136
+ 06FF,06FF,4.0
137
+ 0700,072C,3.0
138
+ 072D,072F,4.0
139
+ 0730,074A,3.0
140
+ 074D,074F,4.0
141
+ 0750,076D,4.1
142
+ 076E,077F,5.1
143
+ 0780,07B0,3.0
144
+ 07B1,07B1,3.2
145
+ 07C0,07FA,5.0
146
+ 07FD,07FF,11.0
147
+ 0800,083E,5.2
148
+ 0840,085E,6.0
149
+ 0860,086A,10.0
150
+ 08A0,08A0,6.1
151
+ 08A1,08A1,7.0
152
+ 08A2,08AC,6.1
153
+ 08AD,08B2,7.0
154
+ 08B3,08B4,8.0
155
+ 08B6,08BD,9.0
156
+ 08BE,08C7,13.0
157
+ 08D3,08D3,11.0
158
+ 08D4,08E2,9.0
159
+ 08E3,08E3,8.0
160
+ 08E4,08FE,6.1
161
+ 08FF,08FF,7.0
162
+ 0900,0900,5.2
163
+ 0901,0903,1.1
164
+ 0904,0904,4.0
165
+ 0905,0939,1.1
166
+ 093A,093B,6.0
167
+ 093C,094D,1.1
168
+ 094E,094E,5.2
169
+ 094F,094F,6.0
170
+ 0950,0954,1.1
171
+ 0955,0955,5.2
172
+ 0956,0957,6.0
173
+ 0958,0970,1.1
174
+ 0971,0972,5.1
175
+ 0973,0977,6.0
176
+ 0978,0978,7.0
177
+ 0979,097A,5.2
178
+ 097B,097C,5.0
179
+ 097D,097D,4.1
180
+ 097E,097F,5.0
181
+ 0980,0980,7.0
182
+ 0981,09BC,1.1
183
+ 09BD,09BD,4.0
184
+ 09BE,09CD,1.1
185
+ 09CE,09CE,4.1
186
+ 09D7,09FA,1.1
187
+ 09FB,09FB,5.2
188
+ 09FC,09FD,10.0
189
+ 09FE,09FE,11.0
190
+ 0A01,0A01,4.0
191
+ 0A02,0A02,1.1
192
+ 0A03,0A03,4.0
193
+ 0A05,0A4D,1.1
194
+ 0A51,0A51,5.1
195
+ 0A59,0A74,1.1
196
+ 0A75,0A75,5.1
197
+ 0A76,0A76,11.0
198
+ 0A81,0A8B,1.1
199
+ 0A8C,0A8C,4.0
200
+ 0A8D,0AE0,1.1
201
+ 0AE1,0AE3,4.0
202
+ 0AE6,0AEF,1.1
203
+ 0AF0,0AF0,6.1
204
+ 0AF1,0AF1,4.0
205
+ 0AF9,0AF9,8.0
206
+ 0AFA,0AFF,10.0
207
+ 0B01,0B33,1.1
208
+ 0B35,0B35,4.0
209
+ 0B36,0B43,1.1
210
+ 0B44,0B44,5.1
211
+ 0B47,0B4D,1.1
212
+ 0B55,0B55,13.0
213
+ 0B56,0B61,1.1
214
+ 0B62,0B63,5.1
215
+ 0B66,0B70,1.1
216
+ 0B71,0B71,4.0
217
+ 0B72,0B77,6.0
218
+ 0B82,0BB5,1.1
219
+ 0BB6,0BB6,4.1
220
+ 0BB7,0BCD,1.1
221
+ 0BD0,0BD0,5.1
222
+ 0BD7,0BD7,1.1
223
+ 0BE6,0BE6,4.1
224
+ 0BE7,0BF2,1.1
225
+ 0BF3,0BFA,4.0
226
+ 0C00,0C00,7.0
227
+ 0C01,0C03,1.1
228
+ 0C04,0C04,11.0
229
+ 0C05,0C33,1.1
230
+ 0C34,0C34,7.0
231
+ 0C35,0C39,1.1
232
+ 0C3D,0C3D,5.1
233
+ 0C3E,0C56,1.1
234
+ 0C58,0C59,5.1
235
+ 0C5A,0C5A,8.0
236
+ 0C60,0C61,1.1
237
+ 0C62,0C63,5.1
238
+ 0C66,0C6F,1.1
239
+ 0C77,0C77,12.0
240
+ 0C78,0C7F,5.1
241
+ 0C80,0C80,9.0
242
+ 0C81,0C81,7.0
243
+ 0C82,0C83,1.1
244
+ 0C84,0C84,11.0
245
+ 0C85,0CB9,1.1
246
+ 0CBC,0CBD,4.0
247
+ 0CBE,0CE1,1.1
248
+ 0CE2,0CE3,5.0
249
+ 0CE6,0CEF,1.1
250
+ 0CF1,0CF2,5.0
251
+ 0D00,0D00,10.0
252
+ 0D01,0D01,7.0
253
+ 0D02,0D03,1.1
254
+ 0D04,0D04,13.0
255
+ 0D05,0D28,1.1
256
+ 0D29,0D29,6.0
257
+ 0D2A,0D39,1.1
258
+ 0D3A,0D3A,6.0
259
+ 0D3B,0D3C,10.0
260
+ 0D3D,0D3D,5.1
261
+ 0D3E,0D43,1.1
262
+ 0D44,0D44,5.1
263
+ 0D46,0D4D,1.1
264
+ 0D4E,0D4E,6.0
265
+ 0D4F,0D56,9.0
266
+ 0D57,0D57,1.1
267
+ 0D58,0D5E,9.0
268
+ 0D5F,0D5F,8.0
269
+ 0D60,0D61,1.1
270
+ 0D62,0D63,5.1
271
+ 0D66,0D6F,1.1
272
+ 0D70,0D75,5.1
273
+ 0D76,0D78,9.0
274
+ 0D79,0D7F,5.1
275
+ 0D81,0D81,13.0
276
+ 0D82,0DDF,3.0
277
+ 0DE6,0DEF,7.0
278
+ 0DF2,0DF4,3.0
279
+ 0E01,0E84,1.1
280
+ 0E86,0E86,12.0
281
+ 0E87,0E88,1.1
282
+ 0E89,0E89,12.0
283
+ 0E8A,0E8A,1.1
284
+ 0E8C,0E8C,12.0
285
+ 0E8D,0E8D,1.1
286
+ 0E8E,0E93,12.0
287
+ 0E94,0E97,1.1
288
+ 0E98,0E98,12.0
289
+ 0E99,0E9F,1.1
290
+ 0EA0,0EA0,12.0
291
+ 0EA1,0EA7,1.1
292
+ 0EA8,0EA9,12.0
293
+ 0EAA,0EAB,1.1
294
+ 0EAC,0EAC,12.0
295
+ 0EAD,0EB9,1.1
296
+ 0EBA,0EBA,12.0
297
+ 0EBB,0EDD,1.1
298
+ 0EDE,0EDF,6.1
299
+ 0F00,0F69,2.0
300
+ 0F6A,0F6A,3.0
301
+ 0F6B,0F6C,5.1
302
+ 0F71,0F8B,2.0
303
+ 0F8C,0F8F,6.0
304
+ 0F90,0F95,2.0
305
+ 0F96,0F96,3.0
306
+ 0F97,0FAD,2.0
307
+ 0FAE,0FB0,3.0
308
+ 0FB1,0FB7,2.0
309
+ 0FB8,0FB8,3.0
310
+ 0FB9,0FB9,2.0
311
+ 0FBA,0FCC,3.0
312
+ 0FCE,0FCE,5.1
313
+ 0FCF,0FCF,3.0
314
+ 0FD0,0FD1,4.1
315
+ 0FD2,0FD4,5.1
316
+ 0FD5,0FD8,5.2
317
+ 0FD9,0FDA,6.0
318
+ 1000,1021,3.0
319
+ 1022,1022,5.1
320
+ 1023,1027,3.0
321
+ 1028,1028,5.1
322
+ 1029,102A,3.0
323
+ 102B,102B,5.1
324
+ 102C,1032,3.0
325
+ 1033,1035,5.1
326
+ 1036,1039,3.0
327
+ 103A,103F,5.1
328
+ 1040,1059,3.0
329
+ 105A,1099,5.1
330
+ 109A,109D,5.2
331
+ 109E,109F,5.1
332
+ 10A0,10C5,1.1
333
+ 10C7,10CD,6.1
334
+ 10D0,10F6,1.1
335
+ 10F7,10F8,3.2
336
+ 10F9,10FA,4.1
337
+ 10FB,10FB,1.1
338
+ 10FC,10FC,4.1
339
+ 10FD,10FF,6.1
340
+ 1100,1159,1.1
341
+ 115A,115E,5.2
342
+ 115F,11A2,1.1
343
+ 11A3,11A7,5.2
344
+ 11A8,11F9,1.1
345
+ 11FA,11FF,5.2
346
+ 1200,1206,3.0
347
+ 1207,1207,4.1
348
+ 1208,1246,3.0
349
+ 1247,1247,4.1
350
+ 1248,1286,3.0
351
+ 1287,1287,4.1
352
+ 1288,12AE,3.0
353
+ 12AF,12AF,4.1
354
+ 12B0,12CE,3.0
355
+ 12CF,12CF,4.1
356
+ 12D0,12EE,3.0
357
+ 12EF,12EF,4.1
358
+ 12F0,130E,3.0
359
+ 130F,130F,4.1
360
+ 1310,131E,3.0
361
+ 131F,131F,4.1
362
+ 1320,1346,3.0
363
+ 1347,1347,4.1
364
+ 1348,135A,3.0
365
+ 135D,135E,6.0
366
+ 135F,1360,4.1
367
+ 1361,137C,3.0
368
+ 1380,1399,4.1
369
+ 13A0,13F4,3.0
370
+ 13F5,13FD,8.0
371
+ 1400,1400,5.2
372
+ 1401,1676,3.0
373
+ 1677,167F,5.2
374
+ 1680,16F0,3.0
375
+ 16F1,16F8,7.0
376
+ 1700,1773,3.2
377
+ 1780,17DC,3.0
378
+ 17DD,17DD,4.0
379
+ 17E0,17E9,3.0
380
+ 17F0,17F9,4.0
381
+ 1800,1877,3.0
382
+ 1878,1878,11.0
383
+ 1880,18A9,3.0
384
+ 18AA,18AA,5.1
385
+ 18B0,18F5,5.2
386
+ 1900,191C,4.0
387
+ 191D,191E,7.0
388
+ 1920,1974,4.0
389
+ 1980,19A9,4.1
390
+ 19AA,19AB,5.2
391
+ 19B0,19D9,4.1
392
+ 19DA,19DA,5.2
393
+ 19DE,19DF,4.1
394
+ 19E0,19FF,4.0
395
+ 1A00,1A1F,4.1
396
+ 1A20,1AAD,5.2
397
+ 1AB0,1ABE,7.0
398
+ 1ABF,1AC0,13.0
399
+ 1B00,1B7C,5.0
400
+ 1B80,1BAA,5.1
401
+ 1BAB,1BAD,6.1
402
+ 1BAE,1BB9,5.1
403
+ 1BBA,1BBF,6.1
404
+ 1BC0,1BFF,6.0
405
+ 1C00,1C7F,5.1
406
+ 1C80,1C88,9.0
407
+ 1C90,1CBF,11.0
408
+ 1CC0,1CC7,6.1
409
+ 1CD0,1CF2,5.2
410
+ 1CF3,1CF6,6.1
411
+ 1CF7,1CF7,10.0
412
+ 1CF8,1CF9,7.0
413
+ 1CFA,1CFA,12.0
414
+ 1D00,1D6B,4.0
415
+ 1D6C,1DC3,4.1
416
+ 1DC4,1DCA,5.0
417
+ 1DCB,1DE6,5.1
418
+ 1DE7,1DF5,7.0
419
+ 1DF6,1DF9,10.0
420
+ 1DFB,1DFB,9.0
421
+ 1DFC,1DFC,6.0
422
+ 1DFD,1DFD,5.2
423
+ 1DFE,1DFF,5.0
424
+ 1E00,1E9A,1.1
425
+ 1E9B,1E9B,2.0
426
+ 1E9C,1E9F,5.1
427
+ 1EA0,1EF9,1.1
428
+ 1EFA,1EFF,5.1
429
+ 1F00,202E,1.1
430
+ 202F,202F,3.0
431
+ 2030,2046,1.1
432
+ 2047,2047,3.2
433
+ 2048,204D,3.0
434
+ 204E,2052,3.2
435
+ 2053,2054,4.0
436
+ 2055,2056,4.1
437
+ 2057,2057,3.2
438
+ 2058,205E,4.1
439
+ 205F,2063,3.2
440
+ 2064,2064,5.1
441
+ 2066,2069,6.3
442
+ 206A,2070,1.1
443
+ 2071,2071,3.2
444
+ 2074,208E,1.1
445
+ 2090,2094,4.1
446
+ 2095,209C,6.0
447
+ 20A0,20AA,1.1
448
+ 20AB,20AB,2.0
449
+ 20AC,20AC,2.1
450
+ 20AD,20AF,3.0
451
+ 20B0,20B1,3.2
452
+ 20B2,20B5,4.1
453
+ 20B6,20B8,5.2
454
+ 20B9,20B9,6.0
455
+ 20BA,20BA,6.2
456
+ 20BB,20BD,7.0
457
+ 20BE,20BE,8.0
458
+ 20BF,20BF,10.0
459
+ 20D0,20E1,1.1
460
+ 20E2,20E3,3.0
461
+ 20E4,20EA,3.2
462
+ 20EB,20EB,4.1
463
+ 20EC,20EF,5.0
464
+ 20F0,20F0,5.1
465
+ 2100,2138,1.1
466
+ 2139,213A,3.0
467
+ 213B,213B,4.0
468
+ 213C,213C,4.1
469
+ 213D,214B,3.2
470
+ 214C,214C,4.1
471
+ 214D,214E,5.0
472
+ 214F,214F,5.1
473
+ 2150,2152,5.2
474
+ 2153,2182,1.1
475
+ 2183,2183,3.0
476
+ 2184,2184,5.0
477
+ 2185,2188,5.1
478
+ 2189,2189,5.2
479
+ 218A,218B,8.0
480
+ 2190,21EA,1.1
481
+ 21EB,21F3,3.0
482
+ 21F4,21FF,3.2
483
+ 2200,22F1,1.1
484
+ 22F2,22FF,3.2
485
+ 2300,2300,1.1
486
+ 2301,2301,3.0
487
+ 2302,237A,1.1
488
+ 237B,237B,3.0
489
+ 237C,237C,3.2
490
+ 237D,239A,3.0
491
+ 239B,23CE,3.2
492
+ 23CF,23D0,4.0
493
+ 23D1,23DB,4.1
494
+ 23DC,23E7,5.0
495
+ 23E8,23E8,5.2
496
+ 23E9,23F3,6.0
497
+ 23F4,23FA,7.0
498
+ 23FB,23FE,9.0
499
+ 23FF,23FF,10.0
500
+ 2400,2424,1.1
501
+ 2425,2426,3.0
502
+ 2440,24EA,1.1
503
+ 24EB,24FE,3.2
504
+ 24FF,24FF,4.0
505
+ 2500,2595,1.1
506
+ 2596,259F,3.2
507
+ 25A0,25EF,1.1
508
+ 25F0,25F7,3.0
509
+ 25F8,25FF,3.2
510
+ 2600,2613,1.1
511
+ 2614,2615,4.0
512
+ 2616,2617,3.2
513
+ 2618,2618,4.1
514
+ 2619,2619,3.0
515
+ 261A,266F,1.1
516
+ 2670,2671,3.0
517
+ 2672,267D,3.2
518
+ 267E,267F,4.1
519
+ 2680,2689,3.2
520
+ 268A,2691,4.0
521
+ 2692,269C,4.1
522
+ 269D,269D,5.1
523
+ 269E,269F,5.2
524
+ 26A0,26A1,4.0
525
+ 26A2,26B1,4.1
526
+ 26B2,26B2,5.0
527
+ 26B3,26BC,5.1
528
+ 26BD,26BF,5.2
529
+ 26C0,26C3,5.1
530
+ 26C4,26CD,5.2
531
+ 26CE,26CE,6.0
532
+ 26CF,26E1,5.2
533
+ 26E2,26E2,6.0
534
+ 26E3,26E3,5.2
535
+ 26E4,26E7,6.0
536
+ 26E8,26FF,5.2
537
+ 2700,2700,7.0
538
+ 2701,2704,1.1
539
+ 2705,2705,6.0
540
+ 2706,2709,1.1
541
+ 270A,270B,6.0
542
+ 270C,2727,1.1
543
+ 2728,2728,6.0
544
+ 2729,274B,1.1
545
+ 274C,274C,6.0
546
+ 274D,274D,1.1
547
+ 274E,274E,6.0
548
+ 274F,2752,1.1
549
+ 2753,2755,6.0
550
+ 2756,2756,1.1
551
+ 2757,2757,5.2
552
+ 2758,275E,1.1
553
+ 275F,2760,6.0
554
+ 2761,2767,1.1
555
+ 2768,2775,3.2
556
+ 2776,2794,1.1
557
+ 2795,2797,6.0
558
+ 2798,27AF,1.1
559
+ 27B0,27B0,6.0
560
+ 27B1,27BE,1.1
561
+ 27BF,27BF,6.0
562
+ 27C0,27C6,4.1
563
+ 27C7,27CA,5.0
564
+ 27CB,27CB,6.1
565
+ 27CC,27CC,5.1
566
+ 27CD,27CD,6.1
567
+ 27CE,27CF,6.0
568
+ 27D0,27EB,3.2
569
+ 27EC,27EF,5.1
570
+ 27F0,27FF,3.2
571
+ 2800,28FF,3.0
572
+ 2900,2AFF,3.2
573
+ 2B00,2B0D,4.0
574
+ 2B0E,2B13,4.1
575
+ 2B14,2B1A,5.0
576
+ 2B1B,2B1F,5.1
577
+ 2B20,2B23,5.0
578
+ 2B24,2B4C,5.1
579
+ 2B4D,2B4F,7.0
580
+ 2B50,2B54,5.1
581
+ 2B55,2B59,5.2
582
+ 2B5A,2B95,7.0
583
+ 2B97,2B97,13.0
584
+ 2B98,2BB9,7.0
585
+ 2BBA,2BBC,11.0
586
+ 2BBD,2BC8,7.0
587
+ 2BC9,2BC9,12.0
588
+ 2BCA,2BD1,7.0
589
+ 2BD2,2BD2,10.0
590
+ 2BD3,2BEB,11.0
591
+ 2BEC,2BEF,8.0
592
+ 2BF0,2BFE,11.0
593
+ 2BFF,2BFF,12.0
594
+ 2C00,2C5E,4.1
595
+ 2C60,2C6C,5.0
596
+ 2C6D,2C6F,5.1
597
+ 2C70,2C70,5.2
598
+ 2C71,2C73,5.1
599
+ 2C74,2C77,5.0
600
+ 2C78,2C7D,5.1
601
+ 2C7E,2C7F,5.2
602
+ 2C80,2CEA,4.1
603
+ 2CEB,2CF1,5.2
604
+ 2CF2,2CF3,6.1
605
+ 2CF9,2D25,4.1
606
+ 2D27,2D2D,6.1
607
+ 2D30,2D65,4.1
608
+ 2D66,2D67,6.1
609
+ 2D6F,2D6F,4.1
610
+ 2D70,2D7F,6.0
611
+ 2D80,2DDE,4.1
612
+ 2DE0,2DFF,5.1
613
+ 2E00,2E17,4.1
614
+ 2E18,2E1B,5.1
615
+ 2E1C,2E1D,4.1
616
+ 2E1E,2E30,5.1
617
+ 2E31,2E31,5.2
618
+ 2E32,2E3B,6.1
619
+ 2E3C,2E42,7.0
620
+ 2E43,2E44,9.0
621
+ 2E45,2E49,10.0
622
+ 2E4A,2E4E,11.0
623
+ 2E4F,2E4F,12.0
624
+ 2E50,2E52,13.0
625
+ 2E80,2FFB,3.0
626
+ 3000,3037,1.1
627
+ 3038,303A,3.0
628
+ 303B,303D,3.2
629
+ 303E,303E,3.0
630
+ 303F,3094,1.1
631
+ 3095,3096,3.2
632
+ 3099,309E,1.1
633
+ 309F,30A0,3.2
634
+ 30A1,30FE,1.1
635
+ 30FF,30FF,3.2
636
+ 3105,312C,1.1
637
+ 312D,312D,5.1
638
+ 312E,312E,10.0
639
+ 312F,312F,11.0
640
+ 3131,319F,1.1
641
+ 31A0,31B7,3.0
642
+ 31B8,31BA,6.0
643
+ 31BB,31BF,13.0
644
+ 31C0,31CF,4.1
645
+ 31D0,31E3,5.1
646
+ 31F0,31FF,3.2
647
+ 3200,321C,1.1
648
+ 321D,321E,4.0
649
+ 3220,3243,1.1
650
+ 3244,324F,5.2
651
+ 3250,3250,4.0
652
+ 3251,325F,3.2
653
+ 3260,327B,1.1
654
+ 327C,327D,4.0
655
+ 327E,327E,4.1
656
+ 327F,32B0,1.1
657
+ 32B1,32BF,3.2
658
+ 32C0,32CB,1.1
659
+ 32CC,32CF,4.0
660
+ 32D0,32FE,1.1
661
+ 32FF,32FF,12.1
662
+ 3300,3376,1.1
663
+ 3377,337A,4.0
664
+ 337B,33DD,1.1
665
+ 33DE,33DF,4.0
666
+ 33E0,33FE,1.1
667
+ 33FF,33FF,4.0
668
+ 3400,4DB5,3.0
669
+ 4DB6,4DBF,13.0
670
+ 4DC0,4DFF,4.0
671
+ 4E00,9FA5,1.1
672
+ 9FA6,9FBB,4.1
673
+ 9FBC,9FC3,5.1
674
+ 9FC4,9FCB,5.2
675
+ 9FCC,9FCC,6.1
676
+ 9FCD,9FD5,8.0
677
+ 9FD6,9FEA,10.0
678
+ 9FEB,9FEF,11.0
679
+ 9FF0,9FFC,13.0
680
+ A000,A4A1,3.0
681
+ A4A2,A4A3,3.2
682
+ A4A4,A4B3,3.0
683
+ A4B4,A4B4,3.2
684
+ A4B5,A4C0,3.0
685
+ A4C1,A4C1,3.2
686
+ A4C2,A4C4,3.0
687
+ A4C5,A4C5,3.2
688
+ A4C6,A4C6,3.0
689
+ A4D0,A4FF,5.2
690
+ A500,A65F,5.1
691
+ A660,A661,6.0
692
+ A662,A673,5.1
693
+ A674,A67B,6.1
694
+ A67C,A697,5.1
695
+ A698,A69D,7.0
696
+ A69E,A69E,8.0
697
+ A69F,A69F,6.1
698
+ A6A0,A6F7,5.2
699
+ A700,A716,4.1
700
+ A717,A71A,5.0
701
+ A71B,A71F,5.1
702
+ A720,A721,5.0
703
+ A722,A78C,5.1
704
+ A78D,A78E,6.0
705
+ A78F,A78F,8.0
706
+ A790,A791,6.0
707
+ A792,A793,6.1
708
+ A794,A79F,7.0
709
+ A7A0,A7A9,6.0
710
+ A7AA,A7AA,6.1
711
+ A7AB,A7AD,7.0
712
+ A7AE,A7AE,9.0
713
+ A7AF,A7AF,11.0
714
+ A7B0,A7B1,7.0
715
+ A7B2,A7B7,8.0
716
+ A7B8,A7B9,11.0
717
+ A7BA,A7C6,12.0
718
+ A7C7,A7F6,13.0
719
+ A7F7,A7F7,7.0
720
+ A7F8,A7F9,6.1
721
+ A7FA,A7FA,6.0
722
+ A7FB,A7FF,5.1
723
+ A800,A82B,4.1
724
+ A82C,A82C,13.0
725
+ A830,A839,5.2
726
+ A840,A877,5.0
727
+ A880,A8C4,5.1
728
+ A8C5,A8C5,9.0
729
+ A8CE,A8D9,5.1
730
+ A8E0,A8FB,5.2
731
+ A8FC,A8FD,8.0
732
+ A8FE,A8FF,11.0
733
+ A900,A95F,5.1
734
+ A960,A9DF,5.2
735
+ A9E0,A9FE,7.0
736
+ AA00,AA5F,5.1
737
+ AA60,AA7B,5.2
738
+ AA7C,AA7F,7.0
739
+ AA80,AADF,5.2
740
+ AAE0,AAF6,6.1
741
+ AB01,AB2E,6.0
742
+ AB30,AB5F,7.0
743
+ AB60,AB63,8.0
744
+ AB64,AB65,7.0
745
+ AB66,AB67,12.0
746
+ AB68,AB6B,13.0
747
+ AB70,ABBF,8.0
748
+ ABC0,ABF9,5.2
749
+ AC00,D7A3,2.0
750
+ D7B0,D7FB,5.2
751
+ E000,FA2D,1.1
752
+ FA2E,FA2F,6.1
753
+ FA30,FA6A,3.2
754
+ FA6B,FA6D,5.2
755
+ FA70,FAD9,4.1
756
+ FB00,FB17,1.1
757
+ FB1D,FB1D,3.0
758
+ FB1E,FBB1,1.1
759
+ FBB2,FBC1,6.0
760
+ FBD3,FDFB,1.1
761
+ FDFC,FDFC,3.2
762
+ FDFD,FDFD,4.0
763
+ FE00,FE0F,3.2
764
+ FE10,FE19,4.1
765
+ FE20,FE23,1.1
766
+ FE24,FE26,5.1
767
+ FE27,FE2D,7.0
768
+ FE2E,FE2F,8.0
769
+ FE30,FE44,1.1
770
+ FE45,FE46,3.2
771
+ FE47,FE48,4.0
772
+ FE49,FE72,1.1
773
+ FE73,FE73,3.2
774
+ FE74,FF5E,1.1
775
+ FF5F,FF60,3.2
776
+ FF61,FFEE,1.1
777
+ FFF9,FFFB,3.0
778
+ FFFC,FFFC,2.1
779
+ FFFD,FFFD,1.1
780
+ 10000,1013F,4.0
781
+ 10140,1018A,4.1
782
+ 1018B,1018C,7.0
783
+ 1018D,1018E,9.0
784
+ 10190,1019B,5.1
785
+ 1019C,1019C,13.0
786
+ 101A0,101A0,7.0
787
+ 101D0,102D0,5.1
788
+ 102E0,102FB,7.0
789
+ 10300,1031E,3.1
790
+ 1031F,1031F,7.0
791
+ 10320,10323,3.1
792
+ 1032D,1032F,10.0
793
+ 10330,1034A,3.1
794
+ 10350,1037A,7.0
795
+ 10380,1039F,4.0
796
+ 103A0,103D5,4.1
797
+ 10400,10425,3.1
798
+ 10426,10427,4.0
799
+ 10428,1044D,3.1
800
+ 1044E,104A9,4.0
801
+ 104B0,104FB,9.0
802
+ 10500,10767,7.0
803
+ 10800,1083F,4.0
804
+ 10840,1085F,5.2
805
+ 10860,108AF,7.0
806
+ 108E0,108FF,8.0
807
+ 10900,10919,5.0
808
+ 1091A,1091B,5.2
809
+ 1091F,1091F,5.0
810
+ 10920,1093F,5.1
811
+ 10980,109B7,6.1
812
+ 109BC,109BD,8.0
813
+ 109BE,109BF,6.1
814
+ 109C0,109FF,8.0
815
+ 10A00,10A33,4.1
816
+ 10A34,10A35,11.0
817
+ 10A38,10A47,4.1
818
+ 10A48,10A48,11.0
819
+ 10A50,10A58,4.1
820
+ 10A60,10A7F,5.2
821
+ 10A80,10AF6,7.0
822
+ 10B00,10B7F,5.2
823
+ 10B80,10BAF,7.0
824
+ 10C00,10C48,5.2
825
+ 10C80,10CFF,8.0
826
+ 10D00,10D39,11.0
827
+ 10E60,10E7E,5.2
828
+ 10E80,10EB1,13.0
829
+ 10F00,10F59,11.0
830
+ 10FB0,10FCB,13.0
831
+ 10FE0,10FF6,12.0
832
+ 11000,1106F,6.0
833
+ 1107F,1107F,7.0
834
+ 11080,110C1,5.2
835
+ 110CD,110CD,11.0
836
+ 110D0,11143,6.1
837
+ 11144,11146,11.0
838
+ 11147,11147,13.0
839
+ 11150,11176,7.0
840
+ 11180,111C8,6.1
841
+ 111C9,111CC,8.0
842
+ 111CD,111CD,7.0
843
+ 111CE,111CF,13.0
844
+ 111D0,111D9,6.1
845
+ 111DA,111DA,7.0
846
+ 111DB,111DF,8.0
847
+ 111E1,1123D,7.0
848
+ 1123E,1123E,9.0
849
+ 11280,112A9,8.0
850
+ 112B0,112F9,7.0
851
+ 11300,11300,8.0
852
+ 11301,11339,7.0
853
+ 1133B,1133B,11.0
854
+ 1133C,1134D,7.0
855
+ 11350,11350,8.0
856
+ 11357,11374,7.0
857
+ 11400,11459,9.0
858
+ 1145A,1145A,13.0
859
+ 1145B,1145D,9.0
860
+ 1145E,1145E,11.0
861
+ 1145F,1145F,12.0
862
+ 11460,11461,13.0
863
+ 11480,115C9,7.0
864
+ 115CA,115DD,8.0
865
+ 11600,11659,7.0
866
+ 11660,1166C,9.0
867
+ 11680,116B7,6.1
868
+ 116B8,116B8,12.0
869
+ 116C0,116C9,6.1
870
+ 11700,11719,8.0
871
+ 1171A,1171A,11.0
872
+ 1171D,1173F,8.0
873
+ 11800,1183B,11.0
874
+ 118A0,118FF,7.0
875
+ 11900,11959,13.0
876
+ 119A0,119E4,12.0
877
+ 11A00,11A83,10.0
878
+ 11A84,11A85,12.0
879
+ 11A86,11A9C,10.0
880
+ 11A9D,11A9D,11.0
881
+ 11A9E,11AA2,10.0
882
+ 11AC0,11AF8,7.0
883
+ 11C00,11CB6,9.0
884
+ 11D00,11D59,10.0
885
+ 11D60,11EF8,11.0
886
+ 11FB0,11FB0,13.0
887
+ 11FC0,11FFF,12.0
888
+ 12000,1236E,5.0
889
+ 1236F,12398,7.0
890
+ 12399,12399,8.0
891
+ 12400,12462,5.0
892
+ 12463,1246E,7.0
893
+ 12470,12473,5.0
894
+ 12474,12474,7.0
895
+ 12480,12543,8.0
896
+ 13000,1342E,5.2
897
+ 13430,13438,12.0
898
+ 14400,14646,8.0
899
+ 16800,16A38,6.0
900
+ 16A40,16B8F,7.0
901
+ 16E40,16E9A,11.0
902
+ 16F00,16F44,6.1
903
+ 16F45,16F4F,12.0
904
+ 16F50,16F7E,6.1
905
+ 16F7F,16F87,12.0
906
+ 16F8F,16F9F,6.1
907
+ 16FE0,16FE0,9.0
908
+ 16FE1,16FE1,10.0
909
+ 16FE2,16FE3,12.0
910
+ 16FE4,16FF1,13.0
911
+ 17000,187EC,9.0
912
+ 187ED,187F1,11.0
913
+ 187F2,187F7,12.0
914
+ 18800,18AF2,9.0
915
+ 18AF3,18D08,13.0
916
+ 1B000,1B001,6.0
917
+ 1B002,1B11E,10.0
918
+ 1B150,1B167,12.0
919
+ 1B170,1B2FB,10.0
920
+ 1BC00,1BCA3,7.0
921
+ 1D000,1D126,3.1
922
+ 1D129,1D129,5.1
923
+ 1D12A,1D1DD,3.1
924
+ 1D1DE,1D1E8,8.0
925
+ 1D200,1D245,4.1
926
+ 1D2E0,1D2F3,11.0
927
+ 1D300,1D356,4.0
928
+ 1D360,1D371,5.0
929
+ 1D372,1D378,11.0
930
+ 1D400,1D4C0,3.1
931
+ 1D4C1,1D4C1,4.0
932
+ 1D4C2,1D6A3,3.1
933
+ 1D6A4,1D6A5,4.1
934
+ 1D6A8,1D7C9,3.1
935
+ 1D7CA,1D7CB,5.0
936
+ 1D7CE,1D7FF,3.1
937
+ 1D800,1DAAF,8.0
938
+ 1E000,1E02A,9.0
939
+ 1E100,1E2FF,12.0
940
+ 1E800,1E8D6,7.0
941
+ 1E900,1E94A,9.0
942
+ 1E94B,1E94B,12.0
943
+ 1E950,1E95F,9.0
944
+ 1EC71,1ECB4,11.0
945
+ 1ED01,1ED3D,12.0
946
+ 1EE00,1EEF1,6.1
947
+ 1F000,1F093,5.1
948
+ 1F0A0,1F0BE,6.0
949
+ 1F0BF,1F0BF,7.0
950
+ 1F0C1,1F0DF,6.0
951
+ 1F0E0,1F0F5,7.0
952
+ 1F100,1F10A,5.2
953
+ 1F10B,1F10C,7.0
954
+ 1F10D,1F10F,13.0
955
+ 1F110,1F12E,5.2
956
+ 1F12F,1F12F,11.0
957
+ 1F130,1F130,6.0
958
+ 1F131,1F131,5.2
959
+ 1F132,1F13C,6.0
960
+ 1F13D,1F13D,5.2
961
+ 1F13E,1F13E,6.0
962
+ 1F13F,1F13F,5.2
963
+ 1F140,1F141,6.0
964
+ 1F142,1F142,5.2
965
+ 1F143,1F145,6.0
966
+ 1F146,1F146,5.2
967
+ 1F147,1F149,6.0
968
+ 1F14A,1F14E,5.2
969
+ 1F14F,1F156,6.0
970
+ 1F157,1F157,5.2
971
+ 1F158,1F15E,6.0
972
+ 1F15F,1F15F,5.2
973
+ 1F160,1F169,6.0
974
+ 1F16A,1F16B,6.1
975
+ 1F16C,1F16C,12.0
976
+ 1F16D,1F16F,13.0
977
+ 1F170,1F178,6.0
978
+ 1F179,1F179,5.2
979
+ 1F17A,1F17A,6.0
980
+ 1F17B,1F17C,5.2
981
+ 1F17D,1F17E,6.0
982
+ 1F17F,1F17F,5.2
983
+ 1F180,1F189,6.0
984
+ 1F18A,1F18D,5.2
985
+ 1F18E,1F18F,6.0
986
+ 1F190,1F190,5.2
987
+ 1F191,1F19A,6.0
988
+ 1F19B,1F1AC,9.0
989
+ 1F1AD,1F1AD,13.0
990
+ 1F1E6,1F1FF,6.0
991
+ 1F200,1F200,5.2
992
+ 1F201,1F202,6.0
993
+ 1F210,1F231,5.2
994
+ 1F232,1F23A,6.0
995
+ 1F23B,1F23B,9.0
996
+ 1F240,1F248,5.2
997
+ 1F250,1F251,6.0
998
+ 1F260,1F265,10.0
999
+ 1F300,1F320,6.0
1000
+ 1F321,1F32C,7.0
1001
+ 1F32D,1F32F,8.0
1002
+ 1F330,1F335,6.0
1003
+ 1F336,1F336,7.0
1004
+ 1F337,1F37C,6.0
1005
+ 1F37D,1F37D,7.0
1006
+ 1F37E,1F37F,8.0
1007
+ 1F380,1F393,6.0
1008
+ 1F394,1F39F,7.0
1009
+ 1F3A0,1F3C4,6.0
1010
+ 1F3C5,1F3C5,7.0
1011
+ 1F3C6,1F3CA,6.0
1012
+ 1F3CB,1F3CE,7.0
1013
+ 1F3CF,1F3D3,8.0
1014
+ 1F3D4,1F3DF,7.0
1015
+ 1F3E0,1F3F0,6.0
1016
+ 1F3F1,1F3F7,7.0
1017
+ 1F3F8,1F3FF,8.0
1018
+ 1F400,1F43E,6.0
1019
+ 1F43F,1F43F,7.0
1020
+ 1F440,1F440,6.0
1021
+ 1F441,1F441,7.0
1022
+ 1F442,1F4F7,6.0
1023
+ 1F4F8,1F4F8,7.0
1024
+ 1F4F9,1F4FC,6.0
1025
+ 1F4FD,1F4FE,7.0
1026
+ 1F4FF,1F4FF,8.0
1027
+ 1F500,1F53D,6.0
1028
+ 1F53E,1F53F,7.0
1029
+ 1F540,1F543,6.1
1030
+ 1F544,1F54A,7.0
1031
+ 1F54B,1F54F,8.0
1032
+ 1F550,1F567,6.0
1033
+ 1F568,1F579,7.0
1034
+ 1F57A,1F57A,9.0
1035
+ 1F57B,1F5A3,7.0
1036
+ 1F5A4,1F5A4,9.0
1037
+ 1F5A5,1F5FA,7.0
1038
+ 1F5FB,1F5FF,6.0
1039
+ 1F600,1F600,6.1
1040
+ 1F601,1F610,6.0
1041
+ 1F611,1F611,6.1
1042
+ 1F612,1F614,6.0
1043
+ 1F615,1F615,6.1
1044
+ 1F616,1F616,6.0
1045
+ 1F617,1F617,6.1
1046
+ 1F618,1F618,6.0
1047
+ 1F619,1F619,6.1
1048
+ 1F61A,1F61A,6.0
1049
+ 1F61B,1F61B,6.1
1050
+ 1F61C,1F61E,6.0
1051
+ 1F61F,1F61F,6.1
1052
+ 1F620,1F625,6.0
1053
+ 1F626,1F627,6.1
1054
+ 1F628,1F62B,6.0
1055
+ 1F62C,1F62C,6.1
1056
+ 1F62D,1F62D,6.0
1057
+ 1F62E,1F62F,6.1
1058
+ 1F630,1F633,6.0
1059
+ 1F634,1F634,6.1
1060
+ 1F635,1F640,6.0
1061
+ 1F641,1F642,7.0
1062
+ 1F643,1F644,8.0
1063
+ 1F645,1F64F,6.0
1064
+ 1F650,1F67F,7.0
1065
+ 1F680,1F6C5,6.0
1066
+ 1F6C6,1F6CF,7.0
1067
+ 1F6D0,1F6D0,8.0
1068
+ 1F6D1,1F6D2,9.0
1069
+ 1F6D3,1F6D4,10.0
1070
+ 1F6D5,1F6D5,12.0
1071
+ 1F6D6,1F6D7,13.0
1072
+ 1F6E0,1F6F3,7.0
1073
+ 1F6F4,1F6F6,9.0
1074
+ 1F6F7,1F6F8,10.0
1075
+ 1F6F9,1F6F9,11.0
1076
+ 1F6FA,1F6FA,12.0
1077
+ 1F6FB,1F6FC,13.0
1078
+ 1F700,1F773,6.0
1079
+ 1F780,1F7D4,7.0
1080
+ 1F7D5,1F7D8,11.0
1081
+ 1F7E0,1F7EB,12.0
1082
+ 1F800,1F8AD,7.0
1083
+ 1F8B0,1F8B1,13.0
1084
+ 1F900,1F90B,10.0
1085
+ 1F90C,1F90C,13.0
1086
+ 1F90D,1F90F,12.0
1087
+ 1F910,1F918,8.0
1088
+ 1F919,1F91E,9.0
1089
+ 1F91F,1F91F,10.0
1090
+ 1F920,1F927,9.0
1091
+ 1F928,1F92F,10.0
1092
+ 1F930,1F930,9.0
1093
+ 1F931,1F932,10.0
1094
+ 1F933,1F93E,9.0
1095
+ 1F93F,1F93F,12.0
1096
+ 1F940,1F94B,9.0
1097
+ 1F94C,1F94C,10.0
1098
+ 1F94D,1F94F,11.0
1099
+ 1F950,1F95E,9.0
1100
+ 1F95F,1F96B,10.0
1101
+ 1F96C,1F970,11.0
1102
+ 1F971,1F971,12.0
1103
+ 1F972,1F972,13.0
1104
+ 1F973,1F976,11.0
1105
+ 1F977,1F978,13.0
1106
+ 1F97A,1F97A,11.0
1107
+ 1F97B,1F97B,12.0
1108
+ 1F97C,1F97F,11.0
1109
+ 1F980,1F984,8.0
1110
+ 1F985,1F991,9.0
1111
+ 1F992,1F997,10.0
1112
+ 1F998,1F9A2,11.0
1113
+ 1F9A3,1F9A4,13.0
1114
+ 1F9A5,1F9AA,12.0
1115
+ 1F9AB,1F9AD,13.0
1116
+ 1F9AE,1F9AF,12.0
1117
+ 1F9B0,1F9B9,11.0
1118
+ 1F9BA,1F9BF,12.0
1119
+ 1F9C0,1F9C0,8.0
1120
+ 1F9C1,1F9C2,11.0
1121
+ 1F9C3,1F9CA,12.0
1122
+ 1F9CB,1F9CB,13.0
1123
+ 1F9CD,1F9CF,12.0
1124
+ 1F9D0,1F9E6,10.0
1125
+ 1F9E7,1F9FF,11.0
1126
+ 1FA00,1FA53,12.0
1127
+ 1FA60,1FA6D,11.0
1128
+ 1FA70,1FA73,12.0
1129
+ 1FA74,1FA74,13.0
1130
+ 1FA78,1FA82,12.0
1131
+ 1FA83,1FA86,13.0
1132
+ 1FA90,1FA95,12.0
1133
+ 1FA96,1FBF9,13.0
1134
+ 20000,2A6D6,3.1
1135
+ 2A6D7,2A6DD,13.0
1136
+ 2A700,2B734,5.2
1137
+ 2B740,2B81D,6.0
1138
+ 2B820,2CEA1,8.0
1139
+ 2CEB0,2EBE0,10.0
1140
+ 2F800,2FA1D,3.1
1141
+ 30000,3134A,13.0
1142
+ E0001,E007F,3.1
1143
+ E0100,E01EF,4.0
1144
+ F0000,FFFFD,2.0
1145
+ 100000,10FFFD,2.0
@@ -1,7 +1,41 @@
1
+ require 'csv'
2
+
1
3
  class Unihan2
2
4
  DATA_DIR = File.join(File.dirname(__FILE__), '../data')
3
5
 
4
6
  def initialize
7
+ read_strokes
8
+ read_version
9
+ end
10
+
11
+
12
+ # return total strokes of the character char
13
+ # @param char [String] the character
14
+ # @return [Integer] the total strokes
15
+ def strokes(char)
16
+ @strokes[char]
17
+ end
18
+
19
+ # return unicode version of specific character
20
+ # @param code [String] character or codepoing
21
+ # @return [Float] unicode version
22
+ def ver(code)
23
+ return nil if code.nil?
24
+
25
+ if code.is_a? Integer
26
+ i = code
27
+ elsif code.size == 1
28
+ i = code.codepoints.first
29
+ else
30
+ i = code.hex
31
+ end
32
+
33
+ ver_bsearch(i, 0, @vers.size-1)
34
+ end
35
+
36
+ private
37
+
38
+ def read_strokes
5
39
  fn = File.join(DATA_DIR, 'Unihan_DictionaryLikeData.txt')
6
40
  @strokes = {}
7
41
  File.foreach(fn) do |line|
@@ -16,10 +50,33 @@ class Unihan2
16
50
  end
17
51
  end
18
52
 
19
- # return total strokes of the character char
20
- # @param char [String] the character
21
- # @return [Integer] the total strokes
22
- def strokes(char)
23
- @strokes[char]
53
+ def read_version
54
+ @vers = []
55
+ fn = File.join(DATA_DIR, 'unicode-chars-ver.csv')
56
+ CSV.foreach(fn, headers: true) do |row|
57
+ @vers << {
58
+ range: (row['cp1'].hex..row['cp2'].hex),
59
+ age: row['age'].to_f
60
+ }
61
+ end
24
62
  end
25
- end
63
+
64
+ def ver_bsearch(code, start, stop)
65
+ return nil if start > stop
66
+ middle = (stop - start) / 2 + start
67
+ h = @vers[middle]
68
+ if h[:range].include?(code)
69
+ return h[:age]
70
+ elsif middle == start
71
+ return nil if code < h[:range].begin
72
+ return ver_bsearch(code, middle+1, stop)
73
+ else
74
+ if code < h[:range].begin
75
+ return ver_bsearch(code, start, middle)
76
+ else
77
+ return ver_bsearch(code, middle, stop)
78
+ end
79
+ end
80
+ end
81
+
82
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unihan2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ray Chou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-28 00:00:00.000000000 Z
11
+ date: 2020-12-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Unihan Database Utilities
14
14
  email: zhoubx@gmail.com
@@ -17,6 +17,7 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - data/Unihan_DictionaryLikeData.txt
20
+ - data/unicode-chars-ver.csv
20
21
  - lib/unihan2.rb
21
22
  homepage: https://github.com/RayCHOU/unihan2
22
23
  licenses:
@@ -37,8 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
37
38
  - !ruby/object:Gem::Version
38
39
  version: '0'
39
40
  requirements: []
40
- rubyforge_project:
41
- rubygems_version: 2.4.8
41
+ rubygems_version: 3.1.4
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: Chinese