Mercurial > emacs
annotate lisp/language/cyrillic.el @ 90017:6e012bc03071
(Fcall_process): Fix merging of 2004-10-13 change.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 14 Oct 2004 12:28:46 +0000 |
parents | d8411455de48 |
children | f042e7c0fe20 |
rev | line source |
---|---|
38414
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
37112
diff
changeset
|
1 ;;; cyrillic.el --- support for Cyrillic -*- coding: iso-2022-7bit; -*- |
17052 | 2 |
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. | |
89483 | 4 ;; Licensed to the Free Software Foundation. |
49795
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
5 ;; Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. |
89483 | 6 ;; Copyright (C) 2003 |
7 ;; National Institute of Advanced Industrial Science and Technology (AIST) | |
8 ;; Registration Number H13PRO009 | |
17052 | 9 |
46500 | 10 ;; Author: Kenichi Handa <handa@etl.go.jp> |
11 ;; Keywords: multilingual, Cyrillic, i18n | |
17052 | 12 |
13 ;; This file is part of GNU Emacs. | |
14 | |
15 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
16 ;; it under the terms of the GNU General Public License as published by | |
17 ;; the Free Software Foundation; either version 2, or (at your option) | |
18 ;; any later version. | |
19 | |
20 ;; GNU Emacs is distributed in the hope that it will be useful, | |
21 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
22 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23 ;; GNU General Public License for more details. | |
24 | |
25 ;; You should have received a copy of the GNU General Public License | |
17071 | 26 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
27 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
28 ;; Boston, MA 02111-1307, USA. | |
17052 | 29 |
30 ;;; Commentary: | |
31 | |
46500 | 32 ;; The character set ISO8859-5 is supported. KOI-8 and ALTERNATIVNYJ |
33 ;; are converted to Unicode internally. See | |
34 ;; <URL:http://www.ecma.ch/ecma1/STAND/ECMA-113.HTM>. For more info | |
35 ;; on Cyrillic charsets, see | |
36 ;; <URL:http://czyborra.com/charsets/cyrillic.html>. The KOI and | |
37 ;; Alternativnyj coding systems should live in code-pages.el, but | |
38 ;; they've always been preloaded and the coding system autoload | |
39 ;; mechanism didn't get accepted, so they have to stay here and | |
40 ;; duplicate code-pages stuff. | |
41 | |
42 ;; Note that 8859-5 maps directly onto the Unicode Cyrillic block, | |
43 ;; apart from codepoints 160 (NBSP, c.f. U+0400), 173 (soft hyphen, | |
44 ;; c.f. U+04OD) and 253 (section sign, c.f U+045D). The KOI-8 and | |
45 ;; Alternativnyj coding systems encode both 8859-5 and Unicode. | |
46 ;; ucs-tables.el provides unification for cyrillic-iso-8bit. | |
47 | |
47702
e0786a68f34e
(ccl-decode-koi8): Refer to
Kenichi Handa <handa@m17n.org>
parents:
47416
diff
changeset
|
48 ;; Customizing `utf-fragment-on-decoding' allows decoding characters |
46500 | 49 ;; from KOI and Alternativnyj into 8859-5 where that's possible. |
50 ;; cyrillic-iso8859-5 characters take half as much space in the buffer | |
51 ;; as the mule-unicode-0100-24ff equivalents, though that's probably | |
52 ;; not normally a big deal. | |
17052 | 53 |
54 ;;; Code: | |
55 | |
19451
933bea774c3c
Make describe-cyrillic-environment-map and
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
56 ;; Cyrillic (general) |
933bea774c3c
Make describe-cyrillic-environment-map and
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
57 |
46500 | 58 ;; ISO-8859-5 stuff |
17085
4dafa5431293
Change coding system name koi8 to koi8-r.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
59 |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
60 (define-coding-system 'cyrillic-iso-8bit |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
61 "ISO 2022 based 8-bit encoding for Cyrillic script (MIME:ISO-8859-5)." |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
62 :coding-type 'charset |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
63 :mnemonic ?5 |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
64 :charset-list '(iso-8859-5) |
88512
1e2fb9a9f29c
(cyrillic-iso-8bit, cyrillic-koi8)
Dave Love <fx@gnu.org>
parents:
88414
diff
changeset
|
65 :mime-charset 'iso-8859-5) |
17052 | 66 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18454
diff
changeset
|
67 (define-coding-system-alias 'iso-8859-5 'cyrillic-iso-8bit) |
18308 | 68 |
19451
933bea774c3c
Make describe-cyrillic-environment-map and
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
69 (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:
42152
diff
changeset
|
70 "Cyrillic-ISO" '((charset iso-8859-5) |
20745 | 71 (coding-system cyrillic-iso-8bit) |
72 (coding-priority cyrillic-iso-8bit) | |
46500 | 73 (input-method . "cyrillic-yawerty") ; fixme |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
74 (nonascii-translation . iso-8859-5) |
22983
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
22881
diff
changeset
|
75 (unibyte-display . cyrillic-iso-8bit) |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
22881
diff
changeset
|
76 (features cyril-util) |
19451
933bea774c3c
Make describe-cyrillic-environment-map and
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
77 (sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!") |
20745 | 78 (documentation . "Support for Cyrillic ISO-8859-5.")) |
79 '("Cyrillic")) | |
19451
933bea774c3c
Make describe-cyrillic-environment-map and
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
80 |
46500 | 81 ;; KOI-8R stuff |
17085
4dafa5431293
Change coding system name koi8 to koi8-r.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
82 |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
83 (define-coding-system 'cyrillic-koi8 |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
84 "KOI8 8-bit encoding for Cyrillic (MIME: KOI8-R)." |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
85 :coding-type 'charset |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
86 ;; We used to use ?K. It is true that ?K is more strictly correct, |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
87 ;; but it is also used for Korean. So people who use koi8 for |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
88 ;; languages other than Russian will have to forgive us. |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
89 :mnemonic ?R |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
90 :charset-list '(koi8) |
88512
1e2fb9a9f29c
(cyrillic-iso-8bit, cyrillic-koi8)
Dave Love <fx@gnu.org>
parents:
88414
diff
changeset
|
91 :mime-charset 'koi8-r) |
17085
4dafa5431293
Change coding system name koi8 to koi8-r.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
92 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18454
diff
changeset
|
93 (define-coding-system-alias 'koi8-r 'cyrillic-koi8) |
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18454
diff
changeset
|
94 (define-coding-system-alias 'koi8 'cyrillic-koi8) |
46500 | 95 (define-coding-system-alias 'cp878 'cyrillic-koi8) |
17085
4dafa5431293
Change coding system name koi8 to koi8-r.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
96 |
19451
933bea774c3c
Make describe-cyrillic-environment-map and
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
97 (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:
42152
diff
changeset
|
98 "Cyrillic-KOI8" `((charset koi8) |
20745 | 99 (coding-system cyrillic-koi8) |
46500 | 100 (coding-priority cyrillic-koi8 cyrillic-iso-8bit) |
56710
e6d92cac8e9b
("Cyrillic-KOI8"): Fix typo.
Kenichi Handa <handa@m17n.org>
parents:
56709
diff
changeset
|
101 (ctext-non-standard-encodings "koi8-r") |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
102 (nonascii-translation . koi8) |
49795
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
103 (input-method . "russian-typewriter") |
22983
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
22881
diff
changeset
|
104 (features cyril-util) |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
22881
diff
changeset
|
105 (unibyte-display . cyrillic-koi8) |
19451
933bea774c3c
Make describe-cyrillic-environment-map and
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
106 (sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!") |
22881
e0e17bbd8e6c
(cyrillic-koi8-r-decode-table): New
Kenichi Handa <handa@m17n.org>
parents:
21663
diff
changeset
|
107 (documentation . "Support for Cyrillic KOI8-R.")) |
20745 | 108 '("Cyrillic")) |
19451
933bea774c3c
Make describe-cyrillic-environment-map and
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
109 |
49795
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
110 (set-language-info-alist |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
111 "Russian" `((charset cyrillic-iso8859-5) |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
112 (nonascii-translation |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
113 . ,(get 'cyrillic-koi8-r-nonascii-translation-table |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
114 'translation-table)) |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
115 (coding-system cyrillic-koi8) |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
116 (coding-priority cyrillic-koi8 cyrillic-iso-8bit) |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
117 (input-method . "russian-computer") |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
118 (features cyril-util) |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
119 (unibyte-display . cyrillic-koi8) |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
120 (sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!") |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
121 (documentation . "\ |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
122 Support for Russian using koi8-r and the russian-computer input method.") |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
123 (tutorial . "TUTORIAL.ru")) |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
124 '("Cyrillic")) |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
125 |
89909 | 126 (define-coding-system 'koi8-u |
127 "KOI8-U 8-bit encoding for Cyrillic (MIME: KOI8-U)" | |
128 :coding-type 'charset | |
129 :mnemonic ?U | |
130 :charset-list '(koi8-u) | |
131 :mime-charset 'koi8-u) | |
46500 | 132 |
133 (set-language-info-alist | |
89909 | 134 "Ukrainian" `((charset koi8-u) |
135 (coding-system koi8-u) | |
47702
e0786a68f34e
(ccl-decode-koi8): Refer to
Kenichi Handa <handa@m17n.org>
parents:
47416
diff
changeset
|
136 (coding-priority koi8-u) |
89909 | 137 (nonascii-translation . koi8-u) |
46500 | 138 (input-method . "ukrainian-computer") |
47702
e0786a68f34e
(ccl-decode-koi8): Refer to
Kenichi Handa <handa@m17n.org>
parents:
47416
diff
changeset
|
139 (documentation |
e0786a68f34e
(ccl-decode-koi8): Refer to
Kenichi Handa <handa@m17n.org>
parents:
47416
diff
changeset
|
140 . "Support for Ukrainian with KOI8-U character set.")) |
46500 | 141 '("Cyrillic")) |
142 | |
143 ;;; ALTERNATIVNYJ stuff | |
17085
4dafa5431293
Change coding system name koi8 to koi8-r.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
144 |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
145 (define-coding-system 'cyrillic-alternativnyj |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
146 "ALTERNATIVNYJ 8-bit encoding for Cyrillic." |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
147 :coding-type 'charset |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
148 :mnemonic ?A |
89204 | 149 :charset-list '(alternativnyj)) |
17085
4dafa5431293
Change coding system name koi8 to koi8-r.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
150 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18454
diff
changeset
|
151 (define-coding-system-alias 'alternativnyj 'cyrillic-alternativnyj) |
18308 | 152 |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
153 (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:
42152
diff
changeset
|
154 "Cyrillic-ALT" `((charset alternativnyj) |
20745 | 155 (coding-system cyrillic-alternativnyj) |
156 (coding-priority cyrillic-alternativnyj) | |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
157 (nonascii-translation . alternativnyj) |
46500 | 158 (input-method . "russian-typewriter") |
22983
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
22881
diff
changeset
|
159 (features cyril-util) |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
22881
diff
changeset
|
160 (unibyte-display . cyrillic-alternativnyj) |
19451
933bea774c3c
Make describe-cyrillic-environment-map and
Kenichi Handa <handa@m17n.org>
parents:
18520
diff
changeset
|
161 (sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!") |
20745 | 162 (documentation . "Support for Cyrillic ALTERNATIVNYJ.")) |
163 '("Cyrillic")) | |
17052 | 164 |
89204 | 165 (define-coding-system 'cp866 |
166 "CP866 encoding for Cyrillic." | |
167 :coding-type 'charset | |
168 :mnemonic ?* | |
169 :charset-list '(ibm866) | |
170 :mime-charset 'cp866) | |
171 | |
88531
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
172 (define-coding-system 'koi8-u |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
173 "KOI8-U 8-bit encoding for Cyrillic (MIME: KOI8-U)" |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
174 :coding-type 'charset |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
175 :mnemonic ?U |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
176 :charset-list '(koi8-u) |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
177 :mime-charset 'koi8-u) |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
178 |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
179 (define-coding-system 'koi8-t |
88766 | 180 "KOI8-T 8-bit encoding for Cyrillic" |
88531
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
181 :coding-type 'charset |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
182 :mnemonic ?* |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
183 :charset-list '(koi8-t) |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
184 :mime-charset 'koi8-t) |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
185 |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
186 (define-coding-system 'windows-1251 |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
187 "windows-1251 8-bit encoding for Cyrillic (MIME: WINDOWS-1251)" |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
188 :coding-type 'charset |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
189 :mnemonic ?b |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
190 :charset-list '(windows-1251) |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
191 :mime-charset 'windows-1251) |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
192 (define-coding-system-alias 'cp1251 'windows-1251) |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
193 |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
194 (define-coding-system 'cp1125 |
88766 | 195 "cp1125 8-bit encoding for Cyrillic" |
88531
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
196 :coding-type 'charset |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
197 :mnemonic ?* |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
198 :charset-list '(cp1125)) |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
199 (define-coding-system-alias 'ruscii 'cp1125) |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
200 ;; Original name for cp1125, says Serhii Hlodin <hlodin@lutsk.bank.gov.ua> |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
201 (define-coding-system-alias 'cp866u 'cp1125) |
3080874809b6
(koi8-u, koi8-t, windows-1251, cp1125): New
Dave Love <fx@gnu.org>
parents:
88512
diff
changeset
|
202 |
88615
fc355fbbbbcc
(cp855, ibm855): New coding systems.
Dave Love <fx@gnu.org>
parents:
88531
diff
changeset
|
203 (define-coding-system 'cp855 |
fc355fbbbbcc
(cp855, ibm855): New coding systems.
Dave Love <fx@gnu.org>
parents:
88531
diff
changeset
|
204 "DOS codepage 855 (Russian)" |
fc355fbbbbcc
(cp855, ibm855): New coding systems.
Dave Love <fx@gnu.org>
parents:
88531
diff
changeset
|
205 :coding-type 'charset |
fc355fbbbbcc
(cp855, ibm855): New coding systems.
Dave Love <fx@gnu.org>
parents:
88531
diff
changeset
|
206 :mnemonic ?D |
fc355fbbbbcc
(cp855, ibm855): New coding systems.
Dave Love <fx@gnu.org>
parents:
88531
diff
changeset
|
207 :charset-list '(cp855) |
fc355fbbbbcc
(cp855, ibm855): New coding systems.
Dave Love <fx@gnu.org>
parents:
88531
diff
changeset
|
208 :mime-charset 'cp855) |
fc355fbbbbcc
(cp855, ibm855): New coding systems.
Dave Love <fx@gnu.org>
parents:
88531
diff
changeset
|
209 (define-coding-system-alias 'ibm855 'cp855) |
fc355fbbbbcc
(cp855, ibm855): New coding systems.
Dave Love <fx@gnu.org>
parents:
88531
diff
changeset
|
210 |
89319 | 211 (define-coding-system 'mik |
212 "Bulgarian DOS codepage" | |
213 :coding-type 'charset | |
214 :mnemonic ?D | |
215 :charset-list '(mik)) | |
216 | |
217 (define-coding-system 'pt154 | |
218 "Parattype Asian Cyrillic codepage" | |
219 :coding-type 'charset | |
220 :mnemonic ?D | |
221 :charset-list '(pt154)) | |
222 | |
88733
bd5a6493c5fc
("Tajik", "Bulgarian", "Belarusian"): New
Dave Love <fx@gnu.org>
parents:
88615
diff
changeset
|
223 ;; (set-language-info-alist |
bd5a6493c5fc
("Tajik", "Bulgarian", "Belarusian"): New
Dave Love <fx@gnu.org>
parents:
88615
diff
changeset
|
224 ;; "Windows-1251" `((coding-system windows-1251) |
bd5a6493c5fc
("Tajik", "Bulgarian", "Belarusian"): New
Dave Love <fx@gnu.org>
parents:
88615
diff
changeset
|
225 ;; (coding-priority windows-1251) |
bd5a6493c5fc
("Tajik", "Bulgarian", "Belarusian"): New
Dave Love <fx@gnu.org>
parents:
88615
diff
changeset
|
226 ;; (input-method . "russian-typewriter") ; fixme? |
bd5a6493c5fc
("Tajik", "Bulgarian", "Belarusian"): New
Dave Love <fx@gnu.org>
parents:
88615
diff
changeset
|
227 ;; (features code-pages) |
bd5a6493c5fc
("Tajik", "Bulgarian", "Belarusian"): New
Dave Love <fx@gnu.org>
parents:
88615
diff
changeset
|
228 ;; (documentation . "Support for windows-1251 character set.")) |
bd5a6493c5fc
("Tajik", "Bulgarian", "Belarusian"): New
Dave Love <fx@gnu.org>
parents:
88615
diff
changeset
|
229 ;; '("Cyrillic")) |
bd5a6493c5fc
("Tajik", "Bulgarian", "Belarusian"): New
Dave Love <fx@gnu.org>
parents:
88615
diff
changeset
|
230 |
46500 | 231 (set-language-info-alist |
88991
8f20edeaf2e8
("Tajik", "Bulgarian", "Belarusian"): Add
Dave Love <fx@gnu.org>
parents:
88766
diff
changeset
|
232 "Tajik" `((coding-system koi8-t) |
8f20edeaf2e8
("Tajik", "Bulgarian", "Belarusian"): Add
Dave Love <fx@gnu.org>
parents:
88766
diff
changeset
|
233 (coding-priority koi8-t) |
88733
bd5a6493c5fc
("Tajik", "Bulgarian", "Belarusian"): New
Dave Love <fx@gnu.org>
parents:
88615
diff
changeset
|
234 (nonascii-translation . cyrillic-koi8-t) |
89186
af4d3d2b9101
("Bulgarian"): Fix input method and
Dave Love <fx@gnu.org>
parents:
88991
diff
changeset
|
235 (charset koi8-t) |
49795
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
236 (input-method . "russian-typewriter") ; fixme? |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
237 (features code-pages) |
0f184780c237
("Cyrillic-KOI8"): Fix input-method.
Dave Love <fx@gnu.org>
parents:
48832
diff
changeset
|
238 (documentation . "Support for Tajik using KOI8-T.")) |
46500 | 239 '("Cyrillic")) |
240 | |
53242
e8f42b49f71f
Register "microsoft-cp1251" in ctext-non-standard-encodings-alist.
Kenichi Handa <handa@m17n.org>
parents:
52720
diff
changeset
|
241 (let ((elt `("microsoft-cp1251" windows-1251 1 |
e8f42b49f71f
Register "microsoft-cp1251" in ctext-non-standard-encodings-alist.
Kenichi Handa <handa@m17n.org>
parents:
52720
diff
changeset
|
242 ,(get 'encode-windows-1251 'translation-table))) |
e8f42b49f71f
Register "microsoft-cp1251" in ctext-non-standard-encodings-alist.
Kenichi Handa <handa@m17n.org>
parents:
52720
diff
changeset
|
243 (slot (assoc "microsoft-cp1251" ctext-non-standard-encodings-alist))) |
e8f42b49f71f
Register "microsoft-cp1251" in ctext-non-standard-encodings-alist.
Kenichi Handa <handa@m17n.org>
parents:
52720
diff
changeset
|
244 (if slot |
e8f42b49f71f
Register "microsoft-cp1251" in ctext-non-standard-encodings-alist.
Kenichi Handa <handa@m17n.org>
parents:
52720
diff
changeset
|
245 (setcdr slot (cdr elt)) |
e8f42b49f71f
Register "microsoft-cp1251" in ctext-non-standard-encodings-alist.
Kenichi Handa <handa@m17n.org>
parents:
52720
diff
changeset
|
246 (push elt ctext-non-standard-encodings-alist))) |
e8f42b49f71f
Register "microsoft-cp1251" in ctext-non-standard-encodings-alist.
Kenichi Handa <handa@m17n.org>
parents:
52720
diff
changeset
|
247 |
46500 | 248 (set-language-info-alist |
249 "Bulgarian" `((coding-system windows-1251) | |
53242
e8f42b49f71f
Register "microsoft-cp1251" in ctext-non-standard-encodings-alist.
Kenichi Handa <handa@m17n.org>
parents:
52720
diff
changeset
|
250 (coding-priority windows-1251) |
88733
bd5a6493c5fc
("Tajik", "Bulgarian", "Belarusian"): New
Dave Love <fx@gnu.org>
parents:
88615
diff
changeset
|
251 (nonascii-translation . windows-1251) |
89186
af4d3d2b9101
("Bulgarian"): Fix input method and
Dave Love <fx@gnu.org>
parents:
88991
diff
changeset
|
252 (charset windows-1251) |
53242
e8f42b49f71f
Register "microsoft-cp1251" in ctext-non-standard-encodings-alist.
Kenichi Handa <handa@m17n.org>
parents:
52720
diff
changeset
|
253 (ctext-non-standard-encodings "microsoft-cp1251") |
47906
470049d232d2
(cyrillic-alternativnyj-decode-table): Fix
Kenichi Handa <handa@m17n.org>
parents:
47702
diff
changeset
|
254 (input-method . "bulgarian-bds") |
46500 | 255 (documentation |
88733
bd5a6493c5fc
("Tajik", "Bulgarian", "Belarusian"): New
Dave Love <fx@gnu.org>
parents:
88615
diff
changeset
|
256 . "Support for Bulgrian with windows-1251 character set.")) |
46500 | 257 '("Cyrillic")) |
258 | |
259 (set-language-info-alist | |
260 "Belarusian" `((coding-system windows-1251) | |
261 (coding-priority windows-1251) | |
88733
bd5a6493c5fc
("Tajik", "Bulgarian", "Belarusian"): New
Dave Love <fx@gnu.org>
parents:
88615
diff
changeset
|
262 (nonascii-translation . windows-1251) |
89186
af4d3d2b9101
("Bulgarian"): Fix input method and
Dave Love <fx@gnu.org>
parents:
88991
diff
changeset
|
263 (charset windows-1251) |
53242
e8f42b49f71f
Register "microsoft-cp1251" in ctext-non-standard-encodings-alist.
Kenichi Handa <handa@m17n.org>
parents:
52720
diff
changeset
|
264 (ctext-non-standard-encodings "microsoft-cp1251") |
46500 | 265 (input-method . "belarusian") |
266 (documentation | |
267 . "Support for Belarusian with windows-1251 character set. | |
268 \(The name Belarusian replaced Byelorussian in the early 1990s.)")) | |
269 '("Cyrillic")) | |
270 | |
88991
8f20edeaf2e8
("Tajik", "Bulgarian", "Belarusian"): Add
Dave Love <fx@gnu.org>
parents:
88766
diff
changeset
|
271 (set-language-info-alist |
8f20edeaf2e8
("Tajik", "Bulgarian", "Belarusian"): Add
Dave Love <fx@gnu.org>
parents:
88766
diff
changeset
|
272 "Ukrainian" `((coding-system koi8-u) |
8f20edeaf2e8
("Tajik", "Bulgarian", "Belarusian"): Add
Dave Love <fx@gnu.org>
parents:
88766
diff
changeset
|
273 (coding-priority koi8-u) |
8f20edeaf2e8
("Tajik", "Bulgarian", "Belarusian"): Add
Dave Love <fx@gnu.org>
parents:
88766
diff
changeset
|
274 (input-method . "ukrainian-computer") |
8f20edeaf2e8
("Tajik", "Bulgarian", "Belarusian"): Add
Dave Love <fx@gnu.org>
parents:
88766
diff
changeset
|
275 (documentation |
8f20edeaf2e8
("Tajik", "Bulgarian", "Belarusian"): Add
Dave Love <fx@gnu.org>
parents:
88766
diff
changeset
|
276 . "Support for Ukrainian with koi8-u character set.")) |
8f20edeaf2e8
("Tajik", "Bulgarian", "Belarusian"): Add
Dave Love <fx@gnu.org>
parents:
88766
diff
changeset
|
277 '("Cyrillic")) |
8f20edeaf2e8
("Tajik", "Bulgarian", "Belarusian"): Add
Dave Love <fx@gnu.org>
parents:
88766
diff
changeset
|
278 |
33778 | 279 (provide 'cyrillic) |
280 | |
52401 | 281 ;;; arch-tag: bda71ae0-ba41-4cb6-a6e0-1dff542313d3 |
17052 | 282 ;;; cyrillic.el ends here |