changeset 23316:308cd9d90647

(quail-japanese-hankaku-update-translation): Adjusted for the change of input method handling.
author Kenichi Handa <handa@m17n.org>
date Fri, 25 Sep 1998 07:32:05 +0000
parents 86a8b8566369
children 4f85050ca43c
files leim/quail/japanese.el
diffstat 1 files changed, 7 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/leim/quail/japanese.el	Fri Sep 25 07:32:05 1998 +0000
+++ b/leim/quail/japanese.el	Fri Sep 25 07:32:05 1998 +0000
@@ -311,24 +311,13 @@
 )
 
 (defun quail-japanese-hankaku-update-translation (control-flag)
-  (cond ((eq control-flag t)
-	 (insert (japanese-hankaku quail-current-str))
-	 (quail-terminate-translation))
-	((null control-flag)
-	 (insert (if quail-current-str
-		     (japanese-hankaku quail-current-str)
-		   quail-current-key)))
-	(t				; i.e. (numberp control-flag)
-	 (cond ((= (aref quail-current-key 0) ?n)
-		(insert ?(I](B))
-	       ((= (aref quail-current-key 0) (aref quail-current-key 1))
-		(insert ?(I/(B))
-	       (t
-		(insert (aref quail-current-key 0))))
-	 (setq unread-command-events
-	       (list (aref quail-current-key control-flag)))
-	 (quail-terminate-translation))))
-
+  (setq control-flag
+	(quail-japanese-update-translation control-flag))
+  (if (or (and (stringp quail-current-str)
+	       (> (length quail-current-str) 0))
+	  (integerp quail-current-str))
+      (setq quail-current-str (japanese-hankaku quail-current-str)))
+  control-flag)
 
 (quail-define-package
  "japanese-hankaku-kana"