Mercurial > emacs
comparison lisp/language/japanese.el @ 89854:94fdb409a40f
(jisx0213-to-unicode, unicode-to-jisx0213):
New translation tables.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 11 Mar 2004 02:12:20 +0000 |
parents | 0a96859927ce |
children | be50b7dcd9eb |
comparison
equal
deleted
inserted
replaced
89853:e13ef0e2d2b0 | 89854:94fdb409a40f |
---|---|
205 (input-method . "japanese") | 205 (input-method . "japanese") |
206 (features japan-util) | 206 (features japan-util) |
207 (sample-text . "Japanese ($BF|K\8l(B) $B$3$s$K$A$O(B, (I:]FAJ(B") | 207 (sample-text . "Japanese ($BF|K\8l(B) $B$3$s$K$A$O(B, (I:]FAJ(B") |
208 (documentation . t))) | 208 (documentation . t))) |
209 | 209 |
210 (let ((map | |
211 ;; JISX0213-1 vs Unicode | |
212 '((#x2477 . [#x304B #x309A]) | |
213 (#x2478 . [#x304D #x309A]) | |
214 (#x2479 . [#x304F #x309A]) | |
215 (#x247a . [#x3051 #x309A]) | |
216 (#x247b . [#x3053 #x309A]) | |
217 (#x2577 . [#x30AB #x309A]) | |
218 (#x2578 . [#x30AD #x309A]) | |
219 (#x2579 . [#x30AF #x309A]) | |
220 (#x257a . [#x30B1 #x309A]) | |
221 (#x257b . [#x30B3 #x309A]) | |
222 (#x257c . [#x30BB #x309A]) | |
223 (#x257d . [#x30C4 #x309A]) | |
224 (#x257e . [#x30C8 #x309A]) | |
225 (#x2678 . [#x31F7 #x309A]) | |
226 (#x2b44 . [#x00E6 #x0300]) | |
227 (#x2b48 . [#x0254 #x0300]) | |
228 (#x2b49 . [#x0254 #x0301]) | |
229 (#x2b4a . [#x028C #x0300]) | |
230 (#x2b4b . [#x028C #x0301]) | |
231 (#x2b4c . [#x0259 #x0300]) | |
232 (#x2b4d . [#x0259 #x0301]) | |
233 (#x2b4e . [#x025A #x0300]) | |
234 (#x2b4f . [#x025A #x0301]) | |
235 (#x2b65 . [#x02E9 #x02E5]) | |
236 (#x2b66 . [#x02E5 #x02E9]))) | |
237 table) | |
238 (dolist (elt map) | |
239 (setcar elt (decode-char 'japanese-jisx0213-1 (car elt)))) | |
240 (setq table (make-translation-table-from-alist map)) | |
241 (define-translation-table 'jisx0213-to-unicode table) | |
242 (define-translation-table 'unicode-to-jisx0213 | |
243 (char-table-extra-slot table 0))) | |
244 | |
210 (provide 'japanese) | 245 (provide 'japanese) |
211 | 246 |
212 ;;; japanese.el ends here | 247 ;;; japanese.el ends here |