Mercurial > emacs
changeset 88492:2ce720ffa865
Setup char-width-table for CJK characters.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 14 May 2002 07:48:11 +0000 |
parents | 6e297375797c |
children | 410ca4f1df02 |
files | lisp/international/characters.el |
diffstat | 1 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/international/characters.el Tue May 14 00:40:45 2002 +0000 +++ b/lisp/international/characters.el Tue May 14 07:48:11 2002 +0000 @@ -1123,6 +1123,32 @@ (set-char-table-range printable-chars '(0 . 31) nil) (set-char-table-range printable-chars '(127 . 159) nil) +;; CJK double width characters. +(let ((l '((#x1100 . #x11FF) + (#x2E80 . #x9FAF) + (#xAC00 . #xD7AF) + (#xF900 . #xFAFF) + (#xFE30 . #xFE4F) + (#xFF00 . #xFF5F) + (#xFFE0 . #xFFEF)))) + (dolist (elt l) + (set-char-table-range char-width-table + (cons (decode-char 'ucs (car elt)) + (decode-char 'ucs (cdr elt))) + 2))) +(map-charset-chars + #'(lambda (range ignore) (set-char-table-range char-width-table range 2)) + 'japanese-jisx0208) +(map-charset-chars + #'(lambda (range ignore) (set-char-table-range char-width-table range 2)) + 'japanese-jisx0212) +(map-charset-chars + #'(lambda (range ignore) (set-char-table-range char-width-table range 2)) + 'japanese-jisx0213-1) +(map-charset-chars + #'(lambda (range ignore) (set-char-table-range char-width-table range 2)) + 'japanese-jisx0213-2) + ;;; Local Variables: ;;; coding: utf-8-emacs