From: tomo Date: Mon, 4 Oct 1999 10:06:47 +0000 (+0000) Subject: (MIN_CHAR_OBS_94x94): New macro. X-Git-Tag: r21-2-19-utf-2000-0_8-2~7 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a098f4d83ec4af9ee239dd94651c9b83c58ac7b9;p=chise%2Fxemacs-chise.git.1 (MIN_CHAR_OBS_94x94): New macro. (MAX_CHAR_OBS_94x94): New macro. (breakup_char_1): Support obsolete XEmacs-UCS private code space for 94x94 sets. --- diff --git a/src/char-ucs.h b/src/char-ucs.h index abfb6f8..395cf6c 100644 --- a/src/char-ucs.h +++ b/src/char-ucs.h @@ -359,6 +359,9 @@ CHARSET_BY_LEADING_BYTE (Charset_ID lb) #define MIN_CHAR_HALFWIDTH_KATAKANA 0xFF61 #define MAX_CHAR_HALFWIDTH_KATAKANA 0xFF9F +#define MIN_CHAR_OBS_94x94 0xE00000 +#define MAX_CHAR_OBS_94x94 (0xE00000 + 94 * 94 * 14 - 1) + #define MIN_CHAR_94 0xE90940 #define MAX_CHAR_94 (MIN_CHAR_94 + 94 * 80 - 1) #define MIN_CHAR_96 (MIN_CHAR_94 + 94 * 80) @@ -461,7 +464,7 @@ INLINE void breakup_char_1 (Emchar c, Lisp_Object *charset, int *c1, int *c2); INLINE void breakup_char_1 (Emchar c, Lisp_Object *charset, int *c1, int *c2) { - if (c < MIN_CHAR_94) + if (c < MIN_CHAR_OBS_94x94) { Lisp_Object charsets = Vdefault_coded_charset_priority_list; while (!EQ (charsets, Qnil)) @@ -532,6 +535,15 @@ breakup_char_1 (Emchar c, Lisp_Object *charset, int *c1, int *c2) *c2 = c & 0xff; } } + else if (c <= MAX_CHAR_OBS_94x94) + { + *charset + = CHARSET_BY_ATTRIBUTES (CHARSET_TYPE_94X94, + ((c - MIN_CHAR_OBS_94x94) / (94 * 94)) + '@', + CHARSET_LEFT_TO_RIGHT); + *c1 = (((c - MIN_CHAR_OBS_94x94) / 94) % 94) + 33; + *c2 = ((c - MIN_CHAR_OBS_94x94) % 94) + 33; + } else if (c <= MAX_CHAR_94) { *charset