Mercurial > emacs
changeset 89791:3e22bfaa44de
(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.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 02 Feb 2004 11:43:19 +0000 |
parents | 27a1ad5d169f |
children | 5432415797dd |
files | lisp/language/japanese.el |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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)"