| 1 |
pcg |
1.1 |
// |
| 2 |
|
|
// AUTOMATICALLLY GENERATED by gentables |
| 3 |
|
|
// |
| 4 |
|
|
#ifdef ENCODING_EU |
| 5 |
|
|
|
| 6 |
|
|
static const uint8_t iso8859_13_f_0[] = { |
| 7 |
|
|
0xa0, 0x00, 0xa2, 0xa3, 0xa4, 0x00, 0xa6, 0xa7, 0x00, 0xa9, 0x00, 0xab, 0xac, 0xad, 0xae, 0x00, |
| 8 |
|
|
0xb0, 0xb1, 0xb2, 0xb3, 0x00, 0xb5, 0xb6, 0xb7, 0x00, 0xb9, 0x00, 0xbb, 0xbc, 0xbd, 0xbe, 0x00, |
| 9 |
|
|
0x00, 0x00, 0x00, 0x00, 0xc4, 0xc5, 0xaf, 0x00, 0x00, 0xc9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 10 |
|
|
0x00, 0x00, 0x00, 0xd3, 0x00, 0xd5, 0xd6, 0xd7, 0xa8, 0x00, 0x00, 0x00, 0xdc, 0x00, 0x00, 0xdf, |
| 11 |
|
|
0x00, 0x00, 0x00, 0x00, 0xe4, 0xe5, 0xbf, 0x00, 0x00, 0xe9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 12 |
|
|
0x00, 0x00, 0x00, 0xf3, 0x00, 0xf5, 0xf6, 0xf7, 0xb8, 0x00, 0x00, 0x00, 0xfc |
| 13 |
|
|
}; |
| 14 |
|
|
static const uint8_t iso8859_13_f_256[] = { |
| 15 |
|
|
0xc2, 0xe2, 0x00, 0x00, 0xc0, 0xe0, 0xc3, 0xe3, 0x00, 0x00, 0x00, 0x00, 0xc8, 0xe8, 0x00, 0x00, |
| 16 |
|
|
0x00, 0x00, 0xc7, 0xe7, 0x00, 0x00, 0xcb, 0xeb, 0xc6, 0xe6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 17 |
|
|
0x00, 0x00, 0xcc, 0xec, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xce, 0xee, 0x00, 0x00, 0xc1, 0xe1, |
| 18 |
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xcd, 0xed, 0x00, 0x00, 0x00, 0xcf, 0xef, 0x00, 0x00, 0x00, |
| 19 |
|
|
0x00, 0xd9, 0xf9, 0xd1, 0xf1, 0xd2, 0xf2, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd4, 0xf4, 0x00, 0x00, |
| 20 |
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xaa, 0xba, 0x00, 0x00, 0xda, 0xfa, 0x00, 0x00, 0x00, 0x00, |
| 21 |
|
|
0xd0, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdb, 0xfb, 0x00, 0x00, 0x00, 0x00, |
| 22 |
|
|
0x00, 0x00, 0xd8, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0xca, 0xea, 0xdd, 0xfd, 0xde, 0xfe |
| 23 |
|
|
}; |
| 24 |
|
|
|
| 25 |
|
|
struct rxvt_codeset_conv_iso8859_13 : rxvt_codeset_conv { |
| 26 |
pcg |
1.3 |
uint32_t from_unicode (unicode_t unicode) const { |
| 27 |
pcg |
1.1 |
if (unicode <= 0x009f) return unicode; |
| 28 |
|
|
if (unicode == 0x2019) return 0x00ff; |
| 29 |
|
|
if (unicode == 0x201c) return 0x00b4; |
| 30 |
|
|
if (unicode == 0x201d) return 0x00a1; |
| 31 |
|
|
if (unicode == 0x201e) return 0x00a5; |
| 32 |
|
|
if (0x00a0 <= unicode && unicode <= 0x00fc) |
| 33 |
|
|
return iso8859_13_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_13_f_0[unicode - 0x00a0]; |
| 34 |
|
|
if (0x0100 <= unicode && unicode <= 0x017e) |
| 35 |
|
|
return iso8859_13_f_256[unicode - 0x0100] == 0 ? NOCHAR : iso8859_13_f_256[unicode - 0x0100]; |
| 36 |
|
|
return NOCHAR; |
| 37 |
|
|
} |
| 38 |
|
|
} rxvt_codeset_conv_iso8859_13; |
| 39 |
|
|
|
| 40 |
|
|
#else |
| 41 |
|
|
|
| 42 |
|
|
#define rxvt_codeset_conv_iso8859_13 rxvt_codeset_conv_unknown |
| 43 |
|
|
|
| 44 |
|
|
#endif |