Mercurial > hg > xemacs-beta
comparison lisp/mule/mule-msw-init.el @ 771:943eaba38521
[xemacs-hg @ 2002-03-13 08:51:24 by ben]
The big ben-mule-21-5 check-in!
Various files were added and deleted. See CHANGES-ben-mule.
There are still some test suite failures. No crashes, though.
Many of the failures have to do with problems in the test suite itself
rather than in the actual code. I'll be addressing these in the next
day or so -- none of the test suite failures are at all critical.
Meanwhile I'll be trying to address the biggest issues -- i.e. build
or run failures, which will almost certainly happen on various platforms.
All comments should be sent to ben@xemacs.org -- use a Cc: if necessary
when sending to mailing lists. There will be pre- and post- tags,
something like
pre-ben-mule-21-5-merge-in, and
post-ben-mule-21-5-merge-in.
author | ben |
---|---|
date | Wed, 13 Mar 2002 08:54:06 +0000 |
parents | |
children | 2923009caf47 |
comparison
equal
deleted
inserted
replaced
770:336a418893b5 | 771:943eaba38521 |
---|---|
1 ;;; mule-msw-init.el --- initialization code for MS Windows under MULE | |
2 ;;; Copyright (C) 2001, 2002 Ben Wing. | |
3 | |
4 ;; This file is part of XEmacs. | |
5 | |
6 ;; XEmacs is free software; you can redistribute it and/or modify it | |
7 ;; under the terms of the GNU General Public License as published by | |
8 ;; the Free Software Foundation; either version 2, or (at your option) | |
9 ;; any later version. | |
10 | |
11 ;; XEmacs is distributed in the hope that it will be useful, but | |
12 ;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 ;; General Public License for more details. | |
15 | |
16 ;; You should have received a copy of the GNU General Public License | |
17 ;; along with XEmacs; see the file COPYING. If not, write to the | |
18 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
19 ;; Boston, MA 02111-1307, USA. | |
20 | |
21 ;; mapping between XEmacs charsets and code pages. something like | |
22 ;; this will remain around even after Unicode conversion, so we know | |
23 ;; how to choose the right font. (perhaps "code pages" will become | |
24 ;; "Unicode subranges"; they're more or less equivalent under Windows | |
25 ;; from a font perspective.) | |
26 (let ((l '((ascii . 1252) | |
27 (latin-iso8859-2 . 1250) | |
28 (cyrillic-iso8859-5 . 1251) | |
29 (latin-iso8859-1 . 1252) | |
30 (greek-iso8859-7 . 1253) | |
31 (latin-iso8859-9 . 1254) | |
32 (hebrew-iso8859-8 . 1255) | |
33 ;; (arabic-iso8859-6 . 1256) | |
34 (latin-iso8859-4 . 1257) | |
35 ;; (vietnamese-viscii-lower . 1258) | |
36 ;; (vietnamese-viscii-upper . 1258) | |
37 ;; (thai-tis620 . 874) | |
38 (latin-jisx0201 . 932) | |
39 (katakana-jisx0201 . 932) | |
40 (japanese-jisx0208-1978 . 932) | |
41 (japanese-jisx0208 . 932) | |
42 ;; (japanese-jisx0212 . 932) | |
43 (chinese-gb2312 . 936) | |
44 (korean-ksc5601 . 949) | |
45 (chinese-big5-1 . 950) | |
46 (chinese-big5-2 . 950)))) | |
47 (while l | |
48 (let ((charset (car (car l))) | |
49 (code-page (cdr (car l)))) | |
50 (mswindows-set-charset-code-page charset code-page) | |
51 (setq l (cdr l))))) | |
52 | |
53 (make-coding-system | |
54 'mswindows-multibyte 'mswindows-multibyte | |
55 "MS Windows Multibyte (current code page)" | |
56 '(mnemonic "MSW-MB" | |
57 documentation | |
58 "MS Windows multibyte -- current code page. | |
59 | |
60 This implements the encoding specified by the current code page -- | |
61 i.e. the ANSI code page corresponding to the current locale, as | |
62 returned by | |
63 | |
64 (mswindows-locale-code-page (mswindows-current-locale)) | |
65 " | |
66 locale current | |
67 code-page ansi)) | |
68 | |
69 ;; we temporarily aliased this to raw-text in intl-win32.c. | |
70 (define-coding-system-alias 'mswindows-multibyte-system-default nil) | |
71 (make-coding-system | |
72 'mswindows-multibyte-system-default 'mswindows-multibyte | |
73 "MS Windows Multibyte (system default code page)" | |
74 '(mnemonic "MSW-MB-SysDef" | |
75 documentation | |
76 "MS Windows multibyte -- system default code page. | |
77 | |
78 This implements the encoding specified by the system default code page | |
79 -- i.e. the ANSI code page corresponding to the system default locale, | |
80 as returned by | |
81 | |
82 (mswindows-locale-code-page (mswindows-system-default-locale)) | |
83 " | |
84 locale system-default | |
85 code-page ansi)) | |
86 | |
87 (make-coding-system | |
88 'mswindows-multibyte-user-default 'mswindows-multibyte | |
89 "MS Windows Multibyte (user default code page)" | |
90 '(mnemonic "MSW-MB-UserDef" | |
91 documentation | |
92 "MS Windows multibyte -- user default code page. | |
93 | |
94 This implements the encoding specified by the user default code page | |
95 -- i.e. the ANSI code page corresponding to the user default locale, | |
96 as returned by | |
97 | |
98 (mswindows-locale-code-page (mswindows-user-default-locale)) | |
99 " | |
100 locale user-default | |
101 code-page ansi)) | |
102 | |
103 (make-coding-system | |
104 'mswindows-multibyte-oem 'mswindows-multibyte | |
105 "MS Windows Multibyte (current OEM code page)" | |
106 '(mnemonic "MSW-MB-OEM" | |
107 documentation | |
108 "MS Windows multibyte -- current OEM code page. | |
109 | |
110 This implements the encoding specified by the current OEM code page | |
111 -- i.e. the OEM code page corresponding to the current locale, | |
112 as returned by | |
113 | |
114 (mswindows-locale-oem-code-page (mswindows-current-locale)) | |
115 " | |
116 locale current | |
117 code-page oem)) | |
118 | |
119 (make-coding-system | |
120 'mswindows-multibyte-oem-system-default 'mswindows-multibyte | |
121 "MS Windows Multibyte (system default OEM code page)" | |
122 '(mnemonic "MSW-MB-OEM-SysDef" | |
123 documentation | |
124 "MS Windows multibyte -- system default OEM code page. | |
125 | |
126 This implements the encoding specified by the system default OEM code page | |
127 -- i.e. the OEM code page corresponding to the system default locale, | |
128 as returned by | |
129 | |
130 (mswindows-locale-oem-code-page (mswindows-system-default-locale)) | |
131 " | |
132 locale system-default | |
133 code-page oem)) | |
134 | |
135 (make-coding-system | |
136 'mswindows-multibyte-oem-user-default 'mswindows-multibyte | |
137 "MS Windows Multibyte (user default OEM code page)" | |
138 '(mnemonic "MSW-MB-OEM-UserDef" | |
139 documentation | |
140 "MS Windows multibyte -- user default OEM code page. | |
141 | |
142 This implements the encoding specified by the user default OEM code page | |
143 -- i.e. the OEM code page corresponding to the user default locale, | |
144 as returned by | |
145 | |
146 (mswindows-locale-oem-code-page (mswindows-user-default-locale)) | |
147 " | |
148 locale user-default | |
149 code-page oem)) | |
150 | |
151 (let ((cplist | |
152 '(("EBCDIC" 037 "EBCDIC") | |
153 ("OEM" 437 "MS-DOS United States") | |
154 ("EBCDIC" 500 "EBCDIC \"500V1\"") | |
155 ("OEM" 708 "Arabic (ASMO 708)") | |
156 ("OEM" 709 "Arabic (ASMO 449+, BCON V4)") | |
157 ("OEM" 710 "Arabic (Transparent Arabic)") | |
158 ("OEM" 720 "Arabic (Transparent ASMO)") | |
159 ("OEM" 737 "Greek (formerly 437G)") | |
160 ("OEM" 775 "Baltic") | |
161 ("OEM" 850 "MS-DOS Multilingual (Latin I)") | |
162 ("OEM" 852 "MS-DOS Slavic (Latin II)") | |
163 ("OEM" 855 "IBM Cyrillic (primarily Russian)") | |
164 ("OEM" 857 "IBM Turkish") | |
165 ("OEM" 860 "MS-DOS Portuguese") | |
166 ("OEM" 861 "MS-DOS Icelandic") | |
167 ("OEM" 862 "Hebrew") | |
168 ("OEM" 863 "MS-DOS Canadian-French") | |
169 ("OEM" 864 "Arabic") | |
170 ("OEM" 865 "MS-DOS Nordic") | |
171 ("OEM" 866 "MS-DOS Russian") | |
172 ("OEM" 869 "IBM Modern Greek") | |
173 ("Ansi/OEM" 874 "Thai") | |
174 ("EBCDIC" 875 "EBCDIC") | |
175 ("Ansi/OEM" 932 "Japanese") | |
176 ("Ansi/OEM" 936 "Chinese (PRC, Singapore)") | |
177 ("Ansi/OEM" 949 "Korean") | |
178 ("Ansi/OEM" 950 "Chinese (Taiwan; Hong Kong SAR, PRC)") | |
179 ("EBCDIC" 1026 "EBCDIC") | |
180 ("ANSI" 1200 "Unicode (BMP of ISO 10646)") | |
181 ("ANSI" 1250 "Windows 3.1 Eastern European") | |
182 ("ANSI" 1251 "Windows 3.1 Cyrillic") | |
183 ("ANSI" 1252 "Windows 3.1 US (ANSI)") | |
184 ("ANSI" 1253 "Windows 3.1 Greek") | |
185 ("ANSI" 1254 "Windows 3.1 Turkish") | |
186 ("ANSI" 1255 "Hebrew") | |
187 ("ANSI" 1256 "Arabic") | |
188 ("ANSI" 1257 "Baltic") | |
189 ("ANSI" 1258 "VietNam") | |
190 ("Ansi/OEM" 1361 "Korean (Johab)") | |
191 ("Mac" 10000 "Macintosh Roman") | |
192 ("Mac" 10001 "Macintosh Japanese") | |
193 ("Mac" 10006 "Macintosh Greek I") | |
194 ("Mac" 10007 "Macintosh Cyrillic") | |
195 ("Mac" 10029 "Macintosh Latin 2") | |
196 ("Mac" 10079 "Macintosh Icelandic") | |
197 ("Mac" 10081 "Macintosh Turkish")))) | |
198 (dolist (cpprops cplist) | |
199 (let ((ansioem (first cpprops)) | |
200 (cp (second cpprops)) | |
201 (name (third cpprops))) | |
202 (make-coding-system | |
203 (intern (format "windows-%s" cp)) | |
204 'mswindows-multibyte | |
205 (format "MS Windows code page %s (%s, %s)" cp ansioem name) | |
206 `(mnemonic | |
207 ,(format "MSW-%s" cp) | |
208 code-page ,cp | |
209 documentation | |
210 ,(format | |
211 "MS Windows Multibyte -- code page %s (%s, %s). | |
212 | |
213 This implements the encoding specified by code page %s. | |
214 For more information on code pages, see `mswindows-charset-code-page'." | |
215 cp ansioem name cp)))))) |