Call define-coding-system instead of make-coding-system. All CCL program deleted.
[bpt/emacs.git] / lisp / language / japanese.el
CommitLineData
60370d40 1;;; japanese.el --- support for Japanese -*- coding: iso-2022-7bit; -*-
4ed46869 2
4ed46869 3;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
fa526c4a 4;; Licensed to the Free Software Foundation.
4ed46869
KH
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
369314dc
KH
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.
4ed46869
KH
24
25;;; Commentary:
26
27;; For Japanese, character sets JISX0201, JISX0208, JISX0212 are
28;; supported.
29
30;;; Code:
31
e1915ab3
KH
32(define-coding-system 'iso-2022-jp
33 "ISO 2022 based 7bit encoding for Japanese (MIME:ISO-2022-JP)."
34 :coding-type 'iso-2022
35 :mnemonic ?J
36 :designation [(ascii japanese-jisx0208-1978 japanese-jisx0208
37 latin-jisx0201 japanese-jisx0212)
38 nil nil nil]
39 :flags '(short ascii-at-eol ascii-at-cntl 7-bit designation)
40 :charset-list '(ascii japanese-jisx0208-1978 japanese-jisx0208
41 latin-jisx0201 japanese-jisx0212)
42 :plist '(mime-charset iso-2022-jp))
25192984
KH
43
44(define-coding-system-alias 'junet 'iso-2022-jp)
dd53c981 45
e1915ab3
KH
46(define-coding-system 'iso-2022-jp-2
47 "ISO 2022 based 7bit encoding for CJK, Latin-1, Greek (MIME:ISO-2022-JP-2)."
48 :coding-type 'iso-2022
49 :mnemonic ?J
50 :designation [(ascii japanese-jisx0208-1978 japanese-jisx0208
51 latin-jisx0201 japanese-jisx0212
52 chinese-gb2312 korean-ksc5601)
53 nil
54 (nil latin-iso8859-1 greek-iso8859-7)
55 nil]
56 :flags '(short ascii-at-eol ascii-at-cntl 7-bit designation single-shift
57 init-at-bol)
58 :charset-list '(ascii japanese-jisx0208-1978 japanese-jisx0208
59 latin-jisx0201 japanese-jisx0212
60 chinese-gb2312 korean-ksc5601
61 latin-iso8859-1 greek-iso8859-7)
62 :plist '(mime-charset iso-2022-jp-2))
63
64(define-coding-system 'japanese-shift-jis
65 "Shift-JIS 8-bit encoding for Japanese (MIME:SHIFT_JIS)"
66 :coding-type 'shift-jis
67 :mnemonic ?S
68 :charset-list '(ascii katakana-jisx0201 japanese-jisx0208)
69 :plist '(mime-charset shift_jis))
4ed46869 70
71eabd24
RS
71(define-coding-system-alias 'shift_jis 'japanese-shift-jis)
72(define-coding-system-alias 'sjis 'japanese-shift-jis)
4ed46869 73
e1915ab3
KH
74(define-coding-system 'japanese-iso-7bit-1978-irv
75 "ISO 2022 based 7-bit encoding for Japanese JISX0208-1978 and JISX0201-Roman."
76 :coding-type 'iso-2022
77 :mnemonic ?j
78 :designation [(latin-jisx0201 japanese-jisx0208-1978 japanese-jisx0208
79 japanese-jisx0212 katakana-jisx0201)
80 nil nil nil]
81 :flags '(short ascii-at-eol ascii-at-cntl 7-bit use-roman use-oldjis)
82 :charset-list '(latin-jisx0201 japanese-jisx0208-1978 japanese-jisx0208
83 japanese-jisx0212))
4ed46869 84
71eabd24
RS
85(define-coding-system-alias 'iso-2022-jp-1978-irv 'japanese-iso-7bit-1978-irv)
86(define-coding-system-alias 'old-jis 'japanese-iso-7bit-1978-irv)
dd53c981 87
e1915ab3
KH
88(define-coding-system 'japanese-iso-8bit
89 "ISO 2022 based EUC encoding for Japanese (MIME:EUC-JP)."
90 :coding-type 'iso-2022
91 :mnemonic ?E
92 :designation [ascii japanese-jisx0208 katakana-jisx0201 japanese-jisx0212]
93 :flags '(short ascii-at-eol ascii-at-cntl single-shift)
94 :charset-list '(ascii latin-jisx0201 japanese-jisx0208
95 japanese-jisx0208-1978
96 katakana-jisx0201 japanese-jisx0212)
97 :plist '(mime-charset euc-jp))
4ed46869 98
71eabd24
RS
99(define-coding-system-alias 'euc-japan-1990 'japanese-iso-8bit)
100(define-coding-system-alias 'euc-japan 'japanese-iso-8bit)
101(define-coding-system-alias 'euc-jp 'japanese-iso-8bit)
4ed46869 102
4ed46869 103(set-language-info-alist
a564ccf9 104 "Japanese" '((setup-function . setup-japanese-environment-internal)
0eb10198 105 (exit-function . exit-japanese-environment)
c089af63 106 (tutorial . "TUTORIAL.ja")
a79a3c79 107 (charset japanese-jisx0208 japanese-jisx0208-1978
d6f08fd9
KH
108 japanese-jisx0212 latin-jisx0201 katakana-jisx0201
109 japanese-jisx0213-1 japanese-jisx0213-2)
a79a3c79
KH
110 (coding-system iso-2022-jp japanese-iso-8bit
111 japanese-shift-jis japanese-iso-7bit-1978-irv)
112 (coding-priority iso-2022-jp japanese-iso-8bit
337ae039 113 japanese-shift-jis iso-2022-jp-2)
a564ccf9
KH
114 (input-method . "japanese")
115 (features japan-util)
a79a3c79 116 (sample-text . "Japanese (\e$BF|K\8l\e(B) \e$B$3$s$K$A$O\e(B, \e(I:]FAJ\e(B")
78eee0ed 117 (documentation . t)))
4ed46869 118
41da80b1
DL
119(provide 'japanese)
120
4ed46869 121;;; japanese.el ends here