… | |
… | |
13 | 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, 0xe0, 0xe1, 0xe2, 0xe3, |
13 | 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, 0xe0, 0xe1, 0xe2, 0xe3, |
14 | 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, 0xf1, 0xf2, 0xf3, |
14 | 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, 0xf1, 0xf2, 0xf3, |
15 | 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe |
15 | 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe |
16 | }; |
16 | }; |
17 | |
17 | |
18 | struct rxvt_codeset_conv_iso8859_7 : rxvt_codeset_conv { |
|
|
19 | uint32_t from_unicode (unicode_t unicode) const { |
18 | static uint32_t cs_iso8859_7_from_unicode (unicode_t unicode) { |
20 | if (unicode <= 0x009f) return unicode; |
19 | if (unicode <= 0x009f) return unicode; |
21 | if (unicode == 0x2015) return 0x00af; |
20 | if (unicode == 0x2015) return 0x00af; |
22 | if (unicode == 0x2018) return 0x00a1; |
21 | if (unicode == 0x2018) return 0x00a1; |
23 | if (unicode == 0x2019) return 0x00a2; |
22 | if (unicode == 0x2019) return 0x00a2; |
24 | if (0x00a0 <= unicode && unicode <= 0x00bd) |
23 | if (0x00a0 <= unicode && unicode <= 0x00bd) |
25 | return iso8859_7_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_7_f_0[unicode - 0x00a0]; |
24 | return iso8859_7_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_7_f_0[unicode - 0x00a0]; |
26 | if (0x0384 <= unicode && unicode <= 0x03ce) |
25 | if (0x0384 <= unicode && unicode <= 0x03ce) |
27 | return iso8859_7_f_768[unicode - 0x0384] == 0 ? NOCHAR : iso8859_7_f_768[unicode - 0x0384]; |
26 | return iso8859_7_f_768[unicode - 0x0384] == 0 ? NOCHAR : iso8859_7_f_768[unicode - 0x0384]; |
28 | return NOCHAR; |
27 | return NOCHAR; |
29 | } |
28 | } |
30 | } rxvt_codeset_conv_iso8859_7; |
|
|
31 | |
29 | |
32 | #else |
30 | #else |
33 | |
31 | |
34 | #define rxvt_codeset_conv_iso8859_7 rxvt_codeset_conv_unknown |
32 | #define cs_iso8859_7_from_unicode cs_unknown_from_unicode |
|
|
33 | #define cs_iso8859_7_to_unicode cs_unknown_to_unicode |
35 | |
34 | |
36 | #endif |
35 | #endif |