diff options
| author | Kenichi Handa | 1997-06-18 13:03:19 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-06-18 13:03:19 +0000 |
| commit | efbc7e89e3d708832ec4bd2bc158e2df28c622eb (patch) | |
| tree | e903252ee299ab3840d711a5b55b29ef6bd4f8bc | |
| parent | 9e9af2e94fe9a2e3ff69f70d6ad789da97bc5a76 (diff) | |
| download | emacs-efbc7e89e3d708832ec4bd2bc158e2df28c622eb.tar.gz emacs-efbc7e89e3d708832ec4bd2bc158e2df28c622eb.zip | |
Don't make the keymap
describe-cyrillic-environment-map and
setup-cyrillic-environment-manp. Names of coding systems changed.
Give them more informative doc-string. Make iso-8859-5 alias of
cyrillic-iso-8bit, alternativenyj alias of
cyrillic-alternativenyj. For Cyrillic, provide single langauge
environment "Cyrillic".
Delete the code of calling register-input-method.
| -rw-r--r-- | lisp/language/cyrillic.el | 66 |
1 files changed, 15 insertions, 51 deletions
diff --git a/lisp/language/cyrillic.el b/lisp/language/cyrillic.el index 88489b6d611..cd44e4dee97 100644 --- a/lisp/language/cyrillic.el +++ b/lisp/language/cyrillic.el | |||
| @@ -29,23 +29,16 @@ | |||
| 29 | 29 | ||
| 30 | ;;; Code: | 30 | ;;; Code: |
| 31 | 31 | ||
| 32 | (define-prefix-command 'describe-cyrillic-environment-map) | ||
| 33 | (define-key-after describe-language-environment-map [Cyrillic] | ||
| 34 | '("Cyrillic" . describe-cyrillic-environment-map) | ||
| 35 | t) | ||
| 36 | |||
| 37 | (define-prefix-command 'setup-cyrillic-environment-map) | ||
| 38 | (define-key-after setup-language-environment-map [Cyrillic] | ||
| 39 | '("Cyrillic" . setup-cyrillic-environment-map) | ||
| 40 | t) | ||
| 41 | |||
| 42 | ;; ISO-8859-5 staff | 32 | ;; ISO-8859-5 staff |
| 43 | 33 | ||
| 44 | (make-coding-system | 34 | (make-coding-system |
| 45 | 'iso-8859-5 2 ?5 "MIME ISO-8859-5" | 35 | 'cyrillic-iso-8bit 2 ?5 |
| 36 | "ISO 2022 based 8-bit encoding for Cyrillic script (MIME:ISO-8859-5)" | ||
| 46 | '((ascii t) (cyrillic-iso8859-5 t) nil nil | 37 | '((ascii t) (cyrillic-iso8859-5 t) nil nil |
| 47 | nil ascii-eol ascii-cntl nil nil nil nil)) | 38 | nil ascii-eol ascii-cntl nil nil nil nil)) |
| 48 | 39 | ||
| 40 | (define-coding-system-alias 'cyrillic-iso-8bit 'iso-8859-5) | ||
| 41 | |||
| 49 | ;; KOI-8 staff | 42 | ;; KOI-8 staff |
| 50 | 43 | ||
| 51 | (define-ccl-program ccl-decode-koi8 | 44 | (define-ccl-program ccl-decode-koi8 |
| @@ -97,7 +90,7 @@ | |||
| 97 | ;; but it is also used for Korean. | 90 | ;; but it is also used for Korean. |
| 98 | ;; So people who use koi8 for languages other than Russian | 91 | ;; So people who use koi8 for languages other than Russian |
| 99 | ;; will have to forgive us. | 92 | ;; will have to forgive us. |
| 100 | ?R "Coding-system used for KOI8." | 93 | ?R "KOI8 8-bit encoding for Cyrillic (MIME: KOI8-R)" |
| 101 | (cons ccl-decode-koi8 ccl-encode-koi8)) | 94 | (cons ccl-decode-koi8 ccl-encode-koi8)) |
| 102 | 95 | ||
| 103 | (define-coding-system-alias 'cyrillic-koi8 'koi8-r) | 96 | (define-coding-system-alias 'cyrillic-koi8 'koi8-r) |
| @@ -165,10 +158,12 @@ | |||
| 165 | "CCL program to encode Alternativnyj.") | 158 | "CCL program to encode Alternativnyj.") |
| 166 | 159 | ||
| 167 | (make-coding-system | 160 | (make-coding-system |
| 168 | 'alternativnyj 4 | 161 | 'cyrillic-alternativnyj 4 ?A |
| 169 | ?A "Coding-system used for Alternativnyj" | 162 | "ALTERNATIVNYJ 8-bit encoding for Cyrillic" |
| 170 | (cons ccl-decode-alternativnyj ccl-encode-alternativnyj)) | 163 | (cons ccl-decode-alternativnyj ccl-encode-alternativnyj)) |
| 171 | 164 | ||
| 165 | (define-coding-system-alias 'cyrillic-alternativnyj 'alternativnyj) | ||
| 166 | |||
| 172 | (define-ccl-program ccl-encode-alternativnyj-font | 167 | (define-ccl-program ccl-encode-alternativnyj-font |
| 173 | '(0 | 168 | '(0 |
| 174 | ((r1 -= 160) | 169 | ((r1 -= 160) |
| @@ -188,43 +183,12 @@ | |||
| 188 | 183 | ||
| 189 | ;;; For all Cyrillics. | 184 | ;;; For all Cyrillics. |
| 190 | 185 | ||
| 191 | (register-input-method | ||
| 192 | "Cyrillic" '("quail-jcuken" quail-use-package "quail/cyrillic")) | ||
| 193 | (register-input-method | ||
| 194 | "Cyrillic" '("quail-macedonian" quail-use-package "quail/cyrillic")) | ||
| 195 | (register-input-method | ||
| 196 | "Cyrillic" '("quail-serbian" quail-use-package "quail/cyrillic")) | ||
| 197 | (register-input-method | ||
| 198 | "Cyrillic" '("quail-beylorussian" quail-use-package "quail/cyrillic")) | ||
| 199 | (register-input-method | ||
| 200 | "Cyrillic" '("quail-ukrainian" quail-use-package "quail/cyrillic")) | ||
| 201 | (register-input-method | ||
| 202 | "Cyrillic" '("quail-yawerty" quail-use-package "quail/cyrillic")) | ||
| 203 | |||
| 204 | (set-language-info-alist | ||
| 205 | "Cyrillic-ISO" '((setup-function . (setup-cyrillic-iso-environment | ||
| 206 | . setup-cyrillic-environment-map)) | ||
| 207 | (charset . (cyrillic-iso8859-5)) | ||
| 208 | (coding-system . (iso-8859-5)) | ||
| 209 | (sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!") | ||
| 210 | (documentation . (t . describe-cyrillic-environment-map)))) | ||
| 211 | |||
| 212 | (set-language-info-alist | ||
| 213 | "Cyrillic-KOI8" '((setup-function . (setup-cyrillic-koi8-environment | ||
| 214 | . setup-cyrillic-environment-map)) | ||
| 215 | (charset . (cyrillic-iso8859-5)) | ||
| 216 | (coding-system . (cyrillic-koi8)) | ||
| 217 | (sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!") | ||
| 218 | (documentation . (t . describe-cyrillic-environment-map)))) | ||
| 219 | |||
| 220 | (set-language-info-alist | 186 | (set-language-info-alist |
| 221 | "Cyrillic-Alternativnyj" '((setup-function | 187 | "Cyrillic" '((setup-function . setup-cyrillic-environment) |
| 222 | . (setup-cyrillic-alternativnyj-environment | 188 | (charset . (cyrillic-iso8859-5)) |
| 223 | . setup-cyrillic-environment-map)) | 189 | (coding-system . (cyrillic-iso-8bit cyrillic-koi8 |
| 224 | (charset . (cyrillic-iso8859-5)) | 190 | cyrillic-alternativnyj)) |
| 225 | (coding-system . (cyrillic-alternativnyj)) | 191 | (sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!") |
| 226 | (sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!") | 192 | (documentation . t))) |
| 227 | (documentation | ||
| 228 | . (t . describe-cyrillic-environment-map)))) | ||
| 229 | 193 | ||
| 230 | ;;; cyrillic.el ends here | 194 | ;;; cyrillic.el ends here |