diff options
| author | Kenichi Handa | 1998-08-10 06:29:02 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-08-10 06:29:02 +0000 |
| commit | bed5467804640b7457a0eb712a76f7d7c685347c (patch) | |
| tree | 9ef2ca6388c9110cba72c7ef094f66a9dd54d474 | |
| parent | 6bc51348fdab0a2b58b52e3b48e08f7fccb29fb2 (diff) | |
| download | emacs-bed5467804640b7457a0eb712a76f7d7c685347c.tar.gz emacs-bed5467804640b7457a0eb712a76f7d7c685347c.zip | |
(setup-8-bit-environment): Function deleted.
(setup-XXX-environment): Just call set-language-environment. If
they used to do some other jobs than what done by
set-language-environment, those jobs are done in
setup-XXX-environment-internal now.
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
the value to setup-XXX-environment-internal. Add properties
nonascii-translation, input-method, features, unibyte-syntax, and
unibyte-display.
| -rw-r--r-- | lisp/language/european.el | 72 |
1 files changed, 25 insertions, 47 deletions
diff --git a/lisp/language/european.el b/lisp/language/european.el index 98c5ad377e9..6526c327400 100644 --- a/lisp/language/european.el +++ b/lisp/language/european.el | |||
| @@ -28,34 +28,6 @@ | |||
| 28 | 28 | ||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | ;; Setup for LANGAUGE which uses one-byte 8-bit CHARSET, one-byte | ||
| 32 | ;; 8-bit coding system, and INPUT-METHOD. | ||
| 33 | (defun setup-8-bit-environment (language charset input-method) | ||
| 34 | (setup-english-environment) | ||
| 35 | (set-language-environment-coding-systems language) | ||
| 36 | |||
| 37 | (when default-enable-multibyte-characters | ||
| 38 | (if charset | ||
| 39 | (let ((nonascii-offset (- (make-char charset) 128))) | ||
| 40 | ;; Set up for insertion of characters in this character set | ||
| 41 | ;; when codes 0200 - 0377 are typed in. | ||
| 42 | (setq nonascii-insert-offset nonascii-offset))) | ||
| 43 | |||
| 44 | (if input-method | ||
| 45 | (setq default-input-method input-method))) | ||
| 46 | |||
| 47 | ;; If this language environment supports unibyte operation, | ||
| 48 | ;; load the proper syntax definitions for codes 0240-0377. | ||
| 49 | (when (get-language-info language 'unibyte-syntax) | ||
| 50 | (let ((set-case-syntax-set-multibyte nil)) | ||
| 51 | (load (get-language-info language 'unibyte-syntax) nil t) | ||
| 52 | (set-standard-case-table (standard-case-table)) | ||
| 53 | (let ((list (buffer-list))) | ||
| 54 | (while list | ||
| 55 | (with-current-buffer (car list) | ||
| 56 | (set-case-table (standard-case-table))) | ||
| 57 | (setq list (cdr list))))))) | ||
| 58 | |||
| 59 | ;; Latin-1 (ISO-8859-1) | 31 | ;; Latin-1 (ISO-8859-1) |
| 60 | 32 | ||
| 61 | (make-coding-system | 33 | (make-coding-system |
| @@ -81,14 +53,15 @@ | |||
| 81 | (defun setup-latin1-environment () | 53 | (defun setup-latin1-environment () |
| 82 | "Set up multilingual environment (MULE) for European Latin-1 users." | 54 | "Set up multilingual environment (MULE) for European Latin-1 users." |
| 83 | (interactive) | 55 | (interactive) |
| 84 | (setup-8-bit-environment "Latin-1" 'latin-iso8859-1 "latin-1-prefix")) | 56 | (set-language-environment "Latin-1")) |
| 85 | 57 | ||
| 86 | (set-language-info-alist | 58 | (set-language-info-alist |
| 87 | "Latin-1" '((setup-function . setup-latin1-environment) | 59 | "Latin-1" '((charset ascii latin-iso8859-1) |
| 88 | (charset ascii latin-iso8859-1) | ||
| 89 | (coding-system iso-latin-1) | 60 | (coding-system iso-latin-1) |
| 90 | (coding-priority iso-latin-1) | 61 | (coding-priority iso-latin-1) |
| 62 | (nonascii-translation . latin-iso8859-1) | ||
| 91 | (unibyte-syntax . "latin-1") | 63 | (unibyte-syntax . "latin-1") |
| 64 | (unibyte-display . iso-latin-1) | ||
| 92 | (sample-text | 65 | (sample-text |
| 93 | . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!") | 66 | . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!") |
| 94 | (documentation . "\ | 67 | (documentation . "\ |
| @@ -114,14 +87,15 @@ These languages are supported with the Latin-1 (ISO-8859-1) character set: | |||
| 114 | (defun setup-latin2-environment () | 87 | (defun setup-latin2-environment () |
| 115 | "Set up multilingual environment (MULE) for European Latin-2 users." | 88 | "Set up multilingual environment (MULE) for European Latin-2 users." |
| 116 | (interactive) | 89 | (interactive) |
| 117 | (setup-8-bit-environment "Latin-2" 'latin-iso8859-2 "latin-2-prefix")) | 90 | (set-language-environment "Laint-2")) |
| 118 | 91 | ||
| 119 | (set-language-info-alist | 92 | (set-language-info-alist |
| 120 | "Latin-2" '((setup-function . setup-latin2-environment) | 93 | "Latin-2" '((charset ascii latin-iso8859-2) |
| 121 | (charset ascii latin-iso8859-2) | ||
| 122 | (coding-system iso-latin-2) | 94 | (coding-system iso-latin-2) |
| 123 | (coding-priority iso-latin-2) | 95 | (coding-priority iso-latin-2) |
| 96 | (nonascii-translation . latin-iso8859-2) | ||
| 124 | (unibyte-syntax . "latin-2") | 97 | (unibyte-syntax . "latin-2") |
| 98 | (unibyte-display . iso-latin-2) | ||
| 125 | (documentation . "\ | 99 | (documentation . "\ |
| 126 | These languages are supported with the Latin-2 (ISO-8859-2) character set: | 100 | These languages are supported with the Latin-2 (ISO-8859-2) character set: |
| 127 | Albanian, Czech, English, German, Hungarian, Polish, Romanian, | 101 | Albanian, Czech, English, German, Hungarian, Polish, Romanian, |
| @@ -146,14 +120,15 @@ These languages are supported with the Latin-2 (ISO-8859-2) character set: | |||
| 146 | (defun setup-latin3-environment () | 120 | (defun setup-latin3-environment () |
| 147 | "Set up multilingual environment (MULE) for European Latin-3 users." | 121 | "Set up multilingual environment (MULE) for European Latin-3 users." |
| 148 | (interactive) | 122 | (interactive) |
| 149 | (setup-8-bit-environment "Latin-3" 'latin-iso8859-3 "latin-3-prefix")) | 123 | (set-language-environment "Latin-3")) |
| 150 | 124 | ||
| 151 | (set-language-info-alist | 125 | (set-language-info-alist |
| 152 | "Latin-3" '((setup-function . setup-latin3-environment) | 126 | "Latin-3" '((charset ascii latin-iso8859-3) |
| 153 | (charset ascii latin-iso8859-3) | ||
| 154 | (coding-system iso-latin-3) | 127 | (coding-system iso-latin-3) |
| 155 | (coding-priority iso-latin-3) | 128 | (coding-priority iso-latin-3) |
| 129 | (nonascii-translation . latin-iso8859-3) | ||
| 156 | (unibyte-syntax . "latin-3") | 130 | (unibyte-syntax . "latin-3") |
| 131 | (unibyte-display . iso-latin-3) | ||
| 157 | (documentation . "\ | 132 | (documentation . "\ |
| 158 | These languages are supported with the Latin-3 (ISO-8859-3) character set: | 133 | These languages are supported with the Latin-3 (ISO-8859-3) character set: |
| 159 | Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician, | 134 | Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician, |
| @@ -177,14 +152,15 @@ These languages are supported with the Latin-3 (ISO-8859-3) character set: | |||
| 177 | (defun setup-latin4-environment () | 152 | (defun setup-latin4-environment () |
| 178 | "Set up multilingual environment (MULE) for European Latin-4 users." | 153 | "Set up multilingual environment (MULE) for European Latin-4 users." |
| 179 | (interactive) | 154 | (interactive) |
| 180 | (setup-8-bit-environment "Latin-4" 'latin-iso8859-4 "latin-4-prefix")) | 155 | (set-language-environment "Latin-4")) |
| 181 | 156 | ||
| 182 | (set-language-info-alist | 157 | (set-language-info-alist |
| 183 | "Latin-4" '((setup-function . setup-latin4-environment) | 158 | "Latin-4" '((charset ascii latin-iso8859-4) |
| 184 | (charset ascii latin-iso8859-4) | ||
| 185 | (coding-system iso-8859-4) | 159 | (coding-system iso-8859-4) |
| 186 | (coding-priority iso-8859-4) | 160 | (coding-priority iso-8859-4) |
| 161 | (nonascii-translation . latin-iso8859-4) | ||
| 187 | (unibyte-syntax . "latin-4") | 162 | (unibyte-syntax . "latin-4") |
| 163 | (unibyte-display . iso-8859-4) | ||
| 188 | (documentation . "\ | 164 | (documentation . "\ |
| 189 | These languages are supported with the Latin-4 (ISO-8859-4) character set: | 165 | These languages are supported with the Latin-4 (ISO-8859-4) character set: |
| 190 | Danish, English, Estonian, Finnish, German, Greenlandic, Lappish, | 166 | Danish, English, Estonian, Finnish, German, Greenlandic, Lappish, |
| @@ -208,14 +184,15 @@ These languages are supported with the Latin-4 (ISO-8859-4) character set: | |||
| 208 | (defun setup-latin5-environment () | 184 | (defun setup-latin5-environment () |
| 209 | "Set up multilingual environment (MULE) for European Latin-5 users." | 185 | "Set up multilingual environment (MULE) for European Latin-5 users." |
| 210 | (interactive) | 186 | (interactive) |
| 211 | (setup-8-bit-environment "Latin-5" 'latin-iso8859-9 "latin-5-prefix")) | 187 | (set-language-environment "Latin-5")) |
| 212 | 188 | ||
| 213 | (set-language-info-alist | 189 | (set-language-info-alist |
| 214 | "Latin-5" '((setup-function . setup-latin5-environment) | 190 | "Latin-5" '((charset ascii latin-iso8859-9) |
| 215 | (charset ascii latin-iso8859-9) | ||
| 216 | (coding-system iso-latin-5) | 191 | (coding-system iso-latin-5) |
| 217 | (coding-priority iso-latin-5) | 192 | (coding-priority iso-latin-5) |
| 193 | (nonascii-translation . latin-iso8859-9) | ||
| 218 | (unibyte-syntax . "latin-5") | 194 | (unibyte-syntax . "latin-5") |
| 195 | (unibyte-display . iso-latin-5) | ||
| 219 | (documentation . "\ | 196 | (documentation . "\ |
| 220 | These languages are supported with the Latin-5 (ISO-8859-9) character set.")) | 197 | These languages are supported with the Latin-5 (ISO-8859-9) character set.")) |
| 221 | '("European")) | 198 | '("European")) |
| @@ -224,16 +201,17 @@ These languages are supported with the Latin-5 (ISO-8859-9) character set.")) | |||
| 224 | (defun setup-german-environment () | 201 | (defun setup-german-environment () |
| 225 | "Set up multilingual environment (MULE) for German users." | 202 | "Set up multilingual environment (MULE) for German users." |
| 226 | (interactive) | 203 | (interactive) |
| 227 | (funcall (get-language-info "Latin-1" 'setup-function)) | 204 | (set-language-environment "German")) |
| 228 | (setq default-input-method "german-postfix")) | ||
| 229 | 205 | ||
| 230 | (set-language-info-alist | 206 | (set-language-info-alist |
| 231 | "German" '((setup-function . setup-german-environment) | 207 | "German" '((tutorial . "TUTORIAL.de") |
| 232 | (tutorial . "TUTORIAL.de") | ||
| 233 | (charset ascii latin-iso8859-1) | 208 | (charset ascii latin-iso8859-1) |
| 234 | (coding-system iso-latin-1) | 209 | (coding-system iso-latin-1) |
| 235 | (coding-priority iso-latin-1) | 210 | (coding-priority iso-latin-1) |
| 211 | (input-method "german-postfix") | ||
| 212 | (nonascii-translation . iso-latin-1) | ||
| 236 | (unibyte-syntax . "latin-1") | 213 | (unibyte-syntax . "latin-1") |
| 214 | (unibyte-display . iso-latin-1) | ||
| 237 | (sample-text . "\ | 215 | (sample-text . "\ |
| 238 | German (Deutsch Nord) Guten Tag | 216 | German (Deutsch Nord) Guten Tag |
| 239 | German (Deutsch S,A|(Bd) Gr,A|_(B Gott") | 217 | German (Deutsch S,A|(Bd) Gr,A|_(B Gott") |