Mercurial > emacs
annotate lisp/language/european.el @ 18634:8b309d07a95e
(set-language-environment): Do the real work here.
(current-language-environment): New variable.
(setup-specified-language-environment): Call set-language-environment.
Set current-language-environment.
(describe-language-environment):
By default, use current-language-environment.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 05 Jul 1997 19:26:53 +0000 |
parents | fe2070df967e |
children | 6bc1e804bbab |
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 | |
18157
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
31 (define-prefix-command 'describe-european-environment-map) |
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
32 (define-key-after describe-language-environment-map [European] |
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
33 '("European" . describe-european-environment-map) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
34 t) |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
35 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
36 (define-prefix-command 'setup-european-environment-map) |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
37 (define-key-after setup-language-environment-map [European] |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
38 '("European" . setup-european-environment-map) |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
39 t) |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
40 |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
41 ;; Setup for LANGAUGE which uses one-byte 8-bit CHARSET, one-byte |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
42 ;; 8-bit CODING-SYSTEM, and INPUT-METHOD. |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
43 (defun setup-8-bit-environment (language charset coding-system input-method) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
44 (setup-english-environment) |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
45 (setq-default buffer-file-coding-system coding-system) |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
46 (setq coding-category-iso-8-1 coding-system |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
47 coding-category-iso-8-2 coding-system) |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
48 (set-terminal-coding-system-internal coding-system) |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
49 (set-keyboard-coding-system-internal coding-system) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
50 (setq sendmail-coding-system coding-system |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
51 rmail-file-coding-system coding-system) |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
52 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
53 (if charset |
18157
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
54 (let ((nonascii-offset (- (make-char charset) 128))) |
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
55 ;; Set up for insertion of characters in this character set |
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
56 ;; when codes 0200 - 0377 are typed in. |
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
57 (setq nonascii-insert-offset nonascii-offset))) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
58 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
59 (if input-method |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
60 (setq default-input-method input-method)) |
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
61 |
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
62 ;; If this is a Latin-N character set, set up syntax for it in |
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
63 ;; single-byte mode. |
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
64 (if (string-match "^Latin-\\([1-9]\\)$" language) |
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
65 (load (downcase language)))) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
66 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
67 ;; Latin-1 (ISO-8859-1) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
68 |
17052 | 69 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
70 'iso-latin-1 2 ?1 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
71 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-1, Compound Text Encoding)" |
17052 | 72 '((ascii t) (latin-iso8859-1 t) nil nil |
73 nil ascii-eol ascii-cntl)) | |
74 | |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
75 (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
|
76 (define-coding-system-alias 'latin-1 'iso-latin-1) |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
77 (define-coding-system-alias 'ctext 'iso-latin-1) |
17052 | 78 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
79 (defun setup-latin1-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
80 "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
|
81 (interactive) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
82 (setup-8-bit-environment "Latin-1" 'latin-iso8859-1 'iso-latin-1 |
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
83 "latin-1-prefix")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
84 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
85 (set-language-info-alist |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
86 "Latin-1" '((setup-function . (setup-latin1-environment |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
87 . setup-european-environment-map)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
88 (charset . (ascii latin-iso8859-1)) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
89 (coding-system . (iso-latin-1)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
90 (sample-text |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
91 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!") |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
92 (documentation . ("\ |
18117
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
93 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
|
94 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic, |
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
95 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish. |
18157
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
96 " . describe-european-environment-map)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
97 )) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
98 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
99 ;; Latin-2 (ISO-8859-2) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
100 |
17052 | 101 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
102 'iso-latin-2 2 ?2 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
103 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-2)" |
17052 | 104 '((ascii t) (latin-iso8859-2 t) nil nil |
105 nil ascii-eol ascii-cntl nil nil nil nil)) | |
106 | |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
107 (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
|
108 (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
|
109 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
110 (defun setup-latin2-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
111 "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
|
112 (interactive) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
113 (setup-8-bit-environment "Latin-2" 'latin-iso8859-2 'iso-latin-2 |
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
114 "latin-2-prefix")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
115 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
116 (set-language-info-alist |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
117 "Latin-2" '((setup-function . (setup-latin2-environment |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
118 . setup-european-environment-map)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
119 (charset . (ascii latin-iso8859-2)) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
120 (coding-system . (iso-latin-2)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
121 (documentation . ("\ |
18117
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
122 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
|
123 Albanian, Czech, English, German, Hungarian, Polish, Romanian, |
18243
7ebbc72852df
(Latin-2): List Croatian as alternative name for Serbo-Croatian.
Richard M. Stallman <rms@gnu.org>
parents:
18203
diff
changeset
|
124 Serbo-Croatian or Croatian, Slovak, Slovene, and Swedish. |
18157
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
125 " . describe-european-environment-map)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
126 )) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
127 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
128 ;; Latin-3 (ISO-8859-3) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
129 |
17052 | 130 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
131 'iso-latin-3 2 ?3 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
132 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-3)" |
17052 | 133 '((ascii t) (latin-iso8859-3 t) nil nil |
134 nil ascii-eol ascii-cntl nil nil nil nil)) | |
135 | |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
136 (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
|
137 (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
|
138 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
139 (defun setup-latin3-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
140 "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
|
141 (interactive) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
142 (setup-8-bit-environment "Latin-3" 'latin-iso8859-3 'iso-latin-3 |
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
143 "latin-3-prefix")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
144 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
145 (set-language-info-alist |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
146 "Latin-3" '((setup-function . (setup-latin3-environment |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
147 . setup-european-environment-map)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
148 (charset . (ascii latin-iso8859-3)) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
149 (coding-system . (iso-latin-3)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
150 (documentation . ("\ |
18117
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
151 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
|
152 Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician, |
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
153 German, Italian, Maltese, Spanish, and Turkish. |
18157
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
154 " . describe-european-environment-map)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
155 )) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
156 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
157 ;; Latin-4 (ISO-8859-4) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
158 |
17052 | 159 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
160 'iso-latin-4 2 ?4 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
161 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-4)" |
17052 | 162 '((ascii t) (latin-iso8859-4 t) nil nil |
163 nil ascii-eol ascii-cntl nil nil nil nil)) | |
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) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
171 (setup-8-bit-environment "Latin-4" 'latin-iso8859-4 'iso-latin-4 |
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
172 "latin-4-prefix")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
173 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
174 (set-language-info-alist |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
175 "Latin-4" '((setup-function . (setup-latin4-environment |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
176 . setup-european-environment-map)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
177 (charset . (ascii latin-iso8859-4)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
178 (coding-system . (iso-8859-4)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
179 (documentation . ("\ |
18117
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
180 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
|
181 Danish, English, Estonian, Finnish, German, Greenlandic, Lappish, |
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
182 Latvian, Lithuanian, and Norwegian. |
18157
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
183 " . describe-european-environment-map)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
184 )) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
185 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
186 ;; Latin-5 (ISO-8859-9) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
187 |
17052 | 188 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
189 'iso-latin-5 2 ?9 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
190 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-9)" |
17052 | 191 '((ascii t) (latin-iso8859-9 t) nil nil |
192 nil ascii-eol ascii-cntl nil nil nil nil)) | |
193 | |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
194 (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
|
195 (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
|
196 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
197 (defun setup-latin5-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
198 "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
|
199 (interactive) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
200 (setup-8-bit-environment "Latin-5" 'latin-iso8859-9 'iso-latin-5 |
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
201 "latin-5-prefix")) |
17052 | 202 |
203 (set-language-info-alist | |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
204 "Latin-5" '((setup-function . (setup-latin5-environment |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
205 . setup-european-environment-map)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
206 (charset . (ascii latin-iso8859-9)) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
207 (coding-system . (iso-latin-5)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
208 (documentation . ("\ |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
209 These languages are supported with the Latin-5 (ISO-8859-9) character set. |
18157
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
210 " . describe-european-environment-map)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
211 )) |
17302
1012d679efd4
English related codes are moved to
Kenichi Handa <handa@m17n.org>
parents:
17098
diff
changeset
|
212 |
17052 | 213 ;;; european.el ends here |