Mercurial > emacs
annotate lisp/language/european.el @ 20739:5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
coding-priority key in language-info-alist.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 22 Jan 1998 01:46:28 +0000 |
parents | 5031189adff2 |
children | ffa67db916b4 |
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) |
19138
4792b6db181d
(setup-8-bit-environment): Do not
Kenichi Handa <handa@m17n.org>
parents:
19089
diff
changeset
|
45 (set-default-coding-systems coding-system) |
17993
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 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
49 (if charset |
18157
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
50 (let ((nonascii-offset (- (make-char charset) 128))) |
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
51 ;; 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
|
52 ;; when codes 0200 - 0377 are typed in. |
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
53 (setq nonascii-insert-offset nonascii-offset))) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
54 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
55 (if input-method |
19369
1a7bd3dd824e
(setup-8-bit-environment): Delete
Kenichi Handa <handa@m17n.org>
parents:
19360
diff
changeset
|
56 (setq default-input-method input-method)) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
57 |
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
58 ;; 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
|
59 ;; 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
|
60 ;; 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
|
61 (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
|
62 (load (downcase language) nil t))) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
63 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
64 ;; Latin-1 (ISO-8859-1) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
65 |
17052 | 66 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
67 'iso-latin-1 2 ?1 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
68 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-1, Compound Text Encoding)" |
17052 | 69 '((ascii t) (latin-iso8859-1 t) nil nil |
20159
dce0d588d203
Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents:
19661
diff
changeset
|
70 nil ascii-eol ascii-cntl nil nil nil nil nil nil nil nil nil t) |
dce0d588d203
Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents:
19661
diff
changeset
|
71 '(ascii latin-iso8859-1)) |
17052 | 72 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
73 (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
|
74 (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
|
75 (define-coding-system-alias 'ctext 'iso-latin-1) |
17052 | 76 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
77 (defun setup-latin1-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
78 "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
|
79 (interactive) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
80 (setup-8-bit-environment "Latin-1" 'latin-iso8859-1 'iso-latin-1 |
19394
619697797214
(setup-latin1-environment): Don't set special-microsoft-code-table here.
Richard M. Stallman <rms@gnu.org>
parents:
19369
diff
changeset
|
81 "latin-1-prefix")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
82 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
83 (set-language-info-alist |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
84 "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
|
85 . setup-european-environment-map)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
86 (charset . (ascii latin-iso8859-1)) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
87 (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
|
88 (sample-text |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
89 . "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
|
90 (documentation . ("\ |
18117
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
91 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
|
92 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
|
93 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish. |
18157
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
94 " . describe-european-environment-map)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
95 )) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
96 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
97 ;; Latin-2 (ISO-8859-2) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
98 |
17052 | 99 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
100 'iso-latin-2 2 ?2 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
101 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-2)" |
17052 | 102 '((ascii t) (latin-iso8859-2 t) nil nil |
20159
dce0d588d203
Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents:
19661
diff
changeset
|
103 nil ascii-eol ascii-cntl nil nil nil nil) |
dce0d588d203
Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents:
19661
diff
changeset
|
104 '(ascii latin-iso8859-2)) |
17052 | 105 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
106 (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
|
107 (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
|
108 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
109 (defun setup-latin2-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
110 "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
|
111 (interactive) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
112 (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
|
113 "latin-2-prefix")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
114 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
115 (set-language-info-alist |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
116 "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
|
117 . setup-european-environment-map)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
118 (charset . (ascii latin-iso8859-2)) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
119 (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
|
120 (documentation . ("\ |
18117
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
121 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
|
122 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
|
123 Serbo-Croatian or Croatian, Slovak, Slovene, Sorbian (upper and lower), |
5031189adff2
Add "Upper Sorbian" and "Lower Sorbian" in
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
124 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 |
20159
dce0d588d203
Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents:
19661
diff
changeset
|
134 nil ascii-eol ascii-cntl nil nil nil nil) |
dce0d588d203
Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents:
19661
diff
changeset
|
135 '(ascii latin-iso8859-3)) |
17052 | 136 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
137 (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
|
138 (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
|
139 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
140 (defun setup-latin3-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
141 "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
|
142 (interactive) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
143 (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
|
144 "latin-3-prefix")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
145 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
146 (set-language-info-alist |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
147 "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
|
148 . setup-european-environment-map)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
149 (charset . (ascii latin-iso8859-3)) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
150 (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
|
151 (documentation . ("\ |
18117
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
152 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
|
153 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
|
154 German, Italian, Maltese, Spanish, and Turkish. |
18157
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
155 " . describe-european-environment-map)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
156 )) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
157 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
158 ;; Latin-4 (ISO-8859-4) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
159 |
17052 | 160 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
161 'iso-latin-4 2 ?4 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
162 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-4)" |
17052 | 163 '((ascii t) (latin-iso8859-4 t) nil nil |
20159
dce0d588d203
Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents:
19661
diff
changeset
|
164 nil ascii-eol ascii-cntl nil nil nil nil) |
dce0d588d203
Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents:
19661
diff
changeset
|
165 '(ascii latin-iso8859-4)) |
17052 | 166 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
167 (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
|
168 (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
|
169 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
170 (defun setup-latin4-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
171 "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
|
172 (interactive) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
173 (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
|
174 "latin-4-prefix")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
175 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
176 (set-language-info-alist |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
177 "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
|
178 . setup-european-environment-map)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
179 (charset . (ascii latin-iso8859-4)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
180 (coding-system . (iso-8859-4)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
181 (documentation . ("\ |
18117
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
182 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
|
183 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
|
184 Latvian, Lithuanian, and Norwegian. |
18157
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
185 " . describe-european-environment-map)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
186 )) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
187 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
188 ;; Latin-5 (ISO-8859-9) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
189 |
17052 | 190 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
191 'iso-latin-5 2 ?9 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
192 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-9)" |
17052 | 193 '((ascii t) (latin-iso8859-9 t) nil nil |
20159
dce0d588d203
Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents:
19661
diff
changeset
|
194 nil ascii-eol ascii-cntl nil nil nil nil) |
dce0d588d203
Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents:
19661
diff
changeset
|
195 '(ascii latin-iso8859-9)) |
17052 | 196 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
197 (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
|
198 (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
|
199 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
200 (defun setup-latin5-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
201 "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
|
202 (interactive) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
203 (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
|
204 "latin-5-prefix")) |
17052 | 205 |
206 (set-language-info-alist | |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
207 "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
|
208 . setup-european-environment-map)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
209 (charset . (ascii latin-iso8859-9)) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
210 (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
|
211 (documentation . ("\ |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
212 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
|
213 " . describe-european-environment-map)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
214 )) |
17302
1012d679efd4
English related codes are moved to
Kenichi Handa <handa@m17n.org>
parents:
17098
diff
changeset
|
215 |
17052 | 216 ;;; european.el ends here |