diff options
| author | Kenichi Handa | 1997-02-26 13:11:47 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-02-26 13:11:47 +0000 |
| commit | a7f2c2168ffc79b9b1b2263d10e95c57ac9dced0 (patch) | |
| tree | 3415b14c1da47cf20090b205708a349a3de6a278 | |
| parent | ae54d28781e2ee8842e06f62aa406fbde54751d9 (diff) | |
| download | emacs-a7f2c2168ffc79b9b1b2263d10e95c57ac9dced0.tar.gz emacs-a7f2c2168ffc79b9b1b2263d10e95c57ac9dced0.zip | |
Remove prefix "coding-system-" from coding system symbol names.
| -rw-r--r-- | lisp/international/skkdic-cnv.el | 6 | ||||
| -rw-r--r-- | lisp/international/titdic-cnv.el | 10 | ||||
| -rw-r--r-- | lisp/language/china-util.el | 11 | ||||
| -rw-r--r-- | lisp/language/european.el | 27 | ||||
| -rw-r--r-- | lisp/language/greek.el | 12 | ||||
| -rw-r--r-- | lisp/language/hebrew.el | 12 | ||||
| -rw-r--r-- | lisp/language/korean.el | 21 | ||||
| -rw-r--r-- | lisp/language/thai.el | 16 | ||||
| -rw-r--r-- | lisp/language/vietnamese.el | 20 |
9 files changed, 65 insertions, 70 deletions
diff --git a/lisp/international/skkdic-cnv.el b/lisp/international/skkdic-cnv.el index 64ba8d4c0c2..3bf105cee37 100644 --- a/lisp/international/skkdic-cnv.el +++ b/lisp/international/skkdic-cnv.el | |||
| @@ -47,9 +47,9 @@ | |||
| 47 | 47 | ||
| 48 | ;; To make a generated skkdic.el smaller. | 48 | ;; To make a generated skkdic.el smaller. |
| 49 | (make-coding-system | 49 | (make-coding-system |
| 50 | 'coding-system-iso-2022-7-short | 50 | 'iso-2022-7-short |
| 51 | 2 ?J | 51 | 2 ?J |
| 52 | "Like `coding-system-iso-2022' but no ASCII designation before SPC." | 52 | "Like `iso-2022-7' but no ASCII designation before SPC." |
| 53 | '(ascii nil nil nil t t nil t)) | 53 | '(ascii nil nil nil t t nil t)) |
| 54 | 54 | ||
| 55 | (defconst skkdic-jbytes | 55 | (defconst skkdic-jbytes |
| @@ -418,7 +418,7 @@ the generated \"skkdic.el\" is saved." | |||
| 418 | ;; Save the working buffer. | 418 | ;; Save the working buffer. |
| 419 | (set-buffer buf) | 419 | (set-buffer buf) |
| 420 | (set-visited-file-name (expand-file-name skkdic-filename dirname) t) | 420 | (set-visited-file-name (expand-file-name skkdic-filename dirname) t) |
| 421 | (set-buffer-file-coding-system 'coding-system-iso-2022-7-short) | 421 | (set-buffer-file-coding-system 'iso-2022-7-short) |
| 422 | (save-buffer 0)) | 422 | (save-buffer 0)) |
| 423 | (kill-buffer skkbuf) | 423 | (kill-buffer skkbuf) |
| 424 | (switch-to-buffer buf))) | 424 | (switch-to-buffer buf))) |
diff --git a/lisp/international/titdic-cnv.el b/lisp/international/titdic-cnv.el index e7598512cd5..887a8ef4f45 100644 --- a/lisp/international/titdic-cnv.el +++ b/lisp/international/titdic-cnv.el | |||
| @@ -59,10 +59,10 @@ | |||
| 59 | ;; List of values of key "ENCODE:" and the corresponding Emacs' | 59 | ;; List of values of key "ENCODE:" and the corresponding Emacs' |
| 60 | ;; coding-system and language environment name. | 60 | ;; coding-system and language environment name. |
| 61 | (defvar tit-encode-list | 61 | (defvar tit-encode-list |
| 62 | '(("GB" coding-system-euc-china "Chinese-GB") | 62 | '(("GB" euc-china "Chinese-GB") |
| 63 | ("BIG5" coding-system-big5 "Chinese-BIG5") | 63 | ("BIG5" cn-big5 "Chinese-BIG5") |
| 64 | ("JIS" coding-system-euc-japan "Japanese") | 64 | ("JIS" euc-japan "Japanese") |
| 65 | ("KS" coding-system-euc-korea "Korean"))) | 65 | ("KS" euc-kk "Korean"))) |
| 66 | 66 | ||
| 67 | ;; Return a value of the key in the current line. | 67 | ;; Return a value of the key in the current line. |
| 68 | (defsubst tit-read-key-value () | 68 | (defsubst tit-read-key-value () |
| @@ -310,7 +310,7 @@ the generated Quail package is saved." | |||
| 310 | (let ((coding-system-for-read 'no-conversion)) | 310 | (let ((coding-system-for-read 'no-conversion)) |
| 311 | (insert-file-contents (expand-file-name filename))) | 311 | (insert-file-contents (expand-file-name filename))) |
| 312 | (set-visited-file-name (tit-make-quail-package-name filename dirname) t) | 312 | (set-visited-file-name (tit-make-quail-package-name filename dirname) t) |
| 313 | (set-buffer-file-coding-system 'coding-system-iso-2022-7) | 313 | (set-buffer-file-coding-system 'iso-2022-7) |
| 314 | 314 | ||
| 315 | ;; Decode the buffer contents from the encoding specified by a | 315 | ;; Decode the buffer contents from the encoding specified by a |
| 316 | ;; value of the key "ENCODE:". | 316 | ;; value of the key "ENCODE:". |
diff --git a/lisp/language/china-util.el b/lisp/language/china-util.el index 3bba3bff4eb..c92aad65b3a 100644 --- a/lisp/language/china-util.el +++ b/lisp/language/china-util.el | |||
| @@ -61,7 +61,7 @@ Return the length of resulting text." | |||
| 61 | (save-restriction | 61 | (save-restriction |
| 62 | (narrow-to-region beg end) | 62 | (narrow-to-region beg end) |
| 63 | 63 | ||
| 64 | ;; We, at first, convert HZ/ZW to `coding-system-iso-2022-7', | 64 | ;; We, at first, convert HZ/ZW to `iso-2022-7', |
| 65 | ;; then decode it. | 65 | ;; then decode it. |
| 66 | 66 | ||
| 67 | ;; "~\n" -> "\n" | 67 | ;; "~\n" -> "\n" |
| @@ -76,13 +76,13 @@ Return the length of resulting text." | |||
| 76 | (let ((chinese-found nil)) | 76 | (let ((chinese-found nil)) |
| 77 | (while (re-search-forward hz/zw-start-gb nil t) | 77 | (while (re-search-forward hz/zw-start-gb nil t) |
| 78 | (if (= (char-after (match-beginning 0)) ?z) | 78 | (if (= (char-after (match-beginning 0)) ?z) |
| 79 | ;; ZW -> coding-system-iso-20227-7 | 79 | ;; ZW -> iso-20227-7 |
| 80 | (progn | 80 | (progn |
| 81 | (delete-char -2) | 81 | (delete-char -2) |
| 82 | (insert iso2022-gb-designation) | 82 | (insert iso2022-gb-designation) |
| 83 | (end-of-line) | 83 | (end-of-line) |
| 84 | (insert iso2022-ascii-designation)) | 84 | (insert iso2022-ascii-designation)) |
| 85 | ;; HZ -> coding-system-iso-20227-7 | 85 | ;; HZ -> iso-20227-7 |
| 86 | (delete-char -2) | 86 | (delete-char -2) |
| 87 | (insert iso2022-gb-designation) | 87 | (insert iso2022-gb-designation) |
| 88 | (let ((pos (save-excursion (end-of-line) (point)))) | 88 | (let ((pos (save-excursion (end-of-line) (point)))) |
| @@ -97,8 +97,7 @@ Return the length of resulting text." | |||
| 97 | ;; If any, we had better decode them also. | 97 | ;; If any, we had better decode them also. |
| 98 | (goto-char (point-min)) | 98 | (goto-char (point-min)) |
| 99 | (re-search-forward "[\240-\377]" nil t))) | 99 | (re-search-forward "[\240-\377]" nil t))) |
| 100 | (decode-coding-region (point-min) (point-max) | 100 | (decode-coding-region (point-min) (point-max) 'euc-china))) |
| 101 | 'coding-system-euc-china))) | ||
| 102 | 101 | ||
| 103 | ;; "~~" -> "~" | 102 | ;; "~~" -> "~" |
| 104 | (goto-char (point-min)) | 103 | (goto-char (point-min)) |
| @@ -130,7 +129,7 @@ Return the length of resulting text." | |||
| 130 | (let ((enable-multibyte-characters nil) | 129 | (let ((enable-multibyte-characters nil) |
| 131 | pos) | 130 | pos) |
| 132 | (goto-char (setq pos (match-beginning 0))) | 131 | (goto-char (setq pos (match-beginning 0))) |
| 133 | (encode-coding-region pos (point-max) 'coding-system-iso-2022-7) | 132 | (encode-coding-region pos (point-max) 'iso-2022-7) |
| 134 | (goto-char pos) | 133 | (goto-char pos) |
| 135 | (while (search-forward iso2022-gb-designation nil t) | 134 | (while (search-forward iso2022-gb-designation nil t) |
| 136 | (delete-char -3) | 135 | (delete-char -3) |
diff --git a/lisp/language/european.el b/lisp/language/european.el index 616a3aff5c2..7c27d7ba037 100644 --- a/lisp/language/european.el +++ b/lisp/language/european.el | |||
| @@ -29,31 +29,31 @@ | |||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (make-coding-system | 31 | (make-coding-system |
| 32 | 'coding-system-iso-8859-1 2 ?X | 32 | 'iso-8859-1 2 ?X |
| 33 | "Coding-system used in X as Compound Text Encoding." | 33 | "Coding-system used in X as Compound Text Encoding." |
| 34 | '((ascii t) (latin-iso8859-1 t) nil nil | 34 | '((ascii t) (latin-iso8859-1 t) nil nil |
| 35 | nil ascii-eol ascii-cntl)) | 35 | nil ascii-eol ascii-cntl)) |
| 36 | 36 | ||
| 37 | ;; CTEXT is an alias for ISO-8859-1 | 37 | ;; CTEXT is an alias for ISO-8859-1 |
| 38 | (put 'coding-system-ctext 'coding-system 'coding-system-iso-8859-1) | 38 | (define-coding-system-alias 'iso-8859-1 'ctext) |
| 39 | 39 | ||
| 40 | (make-coding-system | 40 | (make-coding-system |
| 41 | 'coding-system-iso-8859-2 2 ?2 "MIME ISO-8859-2" | 41 | 'iso-8859-2 2 ?2 "MIME ISO-8859-2" |
| 42 | '((ascii t) (latin-iso8859-2 t) nil nil | 42 | '((ascii t) (latin-iso8859-2 t) nil nil |
| 43 | nil ascii-eol ascii-cntl nil nil nil nil)) | 43 | nil ascii-eol ascii-cntl nil nil nil nil)) |
| 44 | 44 | ||
| 45 | (make-coding-system | 45 | (make-coding-system |
| 46 | 'coding-system-iso-8859-3 2 ?3 "MIME ISO-8859-3" | 46 | 'iso-8859-3 2 ?3 "MIME ISO-8859-3" |
| 47 | '((ascii t) (latin-iso8859-3 t) nil nil | 47 | '((ascii t) (latin-iso8859-3 t) nil nil |
| 48 | nil ascii-eol ascii-cntl nil nil nil nil)) | 48 | nil ascii-eol ascii-cntl nil nil nil nil)) |
| 49 | 49 | ||
| 50 | (make-coding-system | 50 | (make-coding-system |
| 51 | 'coding-system-iso-8859-4 2 ?4 "MIME ISO-8859-4" | 51 | 'iso-8859-4 2 ?4 "MIME ISO-8859-4" |
| 52 | '((ascii t) (latin-iso8859-4 t) nil nil | 52 | '((ascii t) (latin-iso8859-4 t) nil nil |
| 53 | nil ascii-eol ascii-cntl nil nil nil nil)) | 53 | nil ascii-eol ascii-cntl nil nil nil nil)) |
| 54 | 54 | ||
| 55 | (make-coding-system | 55 | (make-coding-system |
| 56 | 'coding-system-iso-8859-9 2 ?9 "MIME ISO-8859-9" | 56 | 'iso-8859-9 2 ?9 "MIME ISO-8859-9" |
| 57 | '((ascii t) (latin-iso8859-9 t) nil nil | 57 | '((ascii t) (latin-iso8859-9 t) nil nil |
| 58 | nil ascii-eol ascii-cntl nil nil nil nil)) | 58 | nil ascii-eol ascii-cntl nil nil nil nil)) |
| 59 | 59 | ||
| @@ -69,16 +69,16 @@ | |||
| 69 | '("quail-latin-5" quail-use-package "quail/latin")) | 69 | '("quail-latin-5" quail-use-package "quail/latin")) |
| 70 | 70 | ||
| 71 | (defun setup-european-environment () | 71 | (defun setup-european-environment () |
| 72 | (setq coding-category-iso-8-1 'coding-system-iso-8859-1) | 72 | (setq coding-category-iso-8-1 'iso-8859-1) |
| 73 | 73 | ||
| 74 | (set-coding-priority | 74 | (set-coding-priority |
| 75 | '(coding-category-iso-7 | 75 | '(coding-category-iso-7 |
| 76 | coding-category-iso-8-1 | 76 | coding-category-iso-8-1 |
| 77 | coding-category-iso-8-2)) | 77 | coding-category-iso-8-2)) |
| 78 | 78 | ||
| 79 | (setq-default buffer-file-coding-system 'coding-system-iso-8859-1) | 79 | (setq-default buffer-file-coding-system 'iso-8859-1) |
| 80 | (set-terminal-coding-system 'coding-system-iso-8859-1) | 80 | (set-terminal-coding-system 'iso-8859-1) |
| 81 | (set-keyboard-coding-system 'coding-system-iso-8859-1) | 81 | (set-keyboard-coding-system 'iso-8859-1) |
| 82 | 82 | ||
| 83 | (setq default-input-method '("European" . "quail-latin-1")) | 83 | (setq default-input-method '("European" . "quail-latin-1")) |
| 84 | ) | 84 | ) |
| @@ -94,11 +94,8 @@ | |||
| 94 | "European" '((setup-function . setup-european-environment) | 94 | "European" '((setup-function . setup-european-environment) |
| 95 | (charset . (ascii latin-iso8859-1 latin-iso8859-2 | 95 | (charset . (ascii latin-iso8859-1 latin-iso8859-2 |
| 96 | latin-iso8859-3 latin-iso8859-4 latin-iso8859-9)) | 96 | latin-iso8859-3 latin-iso8859-4 latin-iso8859-9)) |
| 97 | (coding-system . (coding-system-iso-8859-1 | 97 | (coding-system . (iso-8859-1 iso-8859-2 iso-8859-3 |
| 98 | coding-system-iso-8859-2 | 98 | iso-8859-4 iso-8859-9)) |
| 99 | coding-system-iso-8859-3 | ||
| 100 | coding-system-iso-8859-4 | ||
| 101 | coding-system-iso-8859-9)) | ||
| 102 | (documentation . t) | 99 | (documentation . t) |
| 103 | (sample-text | 100 | (sample-text |
| 104 | . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!"))) | 101 | . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!"))) |
diff --git a/lisp/language/greek.el b/lisp/language/greek.el index f707ecc8a5d..c922258b1a6 100644 --- a/lisp/language/greek.el +++ b/lisp/language/greek.el | |||
| @@ -29,7 +29,7 @@ | |||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (make-coding-system | 31 | (make-coding-system |
| 32 | 'coding-system-iso-8859-7 2 ?7 "MIME ISO-8859-7" | 32 | 'iso-8859-7 2 ?7 "MIME ISO-8859-7" |
| 33 | '((ascii t) (greek-iso8859-7 t) nil nil | 33 | '((ascii t) (greek-iso8859-7 t) nil nil |
| 34 | nil ascii-eol ascii-cntl nil nil nil nil)) | 34 | nil ascii-eol ascii-cntl nil nil nil nil)) |
| 35 | 35 | ||
| @@ -37,15 +37,15 @@ | |||
| 37 | "Greek" '("quail-greek" quail-use-package "quail/greek")) | 37 | "Greek" '("quail-greek" quail-use-package "quail/greek")) |
| 38 | 38 | ||
| 39 | (defun setup-greek-environment () | 39 | (defun setup-greek-environment () |
| 40 | (setq coding-category-iso-8-1 'coding-system-iso-8859-7) | 40 | (setq coding-category-iso-8-1 'iso-8859-7) |
| 41 | 41 | ||
| 42 | (set-coding-priority | 42 | (set-coding-priority |
| 43 | '(coding-category-iso-7 | 43 | '(coding-category-iso-7 |
| 44 | coding-category-iso-8-1)) | 44 | coding-category-iso-8-1)) |
| 45 | 45 | ||
| 46 | (setq-default buffer-file-coding-system 'coding-system-iso-8859-7) | 46 | (setq-default buffer-file-coding-system 'iso-8859-7) |
| 47 | (set-terminal-coding-system 'coding-system-iso-8859-7) | 47 | (set-terminal-coding-system 'iso-8859-7) |
| 48 | (set-keyboard-coding-system 'coding-system-iso-8859-7) | 48 | (set-keyboard-coding-system 'iso-8859-7) |
| 49 | 49 | ||
| 50 | (setq default-input-method '("Greek" . "quail-greek")) | 50 | (setq default-input-method '("Greek" . "quail-greek")) |
| 51 | ) | 51 | ) |
| @@ -53,7 +53,7 @@ | |||
| 53 | (set-language-info-alist | 53 | (set-language-info-alist |
| 54 | "Greek" '((setup-function . setup-greek-environment) | 54 | "Greek" '((setup-function . setup-greek-environment) |
| 55 | (charset . (greek-iso8859-7)) | 55 | (charset . (greek-iso8859-7)) |
| 56 | (coding-system . (coding-system-iso-8859-7)) | 56 | (coding-system . (iso-8859-7)) |
| 57 | (documentation . t) | 57 | (documentation . t) |
| 58 | (sample-text . "Greek (,FGkk]mija(B) ,FCei\(B ,Fsar(B"))) | 58 | (sample-text . "Greek (,FGkk]mija(B) ,FCei\(B ,Fsar(B"))) |
| 59 | 59 | ||
diff --git a/lisp/language/hebrew.el b/lisp/language/hebrew.el index 42ed80c8ea6..7ba222f1567 100644 --- a/lisp/language/hebrew.el +++ b/lisp/language/hebrew.el | |||
| @@ -29,7 +29,7 @@ | |||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (make-coding-system | 31 | (make-coding-system |
| 32 | 'coding-system-iso-8859-8 2 ?8 "MIME ISO-8859-8" | 32 | 'iso-8859-8 2 ?8 "MIME ISO-8859-8" |
| 33 | '((ascii t) (hebrew-iso8859-8 t) nil nil | 33 | '((ascii t) (hebrew-iso8859-8 t) nil nil |
| 34 | nil ascii-eol ascii-cntl nil nil nil nil nil t)) | 34 | nil ascii-eol ascii-cntl nil nil nil nil nil t)) |
| 35 | 35 | ||
| @@ -37,16 +37,16 @@ | |||
| 37 | "Hebrew" '("quail-hebrew" quail-use-package "quail/hebrew")) | 37 | "Hebrew" '("quail-hebrew" quail-use-package "quail/hebrew")) |
| 38 | 38 | ||
| 39 | (defun setup-hebrew-environment () | 39 | (defun setup-hebrew-environment () |
| 40 | (setq coding-category-iso-8-1 'coding-system-iso-8859-8) | 40 | (setq coding-category-iso-8-1 'iso-8859-8) |
| 41 | 41 | ||
| 42 | (set-coding-priority | 42 | (set-coding-priority |
| 43 | '(coding-category-iso-7 | 43 | '(coding-category-iso-7 |
| 44 | coding-category-iso-8-1 | 44 | coding-category-iso-8-1 |
| 45 | coding-category-iso-8-2)) | 45 | coding-category-iso-8-2)) |
| 46 | 46 | ||
| 47 | (setq-default buffer-file-coding-system 'coding-category-iso-8-2) | 47 | (setq-default buffer-file-coding-system 'iso-8859-8) |
| 48 | (set-terminal-coding-system 'coding-category-iso-8-2) | 48 | (set-terminal-coding-system 'iso-8859-8) |
| 49 | (set-keyboard-coding-system 'coding-category-iso-8-2) | 49 | (set-keyboard-coding-system 'iso-8859-8) |
| 50 | 50 | ||
| 51 | (setq default-input-method '("Hebrew" . "quail-hebrew")) | 51 | (setq default-input-method '("Hebrew" . "quail-hebrew")) |
| 52 | ) | 52 | ) |
| @@ -54,7 +54,7 @@ | |||
| 54 | (set-language-info-alist | 54 | (set-language-info-alist |
| 55 | "Hebrew" '((setup-function . setup-hebrew-environment) | 55 | "Hebrew" '((setup-function . setup-hebrew-environment) |
| 56 | (charset . (hebrew-iso8859-8)) | 56 | (charset . (hebrew-iso8859-8)) |
| 57 | (coding-system . (coding-system-iso-8859-8)) | 57 | (coding-system . (iso-8859-8)) |
| 58 | (documentation . "Right-to-left writing is Not yet supported") | 58 | (documentation . "Right-to-left writing is Not yet supported") |
| 59 | (sample-text . "Hebrew ,Hylem(B"))) | 59 | (sample-text . "Hebrew ,Hylem(B"))) |
| 60 | 60 | ||
diff --git a/lisp/language/korean.el b/lisp/language/korean.el index 35942906ca8..2aec2cefc74 100644 --- a/lisp/language/korean.el +++ b/lisp/language/korean.el | |||
| @@ -29,21 +29,23 @@ | |||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (make-coding-system | 31 | (make-coding-system |
| 32 | 'coding-system-euc-korea 2 ?K | 32 | 'euc-kr 2 ?K |
| 33 | "Coding-system of Korean EUC (Extended Unix Code)." | 33 | "Coding-system of Korean EUC (Extended Unix Code)." |
| 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 | ;; EUC-KR is an alias for EUC-KOREA. | 37 | (define-coding-system-alias 'euc-kr 'euc-korea) |
| 38 | (put 'coding-system-euc-kr 'coding-system 'coding-system-euc-korea) | ||
| 39 | 38 | ||
| 40 | (make-coding-system | 39 | (make-coding-system |
| 41 | 'coding-system-iso-2022-kr 2 ?k | 40 | 'iso-2022-kr 2 ?k |
| 42 | "Coding-System used for communication with mail in Korea." | 41 | "MIME ISO-2022-KR" |
| 43 | '(ascii (nil korean-ksc5601) nil nil | 42 | '(ascii (nil korean-ksc5601) nil nil |
| 44 | nil ascii-eol ascii-cntl seven locking-shift)) | 43 | nil ascii-eol ascii-cntl seven locking-shift nil nil nil nil nil |
| 44 | 'designation-bol)) | ||
| 45 | 45 | ||
| 46 | (register-input-method | 46 | (register-input-method |
| 47 | "Korean" '("hanterm" encoded-kbd-select-terminal euc-kr)) | ||
| 48 | (register-input-method | ||
| 47 | "Korean" '("quail-hangul" quail-use-package "quail/hangul")) | 49 | "Korean" '("quail-hangul" quail-use-package "quail/hangul")) |
| 48 | (register-input-method | 50 | (register-input-method |
| 49 | "Korean" '("quail-hangul3" quail-use-package "quail/hangul3")) | 51 | "Korean" '("quail-hangul3" quail-use-package "quail/hangul3")) |
| @@ -55,14 +57,14 @@ | |||
| 55 | "Korean" '("quail-hanja-jis" quail-use-package "quail/hanja-jis")) | 57 | "Korean" '("quail-hanja-jis" quail-use-package "quail/hanja-jis")) |
| 56 | 58 | ||
| 57 | (defun setup-korean-environment () | 59 | (defun setup-korean-environment () |
| 58 | (setq coding-category-iso-8-2 'coding-system-euc-korea) | 60 | (setq coding-category-iso-8-2 'euc-kr) |
| 59 | 61 | ||
| 60 | (set-coding-priority | 62 | (set-coding-priority |
| 61 | '(coding-category-iso-7 | 63 | '(coding-category-iso-7 |
| 62 | coding-category-iso-8-2 | 64 | coding-category-iso-8-2 |
| 63 | coding-category-iso-8-1)) | 65 | coding-category-iso-8-1)) |
| 64 | 66 | ||
| 65 | (setq-default buffer-file-coding-system 'coding-system-euc-korea) | 67 | (setq-default buffer-file-coding-system 'euc-kr) |
| 66 | 68 | ||
| 67 | (setq default-input-method '("Korean" . "quail-hangul")) | 69 | (setq default-input-method '("Korean" . "quail-hangul")) |
| 68 | ) | 70 | ) |
| @@ -71,8 +73,7 @@ | |||
| 71 | "Korean" '((setup-function . setup-korean-environment) | 73 | "Korean" '((setup-function . setup-korean-environment) |
| 72 | (tutorial . "TUTORIAL.kr") | 74 | (tutorial . "TUTORIAL.kr") |
| 73 | (charset . (korean-ksc5601)) | 75 | (charset . (korean-ksc5601)) |
| 74 | (coding-system . (coding-system-euc-korea | 76 | (coding-system . (euc-kr iso-2022-kr)) |
| 75 | coding-system-iso-2022-kr)) | ||
| 76 | (documentation . t) | 77 | (documentation . t) |
| 77 | (sample-text . "Hangul ($(CGQ1[(B) $(C>H3gGO<<?d(B, $(C>H3gGO=J4O1n(B"))) | 78 | (sample-text . "Hangul ($(CGQ1[(B) $(C>H3gGO<<?d(B, $(C>H3gGO=J4O1n(B"))) |
| 78 | 79 | ||
diff --git a/lisp/language/thai.el b/lisp/language/thai.el index f9c15cd89b2..c279c248141 100644 --- a/lisp/language/thai.el +++ b/lisp/language/thai.el | |||
| @@ -29,26 +29,26 @@ | |||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (make-coding-system | 31 | (make-coding-system |
| 32 | 'coding-system-tis620 2 ?T | 32 | 'th-tis620 2 ?T |
| 33 | "Coding-system used for ASCII(MSB=0) & TIS620(MSB=1)." | 33 | "Coding-system used for ASCII(MSB=0) & 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 'coding-system-tis620 'post-read-conversion | 36 | (put 'th-tis620 'post-read-conversion 'thai-post-read-conversion) |
| 37 | 'thai-post-read-conversion) | 37 | (put 'th-tis620 'pre-write-conversion 'thai-pre-write-conversion) |
| 38 | (put 'coding-system-tis620 'pre-write-conversion | 38 | |
| 39 | 'thai-pre-write-conversion) | 39 | (define-coding-system-alias 'th-tis620 'tis620) |
| 40 | 40 | ||
| 41 | (register-input-method | 41 | (register-input-method |
| 42 | "Thai" '("quail-thai" quail-use-package "quail/thai")) | 42 | "Thai" '("quail-thai" quail-use-package "quail/thai")) |
| 43 | 43 | ||
| 44 | (defun setup-thai-environment () | 44 | (defun setup-thai-environment () |
| 45 | (setq coding-category-iso-8-1 'coding-system-tis620) | 45 | (setq coding-category-iso-8-1 'th-tis620) |
| 46 | 46 | ||
| 47 | (set-coding-priority | 47 | (set-coding-priority |
| 48 | '(coding-category-iso-7 | 48 | '(coding-category-iso-7 |
| 49 | coding-category-iso-8-1)) | 49 | coding-category-iso-8-1)) |
| 50 | 50 | ||
| 51 | (setq-default buffer-file-coding-system 'coding-system-tis620) | 51 | (setq-default buffer-file-coding-system 'th-tis620) |
| 52 | 52 | ||
| 53 | (setq default-input-method '("Thai" . "quail-thai")) | 53 | (setq default-input-method '("Thai" . "quail-thai")) |
| 54 | ) | 54 | ) |
| @@ -57,7 +57,7 @@ | |||
| 57 | "Thai" '((tutorial . "TUTORIAL.th") | 57 | "Thai" '((tutorial . "TUTORIAL.th") |
| 58 | (setup-function . setup-thai-environment) | 58 | (setup-function . setup-thai-environment) |
| 59 | (charset . (thai-tis620)) | 59 | (charset . (thai-tis620)) |
| 60 | (coding-systemm . (coding-system-tis620)) | 60 | (coding-system . (th-tis620)) |
| 61 | (documentation . t) | 61 | (documentation . t) |
| 62 | (sample-text . "Thai (,T@RIRd7B(B) ,TJ0GQ1J04U1$0CQ1:(B, ,TJ0GQ1J04U10$h1P(B"))) | 62 | (sample-text . "Thai (,T@RIRd7B(B) ,TJ0GQ1J04U1$0CQ1:(B, ,TJ0GQ1J04U10$h1P(B"))) |
| 63 | 63 | ||
diff --git a/lisp/language/vietnamese.el b/lisp/language/vietnamese.el index ba9a092f23d..e8bd15ea925 100644 --- a/lisp/language/vietnamese.el +++ b/lisp/language/vietnamese.el | |||
| @@ -201,21 +201,21 @@ Both tables are indexed by the position code of Vietnamese characters.") | |||
| 201 | 201 | ||
| 202 | 202 | ||
| 203 | (make-coding-system | 203 | (make-coding-system |
| 204 | 'coding-system-viscii 4 ?V | 204 | 'viscii 4 ?V |
| 205 | "Coding-system used for VISCII 1.1." | 205 | "Coding-system used for VISCII 1.1." |
| 206 | (cons ccl-decode-viscii ccl-encode-viscii)) | 206 | (cons ccl-decode-viscii ccl-encode-viscii)) |
| 207 | 207 | ||
| 208 | (make-coding-system | 208 | (make-coding-system |
| 209 | 'coding-system-vscii 4 ?V | 209 | 'vscii 4 ?V |
| 210 | "Coding-system used for VSCII-1." | 210 | "Coding-system used for VSCII-1." |
| 211 | (cons ccl-decode-vscii ccl-encode-vscii)) | 211 | (cons ccl-decode-vscii ccl-encode-vscii)) |
| 212 | 212 | ||
| 213 | (make-coding-system | 213 | (make-coding-system |
| 214 | 'coding-system-viqr 0 ?v | 214 | 'viqr 0 ?v |
| 215 | "Codins-system used for VIQR." | 215 | "Codins-system used for VIQR." |
| 216 | nil) | 216 | nil) |
| 217 | (put 'coding-system-viqr 'post-read-conversion 'viet-decode-viqr-region) | 217 | (put 'viqr 'post-read-conversion 'viet-decode-viqr-region) |
| 218 | (put 'coding-system-viqr 'pre-write-conversion 'viet-encode-viqr-region) | 218 | (put 'viqr 'pre-write-conversion 'viet-encode-viqr-region) |
| 219 | 219 | ||
| 220 | (setq font-ccl-encoder-alist | 220 | (setq font-ccl-encoder-alist |
| 221 | (cons (cons "viscii" ccl-encode-viscii-font) font-ccl-encoder-alist)) | 221 | (cons (cons "viscii" ccl-encode-viscii-font) font-ccl-encoder-alist)) |
| @@ -228,16 +228,16 @@ Both tables are indexed by the position code of Vietnamese characters.") | |||
| 228 | 228 | ||
| 229 | (defun setup-viet-environment () | 229 | (defun setup-viet-environment () |
| 230 | ;; for VISCII users | 230 | ;; for VISCII users |
| 231 | (setq coding-category-binary 'coding-system-viscii) | 231 | (setq coding-category-binary 'viscii) |
| 232 | 232 | ||
| 233 | ;; for VSCII users | 233 | ;; for VSCII users |
| 234 | ;; (setq coding-category-binary 'coding-system-vscii) | 234 | ;; (setq coding-category-binary 'vscii) |
| 235 | 235 | ||
| 236 | (set-coding-priority | 236 | (set-coding-priority |
| 237 | '(coding-category-iso-7 | 237 | '(coding-category-iso-7 |
| 238 | coding-category-binary)) | 238 | coding-category-binary)) |
| 239 | 239 | ||
| 240 | (setq-default buffer-file-coding-system 'coding-system-viscii) | 240 | (setq-default buffer-file-coding-system 'viscii) |
| 241 | 241 | ||
| 242 | (setq default-input-method '("Vietnamese" . "quail-viqr")) | 242 | (setq default-input-method '("Vietnamese" . "quail-viqr")) |
| 243 | ) | 243 | ) |
| @@ -246,9 +246,7 @@ Both tables are indexed by the position code of Vietnamese characters.") | |||
| 246 | "Vietnamese" '((setup-function . setup-viet-environment) | 246 | "Vietnamese" '((setup-function . setup-viet-environment) |
| 247 | (charset . (vietnamese-viscii-lower | 247 | (charset . (vietnamese-viscii-lower |
| 248 | vietnamese-viscii-upper)) | 248 | vietnamese-viscii-upper)) |
| 249 | (coding-system . (coding-system-viscii | 249 | (coding-system . (viscii vscii viqr)) |
| 250 | coding-system-vscii | ||
| 251 | coding-system-viqr)) | ||
| 252 | (documentation . t) | 250 | (documentation . t) |
| 253 | (sample-text . "Vietnamese (Ti,1*(Bng Vi,1.(Bt) Ch,1`(Bo b,1U(Bn"))) | 251 | (sample-text . "Vietnamese (Ti,1*(Bng Vi,1.(Bt) Ch,1`(Bo b,1U(Bn"))) |
| 254 | 252 | ||