diff options
| author | Dave Love | 2002-05-20 15:38:40 +0000 |
|---|---|---|
| committer | Dave Love | 2002-05-20 15:38:40 +0000 |
| commit | 0859301ab8d56000f4e9dadc4f6eec5b7179de90 (patch) | |
| tree | fc9968c3c277e2980043ed79c754568289950309 | |
| parent | 5b73fda306e0a2840e416e40484a74608ae04858 (diff) | |
| download | emacs-0859301ab8d56000f4e9dadc4f6eec5b7179de90.tar.gz emacs-0859301ab8d56000f4e9dadc4f6eec5b7179de90.zip | |
(iso-latin-6, iso-8859-10, latin-6)
(iso-latin-7, iso-8859-13, latin-7, hp-roman8, roman8)
(adobe-standard-encoding, cp850, ibm850): New coding systems.
("Latin-6", "Latin-7"): New language environments.
| -rw-r--r-- | lisp/language/european.el | 75 |
1 files changed, 72 insertions, 3 deletions
diff --git a/lisp/language/european.el b/lisp/language/european.el index 020fe7a5796..916910f305a 100644 --- a/lisp/language/european.el +++ b/lisp/language/european.el | |||
| @@ -25,8 +25,9 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Commentary: | 26 | ;;; Commentary: |
| 27 | 27 | ||
| 28 | ;; For European scripts, character sets ISO8859-1,2,3,4,9,13,14,15, | 28 | ;; For European scripts, character sets ISO8859-1,2,3,4,9,10,13,14,15, |
| 29 | ;; windows-1250,2,4,7, mac-roman and next are supported. | 29 | ;; windows-1250,2,4,7, mac-roman, adobe-standard-encoding, cp850 and |
| 30 | ;; next are supported. | ||
| 30 | 31 | ||
| 31 | ;;; Code: | 32 | ;;; Code: |
| 32 | 33 | ||
| @@ -172,6 +173,53 @@ These languages are supported with the Latin-4 (ISO-8859-4) character set: | |||
| 172 | '("European")) | 173 | '("European")) |
| 173 | 174 | ||
| 174 | 175 | ||
| 176 | ;; Latin-6 (ISO-8859-10) | ||
| 177 | |||
| 178 | (define-coding-system 'iso-latin-6 | ||
| 179 | "ISO 2022 based 8-bit encoding for Latin-6 (MIME:ISO-8859-10)." | ||
| 180 | :coding-type 'charset | ||
| 181 | :mnemonic ?9 | ||
| 182 | :charset-list '(iso-8859-10) | ||
| 183 | :mime-charset 'iso-8859-10) | ||
| 184 | |||
| 185 | (define-coding-system-alias 'iso-8859-10 'iso-latin-6) | ||
| 186 | (define-coding-system-alias 'latin-6 'iso-latin-6) | ||
| 187 | |||
| 188 | (set-language-info-alist | ||
| 189 | "Latin-6" '((charset iso-8859-10) | ||
| 190 | (coding-system iso-latin-6) | ||
| 191 | (coding-priority iso-latin-6) | ||
| 192 | (nonascii-translation . iso-8859-10) | ||
| 193 | (unibyte-syntax . "latin-6") | ||
| 194 | (unibyte-display . iso-latin-6) | ||
| 195 | ;; Fixme: input method. | ||
| 196 | (documentation . "Support for generic Latin-6 (Northern European).")) | ||
| 197 | '("European")) | ||
| 198 | |||
| 199 | |||
| 200 | ;; Latin-7 (ISO-8859-13) | ||
| 201 | |||
| 202 | (define-coding-system 'iso-latin-7 | ||
| 203 | "ISO 2022 based 8-bit encoding for Latin-7 (MIME:ISO-8859-13)." | ||
| 204 | :coding-type 'charset | ||
| 205 | :mnemonic ?9 | ||
| 206 | :charset-list '(iso-8859-13) | ||
| 207 | :mime-charset 'iso-8859-13) | ||
| 208 | |||
| 209 | (define-coding-system-alias 'iso-8859-13 'iso-latin-7) | ||
| 210 | (define-coding-system-alias 'latin-7 'iso-latin-7) | ||
| 211 | |||
| 212 | (set-language-info-alist | ||
| 213 | "Latin-7" '((charset iso-8859-13) | ||
| 214 | (coding-system iso-latin-7) | ||
| 215 | (coding-priority iso-latin-7) | ||
| 216 | (nonascii-translation . iso-8859-13) | ||
| 217 | (unibyte-syntax . "latin-7") | ||
| 218 | (unibyte-display . iso-latin-7) | ||
| 219 | ;; Fixme: input method. | ||
| 220 | (documentation . "Support for generic Latin-7 (Baltic Rim).")) | ||
| 221 | '("European")) | ||
| 222 | |||
| 175 | ;; Latin-8 (ISO-8859-14) | 223 | ;; Latin-8 (ISO-8859-14) |
| 176 | 224 | ||
| 177 | (define-coding-system 'iso-latin-8 | 225 | (define-coding-system 'iso-latin-8 |
| @@ -275,6 +323,14 @@ Latin-9 is sometimes nicknamed `Latin-0'.")) | |||
| 275 | :charset-list '(windows-1257) | 323 | :charset-list '(windows-1257) |
| 276 | :mime-charset 'windows-1257) | 324 | :mime-charset 'windows-1257) |
| 277 | (define-coding-system-alias 'cp1257 'windows-1257) | 325 | (define-coding-system-alias 'cp1257 'windows-1257) |
| 326 | |||
| 327 | (define-coding-system 'cp850 | ||
| 328 | "DOS codepage 850 (Western European)" | ||
| 329 | :coding-type 'charset | ||
| 330 | :mnemonic ?D | ||
| 331 | :charset-list '(cp850) | ||
| 332 | :mime-charset 'cp850) | ||
| 333 | (define-coding-system-alias 'ibm850 'cp850) | ||
| 278 | 334 | ||
| 279 | (set-language-info-alist | 335 | (set-language-info-alist |
| 280 | "German" '((tutorial . "TUTORIAL.de") | 336 | "German" '((tutorial . "TUTORIAL.de") |
| @@ -423,7 +479,6 @@ but it selects the Dutch tutorial.")) | |||
| 423 | :coding-type 'charset | 479 | :coding-type 'charset |
| 424 | :mnemonic ?M | 480 | :mnemonic ?M |
| 425 | :charset-list '(mac-roman) | 481 | :charset-list '(mac-roman) |
| 426 | ;; per IANA, rfc1345 | ||
| 427 | :mime-charset 'macintosh) | 482 | :mime-charset 'macintosh) |
| 428 | 483 | ||
| 429 | (define-coding-system 'next | 484 | (define-coding-system 'next |
| @@ -432,6 +487,20 @@ but it selects the Dutch tutorial.")) | |||
| 432 | :mnemonic ?* | 487 | :mnemonic ?* |
| 433 | :charset-list '(next) | 488 | :charset-list '(next) |
| 434 | :mime-charset 'next) | 489 | :mime-charset 'next) |
| 490 | |||
| 491 | (define-coding-system 'hp-roman8 | ||
| 492 | "Hewlet-Packard roman-8 encoding (MIME:ROMAN-8)" | ||
| 493 | :coding-type 'charset | ||
| 494 | :mnemonic ?* | ||
| 495 | :charset-list '(hp-roman8) | ||
| 496 | :mime-charset 'hp-roman8) | ||
| 497 | (define-coding-system-alias 'roman8 'hp-roman8) | ||
| 498 | |||
| 499 | (define-coding-system 'adobe-standard-encoding | ||
| 500 | "Adobe `standard' encoding for PostScript" | ||
| 501 | :coding-type 'charset | ||
| 502 | :mnemonic ?* | ||
| 503 | :charset-list '(adobe-standard-encoding) 'adobe-standard-encoding) | ||
| 435 | 504 | ||
| 436 | (defconst diacritic-composition-pattern "\\C^\\c^+") | 505 | (defconst diacritic-composition-pattern "\\C^\\c^+") |
| 437 | 506 | ||