… | |
… | |
10 | 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0x00, 0x00, 0x00, 0x00, 0xdf, 0xe0, |
10 | 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0x00, 0x00, 0x00, 0x00, 0xdf, 0xe0, |
11 | 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, |
11 | 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, |
12 | 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb |
12 | 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb |
13 | }; |
13 | }; |
14 | |
14 | |
15 | struct rxvt_codeset_conv_iso8859_11 : rxvt_codeset_conv { |
|
|
16 | uint32_t from_unicode (unicode_t unicode) const { |
15 | static uint32_t cs_iso8859_11_from_unicode (unicode_t unicode) { |
17 | if (unicode <= 0x009f) return unicode; |
16 | if (unicode <= 0x009f) return unicode; |
18 | if (unicode == 0x00a0) return 0x00a0; |
17 | if (unicode == 0x00a0) return 0x00a0; |
19 | if (0x0e01 <= unicode && unicode <= 0x0e5b) |
18 | if (0x0e01 <= unicode && unicode <= 0x0e5b) |
20 | return iso8859_11_f_3584[unicode - 0x0e01] == 0 ? NOCHAR : iso8859_11_f_3584[unicode - 0x0e01]; |
19 | return iso8859_11_f_3584[unicode - 0x0e01] == 0 ? NOCHAR : iso8859_11_f_3584[unicode - 0x0e01]; |
21 | return NOCHAR; |
20 | return NOCHAR; |
22 | } |
21 | } |
23 | } rxvt_codeset_conv_iso8859_11; |
|
|
24 | |
22 | |
25 | #else |
23 | #else |
26 | |
24 | |
27 | #define rxvt_codeset_conv_iso8859_11 rxvt_codeset_conv_unknown |
25 | #define cs_iso8859_11_from_unicode cs_unknown_from_unicode |
|
|
26 | #define cs_iso8859_11_to_unicode cs_unknown_to_unicode |
28 | |
27 | |
29 | #endif |
28 | #endif |