annotate lisp/language/japanese.el @ 20844:d69034fe59c2

(vc-ignore-vc-files): New variable. (vc-file-hook, vc-file-not-found-hook): Use it.
author Dave Love <fx@gnu.org>
date Wed, 04 Feb 1998 14:20:15 +0000
parents 5f2c7f919bbf
children ecfe57c6e4a8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1 ;;; japanese.el --- Japanese support
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
2
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
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
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
5
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
6 ;; Keywords: multilingual, Japanese
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
7
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
9
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
13 ;; any later version.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
14
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
18 ;; GNU General Public License for more details.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
19
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
17071
70194012fb3a Fix FSF address in comment.
Karl Heuer <kwzh@gnu.org>
parents: 17052
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
70194012fb3a Fix FSF address in comment.
Karl Heuer <kwzh@gnu.org>
parents: 17052
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
70194012fb3a Fix FSF address in comment.
Karl Heuer <kwzh@gnu.org>
parents: 17052
diff changeset
23 ;; Boston, MA 02111-1307, USA.
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
24
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
25 ;;; Commentary:
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
26
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
27 ;; For Japanese, character sets JISX0201, JISX0208, JISX0212 are
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
28 ;; supported.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
29
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
30 ;;; Code:
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
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
20739
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
36 latin-jisx0201 japanese-jisx0212 katakana-jisx0201) nil nil nil
20159
dce0d588d203 Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents: 19554
diff changeset
37 short ascii-eol ascii-cntl seven)
20739
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
38 '((safe-charsets ascii japanese-jisx0208-1978 japanese-jisx0208
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
39 latin-jisx0201 japanese-jisx0212 katakana-jisx0201)
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
40 (mime-charset . 'iso-2022-jp)))
19283
43b3f86776e4 Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents: 18577
diff changeset
41
43b3f86776e4 Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents: 18577
diff changeset
42 (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
43
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
44 (make-coding-system
18203
0745f30aec66 Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents: 17993
diff changeset
45 'japanese-shift-jis 1 ?S
20159
dce0d588d203 Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents: 19554
diff changeset
46 "Shift-JIS 8-bit encoding for Japanese (MIME:SHIFT_JIS)"
dce0d588d203 Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents: 19554
diff changeset
47 nil
20739
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
48 '((safe-charsets ascii japanese-jisx0208 japanese-jisx0208-1978
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
49 latin-jisx0201 katakana-jisx0201)
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
50 (mime-charset . shift_jis)))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
51
18520
383d11185239 Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents: 18377
diff changeset
52 (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
53 (define-coding-system-alias 'sjis 'japanese-shift-jis)
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
54
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
55 (make-coding-system
18203
0745f30aec66 Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents: 17993
diff changeset
56 'japanese-iso-7bit-1978-irv 2 ?j
0745f30aec66 Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents: 17993
diff changeset
57 "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
58 '((ascii japanese-jisx0208-1978 japanese-jisx0208
43b3f86776e4 Make coding system iso-2022-jp instead of
Kenichi Handa <handa@m17n.org>
parents: 18577
diff changeset
59 latin-jisx0201 japanese-jisx0212 katakana-jisx0201 t) nil nil nil
20159
dce0d588d203 Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents: 19554
diff changeset
60 short ascii-eol ascii-cntl seven nil nil use-roman use-oldjis)
dce0d588d203 Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents: 19554
diff changeset
61 '(ascii japanese-jisx0208-1978 japanese-jisx0208 latin-jisx0201))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
62
18520
383d11185239 Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents: 18377
diff changeset
63 (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
64 (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
65
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
66 (make-coding-system
18203
0745f30aec66 Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents: 17993
diff changeset
67 'japanese-iso-8bit 2 ?E
0745f30aec66 Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents: 17993
diff changeset
68 "ISO 2022 based EUC encoding for Japanese (MIME:EUC-JP)"
20739
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
69 '(ascii japanese-jisx0208 katakana-jisx0201 japanese-jisx0212
20159
dce0d588d203 Give proper SAFE-CHARSET argument in each
Kenichi Handa <handa@m17n.org>
parents: 19554
diff changeset
70 short ascii-eol ascii-cntl nil nil single-shift)
20739
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
71 '((safe-charsets ascii latin-jisx0201 japanese-jisx0208 japanese-jisx0208-1978
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
72 katakana-jisx0201 japanese-jisx0212)
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
73 (mime-charset . euc-jp)))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
74
18520
383d11185239 Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents: 18377
diff changeset
75 (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
76 (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
77 (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
78
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
79 (set-language-info-alist
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
80 "Japanese" '((setup-function . setup-japanese-environment)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
81 (tutorial . "TUTORIAL.jp")
20739
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
82 (charset japanese-jisx0208 japanese-jisx0208-1978
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
83 japanese-jisx0212 latin-jisx0201 katakana-jisx0201)
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
84 (coding-system iso-2022-jp japanese-iso-8bit
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
85 japanese-shift-jis japanese-iso-7bit-1978-irv)
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
86 (coding-priority iso-2022-jp japanese-iso-8bit
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
87 japanese-shift-jis)
5f2c7f919bbf Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents: 20159
diff changeset
88 (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
89 (documentation . t)))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
90
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
91 ;;; japanese.el ends here