… | |
… | |
2113 | jis0212_1990_0_f_151, jis0212_1990_0_f_152, jis0212_1990_0_f_153, jis0212_1990_0_f_154, jis0212_1990_0_f_155, |
2113 | jis0212_1990_0_f_151, jis0212_1990_0_f_152, jis0212_1990_0_f_153, jis0212_1990_0_f_154, jis0212_1990_0_f_155, |
2114 | jis0212_1990_0_f_156, jis0212_1990_0_f_157, jis0212_1990_0_f_158, jis0212_1990_0_f_159 |
2114 | jis0212_1990_0_f_156, jis0212_1990_0_f_157, jis0212_1990_0_f_158, jis0212_1990_0_f_159 |
2115 | }; |
2115 | }; |
2116 | |
2116 | |
2117 | |
2117 | |
2118 | struct rxvt_codeset_conv_jis0212_1990_0 : rxvt_codeset_conv { |
2118 | static uint32_t cs_jis0212_1990_0_from_unicode (unicode_t unicode) { |
2119 | uint32_t from_unicode (unicode_t unicode) const { |
|
|
2120 | if (unicode == 0x007e) return 0x2237; |
2119 | if (unicode == 0x007e) return 0x2237; |
2121 | if (unicode == 0x2116) return 0x2271; |
2120 | if (unicode == 0x2116) return 0x2271; |
2122 | if (unicode == 0x2122) return 0x226f; |
2121 | if (unicode == 0x2122) return 0x226f; |
2123 | uint8_t l = unicode; |
2122 | uint8_t l = unicode; |
2124 | uint16_t h = unicode >> 8; |
2123 | uint16_t h = unicode >> 8; |
2125 | if (h <= 0x9f |
2124 | if (0x00 <= h && h <= 0x9f |
|
|
2125 | && 0x00 <= l && l <= 0xff |
2126 | && jis0212_1990_0_f_i[h - 0x00]) |
2126 | && jis0212_1990_0_f_i[h - 0x00]) |
2127 | return jis0212_1990_0_f_i[h - 0x00][l - 0x00] |
2127 | return jis0212_1990_0_f_i[h - 0x00][l - 0x00] |
2128 | ? jis0212_1990_0_f_i[h - 0x00][l - 0x00] |
2128 | ? jis0212_1990_0_f_i[h - 0x00][l - 0x00] |
2129 | : NOCHAR; |
2129 | : NOCHAR; |
2130 | return NOCHAR; |
2130 | return NOCHAR; |
2131 | } |
2131 | } |
2132 | } rxvt_codeset_conv_jis0212_1990_0; |
|
|
2133 | |
2132 | |
2134 | #else |
2133 | #else |
2135 | |
2134 | |
2136 | #define rxvt_codeset_conv_jis0212_1990_0 rxvt_codeset_conv_unknown |
2135 | #define cs_jis0212_1990_0_from_unicode cs_unknown_from_unicode |
|
|
2136 | #define cs_jis0212_1990_0_to_unicode cs_unknown_to_unicode |
2137 | |
2137 | |
2138 | #endif |
2138 | #endif |