ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/table/iso8859_6.h
Revision: 1.3
Committed: Mon Mar 15 00:27:13 2004 UTC (20 years, 3 months ago) by pcg
Content type: text/plain
Branch: MAIN
CVS Tags: rel-2_8, rel-2_7, rel-2_4, rel-2_5, rel-3_3, rel-3_2, rel-3_0
Changes since 1.1: +1 -16 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 pcg 1.1 //
2     // AUTOMATICALLLY GENERATED by gentables
3     //
4     #ifdef ENCODING_EU
5    
6     static const uint8_t iso8859_6_f_1536[] = {
7     0xac, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbb,
8     0x00, 0x00, 0x00, 0xbf, 0x00, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb,
9     0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0x00,
10     0x00, 0x00, 0x00, 0x00, 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb,
11     0xec, 0xed, 0xee, 0xef, 0xf0, 0xf1, 0xf2
12     };
13    
14     struct rxvt_codeset_conv_iso8859_6 : rxvt_codeset_conv {
15 pcg 1.3 uint32_t from_unicode (unicode_t unicode) const {
16 pcg 1.1 if (unicode <= 0x009f) return unicode;
17     if (unicode == 0x00a0) return 0x00a0;
18     if (unicode == 0x00a4) return 0x00a4;
19     if (unicode == 0x00ad) return 0x00ad;
20     if (0x060c <= unicode && unicode <= 0x0652)
21     return iso8859_6_f_1536[unicode - 0x060c] == 0 ? NOCHAR : iso8859_6_f_1536[unicode - 0x060c];
22     return NOCHAR;
23     }
24     } rxvt_codeset_conv_iso8859_6;
25    
26     #else
27    
28     #define rxvt_codeset_conv_iso8859_6 rxvt_codeset_conv_unknown
29    
30     #endif