ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/table/iso8859_7.h
Revision: 1.4
Committed: Wed Aug 4 03:29:29 2004 UTC (19 years, 10 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-6_0, rel-4_8, rel-4_9, rel-4_4, rel-4_6, rel-4_7, rel-4_0, rel-4_1, rel-4_2, rel-4_3, rel-5_5, rel-5_4, rel-5_7, rel-5_1, rel-5_0, rel-5_3, rel-5_2, rel-5_9, rel-5_8, rel-3_7, rel-3_6, rel-3_5, rel-3_4, rel-3_8
Changes since 1.3: +4 -5 lines
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_7_f_0[] = {
7 0xa0, 0x00, 0x00, 0xa3, 0x00, 0x00, 0xa6, 0xa7, 0xa8, 0xa9, 0x00, 0xab, 0xac, 0xad, 0x00, 0x00,
8 0xb0, 0xb1, 0xb2, 0xb3, 0x00, 0x00, 0x00, 0xb7, 0x00, 0x00, 0x00, 0xbb, 0x00, 0xbd
9 };
10 static const uint8_t iso8859_7_f_768[] = {
11 0xb4, 0xb5, 0xb6, 0x00, 0xb8, 0xb9, 0xba, 0x00, 0xbc, 0x00, 0xbe, 0xbf, 0xc0, 0xc1, 0xc2, 0xc3,
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,
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
16 };
17
18 static uint32_t cs_iso8859_7_from_unicode (unicode_t unicode) {
19 if (unicode <= 0x009f) return unicode;
20 if (unicode == 0x2015) return 0x00af;
21 if (unicode == 0x2018) return 0x00a1;
22 if (unicode == 0x2019) return 0x00a2;
23 if (0x00a0 <= unicode && unicode <= 0x00bd)
24 return iso8859_7_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_7_f_0[unicode - 0x00a0];
25 if (0x0384 <= unicode && unicode <= 0x03ce)
26 return iso8859_7_f_768[unicode - 0x0384] == 0 ? NOCHAR : iso8859_7_f_768[unicode - 0x0384];
27 return NOCHAR;
28 }
29
30 #else
31
32 #define cs_iso8859_7_from_unicode cs_unknown_from_unicode
33 #define cs_iso8859_7_to_unicode cs_unknown_to_unicode
34
35 #endif