annotate lisp/language/european.el @ 197:acd284d43ca1 r20-3b25

Import from CVS: tag r20-3b25
author cvs
date Mon, 13 Aug 2007 10:00:02 +0200
parents 929b76928fce
children e45d5e7c476e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
1 ;;; european.el --- Support for European languages
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
2
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
4 ;; Licensed to the Free Software Foundation.
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
5 ;; Copyright (C) 1997 MORIOKA Tomohiko
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
6
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
7 ;; Keywords: multilingual, European
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
8
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
9 ;; This file is part of XEmacs.
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
10
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
11 ;; XEmacs is free software; you can redistribute it and/or modify it
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
12 ;; under the terms of the GNU General Public License as published by
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
13 ;; the Free Software Foundation; either version 2, or (at your option)
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
14 ;; any later version.
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
15
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
16 ;; XEmacs is distributed in the hope that it will be useful, but
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
19 ;; General Public License for more details.
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
20
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
22 ;; along with XEmacs; see the file COPYING. If not, write to the Free
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
23 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
24 ;; 02111-1307, USA.
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
25
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
26 ;;; Commentary:
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
27
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
28 ;; For Europeans, five character sets ISO8859-1,2,3,4,9 are supported.
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
29
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
30 ;;; Code:
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
31
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
32 ;; For syntax of Latin-1 characters.
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
33 (loop for c from 64 to 127 ; from ',A@(B' to ',A(B'
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
34 do (modify-syntax-entry (make-char 'latin-iso8859-1 c) "w"))
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
35
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
36 (modify-syntax-entry (make-char 'latin-iso8859-1 32) "w") ; no-break space
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
37 (modify-syntax-entry ?,AW(B "_")
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
38 (modify-syntax-entry ?,Aw(B "_")
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
39
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
40 ;; For syntax of Latin-2
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
41 (loop for c in '(?,B!(B ?,B#(B ?,B%(B ?,B&(B ?,B)(B ?,B*(B ?,B+(B ?,B,(B ?,B.(B ?,B/(B ?,B1(B ?,B3(B ?,B5(B ?,B6(B ?,B9(B ?,B:(B ?,B;(B ?,B<(B)
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
42 do (modify-syntax-entry c "w"))
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
43
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
44 (loop for c from 62 to 126
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
45 do (modify-syntax-entry (make-char 'latin-iso8859-2 c) "w"))
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
46
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
47 (modify-syntax-entry (make-char 'latin-iso8859-2 32) "w") ; no-break space
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
48 (modify-syntax-entry ?,BW(B ".")
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
49 (modify-syntax-entry ?,Bw(B ".")
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
50
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
51 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
52 ;;; EUROPEANS
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
53 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
54
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
55 ;; (define-prefix-command 'describe-european-environment-map)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
56 ;; (define-key-after describe-language-environment-map [European]
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
57 ;; '("European" . describe-european-environment-map)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
58 ;; t)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
59
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
60 ;; (define-prefix-command 'setup-european-environment-map)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
61 ;; (define-key-after setup-language-environment-map [European]
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
62 ;; '("European" . setup-european-environment-map)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
63 ;; t)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
64
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
65 ;; Setup for LANGAUGE which uses one-byte 8-bit CHARSET, one-byte
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
66 ;; 8-bit CODING-SYSTEM, and INPUT-METHOD.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
67 (defun setup-8-bit-environment (language charset coding-system input-method)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
68 (setup-english-environment)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
69 (set-default-coding-systems coding-system)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
70 (setq coding-category-iso-8-1 coding-system
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
71 coding-category-iso-8-2 coding-system)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
72
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
73 (if charset
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
74 (let ((nonascii-offset (- (make-char charset) 128)))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
75 ;; Set up for insertion of characters in this character set
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
76 ;; when codes 0200 - 0377 are typed in.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
77 (setq nonascii-insert-offset nonascii-offset)))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
78
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
79 (if input-method
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
80 (setq default-input-method input-method))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
81
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
82 ;; If this is a Latin-N character set, set up syntax for it in
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
83 ;; single-byte mode. We can't use require because the file
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
84 ;; must be eval'd each time in case we change from one Latin-N to another.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
85 (if (string-match "^Latin-\\([1-9]\\)$" language)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
86 (load (downcase language) nil t)))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
87
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
88 ;; (define-language-environment 'european
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
89 ;; "European (for Latin-1 through Latin-5)"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
90 ;; (lambda ()
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
91 ;; (set-coding-category-system 'iso-8-designate 'iso-8859-1)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
92 ;; (set-coding-priority-list '(iso-8-designate iso-8-1))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
93 ;; ;;(setq locale-coding-system 'no-conversion) ; iso-8859-1
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
94 ;; (set-default-buffer-file-coding-system 'no-conversion) ; iso-8859-1
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
95 ;; ;;(set-buffer-file-coding-system-for-read 'no-conversion) ; iso-8859-1
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
96 ;; ;;(setq display-coding-system 'iso-8859-1)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
97 ;; ;;(setq keyboard-coding-system 'iso-8859-1)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
98 ;; ;; (setq-default quail-current-package
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
99 ;; ;; (assoc "latin-1" quail-package-alist))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
100 ;; ))
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
101
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
102 ;; Latin-1 (ISO-8859-1)
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
103
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
104 ;; (make-coding-system
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
105 ;; 'iso-latin-1 2 ?1
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
106 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-1, Compound Text Encoding)"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
107 ;; '((ascii t) (latin-iso8859-1 t) nil nil
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
108 ;; nil ascii-eol ascii-cntl nil nil nil nil nil nil nil nil nil t))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
109
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
110 ;; (define-coding-system-alias 'iso-8859-1 'iso-latin-1)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
111 ;; (define-coding-system-alias 'latin-1 'iso-latin-1)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
112 ;; (define-coding-system-alias 'ctext 'iso-latin-1)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
113
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
114 (defun setup-latin1-environment ()
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
115 "Set up multilingual environment (MULE) for European Latin-1 users."
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
116 (interactive)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
117 (setup-8-bit-environment "Latin-1" 'latin-iso8859-1 'iso-8859-1
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
118 "latin-1-prefix"))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
119
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
120 (set-language-info-alist
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
121 "Latin-1" '((setup-function . (setup-latin1-environment
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
122 . setup-european-environment-map))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
123 (charset . (ascii latin-iso8859-1))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
124 (coding-system . (iso-8859-1))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
125 (sample-text
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
126 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!")
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
127 (documentation . ("\
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
128 These languages are supported with the Latin-1 (ISO-8859-1) character set:
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
129 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic,
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
130 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
131 " . describe-european-environment-map))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
132 ))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
133
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
134 ;; Latin-2 (ISO-8859-2)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
135
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
136 ;; (make-coding-system
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
137 ;; 'iso-latin-2 2 ?2
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
138 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-2)"
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
139 ;; '((ascii t) (latin-iso8859-2 t) nil nil
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
140 ;; nil ascii-eol ascii-cntl nil nil nil nil))
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
141
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
142 ;; (define-coding-system-alias 'iso-8859-2 'iso-latin-2)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
143 ;; (define-coding-system-alias 'latin-2 'iso-latin-2)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
144
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
145 (make-coding-system
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
146 'iso-8859-2 'iso2022 "MIME ISO-8859-2"
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
147 '(charset-g0 ascii
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
148 charset-g1 latin-iso8859-2
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
149 charset-g2 t
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
150 charset-g3 t
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
151 mnemonic "MIME/Ltn-2"
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
152 ))
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
153
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
154 (defun setup-latin2-environment ()
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
155 "Set up multilingual environment (MULE) for European Latin-2 users."
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
156 (interactive)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
157 (setup-8-bit-environment "Latin-2" 'latin-iso8859-2 'iso-8859-2
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
158 "latin-2-prefix"))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
159
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
160 (set-language-info-alist
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
161 "Latin-2" '((setup-function . (setup-latin2-environment
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
162 . setup-european-environment-map))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
163 (charset . (ascii latin-iso8859-2))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
164 (coding-system . (iso-8859-2))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
165 (documentation . ("\
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
166 These languages are supported with the Latin-2 (ISO-8859-2) character set:
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
167 Albanian, Czech, English, German, Hungarian, Polish, Romanian,
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
168 Serbo-Croatian or Croatian, Slovak, Slovene, and Swedish.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
169 " . describe-european-environment-map))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
170 ))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
171
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
172 ;; Latin-3 (ISO-8859-3)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
173
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
174 ;; (make-coding-system
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
175 ;; 'iso-latin-3 2 ?3
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
176 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-3)"
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
177 ;; '((ascii t) (latin-iso8859-3 t) nil nil
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
178 ;; nil ascii-eol ascii-cntl nil nil nil nil))
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
179
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
180 ;; (define-coding-system-alias 'iso-8859-3 'iso-latin-3)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
181 ;; (define-coding-system-alias 'latin-3 'iso-latin-3)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
182
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
183 (make-coding-system
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
184 'iso-8859-3 'iso2022 "MIME ISO-8859-3"
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
185 '(charset-g0 ascii
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
186 charset-g1 latin-iso8859-3
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
187 charset-g2 t
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
188 charset-g3 t
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
189 mnemonic "MIME/Ltn-3"
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
190 ))
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
191
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
192 (defun setup-latin3-environment ()
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
193 "Set up multilingual environment (MULE) for European Latin-3 users."
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
194 (interactive)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
195 (setup-8-bit-environment "Latin-3" 'latin-iso8859-3 'iso-8859-3
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
196 "latin-3-prefix"))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
198 (set-language-info-alist
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
199 "Latin-3" '((setup-function . (setup-latin3-environment
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
200 . setup-european-environment-map))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
201 (charset . (ascii latin-iso8859-3))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
202 (coding-system . (iso-8859-3))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
203 (documentation . ("\
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
204 These languages are supported with the Latin-3 (ISO-8859-3) character set:
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
205 Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician,
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
206 German, Italian, Maltese, Spanish, and Turkish.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
207 " . describe-european-environment-map))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
208 ))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
209
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
210 ;; Latin-4 (ISO-8859-4)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
211
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
212 ;; (make-coding-system
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
213 ;; 'iso-latin-4 2 ?4
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
214 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-4)"
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
215 ;; '((ascii t) (latin-iso8859-4 t) nil nil
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
216 ;; nil ascii-eol ascii-cntl nil nil nil nil))
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
217
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
218 ;; (define-coding-system-alias 'iso-8859-4 'iso-latin-4)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
219 ;; (define-coding-system-alias 'latin-4 'iso-latin-4)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
220
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
221 (make-coding-system
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
222 'iso-8859-4 'iso2022 "MIME ISO-8859-4"
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
223 '(charset-g0 ascii
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
224 charset-g1 latin-iso8859-4
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
225 charset-g2 t
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
226 charset-g3 t
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
227 mnemonic "MIME/Ltn-4"
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
228 ))
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
229
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
230 (defun setup-latin4-environment ()
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
231 "Set up multilingual environment (MULE) for European Latin-4 users."
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
232 (interactive)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
233 (setup-8-bit-environment "Latin-4" 'latin-iso8859-4 'iso-8859-4
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
234 "latin-4-prefix"))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
235
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
236 (set-language-info-alist
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
237 "Latin-4" '((setup-function . (setup-latin4-environment
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
238 . setup-european-environment-map))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
239 (charset . (ascii latin-iso8859-4))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
240 (coding-system . (iso-8859-4))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
241 (documentation . ("\
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
242 These languages are supported with the Latin-4 (ISO-8859-4) character set:
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
243 Danish, English, Estonian, Finnish, German, Greenlandic, Lappish,
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
244 Latvian, Lithuanian, and Norwegian.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
245 " . describe-european-environment-map))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
246 ))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
247
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
248 ;; Latin-5 (ISO-8859-9)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
249
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
250 ;; (make-coding-system
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
251 ;; 'iso-latin-5 2 ?9
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
252 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-9)"
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
253 ;; '((ascii t) (latin-iso8859-9 t) nil nil
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
254 ;; nil ascii-eol ascii-cntl nil nil nil nil))
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
255
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
256 ;; (define-coding-system-alias 'iso-8859-9 'iso-latin-5)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
257 ;; (define-coding-system-alias 'latin-5 'iso-latin-5)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
258
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
259 (make-coding-system
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
260 'iso-8859-9 'iso2022 "MIME ISO-8859-9"
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
261 '(charset-g0 ascii
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
262 charset-g1 latin-iso8859-9
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
263 charset-g2 t
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
264 charset-g3 t
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
265 mnemonic "MIME/Ltn-5"
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
266 ))
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
267
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
268 (defun setup-latin5-environment ()
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
269 "Set up multilingual environment (MULE) for European Latin-5 users."
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
270 (interactive)
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
271 (setup-8-bit-environment "Latin-5" 'latin-iso8859-9 'iso-8859-5
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
272 "latin-5-prefix"))
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
273
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
274 (set-language-info-alist
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
275 "Latin-5" '((setup-function . (setup-latin5-environment
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
276 . setup-european-environment-map))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
277 (charset . (ascii latin-iso8859-9))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
278 (coding-system . (iso-8859-5))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
279 (documentation . ("\
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
280 These languages are supported with the Latin-5 (ISO-8859-9) character set.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
281 " . describe-european-environment-map))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
282 ))
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
283
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
284 ;; (defun setup-european-environment ()
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
285 ;; "Setup multilingual environment (MULE) for European languages users.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
286 ;; It actually reset MULE to the default status, and
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
287 ;; set quail-latin-1 as the default input method to be selected.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
288 ;; See also the documentation of setup-english-environment."
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
289 ;; (setup-english-environment)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
290 ;; (setq default-input-method '("European" . "quail-latin-1")))
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 159
diff changeset
291
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
292 ;; (defun describe-european-support ()
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
293 ;; "Describe how Emacs support European languages."
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
294 ;; (interactive)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
295 ;; (describe-language-support-internal "European"))
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 159
diff changeset
296
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
297 ;; (set-language-info-alist
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
298 ;; "European" '((setup-function . setup-european-environment)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
299 ;; (describe-function . describe-european-support)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
300 ;; (charset . (ascii latin-iso8859-1 latin-iso8859-2
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
301 ;; latin-iso8859-3 latin-iso8859-4 latin-iso8859-9))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
302 ;; (coding-system . (iso-8859-1 iso-8859-2 iso-8859-3
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
303 ;; iso-8859-4 iso-8859-9))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
304 ;; (sample-text
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
305 ;; . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!")
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
306 ;; (documentation . "\
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
307 ;; Almost all of European languages are supported by the character sets and
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
308 ;; coding systems listed below.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
309 ;; To input them, LEIM (Libraries for Emacs Input Methods) should have been
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
310 ;; installed.")
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 171
diff changeset
311 ;; ))
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 159
diff changeset
312
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents:
diff changeset
313 ;;; european.el ends here