diff options
| author | Dave Love | 2002-05-23 18:20:26 +0000 |
|---|---|---|
| committer | Dave Love | 2002-05-23 18:20:26 +0000 |
| commit | 6d2186ffdebfc913b32ad787b76ec243a1bd0c36 (patch) | |
| tree | 13fdc9ff4d53c65e3f7dce718d508511f03d243f | |
| parent | ca17cd520a2add329f5fc5886f70556221037b3a (diff) | |
| download | emacs-6d2186ffdebfc913b32ad787b76ec243a1bd0c36.tar.gz emacs-6d2186ffdebfc913b32ad787b76ec243a1bd0c36.zip | |
(cp852, ibm852, cp857, ibm857, cp860)
(ibm860, cp861, ibm861, cp863, cp865, ibm865, cp437, ibm437): New
coding systems.
<set-language-info-alist>: Avoid decode-char.
| -rw-r--r-- | lisp/language/european.el | 60 |
1 files changed, 58 insertions, 2 deletions
diff --git a/lisp/language/european.el b/lisp/language/european.el index 4425d6ecfd6..2d2b00145b1 100644 --- a/lisp/language/european.el +++ b/lisp/language/european.el | |||
| @@ -331,6 +331,62 @@ Latin-9 is sometimes nicknamed `Latin-0'.")) | |||
| 331 | :charset-list '(cp850) | 331 | :charset-list '(cp850) |
| 332 | :mime-charset 'cp850) | 332 | :mime-charset 'cp850) |
| 333 | (define-coding-system-alias 'ibm850 'cp850) | 333 | (define-coding-system-alias 'ibm850 'cp850) |
| 334 | |||
| 335 | (define-coding-system 'cp852 | ||
| 336 | "DOS codepage 852 (Slavic)" | ||
| 337 | :coding-type 'charset | ||
| 338 | :mnemonic ?D | ||
| 339 | :charset-list '(cp852) | ||
| 340 | :mime-charset 'cp852) | ||
| 341 | (define-coding-system-alias 'ibm852 'cp852) | ||
| 342 | |||
| 343 | (define-coding-system 'cp857 | ||
| 344 | "DOS codepage 857 (Turkish)" | ||
| 345 | :coding-type 'charset | ||
| 346 | :mnemonic ?D | ||
| 347 | :charset-list '(cp857) | ||
| 348 | :mime-charset 'cp857) | ||
| 349 | (define-coding-system-alias 'ibm857 'cp857) | ||
| 350 | |||
| 351 | (define-coding-system 'cp860 | ||
| 352 | "DOS codepage 860 (Portuguese)" | ||
| 353 | :coding-type 'charset | ||
| 354 | :mnemonic ?D | ||
| 355 | :charset-list '(cp860) | ||
| 356 | :mime-charset 'cp860) | ||
| 357 | (define-coding-system-alias 'ibm860 'cp860) | ||
| 358 | |||
| 359 | (define-coding-system 'cp861 | ||
| 360 | "DOS codepage 861 (Icelandic)" | ||
| 361 | :coding-type 'charset | ||
| 362 | :mnemonic ?D | ||
| 363 | :charset-list '(cp861) | ||
| 364 | :mime-charset 'cp861) | ||
| 365 | (define-coding-system-alias 'ibm861 'cp861) | ||
| 366 | |||
| 367 | (define-coding-system 'cp863 | ||
| 368 | "DOS codepage 863 (French Canadian)" | ||
| 369 | :coding-type 'charset | ||
| 370 | :mnemonic ?D | ||
| 371 | :charset-list '(cp863) | ||
| 372 | :mime-charset 'cp863) | ||
| 373 | (define-coding-system-alias 'ibm863 'cp863) | ||
| 374 | |||
| 375 | (define-coding-system 'cp865 | ||
| 376 | "DOS codepage 865 (Norwegian/Danish)" | ||
| 377 | :coding-type 'charset | ||
| 378 | :mnemonic ?D | ||
| 379 | :charset-list '(cp865) | ||
| 380 | :mime-charset 'cp865) | ||
| 381 | (define-coding-system-alias 'ibm865 'cp865) | ||
| 382 | |||
| 383 | (define-coding-system 'cp437 | ||
| 384 | "DOS codepage 437" | ||
| 385 | :coding-type 'charset | ||
| 386 | :mnemonic ?D | ||
| 387 | :charset-list '(cp437) | ||
| 388 | :mime-charset 'cp437) | ||
| 389 | (define-coding-system-alias 'ibm437 'cp437) | ||
| 334 | 390 | ||
| 335 | (set-language-info-alist | 391 | (set-language-info-alist |
| 336 | "German" '((tutorial . "TUTORIAL.de") | 392 | "German" '((tutorial . "TUTORIAL.de") |
| @@ -551,11 +607,11 @@ The return value is number of composed characters." | |||
| 551 | (let ((patterns '(("\\C^\\c^+" . diacritic-composition-function)))) | 607 | (let ((patterns '(("\\C^\\c^+" . diacritic-composition-function)))) |
| 552 | (let ((c #x300)) | 608 | (let ((c #x300)) |
| 553 | (while (<= c #x362) | 609 | (while (<= c #x362) |
| 554 | (aset composition-function-table (decode-char 'unicode c) patterns) | 610 | (aset composition-function-table c patterns) |
| 555 | (setq c (1+ c))) | 611 | (setq c (1+ c))) |
| 556 | (setq c #x20d0) | 612 | (setq c #x20d0) |
| 557 | (while (<= c #x20e3) | 613 | (while (<= c #x20e3) |
| 558 | (aset composition-function-table (decode-char 'unicode c) patterns) | 614 | (aset composition-function-table c patterns) |
| 559 | (setq c (1+ c))))) | 615 | (setq c (1+ c))))) |
| 560 | 616 | ||
| 561 | (provide 'european) | 617 | (provide 'european) |