changeset 88406:934ee50a6eb3

(skkdic-get-kana-compact-codes): Call encode-char instead of split-char.
author Kenichi Handa <handa@m17n.org>
date Fri, 01 Mar 2002 02:08:10 +0000
parents 8ae0d0693ed9
children 9ae36aa886d5
files lisp/international/ja-dic-cnv.el
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/international/ja-dic-cnv.el	Fri Mar 01 02:07:40 2002 +0000
+++ b/lisp/international/ja-dic-cnv.el	Fri Mar 01 02:08:10 2002 +0000
@@ -46,12 +46,13 @@
 (defvar ja-dic-filename "ja-dic.el")
 
 ;; To make a generated ja-dic.el smaller.
-(make-coding-system
- 'iso-2022-7bit-short
- 2 ?J
+(define-coding-system 'iso-2022-7bit-short
  "Like `iso-2022-7bit' but no ASCII designation before SPC."
- '(ascii nil nil nil t t nil t)
- '((safe-charsets . t)))
+  :coding-type 'iso-2022
+  :mnemonic ?J
+  :charset-list 'iso-2022
+  :designation [(ascii t) nil nil nil]
+  :flags '(short 7-bit designation))
 
 (defun skkdic-convert-okuri-ari (skkbuf buf)
   (message "Processing OKURI-ARI entries ...")
@@ -475,7 +476,7 @@
 		(- ch)			;  represented by a negative code.
 	      (if (= ch ?$B!<(B)		; `$B!<(B' is represented by 0.
 		  0
-		(- (nth 2 (split-char ch)) 32))))
+		(- (logand (encode-char ch 'japanese-jisx0208) #xFF) 32))))
       (setq i (1+ i)))
     vec))