From: Kenichi Handa Date: Wed, 5 Apr 2006 06:34:46 +0000 (+0000) Subject: Setup cases of Latin, Greek, and X-Git-Tag: emacs-pretest-22.0.90~3322 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a293e9b6eddac033fd53113b903664753a7a7d64;p=emacs.git Setup cases of Latin, Greek, and Cyrillic characters in CJK charsets. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1e58ce2ea13..9397101c432 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2006-04-05 Kenichi Handa + + * international/characters.el: Setup cases of Latin, Greek, and + Cyrillic characters in CJK charsets. + 2006-03-29 Daiki Ueno * pgg-gpg.el (pgg-gpg-start-process): Don't bind diff --git a/lisp/international/characters.el b/lisp/international/characters.el index ad9040b706e..638d09eea6e 100644 --- a/lisp/international/characters.el +++ b/lisp/international/characters.el @@ -177,6 +177,17 @@ (modify-category-entry (make-char 'chinese-gb2312 row) ?C) (setq row (1+ row)))) +(let ((tbl (standard-case-table))) + (dotimes (i 26) + (set-case-syntax-pair (make-char 'chinese-gb2312 #x23 (+ #x41 i)) + (make-char 'chinese-gb2312 #x23 (+ #x61 i)) tbl)) + (dotimes (i 24) + (set-case-syntax-pair (make-char 'chinese-gb2312 #x26 (+ #x21 i)) + (make-char 'chinese-gb2312 #x26 (+ #x41 i)) tbl)) + (dotimes (i 33) + (set-case-syntax-pair (make-char 'chinese-gb2312 #x27 (+ #x21 i)) + (make-char 'chinese-gb2312 #x27 (+ #x51 i)) tbl))) + ;; Chinese character set (BIG5) (let ((from (decode-big5-char #xA141)) @@ -217,6 +228,17 @@ (modify-category-entry generic-big5-1-char ?\|) (modify-category-entry generic-big5-2-char ?\|)) +(let ((tbl (standard-case-table))) + (dotimes (i 22) + (set-case-syntax-pair (decode-big5-char (+ #xA2CF i)) + (decode-big5-char (+ #xA2CF i 26)) tbl)) + (dotimes (i 4) + (set-case-syntax-pair (decode-big5-char (+ #xA2E4 i)) + (decode-big5-char (+ #xA340 i)) tbl)) + (dotimes (i 24) + (set-case-syntax-pair (decode-big5-char (+ #xA344 i)) + (decode-big5-char (+ #xA344 i 24)) tbl))) + ;; Chinese character set (CNS11643) @@ -629,6 +651,17 @@ (modify-category-entry (car chars) ?C) (setq chars (cdr chars)))) +(let ((tbl (standard-case-table))) + (dotimes (i 26) + (set-case-syntax-pair (make-char 'japanese-jisx0208 #x23 (+ #x41 i)) + (make-char 'japanese-jisx0208 #x23 (+ #x61 i)) tbl)) + (dotimes (i 24) + (set-case-syntax-pair (make-char 'japanese-jisx0208 #x26 (+ #x21 i)) + (make-char 'japanese-jisx0208 #x26 (+ #x41 i)) tbl)) + (dotimes (i 33) + (set-case-syntax-pair (make-char 'japanese-jisx0208 #x27 (+ #x21 i)) + (make-char 'japanese-jisx0208 #x27 (+ #x51 i)) tbl))) + ;; JISX0212 ;; (modify-syntax-entry (make-char 'japanese-jisx0212) "w") (modify-syntax-entry (make-char 'japanese-jisx0212 33) "_") @@ -674,6 +707,20 @@ (modify-syntax-entry open (format "(%c" close)) (modify-syntax-entry close (format ")%c" open)))) +(let ((tbl (standard-case-table))) + (dotimes (i 26) + (set-case-syntax-pair (make-char 'korean-ksc5601 #x23 (+ #x41 i)) + (make-char 'korean-ksc5601 #x23 (+ #x61 i)) tbl)) + (dotimes (i 10) + (set-case-syntax-pair (make-char 'korean-ksc5601 #x25 (+ #x21 i)) + (make-char 'korean-ksc5601 #x25 (+ #x30 i)) tbl)) + (dotimes (i 24) + (set-case-syntax-pair (make-char 'korean-ksc5601 #x25 (+ #x41 i)) + (make-char 'korean-ksc5601 #x25 (+ #x61 i)) tbl)) + (dotimes (i 33) + (set-case-syntax-pair (make-char 'korean-ksc5601 #x2C (+ #x21 i)) + (make-char 'korean-ksc5601 #x2C (+ #x51 i)) tbl))) + ;; Latin character set (latin-1,2,3,4,5,8,9) (modify-category-entry (make-char 'latin-iso8859-1) ?l)