… | … | ||
---|---|---|---|
2399 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, big5_f_247, 0, 0, 0, 0, 0, 0, big5_f_254, | 2399 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, big5_f_247, 0, 0, 0, 0, 0, 0, big5_f_254, |
2400 | big5_f_255 | 2400 | big5_f_255 |
2401 | }; | 2401 | }; |
2402 | 2402 | ||
2403 | 2403 | ||
2404 | struct rxvt_codeset_conv_big5 : rxvt_codeset_conv { | ||
2405 | uint32_t from_unicode (unicode_t unicode) const { | 2404 | static uint32_t cs_big5_from_unicode (unicode_t unicode) { |
2406 | if (unicode <= 0x007f) return unicode; | 2405 | if (unicode <= 0x007f) return unicode; |
2407 | if (unicode == 0x014b) return 0xc8fc; | 2406 | if (unicode == 0x014b) return 0xc8fc; |
2408 | if (unicode == 0x0153) return 0xc8fa; | 2407 | if (unicode == 0x0153) return 0xc8fa; |
2409 | if (unicode == 0x2605) return 0xa1b9; | 2408 | if (unicode == 0x2605) return 0xa1b9; |
2410 | if (unicode == 0x2606) return 0xa1b8; | 2409 | if (unicode == 0x2606) return 0xa1b8; |
… | … | ||
2425 | && big5_f_i[h - 0x00]) | 2424 | && big5_f_i[h - 0x00]) |
2426 | return big5_f_i[h - 0x00][l - 0x00] | 2425 | return big5_f_i[h - 0x00][l - 0x00] |
2427 | ? big5_f_i[h - 0x00][l - 0x00] | 2426 | ? big5_f_i[h - 0x00][l - 0x00] |
2428 | : NOCHAR; | 2427 | : NOCHAR; |
2429 | return NOCHAR; | 2428 | return NOCHAR; |
2430 | } | 2429 | } |
2431 | } rxvt_codeset_conv_big5; | ||
2432 | 2430 | ||
2433 | #else | 2431 | #else |
2434 | 2432 | ||
2435 | #define rxvt_codeset_conv_big5 rxvt_codeset_conv_unknown | 2433 | #define cs_big5_from_unicode cs_unknown_from_unicode |
2434 | #define cs_big5_to_unicode cs_unknown_to_unicode | ||
2436 | 2435 | ||
2437 | #endif | 2436 | #endif |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |