1 | // |
1 | // |
2 | // AUTOMATICALLLY GENERATED by gentables |
2 | // AUTOMATICALLLY GENERATED by gentables |
3 | // |
3 | // |
4 | #ifdef ENCODING_CN_EXT |
4 | #ifdef ENCODING_ZH_EXT |
5 | |
5 | |
6 | static const uint16_t big5_plus_f_0[] = { |
6 | static const uint16_t big5_plus_f_0[] = { |
7 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
7 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
8 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
8 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
9 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
9 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
… | |
… | |
2306 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
2306 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
2307 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, big5_plus_f_254, big5_plus_f_255 |
2307 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, big5_plus_f_254, big5_plus_f_255 |
2308 | }; |
2308 | }; |
2309 | |
2309 | |
2310 | |
2310 | |
2311 | struct rxvt_codeset_conv_big5_plus : rxvt_codeset_conv { |
|
|
2312 | uint32_t from_unicode (unicode_t unicode) const { |
2311 | static uint32_t cs_big5_plus_from_unicode (unicode_t unicode) { |
2313 | if (unicode <= 0x007f) return unicode; |
2312 | if (unicode <= 0x007f) return unicode; |
2314 | if (unicode == 0x2605) return 0xa1b9; |
2313 | if (unicode == 0x2605) return 0xa1b9; |
2315 | if (unicode == 0x2606) return 0xa1b8; |
2314 | if (unicode == 0x2606) return 0xa1b8; |
2316 | if (unicode == 0x2640) return 0xa1f0; |
2315 | if (unicode == 0x2640) return 0xa1f0; |
2317 | if (unicode == 0x2642) return 0xa1f1; |
2316 | if (unicode == 0x2642) return 0xa1f1; |
… | |
… | |
2326 | && big5_plus_f_i[h - 0x00]) |
2325 | && big5_plus_f_i[h - 0x00]) |
2327 | return big5_plus_f_i[h - 0x00][l - 0x00] |
2326 | return big5_plus_f_i[h - 0x00][l - 0x00] |
2328 | ? big5_plus_f_i[h - 0x00][l - 0x00] |
2327 | ? big5_plus_f_i[h - 0x00][l - 0x00] |
2329 | : NOCHAR; |
2328 | : NOCHAR; |
2330 | return NOCHAR; |
2329 | return NOCHAR; |
2331 | } |
2330 | } |
2332 | } rxvt_codeset_conv_big5_plus; |
|
|
2333 | |
2331 | |
2334 | #else |
2332 | #else |
2335 | |
2333 | |
2336 | #define rxvt_codeset_conv_big5_plus rxvt_codeset_conv_unknown |
2334 | #define cs_big5_plus_from_unicode cs_unknown_from_unicode |
|
|
2335 | #define cs_big5_plus_to_unicode cs_unknown_to_unicode |
2337 | |
2336 | |
2338 | #endif |
2337 | #endif |