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

Comparing rxvt-unicode/src/table/iso8859_3.h (file contents):
Revision 1.1 by pcg, Mon Nov 24 17:28:08 2003 UTC vs.
Revision 1.3 by pcg, Mon Mar 15 00:27:13 2004 UTC

19 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 19 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
20 0x00, 0x00, 0x00, 0x00, 0xde, 0xfe, 0xaa, 0xba, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 20 0x00, 0x00, 0x00, 0x00, 0xde, 0xfe, 0xaa, 0xba, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
21 0x00, 0x00, 0x00, 0x00, 0xdd, 0xfd, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 21 0x00, 0x00, 0x00, 0x00, 0xdd, 0xfd, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
22 0x00, 0x00, 0x00, 0xaf, 0xbf 22 0x00, 0x00, 0x00, 0xaf, 0xbf
23}; 23};
24static const uint16_t iso8859_3_t_0[] = {
25 0x00a0, 0x0126, 0x02d8, 0x00a3, 0x00a4, 0x0000, 0x0124, 0x00a7, 0x00a8, 0x0130, 0x015e, 0x011e,
26 0x0134, 0x00ad, 0x0000, 0x017b, 0x00b0, 0x0127, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x0125, 0x00b7,
27 0x00b8, 0x0131, 0x015f, 0x011f, 0x0135, 0x00bd, 0x0000, 0x017c, 0x00c0, 0x00c1, 0x00c2, 0x0000,
28 0x00c4, 0x010a, 0x0108, 0x00c7, 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
29 0x0000, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x0120, 0x00d6, 0x00d7, 0x011c, 0x00d9, 0x00da, 0x00db,
30 0x00dc, 0x016c, 0x015c, 0x00df, 0x00e0, 0x00e1, 0x00e2, 0x0000, 0x00e4, 0x010b, 0x0109, 0x00e7,
31 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef, 0x0000, 0x00f1, 0x00f2, 0x00f3,
32 0x00f4, 0x0121, 0x00f6, 0x00f7, 0x011d, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x016d, 0x015d, 0x02d9
33};
34 24
35struct rxvt_codeset_conv_iso8859_3 : rxvt_codeset_conv { 25struct rxvt_codeset_conv_iso8859_3 : rxvt_codeset_conv {
36 uint32_t from_unicode (uint32_t unicode) const { 26 uint32_t from_unicode (unicode_t unicode) const {
37 if (unicode <= 0x009f) return unicode; 27 if (unicode <= 0x009f) return unicode;
38 if (unicode == 0x02d8) return 0x00a2; 28 if (unicode == 0x02d8) return 0x00a2;
39 if (unicode == 0x02d9) return 0x00ff; 29 if (unicode == 0x02d9) return 0x00ff;
40 if (0x00a0 <= unicode && unicode <= 0x00fc) 30 if (0x00a0 <= unicode && unicode <= 0x00fc)
41 return iso8859_3_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_3_f_0[unicode - 0x00a0]; 31 return iso8859_3_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_3_f_0[unicode - 0x00a0];
42 if (0x0108 <= unicode && unicode <= 0x017c) 32 if (0x0108 <= unicode && unicode <= 0x017c)
43 return iso8859_3_f_256[unicode - 0x0108] == 0 ? NOCHAR : iso8859_3_f_256[unicode - 0x0108]; 33 return iso8859_3_f_256[unicode - 0x0108] == 0 ? NOCHAR : iso8859_3_f_256[unicode - 0x0108];
44 return NOCHAR; 34 return NOCHAR;
45 } 35 }
46 uint32_t to_unicode (uint32_t enc) const {
47 if (enc <= 0x009f) return enc;
48 if (0x00a0 <= enc && enc <= 0x00ff)
49 return iso8859_3_t_0[enc - 0x00a0] == 0 ? NOCHAR : iso8859_3_t_0[enc - 0x00a0];
50 return NOCHAR;
51 }
52} rxvt_codeset_conv_iso8859_3; 36} rxvt_codeset_conv_iso8859_3;
53 37
54#else 38#else
55 39
56#define rxvt_codeset_conv_iso8859_3 rxvt_codeset_conv_unknown 40#define rxvt_codeset_conv_iso8859_3 rxvt_codeset_conv_unknown

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines