diff options
| author | Kenichi Handa | 1997-06-10 01:08:21 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-06-10 01:08:21 +0000 |
| commit | 4b9121fc866aa8820d8844079e4fef3f5200b430 (patch) | |
| tree | 6e2f3c0303fb6f2d20415fb04a46f20f0d9b2aa5 | |
| parent | c47cd165b03a307f85d288ad685a0640c791e342 (diff) | |
| download | emacs-4b9121fc866aa8820d8844079e4fef3f5200b430.tar.gz emacs-4b9121fc866aa8820d8844079e4fef3f5200b430.zip | |
Adjusted for coding system name change.
| -rw-r--r-- | lisp/language/chinese.el | 38 | ||||
| -rw-r--r-- | lisp/language/cyril-util.el | 9 | ||||
| -rw-r--r-- | lisp/language/cyrillic.el | 13 | ||||
| -rw-r--r-- | lisp/language/devan-util.el | 2 | ||||
| -rw-r--r-- | lisp/language/devanagari.el | 14 | ||||
| -rw-r--r-- | lisp/language/english.el | 24 | ||||
| -rw-r--r-- | lisp/language/european.el | 48 | ||||
| -rw-r--r-- | lisp/language/greek.el | 9 | ||||
| -rw-r--r-- | lisp/language/hebrew.el | 11 | ||||
| -rw-r--r-- | lisp/language/japan-util.el | 19 | ||||
| -rw-r--r-- | lisp/language/japanese.el | 30 | ||||
| -rw-r--r-- | lisp/language/korean.el | 19 | ||||
| -rw-r--r-- | lisp/language/lao-util.el | 2 | ||||
| -rw-r--r-- | lisp/language/lao.el | 4 | ||||
| -rw-r--r-- | lisp/language/thai-util.el | 2 | ||||
| -rw-r--r-- | lisp/language/thai.el | 13 | ||||
| -rw-r--r-- | lisp/language/tibetan.el | 2 | ||||
| -rw-r--r-- | lisp/language/viet-util.el | 5 | ||||
| -rw-r--r-- | lisp/language/vietnamese.el | 25 |
19 files changed, 165 insertions, 124 deletions
diff --git a/lisp/language/chinese.el b/lisp/language/chinese.el index f1f41f37a18..9718fe2dcc3 100644 --- a/lisp/language/chinese.el +++ b/lisp/language/chinese.el | |||
| @@ -34,8 +34,8 @@ | |||
| 34 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 34 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 35 | 35 | ||
| 36 | (make-coding-system | 36 | (make-coding-system |
| 37 | 'iso-2022-cn 2 ?C | 37 | 'chinese-iso-7bit 2 ?C |
| 38 | "Coding system ISO-2022-CN for Chinese (GB and CNS character sets)." | 38 | "ISO 2022 based 7bit encoding for Chinese GB and CNS (MIME:ISO-2022-CN)" |
| 39 | '(ascii | 39 | '(ascii |
| 40 | (nil chinese-gb2312 chinese-cns11643-1) | 40 | (nil chinese-gb2312 chinese-cns11643-1) |
| 41 | (nil chinese-cns11643-2) | 41 | (nil chinese-cns11643-2) |
| @@ -44,7 +44,8 @@ | |||
| 44 | nil ascii-eol ascii-cntl seven locking-shift single-shift nil nil nil | 44 | nil ascii-eol ascii-cntl seven locking-shift single-shift nil nil nil |
| 45 | init-bol)) | 45 | init-bol)) |
| 46 | 46 | ||
| 47 | (define-coding-system-alias 'iso-2022-cn 'iso-2022-cn-ext) | 47 | (define-coding-system-alias 'chinese-iso-7bit 'iso-2022-cn) |
| 48 | (define-coding-system-alias 'chinese-iso-7bit 'iso-2022-cn-ext) | ||
| 48 | 49 | ||
| 49 | (define-prefix-command 'describe-chinese-environment-map) | 50 | (define-prefix-command 'describe-chinese-environment-map) |
| 50 | (define-key-after describe-language-environment-map [Chinese] | 51 | (define-key-after describe-language-environment-map [Chinese] |
| @@ -61,21 +62,23 @@ | |||
| 61 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 62 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 62 | 63 | ||
| 63 | (make-coding-system | 64 | (make-coding-system |
| 64 | 'cn-gb-2312 2 ?C | 65 | 'chinese-iso-8bit 2 ?c |
| 65 | "Coding-system of Chinese EUC (so called GB Encoding)." | 66 | "ISO 2022 based EUC encoding for Chinese GB2312 (MIME:CN-GB-2312)" |
| 66 | '((ascii t) chinese-gb2312 chinese-sisheng nil | 67 | '((ascii t) chinese-gb2312 chinese-sisheng nil |
| 67 | nil ascii-eol ascii-cntl nil nil single-shift nil)) | 68 | nil ascii-eol ascii-cntl nil nil single-shift nil)) |
| 68 | 69 | ||
| 69 | (define-coding-system-alias 'cn-gb-2312 'euc-china) | 70 | (define-coding-system-alias 'chinese-iso-8bit 'cn-gb-2312) |
| 71 | (define-coding-system-alias 'chinese-iso-8bit 'euc-china) | ||
| 70 | 72 | ||
| 71 | (make-coding-system | 73 | (make-coding-system |
| 72 | 'hz-gb-2312 0 ?z | 74 | 'chinese-hz 0 ?z |
| 73 | "Codins-system of Hz/ZW used for Chinese (GB)." | 75 | "Hz/ZW 7-bit encoding for Chinese GB2312 (MIME:HZ-GB-2312)" |
| 74 | nil) | 76 | nil) |
| 75 | (put 'hz-gb-2312 'post-read-conversion 'post-read-decode-hz) | 77 | (put 'chinese-hz 'post-read-conversion 'post-read-decode-hz) |
| 76 | (put 'hz-gb-2312 'pre-write-conversion 'pre-write-encode-hz) | 78 | (put 'chinese-hz 'pre-write-conversion 'pre-write-encode-hz) |
| 77 | 79 | ||
| 78 | (define-coding-system-alias 'hz-gb-2312 'hz) | 80 | (define-coding-system-alias 'chinese-hz 'hz-gb-2312) |
| 81 | (define-coding-system-alias 'chinese-hz 'hz) | ||
| 79 | 82 | ||
| 80 | (defun post-read-decode-hz (len) | 83 | (defun post-read-decode-hz (len) |
| 81 | (let ((pos (point))) | 84 | (let ((pos (point))) |
| @@ -113,7 +116,8 @@ | |||
| 113 | "Chinese-GB" '((setup-function . (setup-chinese-gb-environment | 116 | "Chinese-GB" '((setup-function . (setup-chinese-gb-environment |
| 114 | . setup-chinese-environment-map)) | 117 | . setup-chinese-environment-map)) |
| 115 | (charset . (chinese-gb2312 chinese-sisheng)) | 118 | (charset . (chinese-gb2312 chinese-sisheng)) |
| 116 | (coding-system . (cn-gb-2312 hz-gb-2312 iso-2022-cn)) | 119 | (coding-system |
| 120 | . (chinese-iso-8bit chinese-iso-7bit chinese-hz)) | ||
| 117 | (sample-text . "Chinese ($AVPND(B,$AFUM(;0(B,$A::So(B) $ADc:C(B") | 121 | (sample-text . "Chinese ($AVPND(B,$AFUM(;0(B,$A::So(B) $ADc:C(B") |
| 118 | (documentation . ("Support for Chinese GB2312 character set." | 122 | (documentation . ("Support for Chinese GB2312 character set." |
| 119 | . describe-chinese-environment-map)) | 123 | . describe-chinese-environment-map)) |
| @@ -124,10 +128,10 @@ | |||
| 124 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 128 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 125 | 129 | ||
| 126 | (make-coding-system | 130 | (make-coding-system |
| 127 | 'big5 3 ?B | 131 | 'chinese-big5 3 ?B "BIG5 8-bit encoding for Chinese (MIME:CN-BIG5)") |
| 128 | "Coding-system of BIG5.") | ||
| 129 | 132 | ||
| 130 | (define-coding-system-alias 'big5 'cn-big5) | 133 | (define-coding-system-alias 'chinese-big5 'big5) |
| 134 | (define-coding-system-alias 'chinese-big5 'cn-big5) | ||
| 131 | 135 | ||
| 132 | ;; Big5 font requires special encoding. | 136 | ;; Big5 font requires special encoding. |
| 133 | (define-ccl-program ccl-encode-big5-font | 137 | (define-ccl-program ccl-encode-big5-font |
| @@ -172,7 +176,7 @@ | |||
| 172 | "Chinese-BIG5" '((setup-function . (setup-chinese-big5-environment | 176 | "Chinese-BIG5" '((setup-function . (setup-chinese-big5-environment |
| 173 | . setup-chinese-environment-map)) | 177 | . setup-chinese-environment-map)) |
| 174 | (charset . (chinese-big5-1 chinese-big5-2)) | 178 | (charset . (chinese-big5-1 chinese-big5-2)) |
| 175 | (coding-system . (cn-big5 iso-2022-cn)) | 179 | (coding-system . (chinese-big5 chinese-iso-7bit)) |
| 176 | (sample-text . "Cantonese ($(0GnM$(B,$(0N]0*Hd(B) $(0*/=((B, $(0+$)p(B") | 180 | (sample-text . "Cantonese ($(0GnM$(B,$(0N]0*Hd(B) $(0*/=((B, $(0+$)p(B") |
| 177 | (documentation . ("Support for Chinese Big5 character set." | 181 | (documentation . ("Support for Chinese Big5 character set." |
| 178 | . describe-chinese-environment-map)) | 182 | . describe-chinese-environment-map)) |
| @@ -194,7 +198,7 @@ | |||
| 194 | chinese-cns11643-3 chinese-cns11643-4 | 198 | chinese-cns11643-3 chinese-cns11643-4 |
| 195 | chinese-cns11643-5 chinese-cns11643-6 | 199 | chinese-cns11643-5 chinese-cns11643-6 |
| 196 | chinese-cns11643-7)) | 200 | chinese-cns11643-7)) |
| 197 | (coding-system . (iso-2022-cn)) | 201 | (coding-system . (chinese-iso-7bit)) |
| 198 | (documentation . ("Support for Chinese CNS character sets." | 202 | (documentation . ("Support for Chinese CNS character sets." |
| 199 | . describe-chinese-environment-map)) | 203 | . describe-chinese-environment-map)) |
| 200 | )) | 204 | )) |
diff --git a/lisp/language/cyril-util.el b/lisp/language/cyril-util.el index d462e7a289e..c76d5f356bc 100644 --- a/lisp/language/cyril-util.el +++ b/lisp/language/cyril-util.el | |||
| @@ -26,18 +26,17 @@ | |||
| 26 | 26 | ||
| 27 | ;;;###autoload | 27 | ;;;###autoload |
| 28 | (defun setup-cyrillic-iso-environment () | 28 | (defun setup-cyrillic-iso-environment () |
| 29 | "Setup multilingual environment for Cyrillic (ISO-8859-5) users." | 29 | "Setup multilingual environment (MULE) for Cyrillic ISO-8859-5 users." |
| 30 | (interactive) | 30 | (interactive) |
| 31 | (setup-8-bit-environment 'cyrillic-iso8859-5 'iso-8859-5 | 31 | (setup-8-bit-environment 'cyrillic-iso8859-5 'cyrillic-iso-8bit |
| 32 | '("Cyrillic" . "quail-yawerty")) | 32 | '("Cyrillic" . "quail-yawerty")) |
| 33 | |||
| 34 | (setq primary-language "Cyrillic")) | 33 | (setq primary-language "Cyrillic")) |
| 35 | 34 | ||
| 36 | ;;;###autoload | 35 | ;;;###autoload |
| 37 | (defun setup-cyrillic-koi8-environment () | 36 | (defun setup-cyrillic-koi8-environment () |
| 38 | "Setup multilingual environment for Cyrillic (KOI8-R) users." | 37 | "Setup multilingual environment for Cyrillic (KOI8-R) users." |
| 39 | (interactive) | 38 | (interactive) |
| 40 | (setup-8-bit-environment 'cyrillic-iso8859-5 'koi8-r | 39 | (setup-8-bit-environment 'cyrillic-iso8859-5 'cyrillic-koi8 |
| 41 | '("Cyrillic" . "quail-yawerty")) | 40 | '("Cyrillic" . "quail-yawerty")) |
| 42 | 41 | ||
| 43 | (setq primary-language "Cyrillic")) | 42 | (setq primary-language "Cyrillic")) |
| @@ -46,7 +45,7 @@ | |||
| 46 | (defun setup-cyrillic-alternativnyj-environment () | 45 | (defun setup-cyrillic-alternativnyj-environment () |
| 47 | "Setup multilingual environment for Cyrillic (ALTERNATIVNYJ) users." | 46 | "Setup multilingual environment for Cyrillic (ALTERNATIVNYJ) users." |
| 48 | (interactive) | 47 | (interactive) |
| 49 | (setup-8-bit-environment 'cyrillic-iso8859-5 'alternativnyj | 48 | (setup-8-bit-environment 'cyrillic-iso8859-5 'cyrillic-alternativnyj |
| 50 | '("Cyrillic" . "quail-yawerty")) | 49 | '("Cyrillic" . "quail-yawerty")) |
| 51 | 50 | ||
| 52 | (setq primary-language "Cyrillic")) | 51 | (setq primary-language "Cyrillic")) |
diff --git a/lisp/language/cyrillic.el b/lisp/language/cyrillic.el index 787d6e19278..88489b6d611 100644 --- a/lisp/language/cyrillic.el +++ b/lisp/language/cyrillic.el | |||
| @@ -92,7 +92,7 @@ | |||
| 92 | "CCL program to encode KOI8.") | 92 | "CCL program to encode KOI8.") |
| 93 | 93 | ||
| 94 | (make-coding-system | 94 | (make-coding-system |
| 95 | 'koi8-r 4 | 95 | 'cyrillic-koi8 4 |
| 96 | ;; We used to use ?K. It is true that ?K is more strictly correct, | 96 | ;; We used to use ?K. It is true that ?K is more strictly correct, |
| 97 | ;; but it is also used for Korean. | 97 | ;; but it is also used for Korean. |
| 98 | ;; So people who use koi8 for languages other than Russian | 98 | ;; So people who use koi8 for languages other than Russian |
| @@ -100,7 +100,8 @@ | |||
| 100 | ?R "Coding-system used for KOI8." | 100 | ?R "Coding-system used for KOI8." |
| 101 | (cons ccl-decode-koi8 ccl-encode-koi8)) | 101 | (cons ccl-decode-koi8 ccl-encode-koi8)) |
| 102 | 102 | ||
| 103 | (define-coding-system-alias 'koi8-r 'koi8) | 103 | (define-coding-system-alias 'cyrillic-koi8 'koi8-r) |
| 104 | (define-coding-system-alias 'cyrillic-koi8 'koi8) | ||
| 104 | 105 | ||
| 105 | (define-ccl-program ccl-encode-koi8-font | 106 | (define-ccl-program ccl-encode-koi8-font |
| 106 | '(0 | 107 | '(0 |
| @@ -209,19 +210,19 @@ | |||
| 209 | (documentation . (t . describe-cyrillic-environment-map)))) | 210 | (documentation . (t . describe-cyrillic-environment-map)))) |
| 210 | 211 | ||
| 211 | (set-language-info-alist | 212 | (set-language-info-alist |
| 212 | "Cyrillic-KOI8" '((setup-function . (setup-cyrillic-iso-environment | 213 | "Cyrillic-KOI8" '((setup-function . (setup-cyrillic-koi8-environment |
| 213 | . setup-cyrillic-environment-map)) | 214 | . setup-cyrillic-environment-map)) |
| 214 | (charset . (cyrillic-iso8859-5)) | 215 | (charset . (cyrillic-iso8859-5)) |
| 215 | (coding-system . (koi8-4)) | 216 | (coding-system . (cyrillic-koi8)) |
| 216 | (sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!") | 217 | (sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!") |
| 217 | (documentation . (t . describe-cyrillic-environment-map)))) | 218 | (documentation . (t . describe-cyrillic-environment-map)))) |
| 218 | 219 | ||
| 219 | (set-language-info-alist | 220 | (set-language-info-alist |
| 220 | "Cyrillic-Alternativnyj" '((setup-function | 221 | "Cyrillic-Alternativnyj" '((setup-function |
| 221 | . (setup-cyrillic-iso-environment | 222 | . (setup-cyrillic-alternativnyj-environment |
| 222 | . setup-cyrillic-environment-map)) | 223 | . setup-cyrillic-environment-map)) |
| 223 | (charset . (cyrillic-iso8859-5)) | 224 | (charset . (cyrillic-iso8859-5)) |
| 224 | (coding-system . (alternativnyj)) | 225 | (coding-system . (cyrillic-alternativnyj)) |
| 225 | (sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!") | 226 | (sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!") |
| 226 | (documentation | 227 | (documentation |
| 227 | . (t . describe-cyrillic-environment-map)))) | 228 | . (t . describe-cyrillic-environment-map)))) |
diff --git a/lisp/language/devan-util.el b/lisp/language/devan-util.el index 1ba694bbced..c14730aebbe 100644 --- a/lisp/language/devan-util.el +++ b/lisp/language/devan-util.el | |||
| @@ -48,7 +48,7 @@ | |||
| 48 | (defun setup-devanagari-environment () | 48 | (defun setup-devanagari-environment () |
| 49 | "Setup multilingual environment (MULE) for languages using Devanagari." | 49 | "Setup multilingual environment (MULE) for languages using Devanagari." |
| 50 | (interactive) | 50 | (interactive) |
| 51 | (setup-8-bit-environment nil 'in-is13194-devanagari | 51 | (setup-8-bit-environment nil 'devanagari |
| 52 | '("Devanagari" . "quail-devanagari-itrans"))) | 52 | '("Devanagari" . "quail-devanagari-itrans"))) |
| 53 | 53 | ||
| 54 | ;;; Basic functions. | 54 | ;;; Basic functions. |
diff --git a/lisp/language/devanagari.el b/lisp/language/devanagari.el index f6381f71201..72e2c703144 100644 --- a/lisp/language/devanagari.el +++ b/lisp/language/devanagari.el | |||
| @@ -31,14 +31,16 @@ | |||
| 31 | ;;; Code: | 31 | ;;; Code: |
| 32 | 32 | ||
| 33 | (make-coding-system | 33 | (make-coding-system |
| 34 | 'in-is13194-devanagari 2 ?D | 34 | 'devanagari 2 ?D |
| 35 | "Coding-system used for ASCII(MSB=0) & IS13194-Devanagari(MSB=1)." | 35 | "8-bit encoding for ASCII (MSB=0) and IS13194-Devanagari (MSB=1)" |
| 36 | '((ascii t) (indian-is13194 t) nil nil | 36 | '((ascii t) (indian-is13194 t) nil nil |
| 37 | nil ascii-eol)) | 37 | nil ascii-eol)) |
| 38 | devanagari-compose-from-is13194-region | 38 | |
| 39 | (put 'in-is13194-devanagari | 39 | (define-coding-system-alias 'devanagari 'in-is13194-devanagari) |
| 40 | |||
| 41 | (put 'devanagari | ||
| 40 | 'post-read-conversion 'in-is13194-devanagari-post-read-conversion) | 42 | 'post-read-conversion 'in-is13194-devanagari-post-read-conversion) |
| 41 | (put 'in-is13194-devanagari | 43 | (put 'devanagari |
| 42 | 'pre-write-conversion 'in-is13194-devanagari-pre-write-conversion) | 44 | 'pre-write-conversion 'in-is13194-devanagari-pre-write-conversion) |
| 43 | 45 | ||
| 44 | (register-input-method | 46 | (register-input-method |
| @@ -61,7 +63,7 @@ devanagari-compose-from-is13194-region | |||
| 61 | "Devanagari" '((setup-function . (setup-devanagari-environment | 63 | "Devanagari" '((setup-function . (setup-devanagari-environment |
| 62 | . setup-indian-environment-map)) | 64 | . setup-indian-environment-map)) |
| 63 | (charset . (indian-is13194 indian-2-column indian-1-column)) | 65 | (charset . (indian-is13194 indian-2-column indian-1-column)) |
| 64 | (coding-system . (in-is13194-devanagari)) | 66 | (coding-system . (devanagari)) |
| 65 | (documentation . ("\ | 67 | (documentation . ("\ |
| 66 | Such languages using Devanagari script as Hindi and Marathi | 68 | Such languages using Devanagari script as Hindi and Marathi |
| 67 | are supported in this language environment." | 69 | are supported in this language environment." |
diff --git a/lisp/language/english.el b/lisp/language/english.el index 34fceebaaf6..74fc77021f7 100644 --- a/lisp/language/english.el +++ b/lisp/language/english.el | |||
| @@ -44,25 +44,25 @@ The default status is as follows. | |||
| 44 | bound to each category are as follows | 44 | bound to each category are as follows |
| 45 | coding category coding system | 45 | coding category coding system |
| 46 | -------------------------------------------------- | 46 | -------------------------------------------------- |
| 47 | coding-category-iso-7 iso-2022-7 | 47 | coding-category-iso-7 iso-2022-7bit |
| 48 | coding-category-iso-8-2 iso-8859-1 | 48 | coding-category-iso-8-2 iso-latin-1 |
| 49 | coding-category-iso-8-1 iso-8859-1 | 49 | coding-category-iso-8-1 iso-latin-1 |
| 50 | coding-category-iso-else iso-2022-lock | 50 | coding-category-iso-else iso-2022-7bit-lock |
| 51 | coding-category-emacs-mule emacs-mule | 51 | coding-category-emacs-mule emacs-mule |
| 52 | coding-category-binary no-conversion | 52 | coding-category-binary no-conversion |
| 53 | coding-category-sjis sjis | 53 | coding-category-sjis japanese-shift-jis |
| 54 | coding-category-big5 big5 | 54 | coding-category-big5 chinese-big5 |
| 55 | " | 55 | " |
| 56 | (interactive) | 56 | (interactive) |
| 57 | (setq-default enable-multibyte-characters t) | 57 | (setq-default enable-multibyte-characters t) |
| 58 | 58 | ||
| 59 | (setq coding-category-iso-7 'iso-2022-7 | 59 | (setq coding-category-iso-7 'iso-2022-7bit |
| 60 | coding-category-iso-8-1 'iso-8859-1 | 60 | coding-category-iso-8-1 'iso-latin-1 |
| 61 | coding-category-iso-8-2 'iso-8859-1 | 61 | coding-category-iso-8-2 'iso-latin-1 |
| 62 | coding-category-iso-else 'iso-2022-lock | 62 | coding-category-iso-else 'iso-2022-7bit-lock |
| 63 | coding-category-emacs-mule 'emacs-mule | 63 | coding-category-emacs-mule 'emacs-mule |
| 64 | coding-category-sjis 'sjis | 64 | coding-category-sjis 'japanese-shift-jis |
| 65 | coding-category-big5 'big5 | 65 | coding-category-big5 'chinese-big5 |
| 66 | coding-category-binary 'no-conversion) | 66 | coding-category-binary 'no-conversion) |
| 67 | 67 | ||
| 68 | (set-coding-priority | 68 | (set-coding-priority |
diff --git a/lisp/language/european.el b/lisp/language/european.el index 9c1903a5c59..e68c2e18972 100644 --- a/lisp/language/european.el +++ b/lisp/language/european.el | |||
| @@ -47,7 +47,7 @@ | |||
| 47 | coding-category-iso-8-2 coding-system) | 47 | coding-category-iso-8-2 coding-system) |
| 48 | (set-terminal-coding-system-internal coding-system) | 48 | (set-terminal-coding-system-internal coding-system) |
| 49 | (set-keyboard-coding-system-internal coding-system) | 49 | (set-keyboard-coding-system-internal coding-system) |
| 50 | (setq sendmail-coding-system nil | 50 | (setq sendmail-coding-system coding-system |
| 51 | rmail-file-coding-system coding-system) | 51 | rmail-file-coding-system coding-system) |
| 52 | 52 | ||
| 53 | (if charset | 53 | (if charset |
| @@ -68,13 +68,13 @@ | |||
| 68 | ;; Latin-1 (ISO-8859-1) | 68 | ;; Latin-1 (ISO-8859-1) |
| 69 | 69 | ||
| 70 | (make-coding-system | 70 | (make-coding-system |
| 71 | 'iso-8859-1 2 ?1 | 71 | 'iso-latin-1 2 ?1 |
| 72 | "MIME ISO-8859-1 Compound Text Encoding." | 72 | "ISO 2022 based 8-bit encoding (MIME:ISO-8859-1, Compound Text Encoding)" |
| 73 | '((ascii t) (latin-iso8859-1 t) nil nil | 73 | '((ascii t) (latin-iso8859-1 t) nil nil |
| 74 | nil ascii-eol ascii-cntl)) | 74 | nil ascii-eol ascii-cntl)) |
| 75 | 75 | ||
| 76 | ;; CTEXT is an alias for ISO-8859-1 | 76 | (define-coding-system-alias 'iso-latin-1 'iso-8859-1) |
| 77 | (define-coding-system-alias 'iso-8859-1 'ctext) | 77 | (define-coding-system-alias 'iso-latin-1 'ctext) |
| 78 | 78 | ||
| 79 | (register-input-method "Latin-1" | 79 | (register-input-method "Latin-1" |
| 80 | '("quail-latin-1" quail-use-package "quail/latin")) | 80 | '("quail-latin-1" quail-use-package "quail/latin")) |
| @@ -82,14 +82,14 @@ | |||
| 82 | (defun setup-latin1-environment () | 82 | (defun setup-latin1-environment () |
| 83 | "Set up multilingual environment (MULE) for European Latin-1 users." | 83 | "Set up multilingual environment (MULE) for European Latin-1 users." |
| 84 | (interactive) | 84 | (interactive) |
| 85 | (setup-8-bit-environment 'latin-iso8859-1 'iso-8859-1 | 85 | (setup-8-bit-environment 'latin-iso8859-1 'iso-latin-1 |
| 86 | '("Latin-1" . "quail-latin-1"))) | 86 | '("Latin-1" . "quail-latin-1"))) |
| 87 | 87 | ||
| 88 | (set-language-info-alist | 88 | (set-language-info-alist |
| 89 | "Latin-1" '((setup-function . (setup-latin1-environment | 89 | "Latin-1" '((setup-function . (setup-latin1-environment |
| 90 | . setup-european-environment-map)) | 90 | . setup-european-environment-map)) |
| 91 | (charset . (ascii latin-iso8859-1)) | 91 | (charset . (ascii latin-iso8859-1)) |
| 92 | (coding-system . (iso-8859-1)) | 92 | (coding-system . (iso-latin-1)) |
| 93 | (sample-text | 93 | (sample-text |
| 94 | . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!") | 94 | . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!") |
| 95 | (documentation . ("\ | 95 | (documentation . ("\ |
| @@ -102,24 +102,27 @@ These languages are supported with the Latin-1 (ISO-8859-1) character set: | |||
| 102 | ;; Latin-2 (ISO-8859-2) | 102 | ;; Latin-2 (ISO-8859-2) |
| 103 | 103 | ||
| 104 | (make-coding-system | 104 | (make-coding-system |
| 105 | 'iso-8859-2 2 ?2 "MIME ISO-8859-2" | 105 | 'iso-latin-2 2 ?2 |
| 106 | "ISO 2022 based 8-bit encoding (MIME:ISO-8859-2)" | ||
| 106 | '((ascii t) (latin-iso8859-2 t) nil nil | 107 | '((ascii t) (latin-iso8859-2 t) nil nil |
| 107 | nil ascii-eol ascii-cntl nil nil nil nil)) | 108 | nil ascii-eol ascii-cntl nil nil nil nil)) |
| 108 | 109 | ||
| 110 | (define-coding-system-alias 'iso-latin-2 'iso-8859-2) | ||
| 111 | |||
| 109 | (register-input-method "Latin-2" | 112 | (register-input-method "Latin-2" |
| 110 | '("quail-latin-2" quail-use-package "quail/latin")) | 113 | '("quail-latin-2" quail-use-package "quail/latin")) |
| 111 | 114 | ||
| 112 | (defun setup-latin2-environment () | 115 | (defun setup-latin2-environment () |
| 113 | "Set up multilingual environment (MULE) for European Latin-2 users." | 116 | "Set up multilingual environment (MULE) for European Latin-2 users." |
| 114 | (interactive) | 117 | (interactive) |
| 115 | (setup-8-bit-environment 'latin-iso8859-2 'iso-8859-2 | 118 | (setup-8-bit-environment 'latin-iso8859-2 'iso-latin-2 |
| 116 | '("Latin-2" . "quail-latin-2"))) | 119 | '("Latin-2" . "quail-latin-2"))) |
| 117 | 120 | ||
| 118 | (set-language-info-alist | 121 | (set-language-info-alist |
| 119 | "Latin-2" '((setup-function . (setup-latin2-environment | 122 | "Latin-2" '((setup-function . (setup-latin2-environment |
| 120 | . setup-european-environment-map)) | 123 | . setup-european-environment-map)) |
| 121 | (charset . (ascii latin-iso8859-2)) | 124 | (charset . (ascii latin-iso8859-2)) |
| 122 | (coding-system . (iso-8859-2)) | 125 | (coding-system . (iso-latin-2)) |
| 123 | (documentation . ("\ | 126 | (documentation . ("\ |
| 124 | These languages are supported with the Latin-2 (ISO-8859-2) character set: | 127 | These languages are supported with the Latin-2 (ISO-8859-2) character set: |
| 125 | Albanian, Czech, English, German, Hungarian, Polish, Romanian, | 128 | Albanian, Czech, English, German, Hungarian, Polish, Romanian, |
| @@ -130,24 +133,27 @@ These languages are supported with the Latin-2 (ISO-8859-2) character set: | |||
| 130 | ;; Latin-3 (ISO-8859-3) | 133 | ;; Latin-3 (ISO-8859-3) |
| 131 | 134 | ||
| 132 | (make-coding-system | 135 | (make-coding-system |
| 133 | 'iso-8859-3 2 ?3 "MIME ISO-8859-3" | 136 | 'iso-latin-3 2 ?3 |
| 137 | "ISO 2022 based 8-bit encoding (MIME:ISO-8859-3)" | ||
| 134 | '((ascii t) (latin-iso8859-3 t) nil nil | 138 | '((ascii t) (latin-iso8859-3 t) nil nil |
| 135 | nil ascii-eol ascii-cntl nil nil nil nil)) | 139 | nil ascii-eol ascii-cntl nil nil nil nil)) |
| 136 | 140 | ||
| 141 | (define-coding-system-alias 'iso-latin-3 'iso-8859-3) | ||
| 142 | |||
| 137 | (register-input-method "Latin-3" | 143 | (register-input-method "Latin-3" |
| 138 | '("quail-latin-3" quail-use-package "quail/latin")) | 144 | '("quail-latin-3" quail-use-package "quail/latin")) |
| 139 | 145 | ||
| 140 | (defun setup-latin3-environment () | 146 | (defun setup-latin3-environment () |
| 141 | "Set up multilingual environment (MULE) for European Latin-3 users." | 147 | "Set up multilingual environment (MULE) for European Latin-3 users." |
| 142 | (interactive) | 148 | (interactive) |
| 143 | (setup-8-bit-environment 'latin-iso8859-3 'iso-8859-3 | 149 | (setup-8-bit-environment 'latin-iso8859-3 'iso-latin-3 |
| 144 | '("Latin-3" . "quail-latin-3"))) | 150 | '("Latin-3" . "quail-latin-3"))) |
| 145 | 151 | ||
| 146 | (set-language-info-alist | 152 | (set-language-info-alist |
| 147 | "Latin-3" '((setup-function . (setup-latin3-environment | 153 | "Latin-3" '((setup-function . (setup-latin3-environment |
| 148 | . setup-european-environment-map)) | 154 | . setup-european-environment-map)) |
| 149 | (charset . (ascii latin-iso8859-3)) | 155 | (charset . (ascii latin-iso8859-3)) |
| 150 | (coding-system . (iso-8859-3)) | 156 | (coding-system . (iso-latin-3)) |
| 151 | (documentation . ("\ | 157 | (documentation . ("\ |
| 152 | These languages are supported with the Latin-3 (ISO-8859-3) character set: | 158 | These languages are supported with the Latin-3 (ISO-8859-3) character set: |
| 153 | Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician, | 159 | Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician, |
| @@ -158,17 +164,20 @@ These languages are supported with the Latin-3 (ISO-8859-3) character set: | |||
| 158 | ;; Latin-4 (ISO-8859-4) | 164 | ;; Latin-4 (ISO-8859-4) |
| 159 | 165 | ||
| 160 | (make-coding-system | 166 | (make-coding-system |
| 161 | 'iso-8859-4 2 ?4 "MIME ISO-8859-4" | 167 | 'iso-latin-4 2 ?4 |
| 168 | "ISO 2022 based 8-bit encoding (MIME:ISO-8859-4)" | ||
| 162 | '((ascii t) (latin-iso8859-4 t) nil nil | 169 | '((ascii t) (latin-iso8859-4 t) nil nil |
| 163 | nil ascii-eol ascii-cntl nil nil nil nil)) | 170 | nil ascii-eol ascii-cntl nil nil nil nil)) |
| 164 | 171 | ||
| 172 | (define-coding-system-alias 'iso-latin-4 'iso-8859-4) | ||
| 173 | |||
| 165 | (register-input-method "Latin-4" | 174 | (register-input-method "Latin-4" |
| 166 | '("quail-latin-4" quail-use-package "quail/latin")) | 175 | '("quail-latin-4" quail-use-package "quail/latin")) |
| 167 | 176 | ||
| 168 | (defun setup-latin4-environment () | 177 | (defun setup-latin4-environment () |
| 169 | "Set up multilingual environment (MULE) for European Latin-4 users." | 178 | "Set up multilingual environment (MULE) for European Latin-4 users." |
| 170 | (interactive) | 179 | (interactive) |
| 171 | (setup-8-bit-environment 'latin-iso8859-4 'iso-8859-4 | 180 | (setup-8-bit-environment 'latin-iso8859-4 'iso-latin-4 |
| 172 | '("Latin-4" . "quail-latin-4"))) | 181 | '("Latin-4" . "quail-latin-4"))) |
| 173 | 182 | ||
| 174 | (set-language-info-alist | 183 | (set-language-info-alist |
| @@ -186,24 +195,27 @@ These languages are supported with the Latin-4 (ISO-8859-4) character set: | |||
| 186 | ;; Latin-5 (ISO-8859-9) | 195 | ;; Latin-5 (ISO-8859-9) |
| 187 | 196 | ||
| 188 | (make-coding-system | 197 | (make-coding-system |
| 189 | 'iso-8859-9 2 ?9 "MIME ISO-8859-9" | 198 | 'iso-latin-5 2 ?9 |
| 199 | "ISO 2022 based 8-bit encoding (MIME:ISO-8859-9)" | ||
| 190 | '((ascii t) (latin-iso8859-9 t) nil nil | 200 | '((ascii t) (latin-iso8859-9 t) nil nil |
| 191 | nil ascii-eol ascii-cntl nil nil nil nil)) | 201 | nil ascii-eol ascii-cntl nil nil nil nil)) |
| 192 | 202 | ||
| 203 | (define-coding-system-alias 'iso-latin-5 'iso-8859-9) | ||
| 204 | |||
| 193 | (register-input-method "Latin-5" | 205 | (register-input-method "Latin-5" |
| 194 | '("quail-latin-5" quail-use-package "quail/latin")) | 206 | '("quail-latin-5" quail-use-package "quail/latin")) |
| 195 | 207 | ||
| 196 | (defun setup-latin5-environment () | 208 | (defun setup-latin5-environment () |
| 197 | "Set up multilingual environment (MULE) for European Latin-5 users." | 209 | "Set up multilingual environment (MULE) for European Latin-5 users." |
| 198 | (interactive) | 210 | (interactive) |
| 199 | (setup-8-bit-environment 'latin-iso8859-9 'iso-8859-9 | 211 | (setup-8-bit-environment 'latin-iso8859-9 'iso-latin-5 |
| 200 | '("Latin-5" . "quail-latin-5"))) | 212 | '("Latin-5" . "quail-latin-5"))) |
| 201 | 213 | ||
| 202 | (set-language-info-alist | 214 | (set-language-info-alist |
| 203 | "Latin-5" '((setup-function . (setup-latin5-environment | 215 | "Latin-5" '((setup-function . (setup-latin5-environment |
| 204 | . setup-european-environment-map)) | 216 | . setup-european-environment-map)) |
| 205 | (charset . (ascii latin-iso8859-9)) | 217 | (charset . (ascii latin-iso8859-9)) |
| 206 | (coding-system . (iso-8859-9)) | 218 | (coding-system . (iso-latin-5)) |
| 207 | (documentation . ("\ | 219 | (documentation . ("\ |
| 208 | These languages are supported with the Latin-5 (ISO-8859-9) character set. | 220 | These languages are supported with the Latin-5 (ISO-8859-9) character set. |
| 209 | " . describe-european-environment-map)) | 221 | " . describe-european-environment-map)) |
diff --git a/lisp/language/greek.el b/lisp/language/greek.el index 632ae24a8ae..57bc4f24260 100644 --- a/lisp/language/greek.el +++ b/lisp/language/greek.el | |||
| @@ -29,23 +29,26 @@ | |||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (make-coding-system | 31 | (make-coding-system |
| 32 | 'iso-8859-7 2 ?7 "MIME ISO-8859-7" | 32 | 'greek-iso-8bit 2 ?7 |
| 33 | "ISO 2022 based 8-bit encoding for Greek (MIME:ISO-8859-7)" | ||
| 33 | '((ascii t) (greek-iso8859-7 t) nil nil | 34 | '((ascii t) (greek-iso8859-7 t) nil nil |
| 34 | nil ascii-eol ascii-cntl nil nil nil nil)) | 35 | nil ascii-eol ascii-cntl nil nil nil nil)) |
| 35 | 36 | ||
| 37 | (define-coding-system-alias 'greek-iso-8bit 'iso-8859-7) | ||
| 38 | |||
| 36 | (register-input-method | 39 | (register-input-method |
| 37 | "Greek" '("quail-greek" quail-use-package "quail/greek")) | 40 | "Greek" '("quail-greek" quail-use-package "quail/greek")) |
| 38 | 41 | ||
| 39 | (defun setup-greek-environment () | 42 | (defun setup-greek-environment () |
| 40 | "Setup multilingual environment (MULE) for Greek." | 43 | "Setup multilingual environment (MULE) for Greek." |
| 41 | (interactive) | 44 | (interactive) |
| 42 | (setup-8-bit-environment 'greek-iso8859-7 'iso-8859-7 | 45 | (setup-8-bit-environment 'greek-iso8859-7 'greek-iso-8bit |
| 43 | '("Greek" . "quail-greek"))) | 46 | '("Greek" . "quail-greek"))) |
| 44 | 47 | ||
| 45 | (set-language-info-alist | 48 | (set-language-info-alist |
| 46 | "Greek" '((setup-function . setup-greek-environment) | 49 | "Greek" '((setup-function . setup-greek-environment) |
| 47 | (charset . (greek-iso8859-7)) | 50 | (charset . (greek-iso8859-7)) |
| 48 | (coding-system . (iso-8859-7)) | 51 | (coding-system . (greek-iso-8bit)) |
| 49 | (sample-text . "Greek (,FGkk]mija(B) ,FCei\(B ,Fsar(B") | 52 | (sample-text . "Greek (,FGkk]mija(B) ,FCei\(B ,Fsar(B") |
| 50 | (documentation . t))) | 53 | (documentation . t))) |
| 51 | 54 | ||
diff --git a/lisp/language/hebrew.el b/lisp/language/hebrew.el index c9aa5678411..7970b5a82e4 100644 --- a/lisp/language/hebrew.el +++ b/lisp/language/hebrew.el | |||
| @@ -29,10 +29,13 @@ | |||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (make-coding-system | 31 | (make-coding-system |
| 32 | 'iso-8859-8 2 ?8 "MIME ISO-8859-8" | 32 | 'hebrew-iso-8bit 2 ?8 |
| 33 | "ISO 2022 based 8-bit encoding for Hebrew (MIME:ISO-8859-8)" | ||
| 33 | '((ascii t) (hebrew-iso8859-8 t) nil nil | 34 | '((ascii t) (hebrew-iso8859-8 t) nil nil |
| 34 | nil ascii-eol ascii-cntl nil nil nil nil nil t)) | 35 | nil ascii-eol ascii-cntl nil nil nil nil nil t)) |
| 35 | 36 | ||
| 37 | (define-coding-system-alias 'hebrew-iso-8bit 'iso-8859-8) | ||
| 38 | |||
| 36 | (register-input-method | 39 | (register-input-method |
| 37 | "Hebrew" '("quail-hebrew" quail-use-package "quail/hebrew")) | 40 | "Hebrew" '("quail-hebrew" quail-use-package "quail/hebrew")) |
| 38 | 41 | ||
| @@ -40,16 +43,16 @@ | |||
| 40 | "Setup multilingual environment (MULE) for Hebrew. | 43 | "Setup multilingual environment (MULE) for Hebrew. |
| 41 | But, please note that right-to-left writing is not yet supported." | 44 | But, please note that right-to-left writing is not yet supported." |
| 42 | (interactive) | 45 | (interactive) |
| 43 | (setup-8-bit-environment 'hebrew-iso8859-8 'iso-8859-8 | 46 | (setup-8-bit-environment 'hebrew-iso8859-8 'hebrew-iso-8bit |
| 44 | '("Hebrew" . "quail-hebrew"))) | 47 | '("Hebrew" . "quail-hebrew"))) |
| 45 | 48 | ||
| 46 | (set-language-info-alist | 49 | (set-language-info-alist |
| 47 | "Hebrew" '((setup-function . setup-hebrew-environment) | 50 | "Hebrew" '((setup-function . setup-hebrew-environment) |
| 48 | (describe-function . describe-hebrew-support) | 51 | (describe-function . describe-hebrew-support) |
| 49 | (charset . (hebrew-iso8859-8)) | 52 | (charset . (hebrew-iso8859-8)) |
| 50 | (coding-system . (iso-8859-8)) | 53 | (coding-system . (hebrew-iso-8bit)) |
| 51 | (sample-text . "Hebrew ,Hylem(B") | 54 | (sample-text . "Hebrew ,Hylem(B") |
| 52 | (documentation . "Right-to-left writing is not yet supported.") | 55 | (documentation . "Right-to-left writing is not yet supported.") |
| 53 | )) | 56 | )) |
| 54 | 57 | ||
| 55 | ;;; hebew.el ends here | 58 | ;;; hebrew.el ends here |
diff --git a/lisp/language/japan-util.el b/lisp/language/japan-util.el index f99b9f09d73..8b7505567b2 100644 --- a/lisp/language/japan-util.el +++ b/lisp/language/japan-util.el | |||
| @@ -29,7 +29,7 @@ | |||
| 29 | "Setup multilingual environment (MULE) for Japanese." | 29 | "Setup multilingual environment (MULE) for Japanese." |
| 30 | (interactive) | 30 | (interactive) |
| 31 | (setup-english-environment) | 31 | (setup-english-environment) |
| 32 | (setq coding-category-iso-8-2 'euc-japan-1990) | 32 | (setq coding-category-iso-8-2 'japanese-iso-8bit) |
| 33 | 33 | ||
| 34 | (set-coding-priority | 34 | (set-coding-priority |
| 35 | '(coding-category-iso-7 | 35 | '(coding-category-iso-7 |
| @@ -41,15 +41,16 @@ | |||
| 41 | 41 | ||
| 42 | (if (eq system-type 'ms-dos) | 42 | (if (eq system-type 'ms-dos) |
| 43 | (progn | 43 | (progn |
| 44 | (setq-default buffer-file-coding-system 'sjis) | 44 | (setq-default buffer-file-coding-system 'japanese-shift-jis) |
| 45 | (set-terminal-coding-system-internal 'sjis) | 45 | (set-terminal-coding-system-internal 'japanese-shift-jis) |
| 46 | (set-keyboard-coding-system-internal 'sjis) | 46 | (set-keyboard-coding-system-internal 'japanese-shift-jis) |
| 47 | (setq default-process-coding-system '(sjis-dos . sjis-dos))) | 47 | (setq default-process-coding-system |
| 48 | (setq-default buffer-file-coding-system 'iso-2022-jp) | 48 | '(japanese-shift-jis-dos . japanese-shift-jis-dos))) |
| 49 | (set-terminal-coding-system-internal 'iso-2022-jp) | 49 | (setq-default buffer-file-coding-system 'iso-2022-7bit) |
| 50 | (set-keyboard-coding-system-internal 'iso-2022-jp)) | 50 | (set-terminal-coding-system-internal 'iso-2022-7bit) |
| 51 | (set-keyboard-coding-system-internal 'iso-2022-7bit)) | ||
| 51 | 52 | ||
| 52 | (set-default-input-method "Japanese" "quail-ja") | 53 | (setq default-input-method '("Japanese" . "quail-ja")) |
| 53 | 54 | ||
| 54 | (setq sendmail-coding-system 'iso-2022-jp | 55 | (setq sendmail-coding-system 'iso-2022-jp |
| 55 | rmail-file-coding-system 'iso-2022-jp) | 56 | rmail-file-coding-system 'iso-2022-jp) |
diff --git a/lisp/language/japanese.el b/lisp/language/japanese.el index b089f02bd25..86998bfc85b 100644 --- a/lisp/language/japanese.el +++ b/lisp/language/japanese.el | |||
| @@ -29,30 +29,34 @@ | |||
| 29 | 29 | ||
| 30 | ;;; Code: | 30 | ;;; Code: |
| 31 | 31 | ||
| 32 | (define-coding-system-alias 'iso-2022-7 'iso-2022-jp) | 32 | (define-coding-system-alias 'iso-2022-7bit 'iso-2022-jp) |
| 33 | (define-coding-system-alias 'iso-2022-7 'junet) | 33 | (define-coding-system-alias 'iso-2022-7bit 'junet) |
| 34 | 34 | ||
| 35 | (make-coding-system | 35 | (make-coding-system |
| 36 | 'shift_jis 1 ?S | 36 | 'japanese-shift-jis 1 ?S |
| 37 | "Coding-system of Shift-JIS used in Japan." t) | 37 | "Shift-JIS 8-bit encoding for Japanese (MIME:SHIFT_JIS)") |
| 38 | 38 | ||
| 39 | (define-coding-system-alias 'shift_jis 'sjis) | 39 | (define-coding-system-alias 'japanese-shift-jis 'shift_jis) |
| 40 | (define-coding-system-alias 'japanese-shift-jis 'sjis) | ||
| 40 | 41 | ||
| 41 | (make-coding-system | 42 | (make-coding-system |
| 42 | 'iso-2022-jp-1978-irv 2 ?J | 43 | 'japanese-iso-7bit-1978-irv 2 ?j |
| 43 | "Coding-system used for old jis terminal." | 44 | "ISO 2022 based 7-bit encoding for Japanese JISX0208-1978 and JISX0201-Roman" |
| 44 | '((ascii t) nil nil nil | 45 | '((ascii t) nil nil nil |
| 45 | short ascii-eol ascii-cntl seven nil nil use-roman use-oldjis)) | 46 | short ascii-eol ascii-cntl seven nil nil use-roman use-oldjis)) |
| 46 | 47 | ||
| 47 | (define-coding-system-alias 'iso-2022-jp-1978-irv 'old-jis) | 48 | (define-coding-system-alias 'japanese-iso-7bit-1978-irv 'iso-2022-jp-1978-irv) |
| 49 | (define-coding-system-alias 'japanese-iso-7bit-1978-irv 'old-jis) | ||
| 48 | 50 | ||
| 49 | (make-coding-system | 51 | (make-coding-system |
| 50 | 'euc-japan-1990 2 ?E | 52 | 'japanese-iso-8bit 2 ?E |
| 51 | "Coding-system of Japanese EUC (Extended Unix Code)." | 53 | "ISO 2022 based EUC encoding for Japanese (MIME:EUC-JP)" |
| 52 | '(ascii japanese-jisx0208 katakana-jisx0201 japanese-jisx0212 | 54 | '(ascii japanese-jisx0208 katakana-jisx0201 japanese-jisx0212 |
| 53 | short ascii-eol ascii-cntl nil nil single-shift)) | 55 | short ascii-eol ascii-cntl nil nil single-shift)) |
| 54 | 56 | ||
| 55 | (define-coding-system-alias 'euc-japan-1990 'euc-japan) | 57 | (define-coding-system-alias 'japanese-iso-8bit 'euc-japan-1990) |
| 58 | (define-coding-system-alias 'japanese-iso-8bit 'euc-japan) | ||
| 59 | (define-coding-system-alias 'japanese-iso-8bit 'euc-jp) | ||
| 56 | 60 | ||
| 57 | (register-input-method | 61 | (register-input-method |
| 58 | "Japanese" '("quail-ja-hiragana" quail-use-package "quail/japanese")) | 62 | "Japanese" '("quail-ja-hiragana" quail-use-package "quail/japanese")) |
| @@ -65,8 +69,8 @@ | |||
| 65 | (charset . (japanese-jisx0208 japanese-jisx0208-1978 | 69 | (charset . (japanese-jisx0208 japanese-jisx0208-1978 |
| 66 | japanese-jisx0212 latin-jisx0201 | 70 | japanese-jisx0212 latin-jisx0201 |
| 67 | katakana-jisx0201)) | 71 | katakana-jisx0201)) |
| 68 | (coding-system . (euc-japan-1990 sjis | 72 | (coding-system . (japanese-iso-7bit japanese-iso-8bit |
| 69 | iso-2022-jp iso-2022-jp-1978-irv)) | 73 | japanese-shift-jis japanese-iso-7bit-1978-irv)) |
| 70 | (sample-text . "Japanese ($BF|K\8l(B) $B$3$s$K$A$O(B, (I:]FAJ(B") | 74 | (sample-text . "Japanese ($BF|K\8l(B) $B$3$s$K$A$O(B, (I:]FAJ(B") |
| 71 | (documentation . t))) | 75 | (documentation . t))) |
| 72 | 76 | ||
diff --git a/lisp/language/korean.el b/lisp/language/korean.el index ce3cb97d3f3..c188c17357e 100644 --- a/lisp/language/korean.el +++ b/lisp/language/korean.el | |||
| @@ -29,20 +29,23 @@ | |||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (make-coding-system | 31 | (make-coding-system |
| 32 | 'euc-kr 2 ?K | 32 | 'korean-iso-8bit 2 ?K |
| 33 | "Coding-system of Korean EUC (Extended Unix Code)." | 33 | "ISO 2022 based EUC encoding for Korean KSC5601 (MIME:EUC-KR)" |
| 34 | '((ascii t) korean-ksc5601 nil nil | 34 | '((ascii t) korean-ksc5601 nil nil |
| 35 | nil ascii-eol ascii-cntl)) | 35 | nil ascii-eol ascii-cntl)) |
| 36 | 36 | ||
| 37 | (define-coding-system-alias 'euc-kr 'euc-korea) | 37 | (define-coding-system-alias 'korean-iso-8bit 'euc-kr) |
| 38 | (define-coding-system-alias 'korean-iso-8bit 'euc-korea) | ||
| 38 | 39 | ||
| 39 | (make-coding-system | 40 | (make-coding-system |
| 40 | 'iso-2022-kr 2 ?k | 41 | 'korean-iso-7bit-lock 2 ?k |
| 41 | "MIME ISO-2022-KR" | 42 | "ISO 2022 based 7-bit encoding for Korean KSC5601 (MIME:ISO-2022-KR)." |
| 42 | '(ascii (nil korean-ksc5601) nil nil | 43 | '(ascii (nil korean-ksc5601) nil nil |
| 43 | nil ascii-eol ascii-cntl seven locking-shift nil nil nil nil nil | 44 | nil ascii-eol ascii-cntl seven locking-shift nil nil nil nil nil |
| 44 | designation-bol)) | 45 | designation-bol)) |
| 45 | 46 | ||
| 47 | (define-coding-system-alias 'korean-iso-7bit-lock 'iso-2022-kr) | ||
| 48 | |||
| 46 | (register-input-method | 49 | (register-input-method |
| 47 | "Korean" '("quail-hangul" quail-use-package "quail/hangul")) | 50 | "Korean" '("quail-hangul" quail-use-package "quail/hangul")) |
| 48 | (register-input-method | 51 | (register-input-method |
| @@ -58,14 +61,14 @@ | |||
| 58 | "Setup multilingual environment (MULE) for Korean." | 61 | "Setup multilingual environment (MULE) for Korean." |
| 59 | (interactive) | 62 | (interactive) |
| 60 | (setup-english-environment) | 63 | (setup-english-environment) |
| 61 | (setq coding-category-iso-8-2 'euc-kr) | 64 | (setq coding-category-iso-8-2 'korean-iso-8bit) |
| 62 | 65 | ||
| 63 | (set-coding-priority | 66 | (set-coding-priority |
| 64 | '(coding-category-iso-7 | 67 | '(coding-category-iso-7 |
| 65 | coding-category-iso-8-2 | 68 | coding-category-iso-8-2 |
| 66 | coding-category-iso-8-1)) | 69 | coding-category-iso-8-1)) |
| 67 | 70 | ||
| 68 | (setq-default buffer-file-coding-system 'euc-kr) | 71 | (setq-default buffer-file-coding-system 'korean-iso-8bit) |
| 69 | 72 | ||
| 70 | (setq default-input-method '("Korean" . "quail-hangul")) | 73 | (setq default-input-method '("Korean" . "quail-hangul")) |
| 71 | ) | 74 | ) |
| @@ -74,7 +77,7 @@ | |||
| 74 | "Korean" '((setup-function . setup-korean-environment) | 77 | "Korean" '((setup-function . setup-korean-environment) |
| 75 | (tutorial . "TUTORIAL.kr") | 78 | (tutorial . "TUTORIAL.kr") |
| 76 | (charset . (korean-ksc5601)) | 79 | (charset . (korean-ksc5601)) |
| 77 | (coding-system . (euc-kr iso-2022-kr)) | 80 | (coding-system . (korean-iso-7bit-lock korean-iso-8bit)) |
| 78 | (sample-text . "Hangul ($(CGQ1[(B) $(C>H3gGO<<?d(B, $(C>H3gGO=J4O1n(B") | 81 | (sample-text . "Hangul ($(CGQ1[(B) $(C>H3gGO<<?d(B, $(C>H3gGO=J4O1n(B") |
| 79 | (documentation . t))) | 82 | (documentation . t))) |
| 80 | 83 | ||
diff --git a/lisp/language/lao-util.el b/lisp/language/lao-util.el index b10e341b353..8f50bdecea6 100644 --- a/lisp/language/lao-util.el +++ b/lisp/language/lao-util.el | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | (defun setup-lao-environment () | 28 | (defun setup-lao-environment () |
| 29 | "Setup multilingual environment (MULE) for Lao." | 29 | "Setup multilingual environment (MULE) for Lao." |
| 30 | (interactive) | 30 | (interactive) |
| 31 | (setup-8-bit-environment 'lao 'iso-2022-7 | 31 | (setup-8-bit-environment 'lao 'iso-2022-7bit |
| 32 | '("Lao" . "quail-lao"))) | 32 | '("Lao" . "quail-lao"))) |
| 33 | 33 | ||
| 34 | (let ((l '((?(1!(B consonant "LETTER KOR KAI'" "CHICKEN") | 34 | (let ((l '((?(1!(B consonant "LETTER KOR KAI'" "CHICKEN") |
diff --git a/lisp/language/lao.el b/lisp/language/lao.el index 39a19eb6d05..38a55d0c5a9 100644 --- a/lisp/language/lao.el +++ b/lisp/language/lao.el | |||
| @@ -25,8 +25,8 @@ | |||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (make-coding-system | 27 | (make-coding-system |
| 28 | 'lao 2 ?T | 28 | 'lao 2 ?L |
| 29 | "Coding-system used for ASCII(MSB=0) & LAO(MSB=1)." | 29 | "8-bit encoding for ASCII (MSB=0) and LAO (MSB=1)" |
| 30 | '((ascii t) (lao t) nil nil | 30 | '((ascii t) (lao t) nil nil |
| 31 | nil ascii-eol)) | 31 | nil ascii-eol)) |
| 32 | 32 | ||
diff --git a/lisp/language/thai-util.el b/lisp/language/thai-util.el index 9fef5b5591b..4c3e0bc62de 100644 --- a/lisp/language/thai-util.el +++ b/lisp/language/thai-util.el | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | (defun setup-thai-environment () | 28 | (defun setup-thai-environment () |
| 29 | "Setup multilingual environment (MULE) for Thai." | 29 | "Setup multilingual environment (MULE) for Thai." |
| 30 | (interactive) | 30 | (interactive) |
| 31 | (setup-8-bit-environment 'thai-tis620 'th-tis620 | 31 | (setup-8-bit-environment 'thai-tis620 'thai-tis620 |
| 32 | '("Thai" . "quail-thai"))) | 32 | '("Thai" . "quail-thai"))) |
| 33 | 33 | ||
| 34 | ;; Setting information of Thai characters. | 34 | ;; Setting information of Thai characters. |
diff --git a/lisp/language/thai.el b/lisp/language/thai.el index badf98aa534..3c94b7df7f0 100644 --- a/lisp/language/thai.el +++ b/lisp/language/thai.el | |||
| @@ -29,14 +29,15 @@ | |||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (make-coding-system | 31 | (make-coding-system |
| 32 | 'th-tis620 2 ?T | 32 | 'thai-tis620 2 ?T |
| 33 | "Coding-system used for ASCII(MSB=0) & TIS620(MSB=1)." | 33 | "8-bit encoding for ASCII (MSB=0) and Thai TIS620 (MSB=1)" |
| 34 | '((ascii t) (thai-tis620 t) nil nil | 34 | '((ascii t) (thai-tis620 t) nil nil |
| 35 | nil ascii-eol)) | 35 | nil ascii-eol)) |
| 36 | (put 'th-tis620 'post-read-conversion 'thai-post-read-conversion) | 36 | (put 'thai-tis620 'post-read-conversion 'thai-post-read-conversion) |
| 37 | (put 'th-tis620 'pre-write-conversion 'thai-pre-write-conversion) | 37 | (put 'thai-tis620 'pre-write-conversion 'thai-pre-write-conversion) |
| 38 | 38 | ||
| 39 | (define-coding-system-alias 'th-tis620 'tis620) | 39 | (define-coding-system-alias 'thai-tis620 'th-tis620) |
| 40 | (define-coding-system-alias 'thai-tis620 'tis620) | ||
| 40 | 41 | ||
| 41 | (register-input-method | 42 | (register-input-method |
| 42 | "Thai" '("quail-thai" quail-use-package "quail/thai")) | 43 | "Thai" '("quail-thai" quail-use-package "quail/thai")) |
| @@ -45,7 +46,7 @@ | |||
| 45 | "Thai" '((tutorial . "TUTORIAL.th") | 46 | "Thai" '((tutorial . "TUTORIAL.th") |
| 46 | (setup-function . setup-thai-environment) | 47 | (setup-function . setup-thai-environment) |
| 47 | (charset . (thai-tis620)) | 48 | (charset . (thai-tis620)) |
| 48 | (coding-system . (th-tis620)) | 49 | (coding-system . (thai-tis620)) |
| 49 | (sample-text . "Thai (,T@RIRd7B(B) ,TJ0GQ1J04U1$0CQ1:(B, ,TJ0GQ1J04U10$h1P(B") | 50 | (sample-text . "Thai (,T@RIRd7B(B) ,TJ0GQ1J04U1$0CQ1:(B, ,TJ0GQ1J04U10$h1P(B") |
| 50 | (documentation . t))) | 51 | (documentation . t))) |
| 51 | 52 | ||
diff --git a/lisp/language/tibetan.el b/lisp/language/tibetan.el index cfea18393ea..482939b188d 100644 --- a/lisp/language/tibetan.el +++ b/lisp/language/tibetan.el | |||
| @@ -90,7 +90,7 @@ | |||
| 90 | 90 | ||
| 91 | (make-coding-system | 91 | (make-coding-system |
| 92 | 'tibetan 2 ?Q | 92 | 'tibetan 2 ?Q |
| 93 | "Coding-system used for ASCII(MSB=0) & TIBETAN(MSB=1)." | 93 | "8-bit encoding for ASCII (MSB=0) and TIBETAN (MSB=1)" |
| 94 | '((ascii t) (tibetan t) nil nil | 94 | '((ascii t) (tibetan t) nil nil |
| 95 | nil ascii-eol)) | 95 | nil ascii-eol)) |
| 96 | 96 | ||
diff --git a/lisp/language/viet-util.el b/lisp/language/viet-util.el index 9c665846556..bdb3ecfaa87 100644 --- a/lisp/language/viet-util.el +++ b/lisp/language/viet-util.el | |||
| @@ -36,9 +36,10 @@ | |||
| 36 | ;;; Code: | 36 | ;;; Code: |
| 37 | 37 | ||
| 38 | (defun setup-vietnamese-environment () | 38 | (defun setup-vietnamese-environment () |
| 39 | "Setup multilingual environment (MULE) for Vietnamese." | 39 | "Setup multilingual environment (MULE) for Vietnamese VISCII users." |
| 40 | (interactive) | 40 | (interactive) |
| 41 | (setup-8-bit-environment nil 'viscii '("Vietnamese" . "quail-viqr"))) | 41 | (setup-8-bit-environment nil 'vietnamese-viscii |
| 42 | '("Vietnamese" . "quail-viqr"))) | ||
| 42 | 43 | ||
| 43 | ;; VIQR is a menmonic encoding specification for Vietnamese. | 44 | ;; VIQR is a menmonic encoding specification for Vietnamese. |
| 44 | ;; It represents diacritical marks by ASCII characters as follows: | 45 | ;; It represents diacritical marks by ASCII characters as follows: |
diff --git a/lisp/language/vietnamese.el b/lisp/language/vietnamese.el index a8e1635ecd9..6fbd58cdafe 100644 --- a/lisp/language/vietnamese.el +++ b/lisp/language/vietnamese.el | |||
| @@ -201,21 +201,27 @@ Both tables are indexed by the position code of Vietnamese characters.") | |||
| 201 | 201 | ||
| 202 | 202 | ||
| 203 | (make-coding-system | 203 | (make-coding-system |
| 204 | 'viscii 4 ?V | 204 | 'vietnamese-viscii 4 ?V |
| 205 | "Coding-system used for VISCII 1.1." | 205 | "8-bit encoding for Vietnamese VISCII 1.1 (MIME:VISCII)" |
| 206 | (cons ccl-decode-viscii ccl-encode-viscii)) | 206 | (cons ccl-decode-viscii ccl-encode-viscii)) |
| 207 | 207 | ||
| 208 | (define-coding-system-alias 'vietnamese-viscii 'viscii) | ||
| 209 | |||
| 208 | (make-coding-system | 210 | (make-coding-system |
| 209 | 'vscii 4 ?V | 211 | 'vietnamese-vscii 4 ?v |
| 210 | "Coding-system used for VSCII-1." | 212 | "8-bit encoding for Vietnamese VSCII-1" |
| 211 | (cons ccl-decode-vscii ccl-encode-vscii)) | 213 | (cons ccl-decode-vscii ccl-encode-vscii)) |
| 212 | 214 | ||
| 215 | (define-coding-system-alias 'vietnamese-vscii 'vscii) | ||
| 216 | |||
| 213 | (make-coding-system | 217 | (make-coding-system |
| 214 | 'viqr 0 ?v | 218 | 'vietnamese-viqr 0 ?q |
| 215 | "Codins-system used for VIQR." | 219 | "Vietnamese latin transcription (VIQR)" |
| 216 | nil) | 220 | nil) |
| 217 | (put 'viqr 'post-read-conversion 'viqr-post-read-conversion) | 221 | (put 'vietnamese-viqr 'post-read-conversion 'viqr-post-read-conversion) |
| 218 | (put 'viqr 'pre-write-conversion 'viqr-pre-write-conversion) | 222 | (put 'vietnamese-viqr 'pre-write-conversion 'viqr-pre-write-conversion) |
| 223 | |||
| 224 | (define-coding-system-alias 'vietnamese-viqr 'viqr) | ||
| 219 | 225 | ||
| 220 | (setq font-ccl-encoder-alist | 226 | (setq font-ccl-encoder-alist |
| 221 | (cons (cons "viscii" ccl-encode-viscii-font) font-ccl-encoder-alist)) | 227 | (cons (cons "viscii" ccl-encode-viscii-font) font-ccl-encoder-alist)) |
| @@ -230,7 +236,8 @@ Both tables are indexed by the position code of Vietnamese characters.") | |||
| 230 | "Vietnamese" '((setup-function . setup-vietnamese-environment) | 236 | "Vietnamese" '((setup-function . setup-vietnamese-environment) |
| 231 | (charset . (vietnamese-viscii-lower | 237 | (charset . (vietnamese-viscii-lower |
| 232 | vietnamese-viscii-upper)) | 238 | vietnamese-viscii-upper)) |
| 233 | (coding-system . (viscii vscii viqr)) | 239 | (coding-system . (vietnamese-viscii vietnamese-vscii |
| 240 | vietnamese-viqr)) | ||
| 234 | (sample-text . "Vietnamese (Ti,1*(Bng Vi,1.(Bt) Ch,1`(Bo b,1U(Bn") | 241 | (sample-text . "Vietnamese (Ti,1*(Bng Vi,1.(Bt) Ch,1`(Bo b,1U(Bn") |
| 235 | (documentation . "\ | 242 | (documentation . "\ |
| 236 | For Vietnamese, Emacs uses special charasets internally. | 243 | For Vietnamese, Emacs uses special charasets internally. |