| 1 |
pcg |
1.1 |
// |
| 2 |
|
|
// AUTOMATICALLLY GENERATED by gentables |
| 3 |
|
|
// |
| 4 |
|
|
#ifdef ENCODING_EU |
| 5 |
|
|
|
| 6 |
|
|
static const uint8_t iso8859_8_f_0[] = { |
| 7 |
|
|
0xa0, 0x00, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0x00, 0xab, 0xac, 0xad, 0xae, 0xaf, |
| 8 |
|
|
0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0x00, 0xbb, 0xbc, 0xbd, 0xbe, 0x00, |
| 9 |
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 10 |
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xaa, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 11 |
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 12 |
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xba |
| 13 |
|
|
}; |
| 14 |
|
|
|
| 15 |
|
|
struct rxvt_codeset_conv_iso8859_8 : rxvt_codeset_conv { |
| 16 |
pcg |
1.3 |
uint32_t from_unicode (unicode_t unicode) const { |
| 17 |
pcg |
1.1 |
if (unicode <= 0x009f) return unicode; |
| 18 |
|
|
if (unicode <= 0x05d0 && 0x05ea <= unicode) return unicode - 0x04f0; |
| 19 |
|
|
if (unicode == 0x200e) return 0x00fd; |
| 20 |
|
|
if (unicode == 0x200f) return 0x00fe; |
| 21 |
|
|
if (unicode == 0x2017) return 0x00df; |
| 22 |
|
|
if (0x00a0 <= unicode && unicode <= 0x00f7) |
| 23 |
|
|
return iso8859_8_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_8_f_0[unicode - 0x00a0]; |
| 24 |
|
|
return NOCHAR; |
| 25 |
|
|
} |
| 26 |
|
|
} rxvt_codeset_conv_iso8859_8; |
| 27 |
|
|
|
| 28 |
|
|
#else |
| 29 |
|
|
|
| 30 |
|
|
#define rxvt_codeset_conv_iso8859_8 rxvt_codeset_conv_unknown |
| 31 |
|
|
|
| 32 |
|
|
#endif |