diff options
| author | Kenichi Handa | 1998-01-22 01:46:28 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-01-22 01:46:28 +0000 |
| commit | a79a3c798bed9748ceb8225a9bdd7a89a940c6ec (patch) | |
| tree | dbc3bbfa84631d3a9ecf5bfc90b5c45dbec8356a | |
| parent | 8f3969f8ab93f4c7361097f5aeac9a8b9430ae77 (diff) | |
| download | emacs-a79a3c798bed9748ceb8225a9bdd7a89a940c6ec.tar.gz emacs-a79a3c798bed9748ceb8225a9bdd7a89a940c6ec.zip | |
Adjusted for the change of make-coding-system. Register
coding-priority key in language-info-alist.
| -rw-r--r-- | lisp/language/japanese.el | 32 | ||||
| -rw-r--r-- | lisp/language/korean.el | 20 | ||||
| -rw-r--r-- | lisp/language/lao.el | 11 | ||||
| -rw-r--r-- | lisp/language/thai.el | 17 | ||||
| -rw-r--r-- | lisp/language/tibetan.el | 20 | ||||
| -rw-r--r-- | lisp/language/vietnamese.el | 25 |
6 files changed, 67 insertions, 58 deletions
diff --git a/lisp/language/japanese.el b/lisp/language/japanese.el index c109d487994..fc248938d66 100644 --- a/lisp/language/japanese.el +++ b/lisp/language/japanese.el | |||
| @@ -33,9 +33,11 @@ | |||
| 33 | 'iso-2022-jp 2 ?J | 33 | 'iso-2022-jp 2 ?J |
| 34 | "ISO 2022 based 7bit encoding for Japanese (MIME:ISO-2022-JP)" | 34 | "ISO 2022 based 7bit encoding for Japanese (MIME:ISO-2022-JP)" |
| 35 | '((ascii japanese-jisx0208-1978 japanese-jisx0208 | 35 | '((ascii japanese-jisx0208-1978 japanese-jisx0208 |
| 36 | latin-jisx0201 japanese-jisx0212 katakana-jisx0201 t) nil nil nil | 36 | latin-jisx0201 japanese-jisx0212 katakana-jisx0201) nil nil nil |
| 37 | short ascii-eol ascii-cntl seven) | 37 | short ascii-eol ascii-cntl seven) |
| 38 | '(ascii japanese-jisx0208-1978 japanese-jisx0208 latin-jisx0201)) | 38 | '((safe-charsets ascii japanese-jisx0208-1978 japanese-jisx0208 |
| 39 | latin-jisx0201 japanese-jisx0212 katakana-jisx0201) | ||
| 40 | (mime-charset . 'iso-2022-jp))) | ||
| 39 | 41 | ||
| 40 | (define-coding-system-alias 'junet 'iso-2022-jp) | 42 | (define-coding-system-alias 'junet 'iso-2022-jp) |
| 41 | 43 | ||
| @@ -43,8 +45,9 @@ | |||
| 43 | 'japanese-shift-jis 1 ?S | 45 | 'japanese-shift-jis 1 ?S |
| 44 | "Shift-JIS 8-bit encoding for Japanese (MIME:SHIFT_JIS)" | 46 | "Shift-JIS 8-bit encoding for Japanese (MIME:SHIFT_JIS)" |
| 45 | nil | 47 | nil |
| 46 | '(ascii japanese-jisx0208 japanese-jisx0208-1978 | 48 | '((safe-charsets ascii japanese-jisx0208 japanese-jisx0208-1978 |
| 47 | latin-jisx0201 katakana-jisx0201)) | 49 | latin-jisx0201 katakana-jisx0201) |
| 50 | (mime-charset . shift_jis))) | ||
| 48 | 51 | ||
| 49 | (define-coding-system-alias 'shift_jis 'japanese-shift-jis) | 52 | (define-coding-system-alias 'shift_jis 'japanese-shift-jis) |
| 50 | (define-coding-system-alias 'sjis 'japanese-shift-jis) | 53 | (define-coding-system-alias 'sjis 'japanese-shift-jis) |
| @@ -63,11 +66,11 @@ | |||
| 63 | (make-coding-system | 66 | (make-coding-system |
| 64 | 'japanese-iso-8bit 2 ?E | 67 | 'japanese-iso-8bit 2 ?E |
| 65 | "ISO 2022 based EUC encoding for Japanese (MIME:EUC-JP)" | 68 | "ISO 2022 based EUC encoding for Japanese (MIME:EUC-JP)" |
| 66 | '((ascii latin-jisx0201) (japanese-jisx0208 japanese-jisx0208-1978) | 69 | '(ascii japanese-jisx0208 katakana-jisx0201 japanese-jisx0212 |
| 67 | katakana-jisx0201 japanese-jisx0212 | ||
| 68 | short ascii-eol ascii-cntl nil nil single-shift) | 70 | short ascii-eol ascii-cntl nil nil single-shift) |
| 69 | '(ascii latin-jisx0201 japanese-jisx0208 japanese-jisx0208-1978 | 71 | '((safe-charsets ascii latin-jisx0201 japanese-jisx0208 japanese-jisx0208-1978 |
| 70 | katakana-jisx0201 japanese-jisx0212)) | 72 | katakana-jisx0201 japanese-jisx0212) |
| 73 | (mime-charset . euc-jp))) | ||
| 71 | 74 | ||
| 72 | (define-coding-system-alias 'euc-japan-1990 'japanese-iso-8bit) | 75 | (define-coding-system-alias 'euc-japan-1990 'japanese-iso-8bit) |
| 73 | (define-coding-system-alias 'euc-japan 'japanese-iso-8bit) | 76 | (define-coding-system-alias 'euc-japan 'japanese-iso-8bit) |
| @@ -76,12 +79,13 @@ | |||
| 76 | (set-language-info-alist | 79 | (set-language-info-alist |
| 77 | "Japanese" '((setup-function . setup-japanese-environment) | 80 | "Japanese" '((setup-function . setup-japanese-environment) |
| 78 | (tutorial . "TUTORIAL.jp") | 81 | (tutorial . "TUTORIAL.jp") |
| 79 | (charset . (japanese-jisx0208 japanese-jisx0208-1978 | 82 | (charset japanese-jisx0208 japanese-jisx0208-1978 |
| 80 | japanese-jisx0212 latin-jisx0201 | 83 | japanese-jisx0212 latin-jisx0201 katakana-jisx0201) |
| 81 | katakana-jisx0201)) | 84 | (coding-system iso-2022-jp japanese-iso-8bit |
| 82 | (coding-system . (iso-2022-jp japanese-iso-8bit | 85 | japanese-shift-jis japanese-iso-7bit-1978-irv) |
| 83 | japanese-shift-jis japanese-iso-7bit-1978-irv)) | 86 | (coding-priority iso-2022-jp japanese-iso-8bit |
| 84 | (sample-text . "Japanese ($BF|K\8l(B) $B$3$s$K$A$O(B, (I:]FAJ(B") | 87 | japanese-shift-jis) |
| 88 | (sample-text . "Japanese ($BF|K\8l(B) $B$3$s$K$A$O(B, (I:]FAJ(B") | ||
| 85 | (documentation . t))) | 89 | (documentation . t))) |
| 86 | 90 | ||
| 87 | ;;; japanese.el ends here | 91 | ;;; japanese.el ends here |
diff --git a/lisp/language/korean.el b/lisp/language/korean.el index ded33c2b028..4ecf7b85390 100644 --- a/lisp/language/korean.el +++ b/lisp/language/korean.el | |||
| @@ -31,31 +31,35 @@ | |||
| 31 | (make-coding-system | 31 | (make-coding-system |
| 32 | 'korean-iso-8bit 2 ?K | 32 | 'korean-iso-8bit 2 ?K |
| 33 | "ISO 2022 based EUC encoding for Korean KSC5601 (MIME:EUC-KR)" | 33 | "ISO 2022 based EUC encoding for Korean KSC5601 (MIME:EUC-KR)" |
| 34 | '((ascii t) korean-ksc5601 nil nil | 34 | '(ascii korean-ksc5601 nil nil |
| 35 | nil ascii-eol ascii-cntl) | 35 | nil ascii-eol ascii-cntl) |
| 36 | '(ascii korean-ksc5601)) | 36 | '((safe-charsets ascii korean-ksc5601) |
| 37 | (mime-charset . euc-kr))) | ||
| 37 | 38 | ||
| 38 | (define-coding-system-alias 'euc-kr 'korean-iso-8bit) | 39 | (define-coding-system-alias 'euc-kr 'korean-iso-8bit) |
| 39 | (define-coding-system-alias 'euc-korea 'korean-iso-8bit) | 40 | (define-coding-system-alias 'euc-korea 'korean-iso-8bit) |
| 40 | 41 | ||
| 41 | (make-coding-system | 42 | (make-coding-system |
| 42 | 'korean-iso-7bit-lock 2 ?k | 43 | 'iso-2022-kr 2 ?k |
| 43 | "ISO 2022 based 7-bit encoding for Korean KSC5601 (MIME:ISO-2022-KR)." | 44 | "ISO 2022 based 7-bit encoding for Korean KSC5601 (MIME:ISO-2022-KR)." |
| 44 | '(ascii (nil korean-ksc5601) nil nil | 45 | '(ascii (nil korean-ksc5601) nil nil |
| 45 | nil ascii-eol ascii-cntl seven locking-shift nil nil nil nil nil | 46 | nil ascii-eol ascii-cntl seven locking-shift nil nil nil nil nil |
| 46 | designation-bol) | 47 | designation-bol) |
| 47 | '(ascii korean-ksc5601)) | 48 | '((safe-charsets ascii korean-ksc5601) |
| 49 | (mime-charset . iso-2022-kr))) | ||
| 48 | 50 | ||
| 49 | (define-coding-system-alias 'iso-2022-kr 'korean-iso-7bit-lock) | 51 | (define-coding-system-alias 'korean-iso-7bit-lock 'iso-2022-kr) |
| 50 | 52 | ||
| 51 | (set-language-info-alist | 53 | (set-language-info-alist |
| 52 | "Korean" '((setup-function . setup-korean-environment) | 54 | "Korean" '((setup-function . setup-korean-environment) |
| 53 | (exit-function . exit-korean-environment) | 55 | (exit-function . exit-korean-environment) |
| 54 | (tutorial . "TUTORIAL.kr") | 56 | (tutorial . "TUTORIAL.kr") |
| 55 | (charset . (korean-ksc5601)) | 57 | (charset korean-ksc5601) |
| 56 | (coding-system . (korean-iso-7bit-lock korean-iso-8bit)) | 58 | (coding-system iso-2022-kr korean-iso-8bit) |
| 59 | (coding-priority korean-iso-8bit iso-2022-kr) | ||
| 57 | (sample-text . "Hangul ($(CGQ1[(B) $(C>H3gGO<<?d(B, $(C>H3gGO=J4O1n(B") | 60 | (sample-text . "Hangul ($(CGQ1[(B) $(C>H3gGO<<?d(B, $(C>H3gGO=J4O1n(B") |
| 58 | (documentation . "The following key bindings are avairable: | 61 | (documentation . "\ |
| 62 | The following key bindings are avairable while using Korean input methods: | ||
| 59 | Shift-SPC: toggle-korean-input-mthod | 63 | Shift-SPC: toggle-korean-input-mthod |
| 60 | Control-F9: quail-hangul-switch-symbol-ksc | 64 | Control-F9: quail-hangul-switch-symbol-ksc |
| 61 | F9: quail-hangul-switch-hanja") | 65 | F9: quail-hangul-switch-hanja") |
diff --git a/lisp/language/lao.el b/lisp/language/lao.el index e9bde98663c..175ced0f817 100644 --- a/lisp/language/lao.el +++ b/lisp/language/lao.el | |||
| @@ -27,14 +27,15 @@ | |||
| 27 | (make-coding-system | 27 | (make-coding-system |
| 28 | 'lao 2 ?L | 28 | 'lao 2 ?L |
| 29 | "8-bit encoding for ASCII (MSB=0) and LAO (MSB=1)" | 29 | "8-bit encoding for ASCII (MSB=0) and LAO (MSB=1)" |
| 30 | '((ascii t) (lao t) nil nil | 30 | '(ascii lao nil nil |
| 31 | nil ascii-eol) | 31 | nil nil) |
| 32 | '(ascii lao)) | 32 | '((safe-charsets ascii lao))) |
| 33 | 33 | ||
| 34 | (set-language-info-alist | 34 | (set-language-info-alist |
| 35 | "Lao" '((setup-function . setup-lao-environment) | 35 | "Lao" '((setup-function . setup-lao-environment) |
| 36 | (charset . (lao)) | 36 | (charset lao) |
| 37 | (coding-system . (lao)) | 37 | (coding-system lao) |
| 38 | (coding-priority lao) | ||
| 38 | (sample-text . "Lao((1>RJRERG(B) (1JP:R-04U1(B, 0(1"i1M-`0;Q190$[19ERG(B") | 39 | (sample-text . "Lao((1>RJRERG(B) (1JP:R-04U1(B, 0(1"i1M-`0;Q190$[19ERG(B") |
| 39 | (documentation . t))) | 40 | (documentation . t))) |
| 40 | 41 | ||
diff --git a/lisp/language/thai.el b/lisp/language/thai.el index a96c7cceef7..6ee6d8780bf 100644 --- a/lisp/language/thai.el +++ b/lisp/language/thai.el | |||
| @@ -31,13 +31,11 @@ | |||
| 31 | (make-coding-system | 31 | (make-coding-system |
| 32 | 'thai-tis620 2 ?T | 32 | 'thai-tis620 2 ?T |
| 33 | "8-bit encoding for ASCII (MSB=0) and Thai 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 thai-tis620 nil nil |
| 35 | nil ascii-eol) | 35 | nil ascii-eol) |
| 36 | '(ascii thai-tis620)) | 36 | '((safe-charsets ascii thai-tis620) |
| 37 | (coding-system-put 'thai-tis620 'post-read-conversion | 37 | (post-read-conversion . thai-post-read-conversion) |
| 38 | 'thai-post-read-conversion) | 38 | (pre-write-conversion . thai-pre-write-conversion))) |
| 39 | (coding-system-put 'thai-tis620 'pre-write-conversion | ||
| 40 | 'thai-pre-write-conversion) | ||
| 41 | 39 | ||
| 42 | (define-coding-system-alias 'th-tis620 'thai-tis620) | 40 | (define-coding-system-alias 'th-tis620 'thai-tis620) |
| 43 | (define-coding-system-alias 'tis620 'thai-tis620) | 41 | (define-coding-system-alias 'tis620 'thai-tis620) |
| @@ -45,9 +43,10 @@ | |||
| 45 | (set-language-info-alist | 43 | (set-language-info-alist |
| 46 | "Thai" '((tutorial . "TUTORIAL.th") | 44 | "Thai" '((tutorial . "TUTORIAL.th") |
| 47 | (setup-function . setup-thai-environment) | 45 | (setup-function . setup-thai-environment) |
| 48 | (charset . (thai-tis620)) | 46 | (charset thai-tis620) |
| 49 | (coding-system . (thai-tis620)) | 47 | (coding-system thai-tis620) |
| 50 | (sample-text . "Thai (,T@RIRd7B(B) ,TJ0GQ1J04U1$0CQ1:(B, ,TJ0GQ1J04U10$h1P(B") | 48 | (coding-priority thai-tis620) |
| 49 | (sample-text . "Thai (,T@RIRd7B(B) ,TJ(B0,TGQ(B1,TJ(B0,T4U(B1,T$(B0,TCQ(B1,T:(B, ,TJ(B0,TGQ(B1,TJ(B0,T4U(B10,T$h(B1,TP(B") | ||
| 51 | (documentation . t))) | 50 | (documentation . t))) |
| 52 | 51 | ||
| 53 | ;;; thai.el ends here | 52 | ;;; thai.el ends here |
diff --git a/lisp/language/tibetan.el b/lisp/language/tibetan.el index 1b1767a561a..5aded387bde 100644 --- a/lisp/language/tibetan.el +++ b/lisp/language/tibetan.el | |||
| @@ -89,21 +89,21 @@ | |||
| 89 | 89 | ||
| 90 | 90 | ||
| 91 | (make-coding-system | 91 | (make-coding-system |
| 92 | 'tibetan 2 ?Q | 92 | 'tibetan-iso-8bit 2 ?Q |
| 93 | "8-bit encoding for ASCII (MSB=0) and TIBETAN (MSB=1)" | 93 | "8-bit encoding for ASCII (MSB=0) and TIBETAN (MSB=1)" |
| 94 | '((ascii t) (tibetan t) nil nil | 94 | '(ascii tibetan nil nil |
| 95 | nil ascii-eol) | 95 | nil nil) |
| 96 | '(ascii tibetan)) | 96 | '((safe-charsets ascii tibetan) |
| 97 | (post-read-conversion . tibetan-post-read-conversion) | ||
| 98 | (pre-write-conversion . tibetan-pre-write-conversion))) | ||
| 97 | 99 | ||
| 98 | (coding-system-put 'tibetan 'post-read-conversion | 100 | (define-coding-system-alias 'tibetan 'tibetan-iso-8bit) |
| 99 | 'tibetan-post-read-conversion) | ||
| 100 | (coding-system-put 'tibetan 'pre-write-conversion | ||
| 101 | 'tibetan-pre-write-conversion) | ||
| 102 | 101 | ||
| 103 | (set-language-info-alist | 102 | (set-language-info-alist |
| 104 | "Tibetan" '((setup-function . setup-tibetan-environment) | 103 | "Tibetan" '((setup-function . setup-tibetan-environment) |
| 105 | (charset . (tibetan tibetan-1-column)) | 104 | (charset tibetan tibetan-1-column) |
| 106 | (coding-system . (tibetan)) | 105 | (coding-system tibetan-iso-8bit) |
| 106 | (coding-priority iso-2022-7bit tibetan-iso-8bit) | ||
| 107 | (documentation . t) | 107 | (documentation . t) |
| 108 | (sample-text . | 108 | (sample-text . |
| 109 | "Tibetan (2$(7"70"]1"2$(8!;2$(7%P`"Q1"2$(8!;(B) 2$(7#RP#SP#S1!>"72$P`"Q1$(8!;2$(7"E0"S1"G$(8!;$(7"72"20"[1$(8!;2$(7"D0"[1"#"G!>2"I0"]0"_1$(8!;2$(7"9`"Q1$(8!;2$(7"/0"S1$(8!;2$(7"5`"Q12#2`#90"[1$(8!;2$(7"H`#A`"U0"c1!>(B"))) | 109 | "Tibetan (2$(7"70"]1"2$(8!;2$(7%P`"Q1"2$(8!;(B) 2$(7#RP#SP#S1!>"72$P`"Q1$(8!;2$(7"E0"S1"G$(8!;$(7"72"20"[1$(8!;2$(7"D0"[1"#"G!>2"I0"]0"_1$(8!;2$(7"9`"Q1$(8!;2$(7"/0"S1$(8!;2$(7"5`"Q12#2`#90"[1$(8!;2$(7"H`#A`"U0"c1!>(B"))) |
diff --git a/lisp/language/vietnamese.el b/lisp/language/vietnamese.el index 5181155e52f..8b24c313fe5 100644 --- a/lisp/language/vietnamese.el +++ b/lisp/language/vietnamese.el | |||
| @@ -204,7 +204,8 @@ Both tables are indexed by the position code of Vietnamese characters.") | |||
| 204 | 'vietnamese-viscii 4 ?V | 204 | 'vietnamese-viscii 4 ?V |
| 205 | "8-bit encoding for Vietnamese VISCII 1.1 (MIME:VISCII)" | 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 | '(ascii vietnamese-viscii-lower vietnamese-viscii-upper)) | 207 | '((safe-charsets ascii vietnamese-viscii-lower vietnamese-viscii-upper) |
| 208 | (mime-charset . viscii))) | ||
| 208 | 209 | ||
| 209 | (define-coding-system-alias 'viscii 'vietnamese-viscii) | 210 | (define-coding-system-alias 'viscii 'vietnamese-viscii) |
| 210 | 211 | ||
| @@ -212,7 +213,7 @@ Both tables are indexed by the position code of Vietnamese characters.") | |||
| 212 | 'vietnamese-vscii 4 ?v | 213 | 'vietnamese-vscii 4 ?v |
| 213 | "8-bit encoding for Vietnamese VSCII-1" | 214 | "8-bit encoding for Vietnamese VSCII-1" |
| 214 | (cons ccl-decode-vscii ccl-encode-vscii) | 215 | (cons ccl-decode-vscii ccl-encode-vscii) |
| 215 | '(ascii vietnamese-viscii-lower vietnamese-viscii-upper)) | 216 | '((safe-charsets ascii vietnamese-viscii-lower vietnamese-viscii-upper))) |
| 216 | 217 | ||
| 217 | (define-coding-system-alias 'vscii 'vietnamese-vscii) | 218 | (define-coding-system-alias 'vscii 'vietnamese-vscii) |
| 218 | 219 | ||
| @@ -220,11 +221,9 @@ Both tables are indexed by the position code of Vietnamese characters.") | |||
| 220 | 'vietnamese-viqr 0 ?q | 221 | 'vietnamese-viqr 0 ?q |
| 221 | "Vietnamese latin transcription (VIQR)" | 222 | "Vietnamese latin transcription (VIQR)" |
| 222 | nil | 223 | nil |
| 223 | '(ascii vietnamese-viscii-lower vietnamese-viscii-upper)) | 224 | '((safe-charsets ascii vietnamese-viscii-lower vietnamese-viscii-upper) |
| 224 | (coding-system-put 'vietnamese-viqr 'post-read-conversion | 225 | (post-read-conversion . viqr-post-read-conversion) |
| 225 | 'viqr-post-read-conversion) | 226 | (pre-write-conversion . viqr-pre-write-conversion))) |
| 226 | (coding-system-put 'vietnamese-viqr 'pre-write-conversion | ||
| 227 | 'viqr-pre-write-conversion) | ||
| 228 | 227 | ||
| 229 | (define-coding-system-alias 'viqr 'vietnamese-viqr) | 228 | (define-coding-system-alias 'viqr 'vietnamese-viqr) |
| 230 | 229 | ||
| @@ -236,14 +235,16 @@ Both tables are indexed by the position code of Vietnamese characters.") | |||
| 236 | 235 | ||
| 237 | (set-language-info-alist | 236 | (set-language-info-alist |
| 238 | "Vietnamese" '((setup-function . setup-vietnamese-environment) | 237 | "Vietnamese" '((setup-function . setup-vietnamese-environment) |
| 239 | (charset . (vietnamese-viscii-lower | 238 | (charset vietnamese-viscii-lower vietnamese-viscii-upper) |
| 240 | vietnamese-viscii-upper)) | 239 | (coding-system vietnamese-viscii vietnamese-vscii |
| 241 | (coding-system . (vietnamese-viscii vietnamese-vscii | 240 | vietnamese-viqr) |
| 242 | vietnamese-viqr)) | 241 | (coding-priority vietnamese-viscii) |
| 243 | (sample-text . "Vietnamese (Ti,1*(Bng Vi,1.(Bt) Ch,1`(Bo b,1U(Bn") | 242 | (sample-text . "Vietnamese (Ti,1*(Bng Vi,1.(Bt) Ch,1`(Bo b,1U(Bn") |
| 244 | (documentation . "\ | 243 | (documentation . "\ |
| 245 | For Vietnamese, Emacs uses special charasets internally. | 244 | For Vietnamese, Emacs uses special charasets internally. |
| 246 | They can be decoded from and encoded to VISCC, VSCII, and VIQR.") | 245 | They can be decoded from and encoded to VISCC, VSCII, and VIQR. |
| 246 | Current setting put higher priority to the coding system VISCII than VSCII. | ||
| 247 | If you prefer VSCII, please do: (prefer-coding-system 'vietnamese-vscii)") | ||
| 247 | )) | 248 | )) |
| 248 | 249 | ||
| 249 | ;;; vietnamese.el ends here | 250 | ;;; vietnamese.el ends here |