Mercurial > emacs
annotate lisp/language/japanese.el @ 20156:c8c4c714710b
Give proper SAFE-CHARSET argument in each call
of make-coding-system.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 23 Oct 1997 12:03:41 +0000 |
parents | dba381533ebc |
children | dce0d588d203 |
rev | line source |
---|---|
17052 | 1 ;;; japanese.el --- Japanese support |
2 | |
3 ;; Copyright (C) 1995 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. |
17052 | 5 |
6 ;; Keywords: multilingual, Japanese | |
7 | |
8 ;; This file is part of GNU Emacs. | |
9 | |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
14 | |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
17071 | 21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
23 ;; Boston, MA 02111-1307, USA. | |
17052 | 24 |
25 ;;; Commentary: | |
26 | |
27 ;; For Japanese, character sets JISX0201, JISX0208, JISX0212 are | |
28 ;; supported. | |
29 | |
30 ;;; Code: | |
31 | |
19283
43b3f86776e4
Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents:
18577
diff
changeset
|
32 (make-coding-system |
43b3f86776e4
Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents:
18577
diff
changeset
|
33 'iso-2022-jp 2 ?J |
43b3f86776e4
Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents:
18577
diff
changeset
|
34 "ISO 2022 based 7bit encoding for Japanese (MIME:ISO-2022-JP)" |
43b3f86776e4
Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents:
18577
diff
changeset
|
35 '((ascii japanese-jisx0208-1978 japanese-jisx0208 |
43b3f86776e4
Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents:
18577
diff
changeset
|
36 latin-jisx0201 japanese-jisx0212 katakana-jisx0201 t) nil nil nil |
43b3f86776e4
Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents:
18577
diff
changeset
|
37 short ascii-eol ascii-cntl seven)) |
43b3f86776e4
Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents:
18577
diff
changeset
|
38 |
43b3f86776e4
Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents:
18577
diff
changeset
|
39 (define-coding-system-alias 'junet 'iso-2022-jp) |
17088
76d2eb70aa0b
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
40 |
17052 | 41 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
42 'japanese-shift-jis 1 ?S |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
43 "Shift-JIS 8-bit encoding for Japanese (MIME:SHIFT_JIS)") |
17052 | 44 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
45 (define-coding-system-alias 'shift_jis 'japanese-shift-jis) |
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
46 (define-coding-system-alias 'sjis 'japanese-shift-jis) |
17052 | 47 |
48 (make-coding-system | |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
49 'japanese-iso-7bit-1978-irv 2 ?j |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
50 "ISO 2022 based 7-bit encoding for Japanese JISX0208-1978 and JISX0201-Roman" |
19283
43b3f86776e4
Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents:
18577
diff
changeset
|
51 '((ascii japanese-jisx0208-1978 japanese-jisx0208 |
43b3f86776e4
Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents:
18577
diff
changeset
|
52 latin-jisx0201 japanese-jisx0212 katakana-jisx0201 t) nil nil nil |
17052 | 53 short ascii-eol ascii-cntl seven nil nil use-roman use-oldjis)) |
54 | |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
55 (define-coding-system-alias 'iso-2022-jp-1978-irv 'japanese-iso-7bit-1978-irv) |
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
56 (define-coding-system-alias 'old-jis 'japanese-iso-7bit-1978-irv) |
17088
76d2eb70aa0b
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
57 |
17052 | 58 (make-coding-system |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
59 'japanese-iso-8bit 2 ?E |
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
60 "ISO 2022 based EUC encoding for Japanese (MIME:EUC-JP)" |
19283
43b3f86776e4
Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents:
18577
diff
changeset
|
61 '((ascii latin-jisx0201) (japanese-jisx0208 japanese-jisx0208-1978) |
43b3f86776e4
Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents:
18577
diff
changeset
|
62 katakana-jisx0201 japanese-jisx0212 |
43b3f86776e4
Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents:
18577
diff
changeset
|
63 short ascii-eol ascii-cntl nil nil single-shift)) |
17052 | 64 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
65 (define-coding-system-alias 'euc-japan-1990 'japanese-iso-8bit) |
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
66 (define-coding-system-alias 'euc-japan 'japanese-iso-8bit) |
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
67 (define-coding-system-alias 'euc-jp 'japanese-iso-8bit) |
17088
76d2eb70aa0b
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
68 |
17052 | 69 (set-language-info-alist |
70 "Japanese" '((setup-function . setup-japanese-environment) | |
71 (tutorial . "TUTORIAL.jp") | |
72 (charset . (japanese-jisx0208 japanese-jisx0208-1978 | |
73 japanese-jisx0212 latin-jisx0201 | |
74 katakana-jisx0201)) | |
19554
dba381533ebc
(set-language-info-alist): Change
Kenichi Handa <handa@m17n.org>
parents:
19283
diff
changeset
|
75 (coding-system . (iso-2022-jp japanese-iso-8bit |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
76 japanese-shift-jis japanese-iso-7bit-1978-irv)) |
17769
37ae0c18bd47
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17088
diff
changeset
|
77 (sample-text . "Japanese ($BF|K\8l(B) $B$3$s$K$A$O(B, (I:]FAJ(B") |
17841
084d922fcd78
Coding system names changed as follows:
Kenichi Handa <handa@m17n.org>
parents:
17769
diff
changeset
|
78 (documentation . t))) |
17052 | 79 |
80 ;;; japanese.el ends here |