diff options
| author | Kenichi Handa | 2003-03-23 02:22:11 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-03-23 02:22:11 +0000 |
| commit | ed459fb6757dd28c78da0afdd2efe7a5cf775668 (patch) | |
| tree | f8bab7770a1513cf5aabc540c1ed97f2e8e1efcb | |
| parent | 37ab321e4f7b6ddf17b701c92a24620218f50131 (diff) | |
| download | emacs-ed459fb6757dd28c78da0afdd2efe7a5cf775668.tar.gz emacs-ed459fb6757dd28c78da0afdd2efe7a5cf775668.zip | |
Setup categories for Indian characters.
| -rw-r--r-- | lisp/international/characters.el | 51 |
1 files changed, 19 insertions, 32 deletions
diff --git a/lisp/international/characters.el b/lisp/international/characters.el index 2dc47b7861c..68a1fa9ead1 100644 --- a/lisp/international/characters.el +++ b/lisp/international/characters.el | |||
| @@ -535,38 +535,25 @@ | |||
| 535 | (modify-category-entry (decode-char 'ucs c) ?i) | 535 | (modify-category-entry (decode-char 'ucs c) ?i) |
| 536 | (setq c (1+ c)))) | 536 | (setq c (1+ c)))) |
| 537 | 537 | ||
| 538 | ;;; Commented out since the categories appear not to be used anywhere | 538 | (let ((l '(;; RANGE CATEGORY MEANINGS |
| 539 | ;;; and word syntax is the default. | 539 | (#x01 #x03 ?7) ; vowel modifier |
| 540 | ;; (let ((deflist ; | 540 | (#x05 #x14 ?1) ; base vowel |
| 541 | ;; '(;; chars syntax category | 541 | (#x15 #x39 ?0) ; consonants |
| 542 | ;; ("(5!"#(B" "w" ?7) ; vowel-modifying diacritical mark | 542 | (#x3e #x4d ?8) ; vowel modifier |
| 543 | ;; ; chandrabindu, anuswar, visarga | 543 | (#x51 #x54 ?4) ; stress/tone mark |
| 544 | ;; ("(5$(B-(52(B" "w" ?1) ; base (independent) vowel | 544 | (#x58 #x5f ?0) ; consonants |
| 545 | ;; ("(53(B-(5X(B" "w" ?0) ; consonant | 545 | (#x60 #x61 ?1) ; base vowel |
| 546 | ;; ("(5Z(B-(5g(B" "w" ?8) ; matra | 546 | (#x62 #x63 ?8) ; vowel modifier |
| 547 | ;; ("(5q(B-(5z(B" "w" ?6) ; digit | 547 | (#x66 #x6f ?6) ; digits |
| 548 | ;; )) | 548 | ))) |
| 549 | ;; elm chars len syntax category to ch i) | 549 | (dolist (elt1 '(#x900 #x980 #xa00 #xa80 #xb00 #xb80 #xc00 #xc80 #xd00)) |
| 550 | ;; (while deflist | 550 | (dolist (elt2 l) |
| 551 | ;; (setq elm (car deflist)) | 551 | (let* ((from (car elt2)) |
| 552 | ;; (setq chars (car elm) | 552 | (counts (1+ (- (nth 1 elt2) from))) |
| 553 | ;; len (length chars) | 553 | (category (nth 2 elt2))) |
| 554 | ;; syntax (nth 1 elm) | 554 | (dotimes (i counts) |
| 555 | ;; category (nth 2 elm) | 555 | (modify-category-entry (decode-char 'ucs (+ elt1 from i)) |
| 556 | ;; i 0) | 556 | category)))))) |
| 557 | ;; (while (< i len) | ||
| 558 | ;; (if (= (aref chars i) ?-) | ||
| 559 | ;; (setq i (1+ i) | ||
| 560 | ;; to (aref chars i)) | ||
| 561 | ;; (setq ch (aref chars i) | ||
| 562 | ;; to ch)) | ||
| 563 | ;; (while (<= ch to) | ||
| 564 | ;; (modify-syntax-entry ch syntax) | ||
| 565 | ;; (modify-category-entry ch category) | ||
| 566 | ;; (setq ch (1+ ch))) | ||
| 567 | ;; (setq i (1+ i))) | ||
| 568 | ;; (setq deflist (cdr deflist)))) | ||
| 569 | |||
| 570 | 557 | ||
| 571 | ;; Japanese character set (JISX0201-kana, JISX0201-roman, JISX0208, JISX0212) | 558 | ;; Japanese character set (JISX0201-kana, JISX0201-roman, JISX0208, JISX0212) |
| 572 | 559 | ||