428
|
1 ;;; japanese.el --- Japanese support -*- coding: iso-2022-7bit; -*-
|
|
2
|
|
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
|
|
4 ;; Licensed to the Free Software Foundation.
|
|
5 ;; Copyright (C) 1997 MORIOKA Tomohiko
|
771
|
6 ;; Copyright (C) 2000, 2002 Ben Wing.
|
428
|
7
|
|
8 ;; Keywords: multilingual, Japanese
|
|
9
|
|
10 ;; This file is part of XEmacs.
|
|
11
|
|
12 ;; XEmacs is free software; you can redistribute it and/or modify it
|
|
13 ;; under the terms of the GNU General Public License as published by
|
|
14 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
15 ;; any later version.
|
|
16
|
|
17 ;; XEmacs is distributed in the hope that it will be useful, but
|
|
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
20 ;; General Public License for more details.
|
|
21
|
|
22 ;; You should have received a copy of the GNU General Public License
|
|
23 ;; along with XEmacs; see the file COPYING. If not, write to the Free
|
|
24 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
25 ;; 02111-1307, USA.
|
|
26
|
771
|
27 ;;; Synched up with: Emacs 20.6 (international/japanese.el).
|
|
28
|
428
|
29 ;;; Commentary:
|
|
30
|
|
31 ;; For Japanese, character sets JISX0201, JISX0208, JISX0212 are
|
|
32 ;; supported.
|
|
33
|
|
34 ;;; Code:
|
|
35
|
|
36 ;;; Syntax of Japanese characters.
|
|
37 (modify-syntax-entry 'katakana-jisx0201 "w")
|
|
38 (modify-syntax-entry 'japanese-jisx0212 "w")
|
|
39
|
|
40 (modify-syntax-entry 'japanese-jisx0208 "w")
|
|
41 (loop for row in '(33 34 40)
|
|
42 do (modify-syntax-entry `[japanese-jisx0208 ,row] "_"))
|
|
43 (loop for char in '(?$B!<(B ?$B!+(B ?$B!,(B ?$B!3(B ?$B!4(B ?$B!5(B ?$B!6(B ?$B!7(B ?$B!8(B ?$B!9(B ?$B!:(B ?$B!;(B)
|
|
44 do (modify-syntax-entry char "w"))
|
|
45 (modify-syntax-entry ?\$B!J(B "($B!K(B")
|
|
46 (modify-syntax-entry ?\$B!N(B "($B!O(B")
|
|
47 (modify-syntax-entry ?\$B!P(B "($B!Q(B")
|
|
48 (modify-syntax-entry ?\$B!V(B "($B!W(B")
|
|
49 (modify-syntax-entry ?\$B!X(B "($B!Y(B")
|
|
50 (modify-syntax-entry ?\$B!K(B ")$B!J(B")
|
|
51 (modify-syntax-entry ?\$B!O(B ")$B!N(B")
|
|
52 (modify-syntax-entry ?\$B!Q(B ")$B!P(B")
|
|
53 (modify-syntax-entry ?\$B!W(B ")$B!V(B")
|
|
54 (modify-syntax-entry ?\$B!Y(B ")$B!X(B")
|
|
55
|
|
56 ;;; Character categories S, A, H, K, G, Y, and C
|
|
57 (define-category ?S "Japanese 2-byte symbol character.")
|
|
58 (modify-category-entry [japanese-jisx0208 33] ?S)
|
|
59 (modify-category-entry [japanese-jisx0208 34] ?S)
|
|
60 (modify-category-entry [japanese-jisx0208 40] ?S)
|
|
61 (define-category ?A "Japanese 2-byte Alphanumeric character.")
|
|
62 (modify-category-entry [japanese-jisx0208 35] ?A)
|
|
63 (define-category ?H "Japanese 2-byte Hiragana character.")
|
|
64 (modify-category-entry [japanese-jisx0208 36] ?H)
|
|
65 (define-category ?K "Japanese 2-byte Katakana character.")
|
|
66 (modify-category-entry [japanese-jisx0208 37] ?K)
|
|
67 (define-category ?G "Japanese 2-byte Greek character.")
|
|
68 (modify-category-entry [japanese-jisx0208 38] ?G)
|
|
69 (define-category ?Y "Japanese 2-byte Cyrillic character.")
|
|
70 (modify-category-entry [japanese-jisx0208 39] ?Y)
|
|
71 (define-category ?C "Japanese 2-byte Kanji characters.")
|
|
72 (loop for row from 48 to 126
|
|
73 do (modify-category-entry `[japanese-jisx0208 ,row] ?C))
|
|
74 (loop for char in '(?$B!<(B ?$B!+(B ?$B!,(B)
|
|
75 do (modify-category-entry char ?K)
|
|
76 (modify-category-entry char ?H))
|
|
77 (loop for char in '(?$B!3(B ?$B!4(B ?$B!5(B ?$B!6(B ?$B!7(B ?$B!8(B ?$B!9(B ?$B!:(B ?$B!;(B)
|
|
78 do (modify-category-entry char ?C))
|
|
79 (modify-category-entry 'japanese-jisx0212 ?C)
|
|
80
|
|
81 (defvar japanese-word-regexp
|
|
82 "\\cA+\\cH*\\|\\cK+\\cH*\\|\\cC+\\cH*\\|\\cH+\\|\\ck+\\|\\sw+"
|
|
83 "Regular expression used to match a Japanese word.")
|
|
84
|
|
85 (set-word-regexp japanese-word-regexp)
|
|
86 (setq forward-word-regexp "\\w\\>")
|
|
87 (setq backward-word-regexp "\\<\\w")
|
|
88
|
|
89 ;;; Paragraph setting
|
|
90 (setq sentence-end
|
|
91 (concat
|
|
92 "\\("
|
|
93 "\\("
|
|
94 "[.?!][]\"')}]*"
|
|
95 "\\|"
|
|
96 "[$B!%!)!*(B][$B!O!I!G!K!Q!M!S!U!W!Y(B]*"
|
|
97 "\\)"
|
|
98 "\\($\\|\t\\| \\)"
|
|
99 "\\|"
|
|
100 "$B!#(B"
|
|
101 "\\)"
|
|
102 "[ \t\n]*"))
|
|
103 (setq paragraph-start "^[ $B!!(B\t\n\f]")
|
|
104 (setq paragraph-separate "^[ $B!!(B\t\f]*$")
|
|
105
|
|
106 ;; EGG specific setup
|
|
107 (define-egg-environment 'japanese
|
|
108 "Japanese settings for egg."
|
|
109 (lambda ()
|
771
|
110 (with-boundp '(its:*standard-modes* its:*current-map* wnn-server-type)
|
|
111 (with-fboundp 'its:get-mode-map
|
|
112 (when (not (featurep 'egg-jpn))
|
|
113 (load "its-hira")
|
|
114 (load "its-kata")
|
|
115 (load "its-hankaku")
|
|
116 (load "its-zenkaku")
|
|
117 (setq its:*standard-modes*
|
|
118 (append
|
|
119 (list (its:get-mode-map "roma-kana")
|
|
120 (its:get-mode-map "roma-kata")
|
|
121 (its:get-mode-map "downcase")
|
|
122 (its:get-mode-map "upcase")
|
|
123 (its:get-mode-map "zenkaku-downcase")
|
|
124 (its:get-mode-map "zenkaku-upcase"))
|
|
125 its:*standard-modes*))
|
|
126 (provide 'egg-jpn))
|
|
127 (setq wnn-server-type 'jserver)
|
|
128 ;; Can't do this here any more. Must do it when selecting egg-wnn
|
|
129 ;; or egg-sj3
|
|
130 ;; (setq egg-default-startup-file "eggrc-wnn")
|
|
131 (setq-default its:*current-map* (its:get-mode-map "roma-kana"))))))
|
428
|
132
|
450
|
133 ;; stuff for providing grammatic processing of Japanese text
|
428
|
134 ;; something like this should probably be created for all environments...
|
450
|
135 ;; #### Arrgh. This stuff should defvar'd in either fill.el or kinsoku.el.
|
|
136 ;; Then the language environment should set these things, probably buffer-
|
|
137 ;; locally.
|
428
|
138
|
771
|
139 ;; #### will be moved to fill.el
|
|
140 (defvar space-insertable
|
|
141 (let* ((aletter (concat "\\(" ascii-char "\\|" kanji-char "\\)"))
|
|
142 (kanji-space-insertable
|
|
143 (concat
|
428
|
144 "$B!"(B" aletter "\\|"
|
|
145 "$B!#(B" aletter "\\|"
|
|
146 aletter "$B!J(B" "\\|"
|
|
147 "$B!K(B" aletter "\\|"
|
|
148 ascii-alphanumeric kanji-kanji-char "\\|"
|
771
|
149 kanji-kanji-char ascii-alphanumeric)))
|
|
150 (concat " " aletter "\\|" kanji-space-insertable))
|
|
151 "Regexp for finding points that can have spaces inserted into them for justification")
|
428
|
152
|
771
|
153 ;; Beginning of FSF synching with international/japanese.el.
|
|
154
|
428
|
155 ;; (make-coding-system
|
|
156 ;; 'iso-2022-jp 2 ?J
|
|
157 ;; "ISO 2022 based 7bit encoding for Japanese (MIME:ISO-2022-JP)"
|
|
158 ;; '((ascii japanese-jisx0208-1978 japanese-jisx0208
|
|
159 ;; latin-jisx0201 japanese-jisx0212 katakana-jisx0201) nil nil nil
|
|
160 ;; short ascii-eol ascii-cntl seven)
|
|
161 ;; '((safe-charsets ascii japanese-jisx0208-1978 japanese-jisx0208
|
|
162 ;; latin-jisx0201 japanese-jisx0212 katakana-jisx0201)
|
|
163 ;; (mime-charset . iso-2022-jp)))
|
|
164
|
|
165 (make-coding-system
|
|
166 'iso-2022-jp 'iso2022
|
771
|
167 "ISO-2022-JP (Japanese mail)"
|
428
|
168 '(charset-g0 ascii
|
|
169 short t
|
|
170 seven t
|
|
171 input-charset-conversion ((latin-jisx0201 ascii)
|
|
172 (japanese-jisx0208-1978 japanese-jisx0208))
|
|
173 mnemonic "MULE/7bit"
|
771
|
174 documentation
|
|
175 "Coding system used for communication with mail and news in Japan."
|
|
176 ))
|
|
177
|
|
178 (make-coding-system
|
|
179 'jis7 'iso2022
|
|
180 "JIS7 (old Japanese 7-bit encoding)"
|
|
181 '(charset-g0 ascii
|
|
182 charset-g1 katakana-jisx0201
|
|
183 short t
|
|
184 seven t
|
|
185 lock-shift t
|
|
186 input-charset-conversion ((latin-jisx0201 ascii)
|
|
187 (japanese-jisx0208-1978 japanese-jisx0208))
|
|
188 mnemonic "JIS7"
|
|
189 documentation
|
|
190 "Old JIS 7-bit encoding; mostly superseded by ISO-2022-JP.
|
|
191 Uses locking-shift (SI/SO) to select half-width katakana."
|
|
192 ))
|
|
193
|
|
194 (make-coding-system
|
|
195 'jis8 'iso2022
|
|
196 "JIS8 (old Japanese 8-bit encoding)"
|
|
197 '(charset-g0 ascii
|
|
198 charset-g1 katakana-jisx0201
|
|
199 short t
|
|
200 input-charset-conversion ((latin-jisx0201 ascii)
|
|
201 (japanese-jisx0208-1978 japanese-jisx0208))
|
|
202 mnemonic "JIS8"
|
|
203 documentation
|
|
204 "Old JIS 8-bit encoding; mostly superseded by ISO-2022-JP.
|
|
205 Uses high bytes for half-width katakana."
|
428
|
206 ))
|
|
207
|
|
208 (define-coding-system-alias 'junet 'iso-2022-jp)
|
|
209
|
|
210 ;; (make-coding-system
|
|
211 ;; 'iso-2022-jp-2 2 ?J
|
|
212 ;; "ISO 2022 based 7bit encoding for CJK, Latin-1, and Greek (MIME:ISO-2022-JP-2)"
|
|
213 ;; '((ascii japanese-jisx0208-1978 japanese-jisx0208
|
|
214 ;; latin-jisx0201 japanese-jisx0212 katakana-jisx0201
|
|
215 ;; chinese-gb2312 korean-ksc5601) nil
|
|
216 ;; (nil latin-iso8859-1 greek-iso8859-7) nil
|
|
217 ;; short ascii-eol ascii-cntl seven nil single-shift)
|
|
218 ;; '((safe-charsets ascii japanese-jisx0208-1978 japanese-jisx0208
|
|
219 ;; latin-jisx0201 japanese-jisx0212 katakana-jisx0201
|
|
220 ;; chinese-gb2312 korean-ksc5601
|
|
221 ;; latin-iso8859-1 greek-iso8859-7)
|
|
222 ;; (mime-charset . iso-2022-jp-2)))
|
|
223
|
|
224 ;; (make-coding-system
|
|
225 ;; 'japanese-shift-jis 1 ?S
|
|
226 ;; "Shift-JIS 8-bit encoding for Japanese (MIME:SHIFT_JIS)"
|
|
227 ;; nil
|
|
228 ;; '((safe-charsets ascii japanese-jisx0208 japanese-jisx0208-1978
|
|
229 ;; latin-jisx0201 katakana-jisx0201)
|
771
|
230 ;; (mime-charset . shift-jis)
|
428
|
231 ;; (charset-origin-alist (japanese-jisx0208 "SJIS" encode-sjis-char)
|
|
232 ;; (katakana-jisx0201 "SJIS" encode-sjis-char))))
|
|
233
|
|
234 (make-coding-system
|
771
|
235 'shift-jis 'shift-jis
|
|
236 "Shift-JIS"
|
|
237 '(mnemonic "Ja/SJIS"
|
|
238 documentation "The standard Japanese encoding in MS Windows."
|
|
239 ))
|
428
|
240
|
771
|
241 ;; A former name?
|
|
242 (define-coding-system-alias 'shift_jis 'shift-jis)
|
|
243
|
|
244 ;; FSF:
|
|
245 ;; (define-coding-system-alias 'shift-jis 'japanese-shift-jis)
|
428
|
246 ;; (define-coding-system-alias 'sjis 'japanese-shift-jis)
|
|
247
|
|
248 ;; (make-coding-system
|
|
249 ;; 'japanese-iso-7bit-1978-irv 2 ?j
|
|
250 ;; "ISO 2022 based 7-bit encoding for Japanese JISX0208-1978 and JISX0201-Roman"
|
|
251 ;; '((ascii japanese-jisx0208-1978 japanese-jisx0208
|
|
252 ;; latin-jisx0201 japanese-jisx0212 katakana-jisx0201 t) nil nil nil
|
|
253 ;; short ascii-eol ascii-cntl seven nil nil use-roman use-oldjis)
|
|
254 ;; '(ascii japanese-jisx0208-1978 japanese-jisx0208 latin-jisx0201))
|
|
255
|
|
256 (make-coding-system
|
|
257 'iso-2022-jp-1978-irv 'iso2022
|
771
|
258 "ISO-2022-JP-1978-IRV (Old JIS)"
|
428
|
259 '(charset-g0 ascii
|
|
260 short t
|
|
261 seven t
|
|
262 output-charset-conversion ((ascii latin-jisx0201)
|
|
263 (japanese-jisx0208 japanese-jisx0208-1978))
|
771
|
264 documentation
|
|
265 "This is a coding system used for old JIS terminals. It's an ISO
|
|
266 2022 based 7-bit encoding for Japanese JISX0208-1978 and JISX0201-Roman."
|
428
|
267 mnemonic "Ja-78/7bit"
|
|
268 ))
|
|
269
|
771
|
270 ;; FSF:
|
428
|
271 ;; (define-coding-system-alias 'iso-2022-jp-1978-irv 'japanese-iso-7bit-1978-irv)
|
|
272 ;; (define-coding-system-alias 'old-jis 'japanese-iso-7bit-1978-irv)
|
|
273
|
|
274 (define-coding-system-alias 'old-jis 'iso-2022-jp-1978-irv)
|
|
275
|
|
276 ;; (make-coding-system
|
|
277 ;; 'japanese-iso-8bit 2 ?E
|
|
278 ;; "ISO 2022 based EUC encoding for Japanese (MIME:EUC-JP)"
|
|
279 ;; '(ascii japanese-jisx0208 katakana-jisx0201 japanese-jisx0212
|
|
280 ;; short ascii-eol ascii-cntl nil nil single-shift)
|
|
281 ;; '((safe-charsets ascii latin-jisx0201 japanese-jisx0208 japanese-jisx0208-1978
|
771
|
282 ;; katakana-jisx0201 japanese-jisx0212)
|
428
|
283 ;; (mime-charset . euc-jp)))
|
771
|
284 ;;
|
428
|
285 (make-coding-system
|
|
286 'euc-jp 'iso2022
|
771
|
287 "Japanese EUC"
|
428
|
288 '(charset-g0 ascii
|
|
289 charset-g1 japanese-jisx0208
|
|
290 charset-g2 katakana-jisx0201
|
|
291 charset-g3 japanese-jisx0212
|
|
292 short t
|
|
293 mnemonic "Ja/EUC"
|
771
|
294 documentation
|
|
295 "Japanese EUC (Extended Unix Code), the standard Japanese encoding in Unix.
|
|
296 Equivalent MIME encoding: EUC-JP.
|
|
297
|
|
298 Japanese EUC was the forefather of all the different EUC's, which all follow
|
|
299 a similar structure:
|
|
300
|
|
301 1. Up to four character sets can be encoded.
|
|
302
|
|
303 2. This is a non-modal encoding, i.e. it is impossible to set a global state
|
|
304 that affects anything more than the directly following character. [Modal
|
|
305 encodings typically have escape sequences to change global settings, which
|
|
306 affect all the following characters until the setting is turned off.
|
|
307 Modal encodings are typically used when it's necessary to support text in
|
|
308 a wide variety of character sets and still keep basic ASCII compatibility,
|
|
309 or in cases (e.g. sending email) where the allowed characters that can
|
|
310 pass the gateway are small and (typically) no high-bit range is available.
|
|
311
|
|
312 3. The first character set is always ASCII or some national variant of it,
|
|
313 and encoded in the standard ASCII position. All characters in all other
|
|
314 character sets are encoded entirely using high-half bytes. Therefore,
|
|
315 it is safe to scan for ASCII characters, such as '/' to separate path
|
|
316 components, in the obvious way.
|
|
317
|
|
318 4. Each of the other three character sets can be of dimension 1, 2, or 3.
|
|
319 A dimension-1 character set contains 96 bytes; a dimension-2 character
|
|
320 set contains 96 x 96 bytes; and a dimension-3 character set contains
|
|
321 96 x 96 x 96 bytes. 94 instead of 96 as the number of characters per
|
|
322 dimension is also supported. Character sets of dimensions 1, 2, and 3
|
|
323 use 1-3 bytes, respectively, to encode a character, and each byte is
|
|
324 in the range A0-FF (or A1-FE for those with 94 bytes per dimension).
|
|
325
|
|
326 5. The four character sets encoded in EUC are called G0, G1, G2, and G3.
|
|
327 As mentioned earlier, G0 is ASCII or some variant, and encoded into
|
|
328 the ASCII positions 00 - 7F. G1 is encoded directly by laying out
|
|
329 its bytes. G2 is encoded using an 8E byte followed by the character's
|
|
330 bytes. G3 is encoded using an 8F byte followed by the character's bytes."
|
|
331
|
428
|
332 ))
|
|
333
|
771
|
334 ;; FSF:
|
428
|
335 ;; (define-coding-system-alias 'euc-japan-1990 'japanese-iso-8bit)
|
|
336 ;; (define-coding-system-alias 'euc-japan 'japanese-iso-8bit)
|
|
337 ;; (define-coding-system-alias 'euc-jp 'japanese-iso-8bit)
|
|
338
|
|
339 (define-coding-system-alias 'euc-japan 'euc-jp) ; only for w3
|
|
340 (define-coding-system-alias 'japanese-euc 'euc-jp)
|
|
341
|
|
342 (set-language-info-alist
|
|
343 "Japanese" '((setup-function . setup-japanese-environment-internal)
|
|
344 (exit-function . exit-japanese-environment)
|
|
345 (tutorial . "TUTORIAL.ja")
|
|
346 (charset japanese-jisx0208 japanese-jisx0208-1978
|
|
347 japanese-jisx0212 latin-jisx0201 katakana-jisx0201)
|
|
348 (coding-system iso-2022-jp euc-jp
|
771
|
349 shift-jis iso-2022-jp-2)
|
428
|
350 (coding-priority iso-2022-jp euc-jp
|
771
|
351 shift-jis iso-2022-jp-2)
|
|
352 ;; These locale names come from the X11R6 locale.alias file.
|
|
353 ;; What an incredible fucking mess!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
354 ;; What's worse is that typical Unix implementations of
|
|
355 ;; setlocale() return back exactly what you passed them, even
|
|
356 ;; though it's perfectly allowed (and in fact done under
|
|
357 ;; Windows) to expand the locale to its full form (including
|
|
358 ;; encoding), so you have some hint as to the encoding!!!
|
|
359 ;;
|
|
360 ;; We order them in such a way that we're maximally likely
|
|
361 ;; to get an encoding name.
|
|
362 ;;
|
|
363 (locale
|
|
364 ;; SunOS 5.7: ja ja_JP.PCK ja_JP.UTF-8 japanese
|
|
365 ;; RedHat Linux 6.2J: ja ja_JP ja_JP.eucJP ja_JP.ujis \
|
|
366 ;; japanese japanese.euc
|
|
367 ;; HP-UX 10.20: ja_JP.SJIS ja_JP.eucJPput ja_JP.kana8
|
|
368 ;; Cygwin b20.1: ja_JP.EUC
|
|
369 ;; FreeBSD 2.2.8: ja_JP.EUC ja_JP.SJIS
|
|
370
|
|
371 ;; EUC locales
|
|
372 "ja_JP.EUC"
|
|
373 "ja_JP.eucJP"
|
|
374 "ja_JP.AJEC"
|
|
375 "ja_JP.ujis"
|
|
376 "Japanese-EUC"
|
|
377 "japanese.euc"
|
|
378
|
|
379 ;; Shift-JIS locales
|
|
380 "ja_JP.SJIS"
|
|
381 "ja_JP.mscode"
|
|
382 "ja.SJIS"
|
|
383
|
|
384 ;; 7-bit locales
|
|
385 "ja_JP.ISO-2022-JP"
|
|
386 "ja_JP.jis7"
|
|
387 "ja_JP.pjis"
|
|
388 "ja_JP.JIS"
|
|
389 "ja.JIS"
|
|
390
|
|
391 ;; 8-bit locales
|
|
392 "ja_JP.jis8"
|
|
393
|
|
394 ;; encoding-unspecified locales
|
|
395 "ja_JP"
|
|
396 "Ja_JP"
|
|
397 "Jp_JP"
|
|
398 "japanese"
|
|
399 "japan"
|
|
400 "ja"
|
|
401 )
|
|
402
|
|
403 (native-coding-system
|
|
404 ;; first, see if an explicit encoding was given.
|
|
405 #'(lambda (locale)
|
|
406 (let ((case-fold-search t))
|
|
407 (cond
|
|
408 ;; many unix versions
|
|
409 ((string-match "\\.euc" locale) 'euc-jp)
|
|
410 ((string-match "\\.sjis" locale) 'shift-jis)
|
|
411
|
|
412 ;; X11R6 (CJKV p. 471)
|
|
413 ((string-match "\\.jis7" locale) 'jis7)
|
|
414 ((string-match "\\.jis8" locale) 'jis8)
|
|
415 ((string-match "\\.mscode" locale) 'shift-jis)
|
|
416 ((string-match "\\.pjis" locale) 'iso-2022-jp)
|
|
417 ((string-match "\\.ujis" locale) 'euc-jp)
|
|
418
|
|
419 ;; other names in X11R6 locale.alias
|
|
420 ((string-match "\\.ajec" locale) 'euc-jp)
|
|
421 ((string-match "-euc" locale) 'euc-jp)
|
|
422 ((string-match "\\.iso-2022-jp" locale) 'iso-2022-jp)
|
|
423 ((string-match "\\.jis" locale) 'jis7) ;; or just jis?
|
|
424 )))
|
|
425
|
|
426 ;; aix (CJKV p. 465)
|
|
427 #'(lambda (locale)
|
|
428 (when (eq system-type 'aix)
|
|
429 (cond
|
|
430 ((string-match "^Ja_JP" locale) 'shift-jis)
|
|
431 ((string-match "^ja_JP" locale) 'euc-jp))))
|
|
432
|
|
433 ;; other X11R6 locale.alias
|
|
434 #'(lambda (locale)
|
|
435 (cond
|
|
436 ((string-match "^Jp_JP" locale) 'euc-jp)
|
|
437 ((and (eq system-type 'hpux) (eq locale "japanese"))
|
|
438 'shift-jis)))
|
|
439
|
|
440 ;; fallback
|
|
441 'euc-jp)
|
|
442
|
428
|
443 ;; (input-method . "japanese")
|
|
444 (features japan-util)
|
450
|
445 (sample-text . "Japanese ($BF|K\8l(B) $B$3$s$K$A$O(B, (I:]FAJ(B")
|
428
|
446 (documentation . t)))
|
|
447
|
|
448 ;;; japanese.el ends here
|