diff options
| author | Kenichi Handa | 1998-09-16 07:21:31 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-09-16 07:21:31 +0000 |
| commit | 0dced2c95b42f9e34e08b45fac1170cb4e81a541 (patch) | |
| tree | 8ee72befa88f6cc86ff3041d1330c63767f5e0fa | |
| parent | 91693d18ea4ea935095a7b064ddd1a89499dcea7 (diff) | |
| download | emacs-0dced2c95b42f9e34e08b45fac1170cb4e81a541.tar.gz emacs-0dced2c95b42f9e34e08b45fac1170cb4e81a541.zip | |
(quail-japanese-katakana-update-translation):
Adjusted for the change of input method handling.
| -rw-r--r-- | leim/quail/japanese.el | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/leim/quail/japanese.el b/leim/quail/japanese.el index d0faf534a83..2a95fec86a0 100644 --- a/leim/quail/japanese.el +++ b/leim/quail/japanese.el | |||
| @@ -358,23 +358,13 @@ qq: toggle between `japanese-hankaku-kana' and `japanese-ascii' | |||
| 358 | 358 | ||
| 359 | ;; Update Quail translation region while converting Hiragana to Katakana. | 359 | ;; Update Quail translation region while converting Hiragana to Katakana. |
| 360 | (defun quail-japanese-katakana-update-translation (control-flag) | 360 | (defun quail-japanese-katakana-update-translation (control-flag) |
| 361 | (cond ((eq control-flag t) | 361 | (setq control-flag |
| 362 | (insert (japanese-katakana quail-current-str)) | 362 | (quail-japanese-update-translation control-flag)) |
| 363 | (quail-terminate-translation)) | 363 | (if (or (and (stringp quail-current-str) |
| 364 | ((null control-flag) | 364 | (> (length quail-current-str) 0)) |
| 365 | (insert (if quail-current-str | 365 | (integerp quail-current-str)) |
| 366 | (japanese-katakana quail-current-str) | 366 | (setq quail-current-str (japanese-katakana quail-current-str))) |
| 367 | quail-current-key))) | 367 | control-flag) |
| 368 | (t ; i.e. (numberp control-flag) | ||
| 369 | (cond ((= (aref quail-current-key 0) ?n) | ||
| 370 | (insert ?ン)) | ||
| 371 | ((= (aref quail-current-key 0) (aref quail-current-key 1)) | ||
| 372 | (insert ?ッ)) | ||
| 373 | (t | ||
| 374 | (insert (aref quail-current-key 0)))) | ||
| 375 | (setq unread-command-events | ||
| 376 | (list (aref quail-current-key control-flag))) | ||
| 377 | (quail-terminate-translation)))) | ||
| 378 | 368 | ||
| 379 | (quail-define-package | 369 | (quail-define-package |
| 380 | "japanese-katakana" "Japanese" "ア" | 370 | "japanese-katakana" "Japanese" "ア" |