annotate lisp/language/european.el @ 88414:fad0f879877f

Call define-coding-system instead of make-coding-system. All CCL program deleted.
author Kenichi Handa <handa@m17n.org>
date Fri, 01 Mar 2002 02:28:29 +0000
parents 06cba78a5cdd
children 3ef048e3d781
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38436
b174db545cfd Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 37298
diff changeset
1 ;;; european.el --- support for European languages -*- coding: iso-2022-7bit; -*-
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
2
35161
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
3 ;; Copyright (C) 1995, 1997, 2001 Electrotechnical Laboratory, JAPAN.
18377
8b4a66c66dd6 Change copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 18309
diff changeset
4 ;; Licensed to the Free Software Foundation.
41978
8fb314e3c7fd Remove autoload cookies. Fix registration
Dave Love <fx@gnu.org>
parents: 41875
diff changeset
5 ;; Copyright (C) 2001 Free Software Foundation, Inc.
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
6
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
7 ;; Keywords: multilingual, European
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
8
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
9 ;; This file is part of GNU Emacs.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
10
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
11 ;; GNU Emacs is free software; you can redistribute it and/or modify
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
12 ;; it under the terms of the GNU General Public License as published by
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
13 ;; the Free Software Foundation; either version 2, or (at your option)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
14 ;; any later version.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
15
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
16 ;; GNU Emacs is distributed in the hope that it will be useful,
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
19 ;; GNU General Public License for more details.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
20
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
17071
70194012fb3a Fix FSF address in comment.
Karl Heuer <kwzh@gnu.org>
parents: 17052
diff changeset
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
70194012fb3a Fix FSF address in comment.
Karl Heuer <kwzh@gnu.org>
parents: 17052
diff changeset
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
70194012fb3a Fix FSF address in comment.
Karl Heuer <kwzh@gnu.org>
parents: 17052
diff changeset
24 ;; Boston, MA 02111-1307, USA.
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
25
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
26 ;;; Commentary:
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
27
41978
8fb314e3c7fd Remove autoload cookies. Fix registration
Dave Love <fx@gnu.org>
parents: 41875
diff changeset
28 ;; For European scripts, character sets ISO8859-1,2,3,4,9,14,15 are
8fb314e3c7fd Remove autoload cookies. Fix registration
Dave Love <fx@gnu.org>
parents: 41875
diff changeset
29 ;; supported.
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
30
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
31 ;;; Code:
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
32
18069
d6b58197bd69 Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents: 17993
diff changeset
33 ;; Latin-1 (ISO-8859-1)
17993
73869115ae0a Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents: 17841
diff changeset
34
73869115ae0a Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents: 17841
diff changeset
35 (set-language-info-alist
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
36 "Latin-1" '((charset iso-8859-1)
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
37 (coding-system iso-latin-1)
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
38 (coding-priority iso-latin-1)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
39 (nonascii-translation . iso-8859-1)
22726
e44440f1a80e Define unibyte-syntax in each of these language environments.
Richard M. Stallman <rms@gnu.org>
parents: 22075
diff changeset
40 (unibyte-syntax . "latin-1")
22980
5681e7798ce9 (setup-8-bit-environment): Function deleted.
Kenichi Handa <handa@m17n.org>
parents: 22726
diff changeset
41 (unibyte-display . iso-latin-1)
23050
c3cb64f8dc9c Fix previous change.
Kenichi Handa <handa@m17n.org>
parents: 23048
diff changeset
42 (input-method . "latin-1-prefix")
18069
d6b58197bd69 Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents: 17993
diff changeset
43 (sample-text
d6b58197bd69 Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents: 17993
diff changeset
44 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!")
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
45 (documentation . "\
26014
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
46 This language environment is a generic one for the Latin-1 (ISO-8859-1)
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
47 character set which supports the following European languages:
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
48 Albanian, Basque, Breton, Catalan, Danish, Dutch, English, Faeroese,
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
49 Finnish, French (with restrictions -- see Latin-9), Frisian, Galician,
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
50 German, Greenlandic, Icelandic, Irish Gaelic (new orthography),
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
51 Italian, Latin, Luxemburgish, Norwegian, Portuguese, Rhaeto-Romanic,
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
52 Scottish Gaelic, Spanish, and Swedish.
35350
c26260dd320b ("Latin-1"): Make the format of description
Kenichi Handa <handa@m17n.org>
parents: 35330
diff changeset
53 We also have specific language environments for the following languages:
c26260dd320b ("Latin-1"): Make the format of description
Kenichi Handa <handa@m17n.org>
parents: 35330
diff changeset
54 For Dutch, \"Dutch\".
c26260dd320b ("Latin-1"): Make the format of description
Kenichi Handa <handa@m17n.org>
parents: 35330
diff changeset
55 For German, \"German\".
c26260dd320b ("Latin-1"): Make the format of description
Kenichi Handa <handa@m17n.org>
parents: 35330
diff changeset
56 For Spanish, \"Spanish\".
41228
06145993e54d Doc fix.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 41196
diff changeset
57 For French, \"French\".
26014
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
58
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
59 Latin-1 also covers several written languages outside Europe, including
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
60 Indonesian/Malay, Tagalog (Philippines), Swahili and Afrikaans."))
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
61 '("European"))
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
62
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-2 (ISO-8859-2)
17993
73869115ae0a Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents: 17841
diff changeset
65
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
66 (define-coding-system 'iso-latin-2
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
67 "ISO 2022 based 8-bit encoding for Latin-2 (MIME:ISO-8859-2)."
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
68 :coding-type 'charset
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
69 :mnemonic ?2
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
70 :charset-list '(iso-8859-2)
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
71 :plist '(mime-charset iso-8859-2))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
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-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
74 (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
75
17993
73869115ae0a Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents: 17841
diff changeset
76 (set-language-info-alist
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
77 "Latin-2" '((charset iso-8859-2)
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
78 (coding-system iso-latin-2)
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
79 (coding-priority iso-latin-2)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
80 (nonascii-translation . iso-8859-2)
22726
e44440f1a80e Define unibyte-syntax in each of these language environments.
Richard M. Stallman <rms@gnu.org>
parents: 22075
diff changeset
81 (unibyte-syntax . "latin-2")
22980
5681e7798ce9 (setup-8-bit-environment): Function deleted.
Kenichi Handa <handa@m17n.org>
parents: 22726
diff changeset
82 (unibyte-display . iso-latin-2)
23050
c3cb64f8dc9c Fix previous change.
Kenichi Handa <handa@m17n.org>
parents: 23048
diff changeset
83 (input-method . "latin-2-prefix")
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
84 (documentation . "\
26014
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
85 This language environment is a generic one for the Latin-2 (ISO-8859-2)
23117
13247082e0ed ("Latin-1"): Modify `documentation' key value.
Kenichi Handa <handa@m17n.org>
parents: 23111
diff changeset
86 character set which supports the following languages:
18117
5db3b24f2c5c (iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents: 18069
diff changeset
87 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
88 Serbo-Croatian or Croatian, Slovak, Slovene, Sorbian (upper and lower),
23117
13247082e0ed ("Latin-1"): Modify `documentation' key value.
Kenichi Handa <handa@m17n.org>
parents: 23111
diff changeset
89 and Swedish.
13247082e0ed ("Latin-1"): Modify `documentation' key value.
Kenichi Handa <handa@m17n.org>
parents: 23111
diff changeset
90 We also have specific language environments for the following languages:
13247082e0ed ("Latin-1"): Modify `documentation' key value.
Kenichi Handa <handa@m17n.org>
parents: 23111
diff changeset
91 For Czech, \"Czech\".
13247082e0ed ("Latin-1"): Modify `documentation' key value.
Kenichi Handa <handa@m17n.org>
parents: 23111
diff changeset
92 For Romanian, \"Romanian\".
13247082e0ed ("Latin-1"): Modify `documentation' key value.
Kenichi Handa <handa@m17n.org>
parents: 23111
diff changeset
93 For Slovak, \"Slovak\"."))
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
94 '("European"))
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
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-3 (ISO-8859-3)
17993
73869115ae0a Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents: 17841
diff changeset
98
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
99 (define-coding-system 'iso-latin-3
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
100 "ISO 2022 based 8-bit encoding for Latin-3 (MIME:ISO-8859-3)."
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
101 :coding-type 'charset
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
102 :mnemonic ?3
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
103 :charset-list '(iso-8859-3)
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
104 :plist '(mime-charset iso-8859-3))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
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-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
107 (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
108
17993
73869115ae0a Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents: 17841
diff changeset
109 (set-language-info-alist
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
110 "Latin-3" '((charset iso-8859-3)
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
111 (coding-system iso-latin-3)
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
112 (coding-priority iso-latin-3)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
113 (nonascii-translation . iso-8859-3)
22726
e44440f1a80e Define unibyte-syntax in each of these language environments.
Richard M. Stallman <rms@gnu.org>
parents: 22075
diff changeset
114 (unibyte-syntax . "latin-3")
22980
5681e7798ce9 (setup-8-bit-environment): Function deleted.
Kenichi Handa <handa@m17n.org>
parents: 22726
diff changeset
115 (unibyte-display . iso-latin-3)
23050
c3cb64f8dc9c Fix previous change.
Kenichi Handa <handa@m17n.org>
parents: 23048
diff changeset
116 (input-method . "latin-3-prefix")
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
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-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
119 Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician,
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
120 German, Italian, Maltese, Spanish, and Turkish."))
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
121 '("European"))
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
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-4 (ISO-8859-4)
17993
73869115ae0a Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents: 17841
diff changeset
125
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
126 (define-coding-system 'iso-latin-4
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
127 "ISO 2022 based 8-bit encoding for Latin-4 (MIME:ISO-8859-4)."
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
128 :coding-type 'charset
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
129 :mnemonic ?4
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
130 :charset-list '(iso-8859-4)
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
131 :plist '(mime-charset iso-8859-4))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
132
18520
383d11185239 Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents: 18377
diff changeset
133 (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
134 (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
135
17993
73869115ae0a Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents: 17841
diff changeset
136 (set-language-info-alist
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
137 "Latin-4" '((charset iso-8859-4)
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
138 (coding-system iso-8859-4)
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
139 (coding-priority iso-8859-4)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
140 (nonascii-translation . iso-8859-4)
22726
e44440f1a80e Define unibyte-syntax in each of these language environments.
Richard M. Stallman <rms@gnu.org>
parents: 22075
diff changeset
141 (unibyte-syntax . "latin-4")
22980
5681e7798ce9 (setup-8-bit-environment): Function deleted.
Kenichi Handa <handa@m17n.org>
parents: 22726
diff changeset
142 (unibyte-display . iso-8859-4)
36870
afe2778e4c9d ("Latin-5", "Latin-4"): Use postfix input
Gerd Moellmann <gerd@gnu.org>
parents: 35350
diff changeset
143 (input-method . "latin-4-postfix")
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
144 (documentation . "\
18117
5db3b24f2c5c (iso-8859-1): Use `1' for mode line.
Richard M. Stallman <rms@gnu.org>
parents: 18069
diff changeset
145 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
146 Danish, English, Estonian, Finnish, German, Greenlandic, Lappish,
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
147 Latvian, Lithuanian, and Norwegian."))
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
148 '("European"))
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
149
17993
73869115ae0a Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents: 17841
diff changeset
150
18069
d6b58197bd69 Rename language environments from LatinN to Latin-N.
Richard M. Stallman <rms@gnu.org>
parents: 17993
diff changeset
151 ;; Latin-5 (ISO-8859-9)
17993
73869115ae0a Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents: 17841
diff changeset
152
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
153 (define-coding-system 'iso-latin-5
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
154 "ISO 2022 based 8-bit encoding for Latin-5 (MIME:ISO-8859-9)."
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
155 :coding-type 'charset
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
156 :mnemonic ?9
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
157 :charset-list '(iso-8859-9)
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
158 :plist '(mime-charset iso-8859-9))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
159
18520
383d11185239 Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents: 18377
diff changeset
160 (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
161 (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
162
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
163 (set-language-info-alist
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
164 "Latin-5" '((charset iso-8859-9)
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
165 (coding-system iso-latin-5)
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
166 (coding-priority iso-latin-5)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
167 (nonascii-translation . iso-8859-9)
22726
e44440f1a80e Define unibyte-syntax in each of these language environments.
Richard M. Stallman <rms@gnu.org>
parents: 22075
diff changeset
168 (unibyte-syntax . "latin-5")
22980
5681e7798ce9 (setup-8-bit-environment): Function deleted.
Kenichi Handa <handa@m17n.org>
parents: 22726
diff changeset
169 (unibyte-display . iso-latin-5)
36870
afe2778e4c9d ("Latin-5", "Latin-4"): Use postfix input
Gerd Moellmann <gerd@gnu.org>
parents: 35350
diff changeset
170 (input-method . "latin-5-postfix")
42353
06cba78a5cdd Fix the doc string of "Latin-5" language environment.
Eli Zaretskii <eliz@gnu.org>
parents: 42194
diff changeset
171 (documentation . "Support for Turkish language."))
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
172 '("European"))
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
173
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
174
26014
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
175 ;; Latin-8 (ISO-8859-14)
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
176
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
177 (define-coding-system 'iso-latin-8
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
178 "ISO 2022 based 8-bit encoding for Latin-8 (MIME:ISO-8859-14)."
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
179 :coding-type 'charset
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
180 ;; `W' for `Welsh', since `C' for `Celtic' is taken.
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
181 :mnemonic ?W
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
182 :charset-list '(iso-8859-14)
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
183 :plist '(mime-charset iso-8859-14))
26014
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
184
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
185 (define-coding-system-alias 'iso-8859-14 'iso-latin-8)
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
186 (define-coding-system-alias 'latin-8 'iso-latin-8)
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
187
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
188 (set-language-info-alist
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
189 "Latin-8" '((charset iso-8859-14)
26014
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
190 (coding-system iso-latin-8)
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
191 (coding-priority iso-latin-8)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
192 (nonascii-translation . iso-8859-14)
26014
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
193 (unibyte-syntax . "latin-8")
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
194 (unibyte-display . iso-latin-8)
31155
3362938ebbd7 ("Latin-8", "Latin-9"): Add input methods,
Dave Love <fx@gnu.org>
parents: 30261
diff changeset
195 (input-method . "latin-8-prefix")
3362938ebbd7 ("Latin-8", "Latin-9"): Add input methods,
Dave Love <fx@gnu.org>
parents: 30261
diff changeset
196 ;; Fixme: Welsh/Ga{e}lic greetings
3362938ebbd7 ("Latin-8", "Latin-9"): Add input methods,
Dave Love <fx@gnu.org>
parents: 30261
diff changeset
197 (sample-text . ",_"(B ,_p(B ,_^(B")
26014
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
198 (documentation . "\
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
199 This language environment is a generic one for the Latin-8 (ISO-8859-14)
31155
3362938ebbd7 ("Latin-8", "Latin-9"): Add input methods,
Dave Love <fx@gnu.org>
parents: 30261
diff changeset
200 character set which supports the Celtic languages, including those not
42152
e3ae5ef41293 Improving doc strings.
Werner LEMBERG <wl@gnu.org>
parents: 42051
diff changeset
201 covered by other ISO-8859 character sets:
e3ae5ef41293 Improving doc strings.
Werner LEMBERG <wl@gnu.org>
parents: 42051
diff changeset
202 Welsh, Manx Gaelic and Irish Gaelic (old orthography)."))
26014
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
203 '("European"))
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
204
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
205 ;; Latin-9 (ISO-8859-15)
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
206
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
207 (define-coding-system 'iso-latin-9
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
208 "ISO 2022 based 8-bit encoding for Latin-9 (MIME:ISO-8859-15)."
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
209 :coding-type 'charset
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
210 ;; `0' for `Latin-0'
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
211 :mnemonic ?0
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
212 :charset-list '(iso-8859-15)
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
213 :plist '(mime-charset iso-8859-15))
26014
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
214
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
215 (define-coding-system-alias 'iso-8859-15 'iso-latin-9)
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
216 (define-coding-system-alias 'latin-9 'iso-latin-9)
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
217 (define-coding-system-alias 'latin-0 'iso-latin-9)
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
218
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
219 (set-language-info-alist
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
220 "Latin-9" '((charset iso-8859-15)
26014
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
221 (coding-system iso-latin-9)
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
222 (coding-priority iso-latin-9)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
223 (nonascii-translation . iso-8859-15)
26014
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
224 (unibyte-syntax . "latin-9")
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
225 (unibyte-display . iso-latin-9)
31155
3362938ebbd7 ("Latin-8", "Latin-9"): Add input methods,
Dave Love <fx@gnu.org>
parents: 30261
diff changeset
226 (input-method . "latin-9-prefix")
26014
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
227 (sample-text
31155
3362938ebbd7 ("Latin-8", "Latin-9"): Add input methods,
Dave Love <fx@gnu.org>
parents: 30261
diff changeset
228 . "AVE. ,b&(48<=>(B ,b$(B")
26014
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
229 (documentation . "\
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
230 This language environment is a generic one for the Latin-9 (ISO-8859-15)
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
231 character set which supports the same languages as Latin-1 with the
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
232 addition of the Euro sign and some additional French and Finnish letters.
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
233 Latin-9 is sometimes nicknamed `Latin-0'."))
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
234 '("European"))
e84e2bf4f9fb Add Latin-8, Latin-9. Modify some doc
Dave Love <fx@gnu.org>
parents: 25773
diff changeset
235
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
236 (set-language-info-alist
22980
5681e7798ce9 (setup-8-bit-environment): Function deleted.
Kenichi Handa <handa@m17n.org>
parents: 22726
diff changeset
237 "German" '((tutorial . "TUTORIAL.de")
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
238 (charset iso-8859-1)
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
239 (coding-system iso-latin-1)
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
240 (coding-priority iso-latin-1)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
241 (nonascii-translation . iso-8859-1)
23050
c3cb64f8dc9c Fix previous change.
Kenichi Handa <handa@m17n.org>
parents: 23048
diff changeset
242 (input-method . "german-postfix")
22726
e44440f1a80e Define unibyte-syntax in each of these language environments.
Richard M. Stallman <rms@gnu.org>
parents: 22075
diff changeset
243 (unibyte-syntax . "latin-1")
22980
5681e7798ce9 (setup-8-bit-environment): Function deleted.
Kenichi Handa <handa@m17n.org>
parents: 22726
diff changeset
244 (unibyte-display . iso-latin-1)
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
245 (sample-text . "\
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
246 German (Deutsch Nord) Guten Tag
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
247 German (Deutsch S,A|(Bd) Gr,A|_(B Gott")
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
248 (documentation . "\
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
249 This language environment is almost the same as Latin-1,
42194
98e4b2a1b394 More doc string fixes.
Werner LEMBERG <wl@gnu.org>
parents: 42152
diff changeset
250 but sets the default input method to \"german-postfix\".
98e4b2a1b394 More doc string fixes.
Werner LEMBERG <wl@gnu.org>
parents: 42152
diff changeset
251 Additionally, it selects the German tutorial."))
20743
ffa67db916b4 Remove setting up of
Kenichi Handa <handa@m17n.org>
parents: 20232
diff changeset
252 '("European"))
17302
1012d679efd4 English related codes are moved to
Kenichi Handa <handa@m17n.org>
parents: 17098
diff changeset
253
24269
a29550b1d150 (setup-slovenian-environment): New function.
Richard M. Stallman <rms@gnu.org>
parents: 23158
diff changeset
254 (set-language-info-alist
41196
f8661b5a0670 ("French"): New language environment.
Eli Zaretskii <eliz@gnu.org>
parents: 41115
diff changeset
255 "French" '((tutorial . "TUTORIAL.fr")
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
256 (charset iso-8859-1)
41196
f8661b5a0670 ("French"): New language environment.
Eli Zaretskii <eliz@gnu.org>
parents: 41115
diff changeset
257 (coding-system iso-latin-1)
f8661b5a0670 ("French"): New language environment.
Eli Zaretskii <eliz@gnu.org>
parents: 41115
diff changeset
258 (coding-priority iso-latin-1)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
259 (nonascii-translation . iso-8859-1)
41196
f8661b5a0670 ("French"): New language environment.
Eli Zaretskii <eliz@gnu.org>
parents: 41115
diff changeset
260 (unibyte-syntax . "latin-1")
f8661b5a0670 ("French"): New language environment.
Eli Zaretskii <eliz@gnu.org>
parents: 41115
diff changeset
261 (unibyte-display . iso-latin-1)
f8661b5a0670 ("French"): New language environment.
Eli Zaretskii <eliz@gnu.org>
parents: 41115
diff changeset
262 (input-method . "latin-1-prefix")
f8661b5a0670 ("French"): New language environment.
Eli Zaretskii <eliz@gnu.org>
parents: 41115
diff changeset
263 (sample-text . "French (Fran,Ag(Bais) Bonjour, Salut")
f8661b5a0670 ("French"): New language environment.
Eli Zaretskii <eliz@gnu.org>
parents: 41115
diff changeset
264 (documentation . "\
f8661b5a0670 ("French"): New language environment.
Eli Zaretskii <eliz@gnu.org>
parents: 41115
diff changeset
265 This language environment is almost the same as Latin-1,
42194
98e4b2a1b394 More doc string fixes.
Werner LEMBERG <wl@gnu.org>
parents: 42152
diff changeset
266 but it selects the French tutorial."))
41196
f8661b5a0670 ("French"): New language environment.
Eli Zaretskii <eliz@gnu.org>
parents: 41115
diff changeset
267 '("European"))
f8661b5a0670 ("French"): New language environment.
Eli Zaretskii <eliz@gnu.org>
parents: 41115
diff changeset
268
f8661b5a0670 ("French"): New language environment.
Eli Zaretskii <eliz@gnu.org>
parents: 41115
diff changeset
269 (set-language-info-alist
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
270 "Slovenian" '((charset iso-8859-2)
24269
a29550b1d150 (setup-slovenian-environment): New function.
Richard M. Stallman <rms@gnu.org>
parents: 23158
diff changeset
271 (coding-system . (iso-8859-2))
a29550b1d150 (setup-slovenian-environment): New function.
Richard M. Stallman <rms@gnu.org>
parents: 23158
diff changeset
272 (coding-priority . (iso-8859-2))
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
273 (nonascii-translation . iso-8859-2)
24269
a29550b1d150 (setup-slovenian-environment): New function.
Richard M. Stallman <rms@gnu.org>
parents: 23158
diff changeset
274 (input-method . "latin-2-postfix")
a29550b1d150 (setup-slovenian-environment): New function.
Richard M. Stallman <rms@gnu.org>
parents: 23158
diff changeset
275 (unibyte-syntax . "latin-2")
a29550b1d150 (setup-slovenian-environment): New function.
Richard M. Stallman <rms@gnu.org>
parents: 23158
diff changeset
276 (unibyte-display . iso-8859-2)
a29550b1d150 (setup-slovenian-environment): New function.
Richard M. Stallman <rms@gnu.org>
parents: 23158
diff changeset
277 (tutorial . "TUTORIAL.sl")
a29550b1d150 (setup-slovenian-environment): New function.
Richard M. Stallman <rms@gnu.org>
parents: 23158
diff changeset
278 (sample-text . ",B.(Belimo vam uspe,B9(Ben dan!")
a29550b1d150 (setup-slovenian-environment): New function.
Richard M. Stallman <rms@gnu.org>
parents: 23158
diff changeset
279 (documentation . t))
a29550b1d150 (setup-slovenian-environment): New function.
Richard M. Stallman <rms@gnu.org>
parents: 23158
diff changeset
280 '("European"))
a29550b1d150 (setup-slovenian-environment): New function.
Richard M. Stallman <rms@gnu.org>
parents: 23158
diff changeset
281
35161
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
282 (set-language-info-alist
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
283 "Spanish" '((tutorial . "TUTORIAL.es")
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
284 (charset iso-8859-1)
35161
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
285 (coding-system iso-latin-1)
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
286 (coding-priority iso-latin-1)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
287 (nonascii-translation . iso-8859-1)
35161
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
288 (input-method . "spanish-postfix")
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
289 (unibyte-syntax . "latin-1")
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
290 (unibyte-display . iso-latin-1)
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
291 (sample-text . "Spanish (Espa,Aq(Bol) ,A!(BHola!")
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
292 (documentation . "\
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
293 This language environment is almost the same as Latin-1,
42194
98e4b2a1b394 More doc string fixes.
Werner LEMBERG <wl@gnu.org>
parents: 42152
diff changeset
294 but it sets the default input method to \"spanish-postfix\",
41115
20eb3e2945d7 (mac-roman): Add mime-charset property.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38436
diff changeset
295 and it selects the Spanish tutorial."))
35161
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
296 '("European"))
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
297
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
298 (set-language-info-alist
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
299 "Dutch" '((tutorial . "TUTORIAL.nl")
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
300 (charset iso-8859-1)
35161
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
301 (coding-system iso-latin-1)
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
302 (coding-priority iso-latin-1)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
303 (nonascii-translation . iso-8859-1)
35161
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
304 (unibyte-syntax . "latin-1")
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
305 (unibyte-display . iso-latin-1)
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
306 (sample-text . "Er is een aantal manieren waarop je dit kan doen")
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
307 (documentation . "\
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
308 This language environment is almost the same as Latin-1,
42194
98e4b2a1b394 More doc string fixes.
Werner LEMBERG <wl@gnu.org>
parents: 42152
diff changeset
309 but it selects the Dutch tutorial."))
35161
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
310 '("European"))
0495de5487ae Add Dutch and Spanish language info
Gerd Moellmann <gerd@gnu.org>
parents: 33513
diff changeset
311
25773
20234157d093 ("Turkish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 25228
diff changeset
312 ;; For Turkish, the character set ISO-8859-9 (Latin-5) is used. But,
20234157d093 ("Turkish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 25228
diff changeset
313 ;; before the introduction of ISO-8859-9 in 1988, ISO-8859-3 (Latin-3)
20234157d093 ("Turkish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 25228
diff changeset
314 ;; was used for Turkish. Those who use Latin-3 for Turkish should use
20234157d093 ("Turkish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 25228
diff changeset
315 ;; "Latin-3" language environment.
20234157d093 ("Turkish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 25228
diff changeset
316
20234157d093 ("Turkish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 25228
diff changeset
317 (set-language-info-alist
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
318 "Turkish" '((charset iso-8859-9)
25773
20234157d093 ("Turkish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 25228
diff changeset
319 (coding-system iso-latin-5)
20234157d093 ("Turkish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 25228
diff changeset
320 (coding-priority iso-latin-5)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
321 (nonascii-translation . iso-8859-9)
25773
20234157d093 ("Turkish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 25228
diff changeset
322 (unibyte-syntax . "latin-5")
20234157d093 ("Turkish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 25228
diff changeset
323 (unibyte-display . iso-latin-5)
20234157d093 ("Turkish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 25228
diff changeset
324 (input-method . "turkish-postfix")
20234157d093 ("Turkish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 25228
diff changeset
325 (sample-text . "Turkish (T,M|(Brk,Mg(Be) Merhaba")
20234157d093 ("Turkish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 25228
diff changeset
326 (documentation . t)))
20234157d093 ("Turkish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 25228
diff changeset
327
28436
2dbedede8507 ("Polish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 26134
diff changeset
328 ;; Polish ISO 8859-2 environment.
2dbedede8507 ("Polish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 26134
diff changeset
329 ;; Maintainer: Wlodek Bzyl <matwb@univ.gda.pl>
2dbedede8507 ("Polish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 26134
diff changeset
330 ;; Keywords: multilingual, Polish
2dbedede8507 ("Polish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 26134
diff changeset
331
2dbedede8507 ("Polish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 26134
diff changeset
332 (set-language-info-alist
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
333 "Polish" '((charset . (iso-8859-2))
28436
2dbedede8507 ("Polish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 26134
diff changeset
334 (coding-system . (iso-8859-2))
2dbedede8507 ("Polish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 26134
diff changeset
335 (coding-priority . (iso-8859-2))
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
336 (nonascii-translation . iso-8859-2)
28436
2dbedede8507 ("Polish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 26134
diff changeset
337 (input-method . "polish-slash")
2dbedede8507 ("Polish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 26134
diff changeset
338 (unibyte-syntax . "latin-2")
2dbedede8507 ("Polish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 26134
diff changeset
339 (unibyte-display . iso-8859-2)
2dbedede8507 ("Polish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 26134
diff changeset
340 (tutorial . "TUTORIAL.pl")
37298
d377298f0844 ("Polish"): Change sample text.
Gerd Moellmann <gerd@gnu.org>
parents: 36870
diff changeset
341 (sample-text . "P,Bs(Bjd,B<(B, ki,Bq(B-,B?(Be t,Bj(B chmurno,B6f(B w g,B31(Bb flaszy")
28436
2dbedede8507 ("Polish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 26134
diff changeset
342 (documentation . t))
2dbedede8507 ("Polish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 26134
diff changeset
343 '("European"))
2dbedede8507 ("Polish"): New language environment.
Kenichi Handa <handa@m17n.org>
parents: 26134
diff changeset
344
42051
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
345 (set-language-info-alist
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
346 "Welsh" `((coding-system utf-8 latin-8) ; the input method is Unicode-based
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
347 (coding-priority utf-8 latin-8)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
348 (nonascii-translation . iso-8859-14)
42051
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
349 (input-method . "welsh")
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
350 (documentation . "Support for Welsh, using Unicode."))
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
351 '("European"))
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
352
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
353 (set-language-info-alist
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
354 "Latin-7" `((coding-system latin-7)
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
355 (coding-priority latin-7)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
356 (nonascii-translation . iso-8859-13)
42051
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
357 ;; Fixme: input-method
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
358 (features code-pages)
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
359 (documentation . "Support for Latin-7, e.g. Latvian, Lithuanian."))
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
360 '("European"))
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
361
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
362 (set-language-info-alist
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
363 "Lithuanian" `((coding-system latin-7)
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
364 (coding-priority latin-7)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
365 (nonascii-translation . iso-8859-13)
42051
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
366 (input-method . "lithuanian-keyboard")
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
367 (features code-pages)
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
368 (documentation . "Support for Lithuanian."))
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
369 '("European"))
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
370
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
371 (set-language-info-alist
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
372 "Latvian" `((coding-system latin-7)
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
373 (coding-priority latin-7)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
374 (nonascii-translation . iso-8859-13)
42051
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
375 (input-method . "latvian-keyboard")
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
376 (features code-pages)
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
377 (documentation . "Support for Latvian."))
7b6dcc19e895 ("Welsh", "Latin-7", "Lithuanian")
Dave Love <fx@gnu.org>
parents: 41978
diff changeset
378 '("European"))
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
379
33049
fed8d1ebdc15 (mac-roman-decoder, mac-roman-encoder): New translation tables.
Kenichi Handa <handa@m17n.org>
parents: 31155
diff changeset
380
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
381 (define-coding-system 'mac-roman
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
382 "Mac Roman Encoding (MIME:MACINTOSH)."
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
383 :coding-type 'charset
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
384 :mnemonic ?M
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
385 :charset-list '(mac-roman)
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
386 ;; per IANA, rfc1345
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
387 :mime-charset 'macintosh)
33049
fed8d1ebdc15 (mac-roman-decoder, mac-roman-encoder): New translation tables.
Kenichi Handa <handa@m17n.org>
parents: 31155
diff changeset
388
41875
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
389 (defconst diacritic-composition-pattern "\\C^\\c^+")
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
390
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
391 (defun diacritic-compose-region (beg end)
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
392 "Compose diacritic characters in the region.
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
393 When called from a program, expects two arguments,
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
394 positions (integers or markers) specifying the region."
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
395 (interactive "r")
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
396 (save-restriction
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
397 (narrow-to-region beg end)
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
398 (goto-char (point-min))
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
399 (while (re-search-forward diacritic-composition-pattern nil t)
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
400 (compose-region (match-beginning 0) (match-end 0)))))
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
401
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
402 (defun diacritic-compose-string (string)
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
403 "Compose diacritic characters in STRING and return the resulting string."
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
404 (let ((idx 0))
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
405 (while (setq idx (string-match diacritic-composition-pattern string idx))
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
406 (compose-string string idx (match-end 0))
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
407 (setq idx (match-end 0))))
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
408 string)
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
409
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
410 (defun diacritic-compose-buffer ()
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
411 "Compose diacritic characters in the current buffer."
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
412 (interactive)
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
413 (diacritic-compose-region (point-min) (point-max)))
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
414
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
415 (defun diacritic-post-read-conversion (len)
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
416 (diacritic-compose-region (point) (+ (point) len))
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
417 len)
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
418
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
419 (defun diacritic-composition-function (from to pattern &optional string)
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
420 "Compose diacritic text in the region FROM and TO.
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
421 The text matches the regular expression PATTERN.
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
422 Optional 4th argument STRING, if non-nil, is a string containing text
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
423 to compose.
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
424
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
425 The return value is number of composed characters."
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
426 (if (< (1+ from) to)
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
427 (prog1 (- to from)
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
428 (if string
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
429 (compose-string string from to)
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
430 (compose-region from to))
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
431 (- to from))))
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
432
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
433 ;; Register a function to compose Unicode diacrtics and marks.
41978
8fb314e3c7fd Remove autoload cookies. Fix registration
Dave Love <fx@gnu.org>
parents: 41875
diff changeset
434 (let ((patterns '(("\\C^\\c^+" . diacritic-composition-function))))
41875
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
435 (let ((c #x300))
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
436 (while (<= c #x362)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
437 (aset composition-function-table (decode-char 'unicode c) patterns)
41875
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
438 (setq c (1+ c)))
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
439 (setq c #x20d0)
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
440 (while (<= c #x20e3)
88414
fad0f879877f Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents: 42353
diff changeset
441 (aset composition-function-table (decode-char 'unicode c) patterns)
41875
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
442 (setq c (1+ c)))))
e31b7be17ab2 (diacritic-composition-pattern): New constant.
Dave Love <fx@gnu.org>
parents: 41228
diff changeset
443
31155
3362938ebbd7 ("Latin-8", "Latin-9"): Add input methods,
Dave Love <fx@gnu.org>
parents: 30261
diff changeset
444 (provide 'european)
3362938ebbd7 ("Latin-8", "Latin-9"): Add input methods,
Dave Love <fx@gnu.org>
parents: 30261
diff changeset
445
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
446 ;;; european.el ends here