ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/table/iso8859_7.h
Revision: 1.5
Committed: Mon Dec 26 23:02:34 2005 UTC (18 years, 5 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: before_dynamic_fontidx, rxvt-unicode-rel-9_29, rxvt-unicode-rel-9_26, rxvt-unicode-rel-9_25, rxvt-unicode-rel-9_22, rxvt-unicode-rel-9_20, rxvt-unicode-rel-9_21, rel-9_14, rel-9_11, rel-9_10, rel-9_12, rel-8_5a, rxvt-unicode-rel-9_19, rxvt-unicode-rel-9_18, rxvt-unicode-rel-9_17, rxvt-unicode-rel-9_16, rxvt-unicode-rel-9_15, rel-6_2, rel-6_3, rel-6_1, rel-7_3a, rel-9_0, rel-7_3, rel-7_2, rel-7_1, rel-7_0, rel-7_7, rel-7_6, rel-7_5, rel-7_4, rel-7_9, rel-7_8, rel-8_8, rel-8_9, rel-8_0, rel-8_1, rel-8_2, rel-8_3, rel-8_4, rel-8_6, rel-8_7, dynamic_fontidx, rxvt-unicode-rel-9_30, rel-9_09, rel-9_02, rel-9_01, rel-9_06, rel-9_07, rel-9_05, HEAD
Changes since 1.4: +10 -7 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 0xaa, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb4, 0xb5, 0xb6, 0x00, 0xb8, 0xb9,
12 0xba, 0x00, 0xbc, 0x00, 0xbe, 0xbf, 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9,
13 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0x00, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9,
14 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9,
15 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9,
16 0xfa, 0xfb, 0xfc, 0xfd, 0xfe
17 };
18
19 static uint32_t cs_iso8859_7_from_unicode (unicode_t unicode) {
20 if (unicode <= 0x009f) return unicode;
21 if (unicode == 0x2015) return 0x00af;
22 if (unicode == 0x2018) return 0x00a1;
23 if (unicode == 0x2019) return 0x00a2;
24 if (unicode == 0x20ac) return 0x00a4;
25 if (unicode == 0x20af) return 0x00a5;
26 if (0x00a0 <= unicode && unicode <= 0x00bd)
27 return iso8859_7_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_7_f_0[unicode - 0x00a0];
28 if (0x037a <= unicode && unicode <= 0x03ce)
29 return iso8859_7_f_768[unicode - 0x037a] == 0 ? NOCHAR : iso8859_7_f_768[unicode - 0x037a];
30 return NOCHAR;
31 }
32
33 #else
34
35 #define cs_iso8859_7_from_unicode cs_unknown_from_unicode
36 #define cs_iso8859_7_to_unicode cs_unknown_to_unicode
37
38 #endif