diff options
| -rw-r--r-- | lisp/language/japanese.el | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lisp/language/japanese.el b/lisp/language/japanese.el index a6bedbd82cd..0785ce69661 100644 --- a/lisp/language/japanese.el +++ b/lisp/language/japanese.el | |||
| @@ -207,6 +207,41 @@ eucJP-ms is defined in <http://www.opengroup.or.jp/jvc/cde/appendix.html>." | |||
| 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 |