… | |
… | |
31 | 0x8b, 0x00, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, 0x8d, 0x00, 0x00, 0x00, 0x8e, 0x00, 0x00, 0x00, |
31 | 0x8b, 0x00, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, 0x8d, 0x00, 0x00, 0x00, 0x8e, 0x00, 0x00, 0x00, |
32 | 0x8f, 0x90, 0x91, 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
32 | 0x8f, 0x90, 0x91, 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
33 | 0x94 |
33 | 0x94 |
34 | }; |
34 | }; |
35 | |
35 | |
36 | struct rxvt_codeset_conv_koi8_r : rxvt_codeset_conv { |
|
|
37 | uint32_t from_unicode (unicode_t unicode) const { |
36 | static uint32_t cs_koi8_r_from_unicode (unicode_t unicode) { |
38 | if (unicode <= 0x007f) return unicode; |
37 | if (unicode <= 0x007f) return unicode; |
39 | if (unicode == 0x2219) return 0x0095; |
38 | if (unicode == 0x2219) return 0x0095; |
40 | if (unicode == 0x221a) return 0x0096; |
39 | if (unicode == 0x221a) return 0x0096; |
41 | if (unicode == 0x2248) return 0x0097; |
40 | if (unicode == 0x2248) return 0x0097; |
42 | if (unicode == 0x2264) return 0x0098; |
41 | if (unicode == 0x2264) return 0x0098; |
… | |
… | |
48 | if (0x0401 <= unicode && unicode <= 0x0451) |
47 | if (0x0401 <= unicode && unicode <= 0x0451) |
49 | return koi8_r_f_1024[unicode - 0x0401] == 0 ? NOCHAR : koi8_r_f_1024[unicode - 0x0401]; |
48 | return koi8_r_f_1024[unicode - 0x0401] == 0 ? NOCHAR : koi8_r_f_1024[unicode - 0x0401]; |
50 | if (0x2500 <= unicode && unicode <= 0x25a0) |
49 | if (0x2500 <= unicode && unicode <= 0x25a0) |
51 | return koi8_r_f_9472[unicode - 0x2500] == 0 ? NOCHAR : koi8_r_f_9472[unicode - 0x2500]; |
50 | return koi8_r_f_9472[unicode - 0x2500] == 0 ? NOCHAR : koi8_r_f_9472[unicode - 0x2500]; |
52 | return NOCHAR; |
51 | return NOCHAR; |
53 | } |
52 | } |
54 | } rxvt_codeset_conv_koi8_r; |
|
|
55 | |
53 | |
56 | #else |
54 | #else |
57 | |
55 | |
58 | #define rxvt_codeset_conv_koi8_r rxvt_codeset_conv_unknown |
56 | #define cs_koi8_r_from_unicode cs_unknown_from_unicode |
|
|
57 | #define cs_koi8_r_to_unicode cs_unknown_to_unicode |
59 | |
58 | |
60 | #endif |
59 | #endif |