diff options
| author | Dave Love | 2002-05-17 20:16:14 +0000 |
|---|---|---|
| committer | Dave Love | 2002-05-17 20:16:14 +0000 |
| commit | accf24cd22ddf28dfc1a8f34c5276ca5a821e37a (patch) | |
| tree | dbface0316dc79ca161bd6cafbe3e2f386cb4c34 | |
| parent | 1ee5e6332b87a04f3ed2c3a0b6af3fe644e2379d (diff) | |
| download | emacs-accf24cd22ddf28dfc1a8f34c5276ca5a821e37a.tar.gz emacs-accf24cd22ddf28dfc1a8f34c5276ca5a821e37a.zip | |
(windows-1254, cp1254, windows-1257)
(cp1257, next, iso-latin-7, iso-8859-13, latin-7): New coding
systems.
("Latin-7", "Lithuanian", "Latvian"): Don't require code-pages.
(iso-latin-7):
| -rw-r--r-- | lisp/language/european.el | 51 |
1 files changed, 45 insertions, 6 deletions
diff --git a/lisp/language/european.el b/lisp/language/european.el index 77bbeba3582..020fe7a5796 100644 --- a/lisp/language/european.el +++ b/lisp/language/european.el | |||
| @@ -25,8 +25,8 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Commentary: | 26 | ;;; Commentary: |
| 27 | 27 | ||
| 28 | ;; For European scripts, character sets ISO8859-1,2,3,4,9,14,15 are | 28 | ;; For European scripts, character sets ISO8859-1,2,3,4,9,13,14,15, |
| 29 | ;; supported. | 29 | ;; windows-1250,2,4,7, mac-roman and next are supported. |
| 30 | 30 | ||
| 31 | ;;; Code: | 31 | ;;; Code: |
| 32 | 32 | ||
| @@ -233,13 +233,48 @@ addition of the Euro sign and some additional French and Finnish letters. | |||
| 233 | Latin-9 is sometimes nicknamed `Latin-0'.")) | 233 | Latin-9 is sometimes nicknamed `Latin-0'.")) |
| 234 | '("European")) | 234 | '("European")) |
| 235 | 235 | ||
| 236 | (define-coding-system 'iso-latin-7 | ||
| 237 | "ISO 2022 based 8-bit encoding for Latin-7 (MIME:ISO-8859-13)." | ||
| 238 | :coding-type 'charset | ||
| 239 | ;; `0' for `Latin-0' | ||
| 240 | :mnemonic ?* | ||
| 241 | :charset-list '(iso-8859-13) | ||
| 242 | :mime-charset 'iso-8859-13) | ||
| 243 | |||
| 244 | (define-coding-system-alias 'iso-8859-13 'iso-latin-7) | ||
| 245 | (define-coding-system-alias 'latin-7 'iso-latin-7) | ||
| 246 | |||
| 247 | (define-coding-system 'windows-1250 | ||
| 248 | "windows-1250 (Central European) encoding (MIME: WINDOWS-1250)" | ||
| 249 | :coding-type 'charset | ||
| 250 | :mnemonic ?* | ||
| 251 | :charset-list '(windows-1250) | ||
| 252 | :mime-charset 'windows-1250) | ||
| 253 | (define-coding-system-alias 'cp1250 'windows-1250) | ||
| 254 | |||
| 236 | (define-coding-system 'windows-1252 | 255 | (define-coding-system 'windows-1252 |
| 237 | "windows-1252 8-bit encoding for Cyrillic (MIME: WINDOWS-1252)" | 256 | "windows-1252 (Western European) encoding (MIME: WINDOWS-1252)" |
| 238 | :coding-type 'charset | 257 | :coding-type 'charset |
| 239 | :mnemonic ?* | 258 | :mnemonic ?* |
| 240 | :charset-list '(windows-1252) | 259 | :charset-list '(windows-1252) |
| 241 | :mime-charset 'windows-1252) | 260 | :mime-charset 'windows-1252) |
| 242 | (define-coding-system-alias 'cp1252 'windows-1252) | 261 | (define-coding-system-alias 'cp1252 'windows-1252) |
| 262 | |||
| 263 | (define-coding-system 'windows-1254 | ||
| 264 | "windows-1254 (Turkish) encoding (MIME: WINDOWS-1254)" | ||
| 265 | :coding-type 'charset | ||
| 266 | :mnemonic ?* | ||
| 267 | :charset-list '(windows-1254) | ||
| 268 | :mime-charset 'windows-1254) | ||
| 269 | (define-coding-system-alias 'cp1254 'windows-1254) | ||
| 270 | |||
| 271 | (define-coding-system 'windows-1257 | ||
| 272 | "windows-1257 (Baltic) encoding (MIME: WINDOWS-1257)" | ||
| 273 | :coding-type 'charset | ||
| 274 | :mnemonic ?* | ||
| 275 | :charset-list '(windows-1257) | ||
| 276 | :mime-charset 'windows-1257) | ||
| 277 | (define-coding-system-alias 'cp1257 'windows-1257) | ||
| 243 | 278 | ||
| 244 | (set-language-info-alist | 279 | (set-language-info-alist |
| 245 | "German" '((tutorial . "TUTORIAL.de") | 280 | "German" '((tutorial . "TUTORIAL.de") |
| @@ -363,7 +398,6 @@ but it selects the Dutch tutorial.")) | |||
| 363 | (coding-priority latin-7) | 398 | (coding-priority latin-7) |
| 364 | (nonascii-translation . iso-8859-13) | 399 | (nonascii-translation . iso-8859-13) |
| 365 | ;; Fixme: input-method | 400 | ;; Fixme: input-method |
| 366 | (features code-pages) | ||
| 367 | (documentation . "Support for Latin-7, e.g. Latvian, Lithuanian.")) | 401 | (documentation . "Support for Latin-7, e.g. Latvian, Lithuanian.")) |
| 368 | '("European")) | 402 | '("European")) |
| 369 | 403 | ||
| @@ -372,7 +406,6 @@ but it selects the Dutch tutorial.")) | |||
| 372 | (coding-priority latin-7) | 406 | (coding-priority latin-7) |
| 373 | (nonascii-translation . iso-8859-13) | 407 | (nonascii-translation . iso-8859-13) |
| 374 | (input-method . "lithuanian-keyboard") | 408 | (input-method . "lithuanian-keyboard") |
| 375 | (features code-pages) | ||
| 376 | (documentation . "Support for Lithuanian.")) | 409 | (documentation . "Support for Lithuanian.")) |
| 377 | '("European")) | 410 | '("European")) |
| 378 | 411 | ||
| @@ -381,7 +414,6 @@ but it selects the Dutch tutorial.")) | |||
| 381 | (coding-priority latin-7) | 414 | (coding-priority latin-7) |
| 382 | (nonascii-translation . iso-8859-13) | 415 | (nonascii-translation . iso-8859-13) |
| 383 | (input-method . "latvian-keyboard") | 416 | (input-method . "latvian-keyboard") |
| 384 | (features code-pages) | ||
| 385 | (documentation . "Support for Latvian.")) | 417 | (documentation . "Support for Latvian.")) |
| 386 | '("European")) | 418 | '("European")) |
| 387 | 419 | ||
| @@ -394,6 +426,13 @@ but it selects the Dutch tutorial.")) | |||
| 394 | ;; per IANA, rfc1345 | 426 | ;; per IANA, rfc1345 |
| 395 | :mime-charset 'macintosh) | 427 | :mime-charset 'macintosh) |
| 396 | 428 | ||
| 429 | (define-coding-system 'next | ||
| 430 | "NeXTstep encoding" | ||
| 431 | :coding-type 'charset | ||
| 432 | :mnemonic ?* | ||
| 433 | :charset-list '(next) | ||
| 434 | :mime-charset 'next) | ||
| 435 | |||
| 397 | (defconst diacritic-composition-pattern "\\C^\\c^+") | 436 | (defconst diacritic-composition-pattern "\\C^\\c^+") |
| 398 | 437 | ||
| 399 | (defun diacritic-compose-region (beg end) | 438 | (defun diacritic-compose-region (beg end) |