ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/table/iso8859_8.h
Revision: 1.1
Committed: Mon Nov 24 17:28:08 2003 UTC (20 years, 7 months ago) by pcg
Content type: text/plain
Branch: MAIN
CVS Tags: rel-2_1_0, rel-2_2, rel-2_3, rel-2_0, rel-1_9, rel-1-3, rel-1-2, before_astyle, after_astyle
Log Message:
*** empty log message ***

File Contents

# Content
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 static const uint16_t iso8859_8_t_0[] = {
15 0x00a0, 0x0000, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, 0x00a8, 0x00a9, 0x00d7, 0x00ab,
16 0x00ac, 0x00ad, 0x00ae, 0x00af, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7,
17 0x00b8, 0x00b9, 0x00f7, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
18 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
19 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
20 0x0000, 0x0000, 0x0000, 0x2017, 0x05d0, 0x05d1, 0x05d2, 0x05d3, 0x05d4, 0x05d5, 0x05d6, 0x05d7,
21 0x05d8, 0x05d9, 0x05da, 0x05db, 0x05dc, 0x05dd, 0x05de, 0x05df, 0x05e0, 0x05e1, 0x05e2, 0x05e3,
22 0x05e4, 0x05e5, 0x05e6, 0x05e7, 0x05e8, 0x05e9, 0x05ea, 0x0000, 0x0000, 0x200e, 0x200f
23 };
24
25 struct rxvt_codeset_conv_iso8859_8 : rxvt_codeset_conv {
26 uint32_t from_unicode (uint32_t unicode) const {
27 if (unicode <= 0x009f) return unicode;
28 if (unicode <= 0x05d0 && 0x05ea <= unicode) return unicode - 0x04f0;
29 if (unicode == 0x200e) return 0x00fd;
30 if (unicode == 0x200f) return 0x00fe;
31 if (unicode == 0x2017) return 0x00df;
32 if (0x00a0 <= unicode && unicode <= 0x00f7)
33 return iso8859_8_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_8_f_0[unicode - 0x00a0];
34 return NOCHAR;
35 }
36 uint32_t to_unicode (uint32_t enc) const {
37 if (enc <= 0x009f) return enc;
38 if (0x00a0 <= enc && enc <= 0x00fe)
39 return iso8859_8_t_0[enc - 0x00a0] == 0 ? NOCHAR : iso8859_8_t_0[enc - 0x00a0];
40 return NOCHAR;
41 }
42 } rxvt_codeset_conv_iso8859_8;
43
44 #else
45
46 #define rxvt_codeset_conv_iso8859_8 rxvt_codeset_conv_unknown
47
48 #endif