diff options
| author | Kenichi Handa | 2009-06-30 02:05:05 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-06-30 02:05:05 +0000 |
| commit | 565b46444831dd54899655bc6edeb58c1046a302 (patch) | |
| tree | 225b788aeb2bfab1561ef0f2e81a10942ae12c0d | |
| parent | 99b070c5fa2856a644e36e5984a7d61f64bf2d9c (diff) | |
| download | emacs-565b46444831dd54899655bc6edeb58c1046a302.tar.gz emacs-565b46444831dd54899655bc6edeb58c1046a302.zip | |
("Chinese-GB", "Chinese-BIG5")
("Chinese-CNS", "Chinese-EUC-TW", "Chinese-GBK"): Add a
setup-funcion to make char-widht-table suitable for respective
environments.
| -rw-r--r-- | lisp/language/chinese.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lisp/language/chinese.el b/lisp/language/chinese.el index 9a6aa51c963..66136035714 100644 --- a/lisp/language/chinese.el +++ b/lisp/language/chinese.el | |||
| @@ -107,6 +107,9 @@ | |||
| 107 | (set-language-info-alist | 107 | (set-language-info-alist |
| 108 | "Chinese-GB" '((charset chinese-gb2312 chinese-sisheng) | 108 | "Chinese-GB" '((charset chinese-gb2312 chinese-sisheng) |
| 109 | (iso639-language . zh) | 109 | (iso639-language . zh) |
| 110 | (setup-function . (lambda () | ||
| 111 | (use-cjk-char-width-table 'zh_CN))) | ||
| 112 | (exit-function . use-default-char-width-table) | ||
| 110 | (coding-system chinese-iso-8bit iso-2022-cn chinese-hz) | 113 | (coding-system chinese-iso-8bit iso-2022-cn chinese-hz) |
| 111 | (coding-priority chinese-iso-8bit chinese-big5 iso-2022-cn) | 114 | (coding-priority chinese-iso-8bit chinese-big5 iso-2022-cn) |
| 112 | (input-method . "chinese-py-punct") | 115 | (input-method . "chinese-py-punct") |
| @@ -134,6 +137,9 @@ | |||
| 134 | (set-language-info-alist | 137 | (set-language-info-alist |
| 135 | "Chinese-BIG5" '((charset chinese-big5-1 chinese-big5-2) | 138 | "Chinese-BIG5" '((charset chinese-big5-1 chinese-big5-2) |
| 136 | (iso639-language . zh) | 139 | (iso639-language . zh) |
| 140 | (setup-function . (lambda () | ||
| 141 | (use-cjk-char-width-table 'zh_HK))) | ||
| 142 | (exit-function . use-default-char-width-table) | ||
| 137 | (coding-system chinese-big5 chinese-iso-7bit) | 143 | (coding-system chinese-big5 chinese-iso-7bit) |
| 138 | (coding-priority chinese-big5 iso-2022-cn chinese-iso-8bit) | 144 | (coding-priority chinese-big5 iso-2022-cn chinese-iso-8bit) |
| 139 | (input-method . "chinese-py-punct-b5") | 145 | (input-method . "chinese-py-punct-b5") |
| @@ -186,6 +192,9 @@ | |||
| 186 | chinese-cns11643-5 chinese-cns11643-6 | 192 | chinese-cns11643-5 chinese-cns11643-6 |
| 187 | chinese-cns11643-7) | 193 | chinese-cns11643-7) |
| 188 | (iso639-language . zh) | 194 | (iso639-language . zh) |
| 195 | (setup-function . (lambda () | ||
| 196 | (use-cjk-char-width-table 'zh_TW))) | ||
| 197 | (exit-function . use-default-char-width-table) | ||
| 189 | (coding-system iso-2022-cn euc-tw) | 198 | (coding-system iso-2022-cn euc-tw) |
| 190 | (coding-priority iso-2022-cn euc-tw chinese-big5 | 199 | (coding-priority iso-2022-cn euc-tw chinese-big5 |
| 191 | chinese-iso-8bit) | 200 | chinese-iso-8bit) |
| @@ -203,6 +212,9 @@ accepts Big5 for input also (which is then converted to CNS).")) | |||
| 203 | chinese-cns11643-5 chinese-cns11643-6 | 212 | chinese-cns11643-5 chinese-cns11643-6 |
| 204 | chinese-cns11643-7 chinese-big5-1 chinese-big5-2) | 213 | chinese-cns11643-7 chinese-big5-1 chinese-big5-2) |
| 205 | (iso639-language . zh) | 214 | (iso639-language . zh) |
| 215 | (setup-function . (lambda () | ||
| 216 | (use-cjk-char-width-table 'zh_TW))) | ||
| 217 | (exit-function . use-default-char-width-table) | ||
| 206 | (coding-system euc-tw iso-2022-cn) | 218 | (coding-system euc-tw iso-2022-cn) |
| 207 | (coding-priority euc-tw chinese-big5 iso-2022-cn | 219 | (coding-priority euc-tw chinese-big5 iso-2022-cn |
| 208 | chinese-iso-8bit) | 220 | chinese-iso-8bit) |
| @@ -230,6 +242,9 @@ converted to CNS).")) | |||
| 230 | (set-language-info-alist | 242 | (set-language-info-alist |
| 231 | "Chinese-GBK" '((charset chinese-gbk) | 243 | "Chinese-GBK" '((charset chinese-gbk) |
| 232 | (iso639-language . zh) | 244 | (iso639-language . zh) |
| 245 | (setup-function . (lambda () | ||
| 246 | (use-cjk-char-width-table 'zh_CN))) | ||
| 247 | (exit-function . use-default-char-width-table) | ||
| 233 | (coding-system chinese-gbk) | 248 | (coding-system chinese-gbk) |
| 234 | (coding-priority gbk iso-2022-cn chinese-big5 | 249 | (coding-priority gbk iso-2022-cn chinese-big5 |
| 235 | chinese-iso-8bit) ; fixme? | 250 | chinese-iso-8bit) ; fixme? |