Mercurial > emacs
annotate lisp/language/european.el @ 21858:86dfe4ad11ee
(setup-8-bit-environment): Don't do anything special here for unibyte mode.
That is done in set-language-environment.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 30 Apr 1998 03:23:42 +0000 |
parents | 00ecdcdf9120 |
children | 577e5b25f6d3 |
rev | line source |
---|---|
17052 | 1 ;;; european.el --- Support for European languages |
2 | |
18377
8b4a66c66dd6
Change copyright notice.
Richard M. Stallman <rms@gnu.org>
parents:
18309
diff
changeset
|
3 ;; Copyright (C) 1995, 1997 Electrotechnical Laboratory, JAPAN. |
8b4a66c66dd6
Change copyright notice.
Richard M. Stallman <rms@gnu.org>
parents:
18309
diff
changeset
|
4 ;; Licensed to the Free Software Foundation. |
17052 | 5 |
6 ;; Keywords: multilingual, European | |
7 | |
8 ;; This file is part of GNU Emacs. | |
9 | |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
14 | |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
17071 | 21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
23 ;; Boston, MA 02111-1307, USA. | |
17052 | 24 |
25 ;;; Commentary: | |
26 | |
27 ;; For Europeans, five character sets ISO8859-1,2,3,4,9 are supported. | |
28 | |
29 ;;; Code: | |
30 | |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
31 ;; Setup for LANGAUGE which uses one-byte 8-bit CHARSET, one-byte |
20743 | 32 ;; 8-bit coding system, and INPUT-METHOD. |
33 (defun setup-8-bit-environment (language charset input-method) | |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
34 (setup-english-environment) |
20743 | 35 (set-language-environment-coding-systems language) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
36 |
21768
00ecdcdf9120
(setup-8-bit-environment): If default-enable-multibyte-characters is nil,
Richard M. Stallman <rms@gnu.org>
parents:
20743
diff
changeset
|
37 (when default-enable-multibyte-characters |
00ecdcdf9120
(setup-8-bit-environment): If default-enable-multibyte-characters is nil,
Richard M. Stallman <rms@gnu.org>
parents:
20743
diff
changeset
|
38 (if charset |
00ecdcdf9120
(setup-8-bit-environment): If default-enable-multibyte-characters is nil,
Richard M. Stallman <rms@gnu.org>
parents:
20743
diff
changeset
|
39 (let ((nonascii-offset (- (make-char charset) 128))) |
00ecdcdf9120
(setup-8-bit-environment): If default-enable-multibyte-characters is nil,
Richard M. Stallman <rms@gnu.org>
parents:
20743
diff
changeset
|
40 ;; Set up for insertion of characters in this character set |
00ecdcdf9120
(setup-8-bit-environment): If default-enable-multibyte-characters is nil,
Richard M. Stallman <rms@gnu.org>
parents:
20743
diff
changeset
|
41 ;; when codes 0200 - 0377 are typed in. |
00ecdcdf9120
(setup-8-bit-environment): If default-enable-multibyte-characters is nil,
Richard M. Stallman <rms@gnu.org>
parents:
20743
diff
changeset
|
42 (setq nonascii-insert-offset nonascii-offset))) |
00ecdcdf9120
(setup-8-bit-environment): If default-enable-multibyte-characters is nil,
Richard M. Stallman <rms@gnu.org>
parents:
20743
diff
changeset
|
43 |
00ecdcdf9120
(setup-8-bit-environment): If default-enable-multibyte-characters is nil,
Richard M. Stallman <rms@gnu.org>
parents:
20743
diff
changeset
|
44 (if input-method |
00ecdcdf9120
(setup-8-bit-environment): If default-enable-multibyte-characters is nil,
Richard M. Stallman <rms@gnu.org>
parents:
20743
diff
changeset
|
45 (setq default-input-method input-method))) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
46 |
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
47 ;; If this is a Latin-N character set, set up syntax for it in |
19577
b931375072b2
(setup-8-bit-environment): Load the latin-N file again each time.
Richard M. Stallman <rms@gnu.org>
parents:
19394
diff
changeset
|
48 ;; single-byte mode. We can't use require because the file |
19661
8cde4cefae44
(setup-8-bit-environment): Inhibit message when loading latin-N.el.
Richard M. Stallman <rms@gnu.org>
parents:
19577
diff
changeset
|
49 ;; must be eval'd each time in case we change from one Latin-N to another. |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
50 (if (string-match "^Latin-\\([1-9]\\)$" language) |
19661
8cde4cefae44
(setup-8-bit-environment): Inhibit message when loading latin-N.el.
Richard M. Stallman <rms@gnu.org>
parents:
19577
diff
changeset
|
51 (load (downcase language) nil t))) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
52 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
53 ;; Latin-1 (ISO-8859-1) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
54 |
17052 | 55 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
56 'iso-latin-1 2 ?1 |
20743 | 57 "ISO 2022 based 8-bit encoding for Laint-1 (MIME:ISO-8859-1)" |
58 '(ascii latin-iso8859-1 nil nil | |
59 nil nil nil nil nil nil nil nil nil nil nil nil t) | |
60 '((safe-charsets ascii latin-iso8859-1) | |
61 (mime-charset . iso-8859-1))) | |
17052 | 62 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
63 (define-coding-system-alias 'iso-8859-1 'iso-latin-1) |
18622
fe2070df967e
(latin-1, latin-2. latin-3, latin-4, latin-5):
Richard M. Stallman <rms@gnu.org>
parents:
18543
diff
changeset
|
64 (define-coding-system-alias 'latin-1 'iso-latin-1) |
20743 | 65 |
66 (make-coding-system | |
67 'compound-text 2 ?1 | |
68 "ISO 2022 based encoding used in inter client communication of X" | |
69 '((ascii t) (latin-iso8859-1 t) nil nil | |
70 nil ascii-eol ascii-cntl nil nil nil nil nil nil nil nil nil t) | |
71 '((safe-charsets . t))) | |
72 | |
73 (define-coding-system-alias 'ctext 'compound-text) | |
17052 | 74 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
75 (defun setup-latin1-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
76 "Set up multilingual environment (MULE) for European Latin-1 users." |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
77 (interactive) |
20743 | 78 (setup-8-bit-environment "Latin-1" 'latin-iso8859-1 "latin-1-prefix")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
79 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
80 (set-language-info-alist |
20743 | 81 "Latin-1" '((setup-function . setup-latin1-environment) |
82 (charset ascii latin-iso8859-1) | |
83 (coding-system iso-latin-1) | |
84 (coding-priority iso-latin-1) | |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
85 (sample-text |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
86 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!") |
20743 | 87 (documentation . "\ |
18117
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
88 These languages are supported with the Latin-1 (ISO-8859-1) character set: |
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
89 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic, |
20743 | 90 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish.")) |
91 '("European")) | |
92 | |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
93 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
94 ;; Latin-2 (ISO-8859-2) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
95 |
17052 | 96 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
97 'iso-latin-2 2 ?2 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
98 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-2)" |
20743 | 99 '(ascii latin-iso8859-2 nil nil |
100 nil nil nil nil nil nil nil) | |
101 '((safe-charsets ascii latin-iso8859-2) | |
102 (mime-charset . iso-8859-2))) | |
17052 | 103 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
104 (define-coding-system-alias 'iso-8859-2 'iso-latin-2) |
18622
fe2070df967e
(latin-1, latin-2. latin-3, latin-4, latin-5):
Richard M. Stallman <rms@gnu.org>
parents:
18543
diff
changeset
|
105 (define-coding-system-alias 'latin-2 'iso-latin-2) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
106 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
107 (defun setup-latin2-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
108 "Set up multilingual environment (MULE) for European Latin-2 users." |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
109 (interactive) |
20743 | 110 (setup-8-bit-environment "Latin-2" 'latin-iso8859-2 "latin-2-prefix")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
111 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
112 (set-language-info-alist |
20743 | 113 "Latin-2" '((setup-function . setup-latin2-environment) |
114 (charset ascii latin-iso8859-2) | |
115 (coding-system iso-latin-2) | |
116 (coding-priority iso-latin-2) | |
117 (documentation . "\ | |
18117
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
118 These languages are supported with the Latin-2 (ISO-8859-2) character set: |
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
119 Albanian, Czech, English, German, Hungarian, Polish, Romanian, |
20232
5031189adff2
Add "Upper Sorbian" and "Lower Sorbian" in
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
120 Serbo-Croatian or Croatian, Slovak, Slovene, Sorbian (upper and lower), |
20743 | 121 and Swedish.")) |
122 '("European")) | |
123 | |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
124 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
125 ;; Latin-3 (ISO-8859-3) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
126 |
17052 | 127 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
128 'iso-latin-3 2 ?3 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
129 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-3)" |
20743 | 130 '(ascii latin-iso8859-3 nil nil |
131 nil nil nil nil nil nil nil) | |
132 '((safe-charsets ascii latin-iso8859-3) | |
133 (mime-charset . iso-8859-3))) | |
17052 | 134 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
135 (define-coding-system-alias 'iso-8859-3 'iso-latin-3) |
18622
fe2070df967e
(latin-1, latin-2. latin-3, latin-4, latin-5):
Richard M. Stallman <rms@gnu.org>
parents:
18543
diff
changeset
|
136 (define-coding-system-alias 'latin-3 'iso-latin-3) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
137 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
138 (defun setup-latin3-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
139 "Set up multilingual environment (MULE) for European Latin-3 users." |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
140 (interactive) |
20743 | 141 (setup-8-bit-environment "Latin-3" 'latin-iso8859-3 "latin-3-prefix")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
142 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
143 (set-language-info-alist |
20743 | 144 "Latin-3" '((setup-function . setup-latin3-environment) |
145 (charset ascii latin-iso8859-3) | |
146 (coding-system iso-latin-3) | |
147 (coding-priority iso-latin-3) | |
148 (documentation . "\ | |
18117
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
149 These languages are supported with the Latin-3 (ISO-8859-3) character set: |
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
150 Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician, |
20743 | 151 German, Italian, Maltese, Spanish, and Turkish.")) |
152 '("European")) | |
153 | |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
154 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
155 ;; Latin-4 (ISO-8859-4) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
156 |
17052 | 157 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
158 'iso-latin-4 2 ?4 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
159 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-4)" |
20743 | 160 '(ascii latin-iso8859-4 nil nil |
161 nil nil nil nil nil nil nil) | |
162 '((safe-charsets ascii latin-iso8859-4) | |
163 (mime-charset . iso-8895-4))) | |
17052 | 164 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
165 (define-coding-system-alias 'iso-8859-4 'iso-latin-4) |
18622
fe2070df967e
(latin-1, latin-2. latin-3, latin-4, latin-5):
Richard M. Stallman <rms@gnu.org>
parents:
18543
diff
changeset
|
166 (define-coding-system-alias 'latin-4 'iso-latin-4) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
167 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
168 (defun setup-latin4-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
169 "Set up multilingual environment (MULE) for European Latin-4 users." |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
170 (interactive) |
20743 | 171 (setup-8-bit-environment "Latin-4" 'latin-iso8859-4 "latin-4-prefix")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
172 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
173 (set-language-info-alist |
20743 | 174 "Latin-4" '((setup-function . setup-latin4-environment) |
175 (charset ascii latin-iso8859-4) | |
176 (coding-system iso-8859-4) | |
177 (coding-priority iso-8859-4) | |
178 (documentation . "\ | |
18117
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
179 These languages are supported with the Latin-4 (ISO-8859-4) character set: |
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
180 Danish, English, Estonian, Finnish, German, Greenlandic, Lappish, |
20743 | 181 Latvian, Lithuanian, and Norwegian.")) |
182 '("European")) | |
183 | |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
184 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
185 ;; Latin-5 (ISO-8859-9) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
186 |
17052 | 187 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
188 'iso-latin-5 2 ?9 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
189 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-9)" |
20743 | 190 '(ascii latin-iso8859-9 nil nil |
191 nil nil nil nil nil nil nil) | |
192 '((safe-charsets ascii latin-iso8859-9) | |
193 (mime-charset . iso-8859-9))) | |
17052 | 194 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
195 (define-coding-system-alias 'iso-8859-9 'iso-latin-5) |
18622
fe2070df967e
(latin-1, latin-2. latin-3, latin-4, latin-5):
Richard M. Stallman <rms@gnu.org>
parents:
18543
diff
changeset
|
196 (define-coding-system-alias 'latin-5 'iso-latin-5) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
197 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
198 (defun setup-latin5-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
199 "Set up multilingual environment (MULE) for European Latin-5 users." |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
200 (interactive) |
20743 | 201 (setup-8-bit-environment "Latin-5" 'latin-iso8859-9 "latin-5-prefix")) |
17052 | 202 |
203 (set-language-info-alist | |
20743 | 204 "Latin-5" '((setup-function . setup-latin5-environment) |
205 (charset ascii latin-iso8859-9) | |
206 (coding-system iso-latin-5) | |
207 (coding-priority iso-latin-5) | |
208 (documentation . "\ | |
209 These languages are supported with the Latin-5 (ISO-8859-9) character set.")) | |
210 '("European")) | |
211 | |
212 | |
213 (defun setup-german-environment () | |
214 "Set up multilingual environment (MULE) for German users." | |
215 (interactive) | |
216 (funcall (get-language-info "Latin-1" 'setup-function)) | |
217 (setq default-input-method "german-postfix")) | |
218 | |
219 (set-language-info-alist | |
220 "German" '((setup-function . setup-german-environment) | |
221 (tutorial . "TUTORIAL.de") | |
222 (charset ascii latin-iso8859-1) | |
223 (coding-system iso-latin-1) | |
224 (coding-priority iso-latin-1) | |
225 (sample-text . "\ | |
226 German (Deutsch Nord) Guten Tag | |
227 German (Deutsch S,A|(Bd) Gr,A|_(B Gott") | |
228 (documentation . "\ | |
229 This language environment is almost the same as Latin-1, | |
230 but default input method is set to \"german-postfix\".")) | |
231 '("European")) | |
17302
1012d679efd4
English related codes are moved to
Kenichi Handa <handa@m17n.org>
parents:
17098
diff
changeset
|
232 |
17052 | 233 ;;; european.el ends here |