--- rxvt-unicode/src/table/cns11643_1992_7.h 2003/11/24 17:28:08 1.1 +++ rxvt-unicode/src/table/cns11643_1992_7.h 2004/03/15 00:27:13 1.3 @@ -192,17 +192,9 @@ cns11643_1992_7_f_74, cns11643_1992_7_f_75, cns11643_1992_7_f_76, cns11643_1992_7_f_77 }; -static const uint16_t cns11643_1992_7_t_54[] = { - 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, - 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, - 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, - 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, - 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, - 0x0000, 0x0000, 0x0000, 0x0000 -}; struct rxvt_codeset_conv_cns11643_1992_7 : rxvt_codeset_conv { - uint32_t from_unicode (uint32_t unicode) const { + uint32_t from_unicode (unicode_t unicode) const { if (unicode == 0x34a7) return 0x5274; if (unicode == 0x34a8) return 0x574c; if (unicode == 0x34b9) return 0x4d3d; @@ -284,154 +276,6 @@ : NOCHAR; return NOCHAR; } - uint32_t to_unicode (uint32_t enc) const { - if (enc == 0x214e) return 0x35f6; - if (enc == 0x2163) return 0x5655; - if (enc == 0x216a) return 0x3667; - if (enc == 0x2271) return 0x617f; - if (enc == 0x227c) return 0x3992; - if (enc == 0x233a) return 0x3a45; - if (enc == 0x236f) return 0x3bc9; - if (enc == 0x2461) return 0x3d55; - if (enc == 0x2537) return 0x3ee8; - if (enc == 0x2558) return 0x3fb6; - if (enc == 0x255c) return 0x3fbd; - if (enc == 0x2624) return 0x40d6; - if (enc == 0x2632) return 0x4171; - if (enc == 0x2657) return 0x4298; - if (enc == 0x2842) return 0x45cd; - if (enc == 0x2879) return 0x46f6; - if (enc == 0x2936) return 0x477a; - if (enc == 0x293d) return 0x47b8; - if (enc == 0x294e) return 0x4801; - if (enc == 0x2a38) return 0x492f; - if (enc == 0x2a3e) return 0x4931; - if (enc == 0x2a46) return 0x499c; - if (enc == 0x2a54) return 0x49e6; - if (enc == 0x2b38) return 0x4b38; - if (enc == 0x2b6a) return 0x4c3a; - if (enc == 0x2b6d) return 0x4cb1; - if (enc == 0x2c31) return 0x4d47; - if (enc == 0x2c33) return 0x4d51; - if (enc == 0x2d2d) return 0x3747; - if (enc == 0x2d4c) return 0x3817; - if (enc == 0x2d5b) return 0x38a3; - if (enc == 0x2e5a) return 0x3b1e; - if (enc == 0x2f4f) return 0x71d7; - if (enc == 0x2f74) return 0x3e9a; - if (enc == 0x3036) return 0x3fc2; - if (enc == 0x3059) return 0x40dc; - if (enc == 0x306f) return 0x41b3; - if (enc == 0x3261) return 0x8666; - if (enc == 0x3273) return 0x45d9; - if (enc == 0x3275) return 0x45dd; - if (enc == 0x334d) return 0x46fc; - if (enc == 0x3432) return 0x8f3a; - if (enc == 0x3454) return 0x4907; - if (enc == 0x3463) return 0x933d; - if (enc == 0x3473) return 0x49a8; - if (enc == 0x3551) return 0x4aca; - if (enc == 0x3737) return 0x3605; - if (enc == 0x3855) return 0x3bf0; - if (enc == 0x3926) return 0x3e02; - if (enc == 0x392d) return 0x3e23; - if (enc == 0x3a39) return 0x4315; - if (enc == 0x3b32) return 0x455d; - if (enc == 0x3b59) return 0x465a; - if (enc == 0x3c33) return 0x4785; - if (enc == 0x3c70) return 0x490b; - if (enc == 0x3c77) return 0x4939; - if (enc == 0x3c7b) return 0x4937; - if (enc == 0x3d56) return 0x4a6b; - if (enc == 0x3d69) return 0x4acd; - if (enc == 0x3e49) return 0x4c4d; - if (enc == 0x3e7d) return 0x3510; - if (enc == 0x3f30) return 0x367b; - if (enc == 0x3f44) return 0x381d; - if (enc == 0x3f62) return 0x64f5; - if (enc == 0x3f76) return 0x3b27; - if (enc == 0x4067) return 0x3fcf; - if (enc == 0x406b) return 0x3fcd; - if (enc == 0x412e) return 0x4182; - if (enc == 0x413f) return 0x4252; - if (enc == 0x4161) return 0x7f80; - if (enc == 0x4224) return 0x4451; - if (enc == 0x4238) return 0x455a; - if (enc == 0x4322) return 0x4665; - if (enc == 0x4352) return 0x8d01; - if (enc == 0x4377) return 0x48af; - if (enc == 0x4439) return 0x4941; - if (enc == 0x4458) return 0x4a29; - if (enc == 0x4460) return 0x4a2a; - if (enc == 0x4477) return 0x4a96; - if (enc == 0x447e) return 0x4b12; - if (enc == 0x4644) return 0x367e; - if (enc == 0x4645) return 0x58e1; - if (enc == 0x472c) return 0x39a7; - if (enc == 0x474a) return 0x4320; - if (enc == 0x4857) return 0x7ce9; - if (enc == 0x487c) return 0x81cb; - if (enc == 0x4953) return 0x4565; - if (enc == 0x4a25) return 0x4704; - if (enc == 0x4a41) return 0x4764; - if (enc == 0x4a57) return 0x4823; - if (enc == 0x4b40) return 0x95d9; - if (enc == 0x4d3d) return 0x34b9; - if (enc == 0x4e22) return 0x3c4b; - if (enc == 0x4e5c) return 0x40f1; - if (enc == 0x5025) return 0x4667; - if (enc == 0x5031) return 0x4714; - if (enc == 0x5056) return 0x4889; - if (enc == 0x5179) return 0x4c0b; - if (enc == 0x517d) return 0x4c17; - if (enc == 0x5231) return 0x4c6d; - if (enc == 0x5233) return 0x4c70; - if (enc == 0x5242) return 0x4ced; - if (enc == 0x5267) return 0x4d8d; - if (enc == 0x5274) return 0x34a7; - if (enc == 0x5347) return 0x6707; - if (enc == 0x536b) return 0x3e5a; - if (enc == 0x543a) return 0x42af; - if (enc == 0x5468) return 0x456b; - if (enc == 0x5532) return 0x471b; - if (enc == 0x5568) return 0x4963; - if (enc == 0x5625) return 0x4a80; - if (enc == 0x5626) return 0x4a84; - if (enc == 0x5627) return 0x4a7f; - if (enc == 0x5632) return 0x4af1; - if (enc == 0x5651) return 0x9a47; - if (enc == 0x5729) return 0x4d1c; - if (enc == 0x574c) return 0x34a8; - if (enc == 0x584c) return 0x418b; - if (enc == 0x5858) return 0x432b; - if (enc == 0x5872) return 0x457a; - if (enc == 0x5925) return 0x4609; - if (enc == 0x5932) return 0x466d; - if (enc == 0x5938) return 0x471f; - if (enc == 0x5967) return 0x496a; - if (enc == 0x5968) return 0x496c; - if (enc == 0x5a3e) return 0x4bb2; - if (enc == 0x5a4b) return 0x4c1d; - if (enc == 0x5a4f) return 0x4c2d; - if (enc == 0x5a7d) return 0x4d45; - if (enc == 0x5c5e) return 0x460a; - if (enc == 0x5c63) return 0x460c; - if (enc == 0x5c77) return 0x482e; - if (enc == 0x5e23) return 0x4c8d; - if (enc == 0x5f33) return 0x4331; - if (enc == 0x602d) return 0x4bbc; - if (enc == 0x602e) return 0x4bbb; - if (enc == 0x616a) return 0x4c14; - if (enc == 0x622f) return 0x361c; - if (enc == 0x6235) return 0x3772; - if (enc == 0x6337) return 0x4d0e; - if (enc == 0x6452) return 0x7674; - if (enc == 0x6475) return 0x4bec; - if (enc == 0x655d) return 0x4279; - if (0x005e <= enc && enc <= 0x009d) - return cns11643_1992_7_t_54[enc - 0x005e] == 0 ? NOCHAR : cns11643_1992_7_t_54[enc - 0x005e]; - return NOCHAR; - } } rxvt_codeset_conv_cns11643_1992_7; #else