Mercurial > emacs
comparison lisp/language/japanese.el @ 89483:2f877ed80fa6
*** empty log message ***
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 08 Sep 2003 12:53:41 +0000 |
parents | 375f2633d815 695cafe7a3bf |
children | b1aa1cb0e3f6 |
comparison
equal
deleted
inserted
replaced
88123:375f2633d815 | 89483:2f877ed80fa6 |
---|---|
1 ;;; japanese.el --- support for Japanese -*- coding: iso-2022-7bit; no-byte-compile: t -*- | 1 ;;; japanese.el --- support for Japanese -*- coding: iso-2022-7bit; no-byte-compile: t -*- |
2 | 2 |
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. | 3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. |
4 ;; Licensed to the Free Software Foundation. | 4 ;; Licensed to the Free Software Foundation. |
5 ;; Copyright (C) 2003 | |
6 ;; National Institute of Advanced Industrial Science and Technology (AIST) | |
7 ;; Registration Number H13PRO009 | |
5 | 8 |
6 ;; Keywords: multilingual, Japanese | 9 ;; Keywords: multilingual, Japanese |
7 | 10 |
8 ;; This file is part of GNU Emacs. | 11 ;; This file is part of GNU Emacs. |
9 | 12 |
27 ;; For Japanese, character sets JISX0201, JISX0208, JISX0212 are | 30 ;; For Japanese, character sets JISX0201, JISX0208, JISX0212 are |
28 ;; supported. | 31 ;; supported. |
29 | 32 |
30 ;;; Code: | 33 ;;; Code: |
31 | 34 |
32 (make-coding-system | 35 (define-coding-system 'iso-2022-jp |
33 'iso-2022-jp 2 ?J | 36 "ISO 2022 based 7bit encoding for Japanese (MIME:ISO-2022-JP)." |
34 "ISO 2022 based 7bit encoding for Japanese (MIME:ISO-2022-JP)." | 37 :coding-type 'iso-2022 |
35 '((ascii japanese-jisx0208-1978 japanese-jisx0208 | 38 :mnemonic ?J |
36 latin-jisx0201 japanese-jisx0212) nil nil nil | 39 :designation [(ascii japanese-jisx0208-1978 japanese-jisx0208 |
37 short ascii-eol ascii-cntl seven) | 40 latin-jisx0201 japanese-jisx0212) |
38 '((safe-charsets ascii japanese-jisx0208-1978 japanese-jisx0208 | 41 nil nil nil] |
39 latin-jisx0201 japanese-jisx0212) | 42 :flags '(short ascii-at-eol ascii-at-cntl 7-bit designation) |
40 (mime-charset . iso-2022-jp))) | 43 :charset-list '(ascii japanese-jisx0208-1978 japanese-jisx0208 |
44 latin-jisx0201 japanese-jisx0212) | |
45 :mime-charset 'iso-2022-jp) | |
41 | 46 |
42 (define-coding-system-alias 'junet 'iso-2022-jp) | 47 (define-coding-system-alias 'junet 'iso-2022-jp) |
43 | 48 |
44 (make-coding-system | 49 (define-coding-system 'iso-2022-jp-2 |
45 'iso-2022-jp-2 2 ?J | 50 "ISO 2022 based 7bit encoding for CJK, Latin-1, Greek (MIME:ISO-2022-JP-2)." |
46 "ISO 2022 based 7bit encoding for CJK, Latin-1, and Greek (MIME:ISO-2022-JP-2)." | 51 :coding-type 'iso-2022 |
47 '((ascii japanese-jisx0208-1978 japanese-jisx0208 | 52 :mnemonic ?J |
48 latin-jisx0201 japanese-jisx0212 | 53 :designation [(ascii japanese-jisx0208-1978 japanese-jisx0208 |
49 chinese-gb2312 korean-ksc5601) nil | 54 latin-jisx0201 japanese-jisx0212 |
50 (nil latin-iso8859-1 greek-iso8859-7) nil | 55 chinese-gb2312 korean-ksc5601) |
51 short ascii-eol ascii-cntl seven nil single-shift nil nil nil init-bol) | 56 nil |
52 '((safe-charsets ascii japanese-jisx0208-1978 japanese-jisx0208 | 57 (nil latin-iso8859-1 greek-iso8859-7) |
53 latin-jisx0201 japanese-jisx0212 | 58 nil] |
54 chinese-gb2312 korean-ksc5601 | 59 :flags '(short ascii-at-eol ascii-at-cntl 7-bit designation single-shift |
55 latin-iso8859-1 greek-iso8859-7) | 60 init-at-bol) |
56 (mime-charset . iso-2022-jp-2))) | 61 :charset-list '(ascii japanese-jisx0208-1978 japanese-jisx0208 |
62 latin-jisx0201 japanese-jisx0212 | |
63 chinese-gb2312 korean-ksc5601 | |
64 latin-iso8859-1 greek-iso8859-7) | |
65 :mime-charset 'iso-2022-jp-2) | |
57 | 66 |
58 (make-coding-system | 67 (define-coding-system 'japanese-shift-jis |
59 'japanese-shift-jis 1 ?S | 68 "Shift-JIS 8-bit encoding for Japanese (MIME:SHIFT_JIS)" |
60 "Shift-JIS 8-bit encoding for Japanese (MIME:SHIFT_JIS)." | 69 :coding-type 'shift-jis |
61 nil | 70 :mnemonic ?S |
62 '((safe-charsets ascii japanese-jisx0208 japanese-jisx0208-1978 | 71 :charset-list '(ascii katakana-jisx0201 japanese-jisx0208) |
63 latin-jisx0201 katakana-jisx0201) | 72 :mime-charset 'shift_jis) |
64 (mime-charset . shift_jis) | |
65 (charset-origin-alist (japanese-jisx0208 "SJIS" encode-sjis-char) | |
66 (katakana-jisx0201 "SJIS" encode-sjis-char)))) | |
67 | 73 |
68 (define-coding-system-alias 'shift_jis 'japanese-shift-jis) | 74 (define-coding-system-alias 'shift_jis 'japanese-shift-jis) |
69 (define-coding-system-alias 'sjis 'japanese-shift-jis) | 75 (define-coding-system-alias 'sjis 'japanese-shift-jis) |
70 | 76 |
71 (make-coding-system | 77 ;; Fixme: AKA Shift-JIS according to |
72 'japanese-iso-7bit-1978-irv 2 ?j | 78 ;; <URL:http://www.microsoft.com/globaldev/reference/WinCP.asp>. Is |
73 "ISO 2022 based 7-bit encoding for Japanese JISX0208-1978 and JISX0201-Roman." | 79 ;; that correct? |
74 '((ascii japanese-jisx0208-1978 japanese-jisx0208 | 80 |
75 latin-jisx0201 japanese-jisx0212 katakana-jisx0201 t) nil nil nil | 81 (define-coding-system 'japanese-iso-7bit-1978-irv |
76 short ascii-eol ascii-cntl seven nil nil use-roman use-oldjis) | 82 "ISO 2022 based 7-bit encoding for Japanese JISX0208-1978 and JISX0201-Roman." |
77 '(ascii japanese-jisx0208-1978 japanese-jisx0208 latin-jisx0201)) | 83 :coding-type 'iso-2022 |
84 :mnemonic ?j | |
85 :designation [(latin-jisx0201 japanese-jisx0208-1978 japanese-jisx0208 | |
86 japanese-jisx0212 katakana-jisx0201) | |
87 nil nil nil] | |
88 :flags '(short ascii-at-eol ascii-at-cntl 7-bit designation | |
89 use-roman use-oldjis) | |
90 :charset-list '(ascii latin-jisx0201 japanese-jisx0208-1978 japanese-jisx0208 | |
91 japanese-jisx0212)) | |
78 | 92 |
79 (define-coding-system-alias 'iso-2022-jp-1978-irv 'japanese-iso-7bit-1978-irv) | 93 (define-coding-system-alias 'iso-2022-jp-1978-irv 'japanese-iso-7bit-1978-irv) |
80 (define-coding-system-alias 'old-jis 'japanese-iso-7bit-1978-irv) | 94 (define-coding-system-alias 'old-jis 'japanese-iso-7bit-1978-irv) |
81 | 95 |
82 (make-coding-system | 96 (define-coding-system 'japanese-iso-8bit |
83 'japanese-iso-8bit 2 ?E | 97 "ISO 2022 based EUC encoding for Japanese (MIME:EUC-JP)." |
84 "ISO 2022 based EUC encoding for Japanese (MIME:EUC-JP)." | 98 :coding-type 'iso-2022 |
85 '(ascii japanese-jisx0208 katakana-jisx0201 japanese-jisx0212 | 99 :mnemonic ?E |
86 short ascii-eol ascii-cntl nil nil single-shift) | 100 :designation [ascii japanese-jisx0208 katakana-jisx0201 japanese-jisx0212] |
87 '((safe-charsets ascii latin-jisx0201 japanese-jisx0208 japanese-jisx0208-1978 | 101 :flags '(short ascii-at-eol ascii-at-cntl single-shift) |
88 katakana-jisx0201 japanese-jisx0212) | 102 :charset-list '(ascii latin-jisx0201 japanese-jisx0208 |
89 (mime-charset . euc-jp))) | 103 japanese-jisx0208-1978 |
104 katakana-jisx0201 japanese-jisx0212) | |
105 :mime-charset 'euc-jp) | |
90 | 106 |
91 (define-coding-system-alias 'euc-japan-1990 'japanese-iso-8bit) | 107 (define-coding-system-alias 'euc-japan-1990 'japanese-iso-8bit) |
92 (define-coding-system-alias 'euc-japan 'japanese-iso-8bit) | 108 (define-coding-system-alias 'euc-japan 'japanese-iso-8bit) |
93 (define-coding-system-alias 'euc-jp 'japanese-iso-8bit) | 109 (define-coding-system-alias 'euc-jp 'japanese-iso-8bit) |
94 | 110 |