# HG changeset patch # User Kenichi Handa # Date 1075722199 0 # Node ID 3e22bfaa44def47f60a221365b738a0a426c2a0e # Parent 27a1ad5d169f2f8258f8d8d086794bcd0a4772fe (japanese-ucs-cp932-to-jis-map): Renamed from japanese-ucs-cp932-map. (japanese-ucs-jis-to-cp932-map): Renamed from japanese-ucs-jis-map. (japanese-ucs-glibc-map): Delete this tranlastion table. (japanese-ucs-glibc-to-jis-map): New tranlastion table. (japanese-ucs-jis-to-glibc-map): New tranlastion table. diff -r 27a1ad5d169f -r 3e22bfaa44de lisp/language/japanese.el --- a/lisp/language/japanese.el Fri Jan 30 04:53:19 2004 +0000 +++ b/lisp/language/japanese.el Mon Feb 02 11:43:19 2004 +0000 @@ -70,6 +70,7 @@ (let ((map ; JIS vs CP932 '((#x301C . #xFF5E) ; WAVE DASH FULLWIDTH TILDE + (#x2014 . #x2015) ; EM DASH HORIZONTAL BAR (#x2016 . #x2225) ; DOUBLE VERTICAL LINE PARALLEL TO (#x2212 . #xFF0D) ; MINUS SIGN FULLWIDTH HYPHEN-MINUS (#x00A2 . #xFFE0) ; CENT SIGN FULLWIDTH CENT SIGN @@ -77,17 +78,15 @@ (#x00AC . #xFFE2) ; NOT SIGN FULLWIDTH NOT SIGN (#x00A6 . #xFFE4) ; BROKEN LINE FULLWIDTH BROKEN LINE ))) - (define-translation-table 'japanese-ucs-cp932-map map) + (define-translation-table 'japanese-ucs-cp932-to-jis-map map) (mapc #'(lambda (x) (let ((tmp (car x))) (setcar x (cdr x)) (setcdr x tmp))) map) - (define-translation-table 'japanese-ucs-jis-map map) - (define-translation-table 'japanese-ucs-glibc-map map)) + (define-translation-table 'japanese-ucs-jis-to-cp932-map map)) ;; U+2014 (EM DASH) vs U+2015 (HORIZONTAL BAR) -(aset (get 'japanese-ucs-cp932-map 'translation-table) #x2014 #x2015) -(aset (get 'japanese-ucs-jis-map 'translation-table) #x2015 #x2014) -(aset (get 'japanese-ucs-glibc-map 'translation-table) #x2014 #x2015) +(define-translation-table 'japanese-ucs-glibc-to-jis-map '((#x2015 . #x2014))) +(define-translation-table 'japanese-ucs-jis-to-glibc-map '((#x2014 . #x2015))) (define-coding-system 'japanese-shift-jis "Shift-JIS 8-bit encoding for Japanese (MIME:SHIFT_JIS)"