… | |
… | |
190 | const uint16_t *cns11643_1992_7_f_i[] = { |
190 | const uint16_t *cns11643_1992_7_f_i[] = { |
191 | cns11643_1992_7_f_69, cns11643_1992_7_f_70, cns11643_1992_7_f_71, 0, cns11643_1992_7_f_73, |
191 | cns11643_1992_7_f_69, cns11643_1992_7_f_70, cns11643_1992_7_f_71, 0, cns11643_1992_7_f_73, |
192 | cns11643_1992_7_f_74, cns11643_1992_7_f_75, cns11643_1992_7_f_76, cns11643_1992_7_f_77 |
192 | cns11643_1992_7_f_74, cns11643_1992_7_f_75, cns11643_1992_7_f_76, cns11643_1992_7_f_77 |
193 | }; |
193 | }; |
194 | |
194 | |
195 | static const uint16_t cns11643_1992_7_t_54[] = { |
|
|
196 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
|
|
197 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
|
|
198 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
|
|
199 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
|
|
200 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
|
|
201 | 0x0000, 0x0000, 0x0000, 0x0000 |
|
|
202 | }; |
|
|
203 | |
195 | |
204 | struct rxvt_codeset_conv_cns11643_1992_7 : rxvt_codeset_conv { |
196 | static uint32_t cs_cns11643_1992_7_from_unicode (unicode_t unicode) { |
205 | uint32_t from_unicode (uint32_t unicode) const { |
|
|
206 | if (unicode == 0x34a7) return 0x5274; |
197 | if (unicode == 0x34a7) return 0x5274; |
207 | if (unicode == 0x34a8) return 0x574c; |
198 | if (unicode == 0x34a8) return 0x574c; |
208 | if (unicode == 0x34b9) return 0x4d3d; |
199 | if (unicode == 0x34b9) return 0x4d3d; |
209 | if (unicode == 0x3510) return 0x3e7d; |
200 | if (unicode == 0x3510) return 0x3e7d; |
210 | if (unicode == 0x35f6) return 0x214e; |
201 | if (unicode == 0x35f6) return 0x214e; |
… | |
… | |
281 | && cns11643_1992_7_f_i[h - 0x45]) |
272 | && cns11643_1992_7_f_i[h - 0x45]) |
282 | return cns11643_1992_7_f_i[h - 0x45][l - 0x04] |
273 | return cns11643_1992_7_f_i[h - 0x45][l - 0x04] |
283 | ? cns11643_1992_7_f_i[h - 0x45][l - 0x04] |
274 | ? cns11643_1992_7_f_i[h - 0x45][l - 0x04] |
284 | : NOCHAR; |
275 | : NOCHAR; |
285 | return NOCHAR; |
276 | return NOCHAR; |
286 | } |
277 | } |
287 | uint32_t to_unicode (uint32_t enc) const { |
|
|
288 | if (enc == 0x214e) return 0x35f6; |
|
|
289 | if (enc == 0x2163) return 0x5655; |
|
|
290 | if (enc == 0x216a) return 0x3667; |
|
|
291 | if (enc == 0x2271) return 0x617f; |
|
|
292 | if (enc == 0x227c) return 0x3992; |
|
|
293 | if (enc == 0x233a) return 0x3a45; |
|
|
294 | if (enc == 0x236f) return 0x3bc9; |
|
|
295 | if (enc == 0x2461) return 0x3d55; |
|
|
296 | if (enc == 0x2537) return 0x3ee8; |
|
|
297 | if (enc == 0x2558) return 0x3fb6; |
|
|
298 | if (enc == 0x255c) return 0x3fbd; |
|
|
299 | if (enc == 0x2624) return 0x40d6; |
|
|
300 | if (enc == 0x2632) return 0x4171; |
|
|
301 | if (enc == 0x2657) return 0x4298; |
|
|
302 | if (enc == 0x2842) return 0x45cd; |
|
|
303 | if (enc == 0x2879) return 0x46f6; |
|
|
304 | if (enc == 0x2936) return 0x477a; |
|
|
305 | if (enc == 0x293d) return 0x47b8; |
|
|
306 | if (enc == 0x294e) return 0x4801; |
|
|
307 | if (enc == 0x2a38) return 0x492f; |
|
|
308 | if (enc == 0x2a3e) return 0x4931; |
|
|
309 | if (enc == 0x2a46) return 0x499c; |
|
|
310 | if (enc == 0x2a54) return 0x49e6; |
|
|
311 | if (enc == 0x2b38) return 0x4b38; |
|
|
312 | if (enc == 0x2b6a) return 0x4c3a; |
|
|
313 | if (enc == 0x2b6d) return 0x4cb1; |
|
|
314 | if (enc == 0x2c31) return 0x4d47; |
|
|
315 | if (enc == 0x2c33) return 0x4d51; |
|
|
316 | if (enc == 0x2d2d) return 0x3747; |
|
|
317 | if (enc == 0x2d4c) return 0x3817; |
|
|
318 | if (enc == 0x2d5b) return 0x38a3; |
|
|
319 | if (enc == 0x2e5a) return 0x3b1e; |
|
|
320 | if (enc == 0x2f4f) return 0x71d7; |
|
|
321 | if (enc == 0x2f74) return 0x3e9a; |
|
|
322 | if (enc == 0x3036) return 0x3fc2; |
|
|
323 | if (enc == 0x3059) return 0x40dc; |
|
|
324 | if (enc == 0x306f) return 0x41b3; |
|
|
325 | if (enc == 0x3261) return 0x8666; |
|
|
326 | if (enc == 0x3273) return 0x45d9; |
|
|
327 | if (enc == 0x3275) return 0x45dd; |
|
|
328 | if (enc == 0x334d) return 0x46fc; |
|
|
329 | if (enc == 0x3432) return 0x8f3a; |
|
|
330 | if (enc == 0x3454) return 0x4907; |
|
|
331 | if (enc == 0x3463) return 0x933d; |
|
|
332 | if (enc == 0x3473) return 0x49a8; |
|
|
333 | if (enc == 0x3551) return 0x4aca; |
|
|
334 | if (enc == 0x3737) return 0x3605; |
|
|
335 | if (enc == 0x3855) return 0x3bf0; |
|
|
336 | if (enc == 0x3926) return 0x3e02; |
|
|
337 | if (enc == 0x392d) return 0x3e23; |
|
|
338 | if (enc == 0x3a39) return 0x4315; |
|
|
339 | if (enc == 0x3b32) return 0x455d; |
|
|
340 | if (enc == 0x3b59) return 0x465a; |
|
|
341 | if (enc == 0x3c33) return 0x4785; |
|
|
342 | if (enc == 0x3c70) return 0x490b; |
|
|
343 | if (enc == 0x3c77) return 0x4939; |
|
|
344 | if (enc == 0x3c7b) return 0x4937; |
|
|
345 | if (enc == 0x3d56) return 0x4a6b; |
|
|
346 | if (enc == 0x3d69) return 0x4acd; |
|
|
347 | if (enc == 0x3e49) return 0x4c4d; |
|
|
348 | if (enc == 0x3e7d) return 0x3510; |
|
|
349 | if (enc == 0x3f30) return 0x367b; |
|
|
350 | if (enc == 0x3f44) return 0x381d; |
|
|
351 | if (enc == 0x3f62) return 0x64f5; |
|
|
352 | if (enc == 0x3f76) return 0x3b27; |
|
|
353 | if (enc == 0x4067) return 0x3fcf; |
|
|
354 | if (enc == 0x406b) return 0x3fcd; |
|
|
355 | if (enc == 0x412e) return 0x4182; |
|
|
356 | if (enc == 0x413f) return 0x4252; |
|
|
357 | if (enc == 0x4161) return 0x7f80; |
|
|
358 | if (enc == 0x4224) return 0x4451; |
|
|
359 | if (enc == 0x4238) return 0x455a; |
|
|
360 | if (enc == 0x4322) return 0x4665; |
|
|
361 | if (enc == 0x4352) return 0x8d01; |
|
|
362 | if (enc == 0x4377) return 0x48af; |
|
|
363 | if (enc == 0x4439) return 0x4941; |
|
|
364 | if (enc == 0x4458) return 0x4a29; |
|
|
365 | if (enc == 0x4460) return 0x4a2a; |
|
|
366 | if (enc == 0x4477) return 0x4a96; |
|
|
367 | if (enc == 0x447e) return 0x4b12; |
|
|
368 | if (enc == 0x4644) return 0x367e; |
|
|
369 | if (enc == 0x4645) return 0x58e1; |
|
|
370 | if (enc == 0x472c) return 0x39a7; |
|
|
371 | if (enc == 0x474a) return 0x4320; |
|
|
372 | if (enc == 0x4857) return 0x7ce9; |
|
|
373 | if (enc == 0x487c) return 0x81cb; |
|
|
374 | if (enc == 0x4953) return 0x4565; |
|
|
375 | if (enc == 0x4a25) return 0x4704; |
|
|
376 | if (enc == 0x4a41) return 0x4764; |
|
|
377 | if (enc == 0x4a57) return 0x4823; |
|
|
378 | if (enc == 0x4b40) return 0x95d9; |
|
|
379 | if (enc == 0x4d3d) return 0x34b9; |
|
|
380 | if (enc == 0x4e22) return 0x3c4b; |
|
|
381 | if (enc == 0x4e5c) return 0x40f1; |
|
|
382 | if (enc == 0x5025) return 0x4667; |
|
|
383 | if (enc == 0x5031) return 0x4714; |
|
|
384 | if (enc == 0x5056) return 0x4889; |
|
|
385 | if (enc == 0x5179) return 0x4c0b; |
|
|
386 | if (enc == 0x517d) return 0x4c17; |
|
|
387 | if (enc == 0x5231) return 0x4c6d; |
|
|
388 | if (enc == 0x5233) return 0x4c70; |
|
|
389 | if (enc == 0x5242) return 0x4ced; |
|
|
390 | if (enc == 0x5267) return 0x4d8d; |
|
|
391 | if (enc == 0x5274) return 0x34a7; |
|
|
392 | if (enc == 0x5347) return 0x6707; |
|
|
393 | if (enc == 0x536b) return 0x3e5a; |
|
|
394 | if (enc == 0x543a) return 0x42af; |
|
|
395 | if (enc == 0x5468) return 0x456b; |
|
|
396 | if (enc == 0x5532) return 0x471b; |
|
|
397 | if (enc == 0x5568) return 0x4963; |
|
|
398 | if (enc == 0x5625) return 0x4a80; |
|
|
399 | if (enc == 0x5626) return 0x4a84; |
|
|
400 | if (enc == 0x5627) return 0x4a7f; |
|
|
401 | if (enc == 0x5632) return 0x4af1; |
|
|
402 | if (enc == 0x5651) return 0x9a47; |
|
|
403 | if (enc == 0x5729) return 0x4d1c; |
|
|
404 | if (enc == 0x574c) return 0x34a8; |
|
|
405 | if (enc == 0x584c) return 0x418b; |
|
|
406 | if (enc == 0x5858) return 0x432b; |
|
|
407 | if (enc == 0x5872) return 0x457a; |
|
|
408 | if (enc == 0x5925) return 0x4609; |
|
|
409 | if (enc == 0x5932) return 0x466d; |
|
|
410 | if (enc == 0x5938) return 0x471f; |
|
|
411 | if (enc == 0x5967) return 0x496a; |
|
|
412 | if (enc == 0x5968) return 0x496c; |
|
|
413 | if (enc == 0x5a3e) return 0x4bb2; |
|
|
414 | if (enc == 0x5a4b) return 0x4c1d; |
|
|
415 | if (enc == 0x5a4f) return 0x4c2d; |
|
|
416 | if (enc == 0x5a7d) return 0x4d45; |
|
|
417 | if (enc == 0x5c5e) return 0x460a; |
|
|
418 | if (enc == 0x5c63) return 0x460c; |
|
|
419 | if (enc == 0x5c77) return 0x482e; |
|
|
420 | if (enc == 0x5e23) return 0x4c8d; |
|
|
421 | if (enc == 0x5f33) return 0x4331; |
|
|
422 | if (enc == 0x602d) return 0x4bbc; |
|
|
423 | if (enc == 0x602e) return 0x4bbb; |
|
|
424 | if (enc == 0x616a) return 0x4c14; |
|
|
425 | if (enc == 0x622f) return 0x361c; |
|
|
426 | if (enc == 0x6235) return 0x3772; |
|
|
427 | if (enc == 0x6337) return 0x4d0e; |
|
|
428 | if (enc == 0x6452) return 0x7674; |
|
|
429 | if (enc == 0x6475) return 0x4bec; |
|
|
430 | if (enc == 0x655d) return 0x4279; |
|
|
431 | if (0x005e <= enc && enc <= 0x009d) |
|
|
432 | return cns11643_1992_7_t_54[enc - 0x005e] == 0 ? NOCHAR : cns11643_1992_7_t_54[enc - 0x005e]; |
|
|
433 | return NOCHAR; |
|
|
434 | } |
|
|
435 | } rxvt_codeset_conv_cns11643_1992_7; |
|
|
436 | |
278 | |
437 | #else |
279 | #else |
438 | |
280 | |
439 | #define rxvt_codeset_conv_cns11643_1992_7 rxvt_codeset_conv_unknown |
281 | #define cs_cns11643_1992_7_from_unicode cs_unknown_from_unicode |
|
|
282 | #define cs_cns11643_1992_7_to_unicode cs_unknown_to_unicode |
440 | |
283 | |
441 | #endif |
284 | #endif |