comparison lisp/language/european.el @ 88155:d7ddb3e565de

sync with trunk
author Henrik Enberg <henrik.enberg@telia.com>
date Mon, 16 Jan 2006 00:03:54 +0000
parents fe28719083ea
children
comparison
equal deleted inserted replaced
88154:8ce476d3ba36 88155:d7ddb3e565de
1 ;;; european.el --- support for European languages -*- coding: iso-2022-7bit; -*- 1 ;;; european.el --- support for European languages -*- coding: iso-2022-7bit; -*-
2 2
3 ;; Copyright (C) 1995, 1997, 2001 Electrotechnical Laboratory, JAPAN. 3 ;; Copyright (C) 1997, 1998, 2000, 2001, 2002, 2003, 2004
4 ;; Licensed to the Free Software Foundation. 4 ;; Free Software Foundation, Inc.
5 ;; Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. 5 ;; Copyright (C) 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6 ;; National Institute of Advanced Industrial Science and Technology (AIST)
7 ;; Registration Number H14PRO021
6 8
7 ;; Keywords: multilingual, European 9 ;; Keywords: multilingual, European
8 10
9 ;; This file is part of GNU Emacs. 11 ;; This file is part of GNU Emacs.
10 12
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details. 21 ;; GNU General Public License for more details.
20 22
21 ;; You should have received a copy of the GNU General Public License 23 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the 24 ;; along with GNU Emacs; see the file COPYING. If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, 25 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 ;; Boston, MA 02111-1307, USA. 26 ;; Boston, MA 02110-1301, USA.
25 27
26 ;;; Commentary: 28 ;;; Commentary:
27 29
28 ;; For European scripts, character sets ISO8859-1,2,3,4,9,14,15 are 30 ;; For European scripts, all the ISO Latin character sets are
29 ;; supported. 31 ;; supported, along with various others.
30 32
31 ;;; Code: 33 ;;; Code:
32 34
33 ;; Latin-1 (ISO-8859-1) 35 ;; Latin-1 (ISO-8859-1)
34
35 (make-coding-system
36 'iso-latin-1 2 ?1
37 "ISO 2022 based 8-bit encoding for Latin-1 (MIME:ISO-8859-1)."
38 '(ascii latin-iso8859-1 nil nil
39 nil nil nil nil nil nil nil nil nil nil nil t t)
40 '((safe-charsets ascii latin-iso8859-1)
41 (mime-charset . iso-8859-1)))
42
43 (define-coding-system-alias 'iso-8859-1 'iso-latin-1)
44 (define-coding-system-alias 'latin-1 'iso-latin-1)
45 36
46 (set-language-info-alist 37 (set-language-info-alist
47 "Latin-1" '((charset ascii latin-iso8859-1) 38 "Latin-1" '((charset ascii latin-iso8859-1)
48 (coding-system iso-latin-1) 39 (coding-system iso-latin-1)
49 (coding-priority iso-latin-1) 40 (coding-priority iso-latin-1)
71 62
72 Latin-1 also covers several written languages outside Europe, including 63 Latin-1 also covers several written languages outside Europe, including
73 Indonesian/Malay, Tagalog (Philippines), Swahili and Afrikaans.")) 64 Indonesian/Malay, Tagalog (Philippines), Swahili and Afrikaans."))
74 '("European")) 65 '("European"))
75 66
67 (eval-and-compile
68 (setq
69 non-iso-charset-alist
70 (cp-make-coding-system
71 windows-1252
72 [?\$,1tL(B nil ?\$,1rz(B ?\$,1!R(B ?\$,1r~(B ?\$,1s&(B ?\$,1s (B ?\$,1s!(B ?\$,1$f(B ?\$,1s0(B ?\$,1! (B ?\$,1s9(B ?\$,1 r(B nil ?\$,1!=(B nil nil
73 ?\$,1rx(B ?\$,1ry(B ?\$,1r|(B ?\$,1r}(B ?\$,1s"(B ?\$,1rs(B ?\$,1rt(B ?\$,1$|(B ?\$,1ub(B ?\$,1!!(B ?\$,1s:(B ?\$,1 s(B nil ?\$,1!>(B ?\$,1!8(B ?\,A (B ?\,A!(B
74 ?\,A"(B ?\,A#(B ?\,A$(B ?\,A%(B ?\,A&(B ?\,A'(B ?\,A((B ?\,A)(B ?\,A*(B ?\,A+(B ?\,A,(B ?\,A-(B ?\,A.(B ?\,A/(B ?\,A0(B ?\,A1(B ?\,A2(B
75 ?\,A3(B ?\,A4(B ?\,A5(B ?\,A6(B ?\,A7(B ?\,A8(B ?\,A9(B ?\,A:(B ?\,A;(B ?\,A<(B ?\,A=(B ?\,A>(B ?\,A?(B ?\,A@(B ?\,AA(B ?\,AB(B ?\,AC(B
76 ?\,AD(B ?\,AE(B ?\,AF(B ?\,AG(B ?\,AH(B ?\,AI(B ?\,AJ(B ?\,AK(B ?\,AL(B ?\,AM(B ?\,AN(B ?\,AO(B ?\,AP(B ?\,AQ(B ?\,AR(B ?\,AS(B ?\,AT(B
77 ?\,AU(B ?\,AV(B ?\,AW(B ?\,AX(B ?\,AY(B ?\,AZ(B ?\,A[(B ?\,A\(B ?\,A](B ?\,A^(B ?\,A_(B ?\,A`(B ?\,Aa(B ?\,Ab(B ?\,Ac(B ?\,Ad(B ?\,Ae(B
78 ?\,Af(B ?\,Ag(B ?\,Ah(B ?\,Ai(B ?\,Aj(B ?\,Ak(B ?\,Al(B ?\,Am(B ?\,An(B ?\,Ao(B ?\,Ap(B ?\,Aq(B ?\,Ar(B ?\,As(B ?\,At(B ?\,Au(B ?\,Av(B
79 ?\,Aw(B ?\,Ax(B ?\,Ay(B ?\,Az(B ?\,A{(B ?\,A|(B ?\,A}(B ?\,A~(B ?\,A(B])))
76 80
77 ;; Latin-2 (ISO-8859-2) 81 ;; Latin-2 (ISO-8859-2)
78 82
79 (make-coding-system 83 (make-coding-system
80 'iso-latin-2 2 ?2 84 'iso-latin-2 2 ?2
390 394
391 (set-language-info-alist 395 (set-language-info-alist
392 "Latin-6" `((coding-system latin-6) 396 "Latin-6" `((coding-system latin-6)
393 (coding-priority latin-6) 397 (coding-priority latin-6)
394 (nonascii-translation . ,(get 'decode-iso-latin-6 'translation-table)) 398 (nonascii-translation . ,(get 'decode-iso-latin-6 'translation-table))
395 (input-method . latin-pre) 399 (input-method . "latin-prefix")
396 (input-method . latin-pre)
397 (features code-pages) 400 (features code-pages)
398 (documentation . "Support for Latin-6.")) 401 (documentation . "Support for Latin-6."))
399 '("European")) 402 '("European"))
400 403
401 (set-language-info-alist 404 (set-language-info-alist
402 "Latin-7" `((coding-system latin-7) 405 "Latin-7" `((coding-system latin-7)
403 (coding-priority latin-7) 406 (coding-priority latin-7)
404 (nonascii-translation . ,(get 'decode-iso-latin-7 407 (nonascii-translation . ,(get 'decode-iso-latin-7
405 'translation-table)) 408 'translation-table))
406 (input-method . latin-pre) 409 (input-method . "latin-prefix")
407 (features code-pages) 410 (features code-pages)
408 (documentation . "Support for Latin-7, e.g. Latvian, Lithuanian.")) 411 (documentation . "Support for Latin-7, e.g. Latvian, Lithuanian."))
409 '("European")) 412 '("European"))
410 413
411 (set-language-info-alist 414 (set-language-info-alist
447 (input-method . "croatian") 450 (input-method . "croatian")
448 (nonascii-translation . latin-iso8859-2) 451 (nonascii-translation . latin-iso8859-2)
449 (unibyte-syntax . "latin-2") 452 (unibyte-syntax . "latin-2")
450 (unibyte-display . iso-8859-2) 453 (unibyte-display . iso-8859-2)
451 (documentation . "Support for Croatian with Latin-2 encoding.")) 454 (documentation . "Support for Croatian with Latin-2 encoding."))
455 '("European"))
456
457 (set-language-info-alist
458 "Brazilian Portuguese" '((tutorial . "TUTORIAL.pt_BR")
459 (charset ascii latin-iso8859-1)
460 (coding-system iso-latin-1 iso-latin-9)
461 (coding-priority iso-latin-1)
462 (nonascii-translation . latin-iso8859-1)
463 (unibyte-syntax . "latin-1")
464 (unibyte-display . iso-latin-1)
465 (input-method . "latin-1-prefix")
466 (sample-text . "Oi")
467 (documentation . "Support for Brazilian Portuguese."))
452 '("European")) 468 '("European"))
453 469
454 ;; Definitions for the Mac Roman character sets and coding system. 470 ;; Definitions for the Mac Roman character sets and coding system.
455 ;; The Mac Roman encoding uses all 128 code points in the range 128 to 471 ;; The Mac Roman encoding uses all 128 code points in the range 128 to
456 ;; 255 for actual characters. Emacs decodes them to one of the 472 ;; 255 for actual characters. Emacs decodes them to one of the
694 (aset composition-function-table (decode-char 'ucs c) patterns) 710 (aset composition-function-table (decode-char 'ucs c) patterns)
695 (setq c (1+ c))))) 711 (setq c (1+ c)))))
696 712
697 (provide 'european) 713 (provide 'european)
698 714
715 ;;; arch-tag: 9e018b12-fb02-4120-907b-9adeaf84b5c2
699 ;;; european.el ends here 716 ;;; european.el ends here