diff options
| author | Kenichi Handa | 1997-05-12 07:00:16 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-05-12 07:00:16 +0000 |
| commit | dc09922d1e82dbe164379301e242961748c7e67d (patch) | |
| tree | a0e7f24bdd7da511752f92891f9a6716ec77bc5f | |
| parent | fb8c8b4731971565fe497d6090d9a999b06ea8ef (diff) | |
| download | emacs-dc09922d1e82dbe164379301e242961748c7e67d.tar.gz emacs-dc09922d1e82dbe164379301e242961748c7e67d.zip | |
Make functions setup-LANGUAGE-environment
interactive and add new functions describe-LANGUAGE-support for
all LANGUAGEs supported. Remove resisterations of input methods
which use the function encoded-kbd-select-terminal.
| -rw-r--r-- | lisp/language/cyrillic.el | 12 | ||||
| -rw-r--r-- | lisp/language/ethiopic.el | 16 | ||||
| -rw-r--r-- | lisp/language/greek.el | 12 | ||||
| -rw-r--r-- | lisp/language/hebrew.el | 13 | ||||
| -rw-r--r-- | lisp/language/indian.el | 14 | ||||
| -rw-r--r-- | lisp/language/lao.el | 13 | ||||
| -rw-r--r-- | lisp/language/thai.el | 13 | ||||
| -rw-r--r-- | lisp/language/vietnamese.el | 16 |
8 files changed, 91 insertions, 18 deletions
diff --git a/lisp/language/cyrillic.el b/lisp/language/cyrillic.el index d7d82c2397f..3646521e003 100644 --- a/lisp/language/cyrillic.el +++ b/lisp/language/cyrillic.el | |||
| @@ -187,6 +187,8 @@ | |||
| 187 | "Cyrillic" '("quail-yawerty" quail-use-package "quail/cyrillic")) | 187 | "Cyrillic" '("quail-yawerty" quail-use-package "quail/cyrillic")) |
| 188 | 188 | ||
| 189 | (defun setup-cyrillic-environment () | 189 | (defun setup-cyrillic-environment () |
| 190 | "Setup multilingual environment for Cyrillic users." | ||
| 191 | (interactive) | ||
| 190 | (setq primary-language "Cyrillic") | 192 | (setq primary-language "Cyrillic") |
| 191 | 193 | ||
| 192 | (setq coding-category-iso-8-1 'iso-8859-5) | 194 | (setq coding-category-iso-8-1 'iso-8859-5) |
| @@ -202,11 +204,17 @@ | |||
| 202 | (setq default-input-method '("Cyrillic" . "quail-yawerty")) | 204 | (setq default-input-method '("Cyrillic" . "quail-yawerty")) |
| 203 | ) | 205 | ) |
| 204 | 206 | ||
| 207 | (defun describe-cyrillic-support () | ||
| 208 | "Describe how Emacs support Cyrillic." | ||
| 209 | (interactive) | ||
| 210 | (describe-language-support-internal "Cyrillic")) | ||
| 211 | |||
| 205 | (set-language-info-alist | 212 | (set-language-info-alist |
| 206 | "Cyrillic" '((setup-function . setup-cyrillic-environment) | 213 | "Cyrillic" '((setup-function . setup-cyrillic-environment) |
| 214 | (describe-function . describe-cyrillic-support) | ||
| 207 | (charset . (cyrillic-iso8859-5)) | 215 | (charset . (cyrillic-iso8859-5)) |
| 208 | (coding-system . (iso-8859-5 koi8 alternativnyj)) | 216 | (coding-system . (iso-8859-5 koi8 alternativnyj)) |
| 209 | (documentation . t) | 217 | (sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!") |
| 210 | (sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!"))) | 218 | (documentation . nil))) |
| 211 | 219 | ||
| 212 | ;;; cyrillic.el ends here | 220 | ;;; cyrillic.el ends here |
diff --git a/lisp/language/ethiopic.el b/lisp/language/ethiopic.el index 7ca8e252fa2..f51d99fdeac 100644 --- a/lisp/language/ethiopic.el +++ b/lisp/language/ethiopic.el | |||
| @@ -51,7 +51,9 @@ | |||
| 51 | (register-input-method | 51 | (register-input-method |
| 52 | "Ethiopic" '("quail-ethio" quail-use-package "quail/ethiopic")) | 52 | "Ethiopic" '("quail-ethio" quail-use-package "quail/ethiopic")) |
| 53 | 53 | ||
| 54 | (defun setup-ethio-environment () | 54 | (defun setup-ethiopic-environment () |
| 55 | "Setup multilingual environment for Ethiopic." | ||
| 56 | (interactive) | ||
| 55 | (setq primary-language "Ethiopic") | 57 | (setq primary-language "Ethiopic") |
| 56 | 58 | ||
| 57 | (setq default-input-method '("Ethiopic" . "quail-ethio")) | 59 | (setq default-input-method '("Ethiopic" . "quail-ethio")) |
| @@ -83,10 +85,16 @@ | |||
| 83 | (define-key mail-mode-map [C-f5] 'fidel-to-sera-mail))) | 85 | (define-key mail-mode-map [C-f5] 'fidel-to-sera-mail))) |
| 84 | ) | 86 | ) |
| 85 | 87 | ||
| 88 | (defun describe-ethiopic-support () | ||
| 89 | "Describe how Emacs supports Ethiopic." | ||
| 90 | (interactive) | ||
| 91 | (describe-language-support-internal "Ethiopic")) | ||
| 92 | |||
| 86 | (set-language-info-alist | 93 | (set-language-info-alist |
| 87 | "Ethiopic" '((setup-function . setup-ethio-environment) | 94 | "Ethiopic" '((setup-function . setup-ethiopic-environment) |
| 95 | (describe-function . describe-ethiopic-support) | ||
| 88 | (charset . (ethiopic)) | 96 | (charset . (ethiopic)) |
| 89 | (documentation . t) | 97 | (sample-text . "$(3$O#U!.(B") |
| 90 | (sample-text . "$(3$O#U!.(B"))) | 98 | (documentation . nil))) |
| 91 | 99 | ||
| 92 | ;;; ethiopic.el ends here | 100 | ;;; ethiopic.el ends here |
diff --git a/lisp/language/greek.el b/lisp/language/greek.el index c922258b1a6..6630e6bdb1d 100644 --- a/lisp/language/greek.el +++ b/lisp/language/greek.el | |||
| @@ -37,6 +37,8 @@ | |||
| 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 | "Setup multilingual environment (MULE) for Greek." | ||
| 41 | (interactive) | ||
| 40 | (setq coding-category-iso-8-1 'iso-8859-7) | 42 | (setq coding-category-iso-8-1 'iso-8859-7) |
| 41 | 43 | ||
| 42 | (set-coding-priority | 44 | (set-coding-priority |
| @@ -50,11 +52,17 @@ | |||
| 50 | (setq default-input-method '("Greek" . "quail-greek")) | 52 | (setq default-input-method '("Greek" . "quail-greek")) |
| 51 | ) | 53 | ) |
| 52 | 54 | ||
| 55 | (defun describe-greek-support () | ||
| 56 | "Describe how Emacs supports Greek." | ||
| 57 | (interactive) | ||
| 58 | (describe-language-support-internal "Greek")) | ||
| 59 | |||
| 53 | (set-language-info-alist | 60 | (set-language-info-alist |
| 54 | "Greek" '((setup-function . setup-greek-environment) | 61 | "Greek" '((setup-function . setup-greek-environment) |
| 62 | (describe-function. describe-greek-support) | ||
| 55 | (charset . (greek-iso8859-7)) | 63 | (charset . (greek-iso8859-7)) |
| 56 | (coding-system . (iso-8859-7)) | 64 | (coding-system . (iso-8859-7)) |
| 57 | (documentation . t) | 65 | (sample-text . "Greek (,FGkk]mija(B) ,FCei\(B ,Fsar(B") |
| 58 | (sample-text . "Greek (,FGkk]mija(B) ,FCei\(B ,Fsar(B"))) | 66 | (documentation . nil))) |
| 59 | 67 | ||
| 60 | ;;; greek.el ends here | 68 | ;;; greek.el ends here |
diff --git a/lisp/language/hebrew.el b/lisp/language/hebrew.el index 7ba222f1567..592734620bc 100644 --- a/lisp/language/hebrew.el +++ b/lisp/language/hebrew.el | |||
| @@ -37,6 +37,9 @@ | |||
| 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 | "Setup multilingual environment (MULE) for Hebrew. | ||
| 41 | But, please note that right-to-left writing is not yet supported." | ||
| 42 | (interactive) | ||
| 40 | (setq coding-category-iso-8-1 'iso-8859-8) | 43 | (setq coding-category-iso-8-1 'iso-8859-8) |
| 41 | 44 | ||
| 42 | (set-coding-priority | 45 | (set-coding-priority |
| @@ -51,11 +54,17 @@ | |||
| 51 | (setq default-input-method '("Hebrew" . "quail-hebrew")) | 54 | (setq default-input-method '("Hebrew" . "quail-hebrew")) |
| 52 | ) | 55 | ) |
| 53 | 56 | ||
| 57 | (defun describe-hebrew-support () | ||
| 58 | "Describe how Emacs supports Hebrew." | ||
| 59 | (interactive) | ||
| 60 | (describe-language-support-internal "Hebrew")) | ||
| 61 | |||
| 54 | (set-language-info-alist | 62 | (set-language-info-alist |
| 55 | "Hebrew" '((setup-function . setup-hebrew-environment) | 63 | "Hebrew" '((setup-function . setup-hebrew-environment) |
| 64 | (describe-function . describe-hebrew-support) | ||
| 56 | (charset . (hebrew-iso8859-8)) | 65 | (charset . (hebrew-iso8859-8)) |
| 57 | (coding-system . (iso-8859-8)) | 66 | (coding-system . (iso-8859-8)) |
| 58 | (documentation . "Right-to-left writing is Not yet supported") | 67 | (sample-text . "Hebrew ,Hylem(B") |
| 59 | (sample-text . "Hebrew ,Hylem(B"))) | 68 | (documentation . "Right-to-left writing is not yet supported."))) |
| 60 | 69 | ||
| 61 | ;;; hebew.el ends here | 70 | ;;; hebew.el ends here |
diff --git a/lisp/language/indian.el b/lisp/language/indian.el index 809ff48ae9d..d2aa5ab8688 100644 --- a/lisp/language/indian.el +++ b/lisp/language/indian.el | |||
| @@ -51,6 +51,20 @@ | |||
| 51 | 51 | ||
| 52 | ;;; Code: | 52 | ;;; Code: |
| 53 | 53 | ||
| 54 | (defun describe-indian-support () | ||
| 55 | "Describe how Emacs support Indian languages." | ||
| 56 | (interactive) | ||
| 57 | (describe-language-support-internal "Indian")) | ||
| 58 | |||
| 59 | (set-language-info-alist | ||
| 60 | "Indian" '((describe-function . describe-indian-support) | ||
| 61 | (charset . (indian-is13194)) | ||
| 62 | (documentation . "\ | ||
| 63 | Among Indian languages, such languages using Devanagari scripts as | ||
| 64 | Hindi and Marathi are supproted. For them, please specify Devanagari | ||
| 65 | for more detail.") | ||
| 66 | )) | ||
| 67 | |||
| 54 | ;; Followings are what you see when you refer to the Emacs | 68 | ;; Followings are what you see when you refer to the Emacs |
| 55 | ;; representations of IS 13194 charcters. However, this is merely | 69 | ;; representations of IS 13194 charcters. However, this is merely |
| 56 | ;; tentative apperance, and you must convert them by | 70 | ;; tentative apperance, and you must convert them by |
diff --git a/lisp/language/lao.el b/lisp/language/lao.el index 78e73e1102b..1bedb6cc91f 100644 --- a/lisp/language/lao.el +++ b/lisp/language/lao.el | |||
| @@ -37,6 +37,9 @@ | |||
| 37 | "Lao" '("quail-lrt" quail-use-package "quail/lrt")) | 37 | "Lao" '("quail-lrt" quail-use-package "quail/lrt")) |
| 38 | 38 | ||
| 39 | (defun setup-lao-environment () | 39 | (defun setup-lao-environment () |
| 40 | "Setup multilingual environment (MULE) for Lao." | ||
| 41 | (interactive) | ||
| 42 | (setup-english-environment) | ||
| 40 | (setq coding-category-iso-8-1 'lao) | 43 | (setq coding-category-iso-8-1 'lao) |
| 41 | 44 | ||
| 42 | (set-coding-priority | 45 | (set-coding-priority |
| @@ -47,12 +50,18 @@ | |||
| 47 | 50 | ||
| 48 | (setq default-input-method '("Lao" . "quail-lao"))) | 51 | (setq default-input-method '("Lao" . "quail-lao"))) |
| 49 | 52 | ||
| 53 | (defun describe-lao-support () | ||
| 54 | "Describe how Emacs supports Lao." | ||
| 55 | (interactive) | ||
| 56 | (describe-language-support-internal "Lao")) | ||
| 57 | |||
| 50 | (set-language-info-alist | 58 | (set-language-info-alist |
| 51 | "Lao" '((setup-function . setup-lao-environment) | 59 | "Lao" '((setup-function . setup-lao-environment) |
| 60 | (describe-function . describe-lao-support) | ||
| 52 | (charset . (lao)) | 61 | (charset . (lao)) |
| 53 | (coding-system . (lao)) | 62 | (coding-system . (lao)) |
| 54 | (documentation . t) | 63 | (sample-text . "Lao((1>RJRERG(B) (1JP:R-04U1(B, 0(1"i1M-`0;Q190$[19ERG(B") |
| 55 | (sample-text . "Lao((1>RJRERG(B) (1JP:R-04U1(B, 0(1"i1M-`0;Q190$[19ERG(B"))) | 64 | (documentation . nil))) |
| 56 | 65 | ||
| 57 | (aset use-default-ascent ?(1;(B t) | 66 | (aset use-default-ascent ?(1;(B t) |
| 58 | (aset use-default-ascent ?(1=(B t) | 67 | (aset use-default-ascent ?(1=(B t) |
diff --git a/lisp/language/thai.el b/lisp/language/thai.el index c279c248141..8172d7f59a3 100644 --- a/lisp/language/thai.el +++ b/lisp/language/thai.el | |||
| @@ -42,6 +42,9 @@ | |||
| 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 | "Setup multilingual environment (MULE) for Thai." | ||
| 46 | (interactive) | ||
| 47 | (setup-english-environment) | ||
| 45 | (setq coding-category-iso-8-1 'th-tis620) | 48 | (setq coding-category-iso-8-1 'th-tis620) |
| 46 | 49 | ||
| 47 | (set-coding-priority | 50 | (set-coding-priority |
| @@ -53,12 +56,18 @@ | |||
| 53 | (setq default-input-method '("Thai" . "quail-thai")) | 56 | (setq default-input-method '("Thai" . "quail-thai")) |
| 54 | ) | 57 | ) |
| 55 | 58 | ||
| 59 | (defun describe-thai-support () | ||
| 60 | "Describe how Emacs supports Thai." | ||
| 61 | (interactive) | ||
| 62 | (describe-language-support-internal "Thai")) | ||
| 63 | |||
| 56 | (set-language-info-alist | 64 | (set-language-info-alist |
| 57 | "Thai" '((tutorial . "TUTORIAL.th") | 65 | "Thai" '((tutorial . "TUTORIAL.th") |
| 58 | (setup-function . setup-thai-environment) | 66 | (setup-function . setup-thai-environment) |
| 67 | (describe-function . describe-thai-support) | ||
| 59 | (charset . (thai-tis620)) | 68 | (charset . (thai-tis620)) |
| 60 | (coding-system . (th-tis620)) | 69 | (coding-system . (th-tis620)) |
| 61 | (documentation . t) | 70 | (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"))) | 71 | (documentation . nil))) |
| 63 | 72 | ||
| 64 | ;;; thai.el ends here | 73 | ;;; thai.el ends here |
diff --git a/lisp/language/vietnamese.el b/lisp/language/vietnamese.el index fb62ab33a14..d8c09f55ce0 100644 --- a/lisp/language/vietnamese.el +++ b/lisp/language/vietnamese.el | |||
| @@ -226,7 +226,9 @@ Both tables are indexed by the position code of Vietnamese characters.") | |||
| 226 | (register-input-method | 226 | (register-input-method |
| 227 | "Vietnamese" '("quail-viqr" quail-use-package "quail/viqr")) | 227 | "Vietnamese" '("quail-viqr" quail-use-package "quail/viqr")) |
| 228 | 228 | ||
| 229 | (defun setup-viet-environment () | 229 | (defun setup-vietnamese-environment () |
| 230 | "Setup multilingual environment (MULE) for Vietnamese." | ||
| 231 | (interactive) | ||
| 230 | ;; for VISCII users | 232 | ;; for VISCII users |
| 231 | (setq coding-category-binary 'viscii) | 233 | (setq coding-category-binary 'viscii) |
| 232 | 234 | ||
| @@ -242,12 +244,18 @@ Both tables are indexed by the position code of Vietnamese characters.") | |||
| 242 | (setq default-input-method '("Vietnamese" . "quail-viqr")) | 244 | (setq default-input-method '("Vietnamese" . "quail-viqr")) |
| 243 | ) | 245 | ) |
| 244 | 246 | ||
| 247 | (defun describe-vietnamese-support () | ||
| 248 | "Describe how Emacs supports Vietnamese." | ||
| 249 | (interactive) | ||
| 250 | (describe-language-support-internal "Vietnamese")) | ||
| 251 | |||
| 245 | (set-language-info-alist | 252 | (set-language-info-alist |
| 246 | "Vietnamese" '((setup-function . setup-viet-environment) | 253 | "Vietnamese" '((setup-function . setup-vietnamese-environment) |
| 254 | (describe-function . describe-vietnamese-support) | ||
| 247 | (charset . (vietnamese-viscii-lower | 255 | (charset . (vietnamese-viscii-lower |
| 248 | vietnamese-viscii-upper)) | 256 | vietnamese-viscii-upper)) |
| 249 | (coding-system . (viscii vscii viqr)) | 257 | (coding-system . (viscii vscii viqr)) |
| 250 | (documentation . t) | 258 | (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"))) | 259 | (documentation . nil))) |
| 252 | 260 | ||
| 253 | ;;; vietnamese.el ends here | 261 | ;;; vietnamese.el ends here |