annotate leim/quail/japanese.el @ 18856:03eeb83520d8

(custom-group-value-create) <tree>: Don't distinguish unloaded groups; use [+] for them. (customize-browse): Fix top-of-buffer doc text.
author Richard M. Stallman <rms@gnu.org>
date Fri, 18 Jul 1997 18:59:20 +0000
parents 05dcf4a48ded
children ae9924361448
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18673
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
1 ;;; quail/japanese.el --- Quail package for inputting Japanese
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
2
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
3 ;; Copyright (C) 1997 Electrotechnical Laboratory, JAPAN.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
4 ;; Licensed to the Free Software Foundation.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
5
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
6 ;; Keywords: multilingual, input method, Japanese
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
7
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
9
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
13 ;; any later version.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
14
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
18 ;; GNU General Public License for more details.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
19
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
23 ;; Boston, MA 02111-1307, USA.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
24
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
25 ;;; Code:
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
26
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
27 (require 'quail)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
28 (require 'kkc)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
29
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
30 ;; Update Quail translation region for Japanese bizarre translation
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
31 ;; rules.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
32 (defun quail-japanese-update-translation (control-flag)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
33 (cond ((eq control-flag t)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
34 (insert quail-current-str)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
35 (quail-terminate-translation))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
36 ((null control-flag)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
37 (if (/= (aref quail-current-key 0) ?q)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
38 (insert (or quail-current-str quail-current-key))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
39 (t ; i.e. (numberp control-flag)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
40 (cond ((= (aref quail-current-key 0) ?n)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
41 (insert ?$B$s(B))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
42 ((= (aref quail-current-key 0) (aref quail-current-key 1))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
43 (insert ?$B$C(B))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
44 (t
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
45 (insert (aref quail-current-key 0))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
46 (setq unread-command-events
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
47 (list (aref quail-current-key control-flag)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
48 (quail-terminate-translation))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
49
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
50 ;; Flag to control the behavior of `quail-japanese-toggle-kana'.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
51 (defvar quail-japanese-kana-state nil)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
52 (make-variable-buffer-local 'quail-japanese-kana-state)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
53
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
54 ;; Convert Hiragana <-> Katakana in the current translation region.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
55 (defun quail-japanese-toggle-kana ()
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
56 (interactive)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
57 (if (quail-point-in-conversion-region)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
58 (let ((start (overlay-start quail-conv-overlay))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
59 (end (overlay-end quail-conv-overlay)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
60 (setq quail-japanese-kana-state
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
61 (if (eq last-command this-command)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
62 (not quail-japanese-kana-state)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
63 (if quail-japanese-kana-state
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
64 (japanese-hiragana-region start end)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
65 (japanese-katakana-region start end))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
66 (goto-char (overlay-end quail-conv-overlay))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
67 (setq quail-exit-conversion-mode t))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
68 ;; When this command is invoked, the point is not in a valid
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
69 ;; region. Try the event which invoked this command again out of
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
70 ;; conversion mode.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
71 (setq unread-command-events (list last-command-event))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
72 (throw 'exit nil)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
73
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
74 ;; Convert Hiragana in the current translation region to Kanji by KKC
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
75 ;; (Kana Kanji Converter) utility.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
76 (defun quail-japanese-kanji-kkc ()
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
77 (interactive)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
78 (if (quail-point-in-conversion-region)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
79 (let ((from (overlay-start quail-conv-overlay))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
80 (to (overlay-end quail-conv-overlay))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
81 newfrom)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
82 (delete-overlay quail-overlay)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
83 (delete-overlay quail-conv-overlay)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
84 (unwind-protect
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
85 (setq newfrom (kkc-region from to))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
86 ;; Activate the original (or shrinked) conversion region
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
87 ;; again.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
88 (if newfrom
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
89 ;; `kkc-region' is canceled.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
90 (move-overlay quail-conv-overlay newfrom (point))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
91 ;; `kkc-region' is terminated normally.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
92 (move-overlay quail-conv-overlay from (point))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
93 (throw 'exit nil))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
94 ;; When this command is invoked, the point is not in a valid
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
95 ;; region. Try the event which invoked this command again out of
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
96 ;; conversion mode.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
97 (setq unread-command-events (list last-command-event))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
98 (throw 'exit nil)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
99
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
100 (defun quail-japanese-self-insert-and-switch-to-alpha (key idx)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
101 (quail-delete-region)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
102 (setq unread-command-events (list (aref key (1- idx))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
103 (quail-japanese-switch-package "q" 1))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
104
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
105 (defvar quail-japanese-switch-table
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
106 '((?z . "japanese-zenkaku")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
107 (?k . "japanese-hankaku-kana")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
108 (?h . "japanese")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
109 (?q . ("japanese-ascii"))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
110
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
111 (defvar quail-japanese-package-saved nil)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
112 (make-variable-buffer-local 'quail-japanese-package-saved)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
113 (put 'quail-japanese-package-saved 'permanent-local t)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
114
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
115 (defun quail-japanese-switch-package (key idx)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
116 (let ((pkg (cdr (assq (aref key (1- idx)) quail-japanese-switch-table))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
117 (if (null pkg)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
118 (error "No package to be switched")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
119 (quail-delete-region)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
120 (if (stringp pkg)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
121 (select-input-method pkg)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
122 (if (string= (car pkg) current-input-method)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
123 (if quail-japanese-package-saved
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
124 (select-input-method quail-japanese-package-saved))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
125 (setq quail-japanese-package-saved current-input-method)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
126 (select-input-method (car pkg))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
127 (throw 'quail-tag nil))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
128
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
129 (quail-define-package
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
130 "japanese" "Japanese" "A$B$"(B"
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
131 nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
132 "Romaji -> Hiragana -> Kanji&Kana
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
133 ---- Special key bindings ----
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
134 qq: toggle between input methods `japanese' and `japanese-ascii'
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
135 qz: use `japanese-zenkaku' package, \"qh\" puts you back to `japanese'
18804
05dcf4a48ded Doc-string of Quail package japanese modified.
Kenichi Handa <handa@m17n.org>
parents: 18673
diff changeset
136 K: toggle converting region between Katakana and Hiragana
18673
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
137 SPC: convert to Kanji&Kana
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
138 z: insert one Japanese symbol according to a key which follows
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
139 "
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
140 nil t t nil nil nil nil nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
141 'quail-japanese-update-translation
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
142 '(("K" . quail-japanese-toggle-kana)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
143 (" " . quail-japanese-kanji-kkc)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
144 ("\C-m" . quail-no-conversion)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
145 ([return] . quail-no-conversion))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
146 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
147
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
148 (quail-define-rules
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
149
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
150 ( "a" "$B$"(B") ( "i" "$B$$(B") ( "u" "$B$&(B") ( "e" "$B$((B") ( "o" "$B$*(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
151 ("ka" "$B$+(B") ("ki" "$B$-(B") ("ku" "$B$/(B") ("ke" "$B$1(B") ("ko" "$B$3(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
152 ("sa" "$B$5(B") ("si" "$B$7(B") ("su" "$B$9(B") ("se" "$B$;(B") ("so" "$B$=(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
153 ("ta" "$B$?(B") ("ti" "$B$A(B") ("tu" "$B$D(B") ("te" "$B$F(B") ("to" "$B$H(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
154 ("na" "$B$J(B") ("ni" "$B$K(B") ("nu" "$B$L(B") ("ne" "$B$M(B") ("no" "$B$N(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
155 ("ha" "$B$O(B") ("hi" "$B$R(B") ("hu" "$B$U(B") ("he" "$B$X(B") ("ho" "$B$[(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
156 ("ma" "$B$^(B") ("mi" "$B$_(B") ("mu" "$B$`(B") ("me" "$B$a(B") ("mo" "$B$b(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
157 ("ya" "$B$d(B") ("yu" "$B$f(B") ("yo" "$B$h(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
158 ("ra" "$B$i(B") ("ri" "$B$j(B") ("ru" "$B$k(B") ("re" "$B$l(B") ("ro" "$B$m(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
159 ("la" "$B$i(B") ("li" "$B$j(B") ("lu" "$B$k(B") ("le" "$B$l(B") ("lo" "$B$m(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
160 ("wa" "$B$o(B") ("wi" "$B$p(B") ("wu" "$B$&(B") ("we" "$B$q(B") ("wo" "$B$r(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
161 ("n'" "$B$s(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
162 ("ga" "$B$,(B") ("gi" "$B$.(B") ("gu" "$B$0(B") ("ge" "$B$2(B") ("go" "$B$4(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
163 ("za" "$B$6(B") ("zi" "$B$8(B") ("zu" "$B$:(B") ("ze" "$B$<(B") ("zo" "$B$>(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
164 ("da" "$B$@(B") ("di" "$B$B(B") ("du" "$B$E(B") ("de" "$B$G(B") ("do" "$B$I(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
165 ("ba" "$B$P(B") ("bi" "$B$S(B") ("bu" "$B$V(B") ("be" "$B$Y(B") ("bo" "$B$\(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
166 ("pa" "$B$Q(B") ("pi" "$B$T(B") ("pu" "$B$W(B") ("pe" "$B$Z(B") ("po" "$B$](B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
167
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
168 ("kya" ["$B$-$c(B"]) ("kyu" ["$B$-$e(B"]) ("kye" ["$B$-$'(B"]) ("kyo" ["$B$-$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
169 ("sya" ["$B$7$c(B"]) ("syu" ["$B$7$e(B"]) ("sye" ["$B$7$'(B"]) ("syo" ["$B$7$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
170 ("sha" ["$B$7$c(B"]) ("shu" ["$B$7$e(B"]) ("she" ["$B$7$'(B"]) ("sho" ["$B$7$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
171 ("cha" ["$B$A$c(B"]) ("chu" ["$B$A$e(B"]) ("che" ["$B$A$'(B"]) ("cho" ["$B$A$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
172 ("tya" ["$B$A$c(B"]) ("tyu" ["$B$A$e(B"]) ("tye" ["$B$A$'(B"]) ("tyo" ["$B$A$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
173 ("nya" ["$B$K$c(B"]) ("nyu" ["$B$K$e(B"]) ("nye" ["$B$K$'(B"]) ("nyo" ["$B$K$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
174 ("hya" ["$B$R$c(B"]) ("hyu" ["$B$R$e(B"]) ("hye" ["$B$R$'(B"]) ("hyo" ["$B$R$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
175 ("mya" ["$B$_$c(B"]) ("myu" ["$B$_$e(B"]) ("mye" ["$B$_$'(B"]) ("myo" ["$B$_$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
176 ("rya" ["$B$j$c(B"]) ("ryu" ["$B$j$e(B"]) ("rye" ["$B$j$'(B"]) ("ryo" ["$B$j$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
177 ("lya" ["$B$j$c(B"]) ("lyu" ["$B$j$e(B"]) ("lye" ["$B$j$'(B"]) ("lyo" ["$B$j$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
178 ("gya" ["$B$.$c(B"]) ("gyu" ["$B$.$e(B"]) ("gye" ["$B$.$'(B"]) ("gyo" ["$B$.$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
179 ("zya" ["$B$8$c(B"]) ("zyu" ["$B$8$e(B"]) ("zye" ["$B$8$'(B"]) ("zyo" ["$B$8$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
180 ("jya" ["$B$8$c(B"]) ("jyu" ["$B$8$e(B"]) ("jye" ["$B$8$'(B"]) ("jyo" ["$B$8$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
181 ( "ja" ["$B$8$c(B"]) ( "ju" ["$B$8$e(B"]) ( "je" ["$B$8$'(B"]) ( "jo" ["$B$8$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
182 ("bya" ["$B$S$c(B"]) ("byu" ["$B$S$e(B"]) ("bye" ["$B$S$'(B"]) ("byo" ["$B$S$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
183 ("pya" ["$B$T$c(B"]) ("pyu" ["$B$T$e(B"]) ("pye" ["$B$T$'(B"]) ("pyo" ["$B$T$g(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
184
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
185 ("kwa" ["$B$/$n(B"]) ("kwi" ["$B$/$#(B"]) ("kwe" ["$B$/$'(B"]) ("kwo" ["$B$/$)(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
186 ("tsa" ["$B$D$!(B"]) ("tsi" ["$B$D$#(B"]) ("tse" ["$B$D$'(B"]) ("tso" ["$B$D$)(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
187 ( "fa" ["$B$U$!(B"]) ( "fi" ["$B$U$#(B"]) ( "fe" ["$B$U$'(B"]) ( "fo" ["$B$U$)(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
188 ("gwa" ["$B$0$n(B"]) ("gwi" ["$B$0$#(B"]) ("gwe" ["$B$0$'(B"]) ("gwo" ["$B$0$)(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
189
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
190 ("dyi" ["$B$G$#(B"]) ("dyu" ["$B$I$%(B"]) ("dye" ["$B$G$'(B"]) ("dyo" ["$B$I$)(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
191 ("xwi" ["$B$&$#(B"]) ("xwe" ["$B$&$'(B"]) ("xwo" ["$B$&$)(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
192
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
193 ("shi" "$B$7(B") ("tyi" ["$B$F$#(B"]) ("chi" "$B$A(B") ("tsu" "$B$D(B") ("ji" "$B$8(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
194 ("fu" "$B$U(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
195 ("ye" ["$B$$$'(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
196
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
197 ("va" ["$B%t$!(B"]) ("vi" ["$B%t$#(B"]) ("vu" "$B%t(B") ("ve" ["$B%t$'(B"]) ("vo" ["$B%t$)(B"])
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
198
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
199 ("xa" "$B$!(B") ("xi" "$B$#(B") ("xu" "$B$%(B") ("xe" "$B$'(B") ("xo" "$B$)(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
200 ("xtu" "$B$C(B") ("xya" "$B$c(B") ("xyu" "$B$e(B") ("xyo" "$B$g(B") ("xwa" "$B$n(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
201 ("xka" "$B%u(B") ("xke" "$B%v(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
202
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
203 ("1" "$B#1(B") ("2" "$B#2(B") ("3" "$B#3(B") ("4" "$B#4(B") ("5" "$B#5(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
204 ("6" "$B#6(B") ("7" "$B#7(B") ("8" "$B#8(B") ("9" "$B#9(B") ("0" "$B#0(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
205
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
206 ("!" "$B!*(B") ("@" "$B!w(B") ("#" "$B!t(B") ("$" "$B!p(B") ("%" "$B!s(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
207 ("^" "$B!0(B") ("&" "$B!u(B") ("*" "$B!v(B") ("(" "$B!J(B") (")" "$B!K(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
208 ("-" "$B!<(B") ("=" "$B!a(B") ("`" "$B!.(B") ("\\" "$B!o(B") ("|" "$B!C(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
209 ("_" "$B!2(B") ("+" "$B!\(B") ("~" "$B!1(B") ("[" "$B!V(B") ("]" "$B!W(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
210 ("{" "$B!P(B") ("}" "$B!Q(B") (":" "$B!'(B") (";" "$B!((B") ("\"" "$B!I(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
211 ("'" "$B!G(B") ("." "$B!#(B") ("," "$B!"(B") ("<" "$B!c(B") (">" "$B!d(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
212 ("?" "$B!)(B") ("/" "$B!?(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
213
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
214 ("z1" "$B!{(B") ("z!" "$B!|(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
215 ("z2" "$B"&(B") ("z@" "$B"'(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
216 ("z3" "$B"$(B") ("z#" "$B"%(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
217 ("z4" "$B""(B") ("z$" "$B"#(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
218 ("z5" "$B!~(B") ("z%" "$B"!(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
219 ("z6" "$B!y(B") ("z^" "$B!z(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
220 ("z7" "$B!}(B") ("z&" "$B!r(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
221 ("z8" "$B!q(B") ("z*" "$B!_(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
222 ("z9" "$B!i(B") ("z(" "$B!Z(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
223 ("z0" "$B!j(B") ("z)" "$B![(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
224 ("z-" "$B!A(B") ("z_" "$B!h(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
225 ("z=" "$B!b(B") ("z+" "$B!^(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
226 ("z\\" "$B!@(B") ("z|" "$B!B(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
227 ("z`" "$B!-(B") ("z~" "$B!/(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
228
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
229 ("zq" "$B!T(B") ("zQ" "$B!R(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
230 ("zw" "$B!U(B") ("zW" "$B!S(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
231 ("zr" "$B!9(B") ("zR" "$B!8(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
232 ("zt" "$B!:(B") ("zT" "$B!x(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
233 ("zp" "$B")(B") ("zP" "$B",(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
234 ("z[" "$B!X(B") ("z{" "$B!L(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
235 ("z]" "$B!Y(B") ("z}" "$B!M(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
236
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
237 ("zs" "$B!3(B") ("zS" "$B!4(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
238 ("zd" "$B!5(B") ("zD" "$B!6(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
239 ("zf" "$B!7(B") ("zF" "$B"*(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
240 ("zg" "$B!>(B") ("zG" "$B!=(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
241 ("zh" "$B"+(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
242 ("zj" "$B"-(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
243 ("zk" "$B",(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
244 ("zl" "$B"*(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
245 ("z;" "$B!+(B") ("z:" "$B!,(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
246 ("z\'" "$B!F(B") ("z\"" "$B!H(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
247
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
248 ("zx" ":-") ("zX" ":-)")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
249 ("zc" "$B!;(B") ("zC" "$B!n(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
250 ("zv" "$B"((B") ("zV" "$B!`(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
251 ("zb" "$B!k(B") ("zB" "$B"+(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
252 ("zn" "$B!l(B") ("zN" "$B"-(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
253 ("zm" "$B!m(B") ("zM" "$B".(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
254 ("z," "$B!E(B") ("z<" "$B!e(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
255 ("z." "$B!D(B") ("z>" "$B!f(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
256 ("z/" "$B!&(B") ("z?" "$B!g(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
257
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
258 ("\\\\" quail-japanese-self-insert-and-switch-to-alpha)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
259 ("{{" quail-japanese-self-insert-and-switch-to-alpha)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
260 ("}}" quail-japanese-self-insert-and-switch-to-alpha)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
261
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
262 ("qq" quail-japanese-switch-package)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
263 ("qz" quail-japanese-switch-package)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
264
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
265 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
266
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
267 (quail-define-package
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
268 "japanese-ascii" "Japanese" "Aa"
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
269 nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
270 "Temporary ASCII input mode while using Quail package `japanese'
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
271 Type \"qq\" to go back to previous package."
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
272 nil t t)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
273
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
274 (quail-define-rules ("qq" quail-japanese-switch-package))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
275
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
276 (quail-define-package
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
277 "japanese-zenkaku" "Japanese" "$B#A(B"
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
278 nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
279 "Japanese zenkaku alpha numeric character input method
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
280 ---- Special key bindings ----
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
281 qq: toggle between `japanese-zenkaku' and `japanese-ascii'
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
282 qh: use `japanese' package, \"qz\" puts you back to `japanese-zenkaku'
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
283 "
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
284 nil t t)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
285
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
286 (quail-define-rules
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
287
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
288 (" " "$B!!(B") ("!" "$B!*(B") ("\"" "$B!m(B") ("#" "$B!t(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
289 ("$" "$B!p(B") ("%" "$B!s(B") ("&" "$B!u(B") ("'" "$B!l(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
290 ("(" "$B!J(B") (")" "$B!K(B") ("*" "$B!v(B") ("+" "$B!\(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
291 ("," "$B!$(B") ("-" "$B!](B") ("." "$B!%(B") ("/" "$B!?(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
292 ("0" "$B#0(B") ("1" "$B#1(B") ("2" "$B#2(B") ("3" "$B#3(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
293 ("4" "$B#4(B") ("5" "$B#5(B") ("6" "$B#6(B") ("7" "$B#7(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
294 ("8" "$B#8(B") ("9" "$B#9(B") (":" "$B!'(B") (";" "$B!((B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
295 ("<" "$B!c(B") ("=" "$B!a(B") (">" "$B!d(B") ("?" "$B!)(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
296 ("@" "$B!w(B") ("A" "$B#A(B") ("B" "$B#B(B") ("C" "$B#C(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
297 ("D" "$B#D(B") ("E" "$B#E(B") ("F" "$B#F(B") ("G" "$B#G(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
298 ("H" "$B#H(B") ("I" "$B#I(B") ("J" "$B#J(B") ("K" "$B#K(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
299 ("L" "$B#L(B") ("M" "$B#M(B") ("N" "$B#N(B") ("O" "$B#O(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
300 ("P" "$B#P(B") ("Q" "$B#Q(B") ("R" "$B#R(B") ("S" "$B#S(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
301 ("T" "$B#T(B") ("U" "$B#U(B") ("V" "$B#V(B") ("W" "$B#W(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
302 ("X" "$B#X(B") ("Y" "$B#Y(B") ("Z" "$B#Z(B") ("[" "$B!N(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
303 ("\\" "$B!o(B") ("]" "$B!O(B") ("^" "$B!0(B") ("_" "$B!2(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
304 ("`" "$B!F(B") ("a" "$B#a(B") ("b" "$B#b(B") ("c" "$B#c(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
305 ("d" "$B#d(B") ("e" "$B#e(B") ("f" "$B#f(B") ("g" "$B#g(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
306 ("h" "$B#h(B") ("i" "$B#i(B") ("j" "$B#j(B") ("k" "$B#k(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
307 ("l" "$B#l(B") ("m" "$B#m(B") ("n" "$B#n(B") ("o" "$B#o(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
308 ("p" "$B#p(B") ("q" "$B#q(B") ("r" "$B#r(B") ("s" "$B#s(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
309 ("t" "$B#t(B") ("u" "$B#u(B") ("v" "$B#v(B") ("w" "$B#w(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
310 ("x" "$B#x(B") ("y" "$B#y(B") ("z" "$B#z(B") ("{" "$B!P(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
311 ("|" "$B!C(B") ("}" "$B!Q(B") ("~" "$B!A(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
312
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
313 ("qq" quail-japanese-switch-package)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
314 ("qh" quail-japanese-switch-package)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
315 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
316
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
317 (defun quail-japanese-hankaku-update-translation (control-flag)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
318 (cond ((eq control-flag t)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
319 (insert (japanese-hankaku quail-current-str))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
320 (quail-terminate-translation))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
321 ((null control-flag)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
322 (insert (if quail-current-str
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
323 (japanese-hankaku quail-current-str)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
324 quail-current-key)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
325 (t ; i.e. (numberp control-flag)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
326 (cond ((= (aref quail-current-key 0) ?n)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
327 (insert ?(I](B))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
328 ((= (aref quail-current-key 0) (aref quail-current-key 1))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
329 (insert ?(I/(B))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
330 (t
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
331 (insert (aref quail-current-key 0))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
332 (setq unread-command-events
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
333 (list (aref quail-current-key control-flag)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
334 (quail-terminate-translation))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
335
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
336
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
337 (quail-define-package
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
338 "japanese-hankaku-kana"
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
339 "Japanese" "(I1(B"
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
340 nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
341 "Japanese hankaku katakana input method by Roman transliteration
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
342 ---- Special key bindings ----
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
343 qq: toggle between `japanese-hankaku-kana' and `japanese-ascii'
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
344 "
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
345 nil t t nil nil nil nil nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
346 'quail-japanese-hankaku-update-translation)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
347
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
348 ;; Use the same map as that of `japanese'.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
349 (setcar (cdr (cdr quail-current-package))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
350 (nth 2 (assoc "japanese" quail-package-alist)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
351
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
352 (quail-define-package
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
353 "japanese-hiragana" "Japanese" "$B$"(B"
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
354 nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
355 "Japanese hiragana input method by Roman transliteration"
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
356 nil t t nil nil nil nil nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
357 'quail-japanese-update-translation)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
358
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
359 ;; Use the same map as that of `japanese'.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
360 (setcar (cdr (cdr quail-current-package))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
361 (nth 2 (assoc "japanese" quail-package-alist)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
362
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
363 ;; Update Quail translation region while converting Hiragana to Katakana.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
364 (defun quail-japanese-katakana-update-translation (control-flag)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
365 (cond ((eq control-flag t)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
366 (insert (japanese-katakana quail-current-str))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
367 (quail-terminate-translation))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
368 ((null control-flag)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
369 (insert (if quail-current-str
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
370 (japanese-katakana quail-current-str)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
371 quail-current-key)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
372 (t ; i.e. (numberp control-flag)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
373 (cond ((= (aref quail-current-key 0) ?n)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
374 (insert ?$B%s(B))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
375 ((= (aref quail-current-key 0) (aref quail-current-key 1))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
376 (insert ?$B%C(B))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
377 (t
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
378 (insert (aref quail-current-key 0))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
379 (setq unread-command-events
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
380 (list (aref quail-current-key control-flag)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
381 (quail-terminate-translation))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
382
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
383 (quail-define-package
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
384 "japanese-katakana" "Japanese" "$B%"(B"
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
385 nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
386 "Japanese katakana input method by Roman transliteration"
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
387 nil t t nil nil nil nil nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
388 'quail-japanese-katakana-update-translation)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
389
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
390 ;; Use the same map as that of `japanese'.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
391 (setcar (cdr (cdr quail-current-package))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
392 (nth 2 (assoc "japanese" quail-package-alist)))