ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/table/iso8859_7.h
(Generate patch)

Comparing rxvt-unicode/src/table/iso8859_7.h (file contents):
Revision 1.1 by pcg, Mon Nov 24 17:28:08 2003 UTC vs.
Revision 1.4 by root, Wed Aug 4 03:29:29 2004 UTC

12 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0x00, 0xd3, 12 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0x00, 0xd3,
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};
17static const uint16_t iso8859_7_t_0[] = {
18 0x00a0, 0x2018, 0x2019, 0x00a3, 0x0000, 0x0000, 0x00a6, 0x00a7, 0x00a8, 0x00a9, 0x0000, 0x00ab,
19 0x00ac, 0x00ad, 0x0000, 0x2015, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x0384, 0x0385, 0x0386, 0x00b7,
20 0x0388, 0x0389, 0x038a, 0x00bb, 0x038c, 0x00bd, 0x038e, 0x038f, 0x0390, 0x0391, 0x0392, 0x0393,
21 0x0394, 0x0395, 0x0396, 0x0397, 0x0398, 0x0399, 0x039a, 0x039b, 0x039c, 0x039d, 0x039e, 0x039f,
22 0x03a0, 0x03a1, 0x0000, 0x03a3, 0x03a4, 0x03a5, 0x03a6, 0x03a7, 0x03a8, 0x03a9, 0x03aa, 0x03ab,
23 0x03ac, 0x03ad, 0x03ae, 0x03af, 0x03b0, 0x03b1, 0x03b2, 0x03b3, 0x03b4, 0x03b5, 0x03b6, 0x03b7,
24 0x03b8, 0x03b9, 0x03ba, 0x03bb, 0x03bc, 0x03bd, 0x03be, 0x03bf, 0x03c0, 0x03c1, 0x03c2, 0x03c3,
25 0x03c4, 0x03c5, 0x03c6, 0x03c7, 0x03c8, 0x03c9, 0x03ca, 0x03cb, 0x03cc, 0x03cd, 0x03ce
26};
27 17
28struct rxvt_codeset_conv_iso8859_7 : rxvt_codeset_conv { 18static uint32_t cs_iso8859_7_from_unicode (unicode_t unicode) {
29 uint32_t from_unicode (uint32_t unicode) const {
30 if (unicode <= 0x009f) return unicode; 19 if (unicode <= 0x009f) return unicode;
31 if (unicode == 0x2015) return 0x00af; 20 if (unicode == 0x2015) return 0x00af;
32 if (unicode == 0x2018) return 0x00a1; 21 if (unicode == 0x2018) return 0x00a1;
33 if (unicode == 0x2019) return 0x00a2; 22 if (unicode == 0x2019) return 0x00a2;
34 if (0x00a0 <= unicode && unicode <= 0x00bd) 23 if (0x00a0 <= unicode && unicode <= 0x00bd)
35 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];
36 if (0x0384 <= unicode && unicode <= 0x03ce) 25 if (0x0384 <= unicode && unicode <= 0x03ce)
37 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];
38 return NOCHAR; 27 return NOCHAR;
39 } 28}
40 uint32_t to_unicode (uint32_t enc) const {
41 if (enc <= 0x009f) return enc;
42 if (0x00a0 <= enc && enc <= 0x00fe)
43 return iso8859_7_t_0[enc - 0x00a0] == 0 ? NOCHAR : iso8859_7_t_0[enc - 0x00a0];
44 return NOCHAR;
45 }
46} rxvt_codeset_conv_iso8859_7;
47 29
48#else 30#else
49 31
50#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
51 34
52#endif 35#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines