From 426b536356acf82876025ea6651b955206eb063a Mon Sep 17 00:00:00 2001 From: tomo Date: Mon, 12 Aug 2002 14:30:28 +0000 Subject: [PATCH] (DECODE_CHAR): Delete special code for `chinese-big5-1' and `chinese-big5-2'. --- src/char-ucs.h | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/src/char-ucs.h b/src/char-ucs.h index 7759e86..b4699e9 100644 --- a/src/char-ucs.h +++ b/src/char-ucs.h @@ -694,33 +694,8 @@ DECODE_CHAR (Lisp_Object charset, int code_point) if (char_id >= 0) return char_id; - else if (XCHARSET_DIMENSION (charset) == 1) + else return decode_builtin_char (charset, code_point); - else if (EQ (charset, Vcharset_chinese_big5_1)) - { - unsigned int I - = ((code_point >> 8) - 33) * (0xFF - 0xA1) - + ((code_point & 0xFF) - 33); - unsigned char b1 = I / (0xFF - 0xA1 + 0x7F - 0x40) + 0xA1; - unsigned char b2 = I % (0xFF - 0xA1 + 0x7F - 0x40); - - b2 += b2 < 0x3F ? 0x40 : 0x62; - return DECODE_CHAR (Vcharset_chinese_big5, (b1 << 8) | b2); - } - else if (EQ (charset, Vcharset_chinese_big5_2)) - { - unsigned int I - = ((code_point >> 8) - 33) * (0xFF - 0xA1) - + ((code_point & 0xFF) - 33); - unsigned char b1, b2; - - I += (0xFF - 0xA1 + 0x7F - 0x40) * (0xC9 - 0xA1); - b1 = I / (0xFF - 0xA1 + 0x7F - 0x40) + 0xA1; - b2 = I % (0xFF - 0xA1 + 0x7F - 0x40); - b2 += b2 < 0x3F ? 0x40 : 0x62; - return DECODE_CHAR (Vcharset_chinese_big5, (b1 << 8) | b2); - } - return decode_builtin_char (charset, code_point); } /* Return a character whose charset is CHARSET and position-codes -- 1.7.10.4