Mercurial > emacs
annotate lisp/language/european.el @ 19454:5a08bc0f02d3
(make-coding-system): Doc-string fixed.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 22 Aug 1997 01:22:49 +0000 |
parents | 619697797214 |
children | b931375072b2 |
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 |
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
59 ;; single-byte mode. |
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
60 (if (string-match "^Latin-\\([1-9]\\)$" language) |
19360
f25a49622794
(setup-8-bit-environment): Use `require' to load the latin-N file.
Richard M. Stallman <rms@gnu.org>
parents:
19292
diff
changeset
|
61 (require (intern (downcase language))))) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
62 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
63 ;; Latin-1 (ISO-8859-1) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
64 |
17052 | 65 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
66 'iso-latin-1 2 ?1 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
67 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-1, Compound Text Encoding)" |
17052 | 68 '((ascii t) (latin-iso8859-1 t) nil nil |
19369
1a7bd3dd824e
(setup-8-bit-environment): Delete
Kenichi Handa <handa@m17n.org>
parents:
19360
diff
changeset
|
69 nil ascii-eol ascii-cntl nil nil nil nil nil nil nil nil nil t)) |
17052 | 70 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
71 (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
|
72 (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
|
73 (define-coding-system-alias 'ctext 'iso-latin-1) |
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) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
78 (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
|
79 "latin-1-prefix")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
80 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
81 (set-language-info-alist |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
82 "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
|
83 . setup-european-environment-map)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
84 (charset . (ascii latin-iso8859-1)) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
85 (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
|
86 (sample-text |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
87 . "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
|
88 (documentation . ("\ |
18117
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
89 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
|
90 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
|
91 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish. |
18157
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
92 " . describe-european-environment-map)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
93 )) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
94 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
95 ;; Latin-2 (ISO-8859-2) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
96 |
17052 | 97 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
98 'iso-latin-2 2 ?2 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
99 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-2)" |
17052 | 100 '((ascii t) (latin-iso8859-2 t) nil nil |
101 nil ascii-eol ascii-cntl nil nil nil nil)) | |
102 | |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
103 (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
|
104 (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
|
105 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
106 (defun setup-latin2-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
107 "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
|
108 (interactive) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
109 (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
|
110 "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 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
113 "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
|
114 . setup-european-environment-map)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
115 (charset . (ascii latin-iso8859-2)) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
116 (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
|
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, |
18243
7ebbc72852df
(Latin-2): List Croatian as alternative name for Serbo-Croatian.
Richard M. Stallman <rms@gnu.org>
parents:
18203
diff
changeset
|
120 Serbo-Croatian or Croatian, Slovak, Slovene, and Swedish. |
18157
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
121 " . describe-european-environment-map)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
122 )) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
123 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
124 ;; Latin-3 (ISO-8859-3) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
125 |
17052 | 126 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
127 'iso-latin-3 2 ?3 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
128 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-3)" |
17052 | 129 '((ascii t) (latin-iso8859-3 t) nil nil |
130 nil ascii-eol ascii-cntl nil nil nil nil)) | |
131 | |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
132 (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
|
133 (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
|
134 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
135 (defun setup-latin3-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
136 "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
|
137 (interactive) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
138 (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
|
139 "latin-3-prefix")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
140 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
141 (set-language-info-alist |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
142 "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
|
143 . setup-european-environment-map)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
144 (charset . (ascii latin-iso8859-3)) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
145 (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
|
146 (documentation . ("\ |
18117
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
147 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
|
148 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
|
149 German, Italian, Maltese, Spanish, and Turkish. |
18157
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
150 " . describe-european-environment-map)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
151 )) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
152 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
153 ;; Latin-4 (ISO-8859-4) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
154 |
17052 | 155 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
156 'iso-latin-4 2 ?4 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
157 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-4)" |
17052 | 158 '((ascii t) (latin-iso8859-4 t) nil nil |
159 nil ascii-eol ascii-cntl nil nil nil nil)) | |
160 | |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
161 (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
|
162 (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
|
163 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
164 (defun setup-latin4-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
165 "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
|
166 (interactive) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
167 (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
|
168 "latin-4-prefix")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
169 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
170 (set-language-info-alist |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
171 "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
|
172 . setup-european-environment-map)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
173 (charset . (ascii latin-iso8859-4)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
174 (coding-system . (iso-8859-4)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
175 (documentation . ("\ |
18117
5db3b24f2c5c
(iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents:
18069
diff
changeset
|
176 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
|
177 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
|
178 Latvian, Lithuanian, and Norwegian. |
18157
43e42c5bc812
(describe-european-environment-map):
Richard M. Stallman <rms@gnu.org>
parents:
18117
diff
changeset
|
179 " . describe-european-environment-map)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
180 )) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
181 |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
182 ;; Latin-5 (ISO-8859-9) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
183 |
17052 | 184 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
185 'iso-latin-5 2 ?9 |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
186 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-9)" |
17052 | 187 '((ascii t) (latin-iso8859-9 t) nil nil |
188 nil ascii-eol ascii-cntl nil nil nil nil)) | |
189 | |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
190 (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
|
191 (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
|
192 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
193 (defun setup-latin5-environment () |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
194 "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
|
195 (interactive) |
18543
c69431ef3310
(setup-8-bit-environment): New argument
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
196 (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
|
197 "latin-5-prefix")) |
17052 | 198 |
199 (set-language-info-alist | |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
200 "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
|
201 . setup-european-environment-map)) |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
202 (charset . (ascii latin-iso8859-9)) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
18159
diff
changeset
|
203 (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
|
204 (documentation . ("\ |
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
205 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
|
206 " . describe-european-environment-map)) |
18069
d6b58197bd69
Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents:
17993
diff
changeset
|
207 )) |
17302
1012d679efd4
English related codes are moved to
Kenichi Handa <handa@m17n.org>
parents:
17098
diff
changeset
|
208 |
17052 | 209 ;;; european.el ends here |