aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2002-03-01 02:08:10 +0000
committerKenichi Handa2002-03-01 02:08:10 +0000
commita10201c80555e363ebf6e1dbacc304e2e16a7b58 (patch)
treeff524f5e0e1254f8f1bf3cd8ba3cc9d952036803
parent06f76f0d47e0590856743a811cc9f7b0a3c92559 (diff)
downloademacs-a10201c80555e363ebf6e1dbacc304e2e16a7b58.tar.gz
emacs-a10201c80555e363ebf6e1dbacc304e2e16a7b58.zip
(skkdic-get-kana-compact-codes): Call encode-char instead of
split-char.
-rw-r--r--lisp/international/ja-dic-cnv.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/international/ja-dic-cnv.el b/lisp/international/ja-dic-cnv.el
index 113d00f572a..e47a7a58683 100644
--- a/lisp/international/ja-dic-cnv.el
+++ b/lisp/international/ja-dic-cnv.el
@@ -46,12 +46,13 @@
46(defvar ja-dic-filename "ja-dic.el") 46(defvar ja-dic-filename "ja-dic.el")
47 47
48;; To make a generated ja-dic.el smaller. 48;; To make a generated ja-dic.el smaller.
49(make-coding-system 49(define-coding-system 'iso-2022-7bit-short
50 'iso-2022-7bit-short
51 2 ?J
52 "Like `iso-2022-7bit' but no ASCII designation before SPC." 50 "Like `iso-2022-7bit' but no ASCII designation before SPC."
53 '(ascii nil nil nil t t nil t) 51 :coding-type 'iso-2022
54 '((safe-charsets . t))) 52 :mnemonic ?J
53 :charset-list 'iso-2022
54 :designation [(ascii t) nil nil nil]
55 :flags '(short 7-bit designation))
55 56
56(defun skkdic-convert-okuri-ari (skkbuf buf) 57(defun skkdic-convert-okuri-ari (skkbuf buf)
57 (message "Processing OKURI-ARI entries ...") 58 (message "Processing OKURI-ARI entries ...")
@@ -475,7 +476,7 @@ To get complete usage, invoke:
475 (- ch) ; represented by a negative code. 476 (- ch) ; represented by a negative code.
476 (if (= ch ?$B!<(B) ; `$B!<(B' is represented by 0. 477 (if (= ch ?$B!<(B) ; `$B!<(B' is represented by 0.
477 0 478 0
478 (- (nth 2 (split-char ch)) 32)))) 479 (- (logand (encode-char ch 'japanese-jisx0208) #xFF) 32))))
479 (setq i (1+ i))) 480 (setq i (1+ i)))
480 vec)) 481 vec))
481 482