Mercurial > emacs
comparison lisp/international/characters.el @ 101982:f22ae19dd025
* international/characters.el (?1, ?2, ?3, ?4, ?7, ?^):
Fix typos in docstrings.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 12 Feb 2009 16:09:48 +0000 |
parents | 35c1915c9f6b |
children | fdad8647e9ec |
comparison
equal
deleted
inserted
replaced
101981:2c42823a9be8 | 101982:f22ae19dd025 |
---|---|
78 | 78 |
79 ;; For phonetic classifications. | 79 ;; For phonetic classifications. |
80 | 80 |
81 (define-category ?0 "consonant") | 81 (define-category ?0 "consonant") |
82 (define-category ?1 "base vowel | 82 (define-category ?1 "base vowel |
83 base (independent) vowel") | 83 Base (independent) vowel") |
84 (define-category ?2 "upper diacritic | 84 (define-category ?2 "upper diacritic |
85 upper diacritical mark (including upper vowel)") | 85 Upper diacritical mark (including upper vowel)") |
86 (define-category ?3 "lower diacritic | 86 (define-category ?3 "lower diacritic |
87 lower diacritical mark (including lower vowel)") | 87 Lower diacritical mark (including lower vowel)") |
88 (define-category ?4 "combining tone | 88 (define-category ?4 "combining tone |
89 combining tone mark") | 89 Combining tone mark") |
90 (define-category ?5 "symbol") | 90 (define-category ?5 "symbol") |
91 (define-category ?6 "digit") | 91 (define-category ?6 "digit") |
92 (define-category ?7 "vowel diacritic | 92 (define-category ?7 "vowel diacritic |
93 vowel-modifying diacritical mark") | 93 Vowel-modifying diacritical mark") |
94 (define-category ?8 "vowel-signs") | 94 (define-category ?8 "vowel-signs") |
95 (define-category ?9 "semivowel lower") | 95 (define-category ?9 "semivowel lower") |
96 | 96 |
97 ;; For filling. | 97 ;; For filling. |
98 (define-category ?| "line breakable | 98 (define-category ?| "line breakable |
112 | 112 |
113 ;; Base and Combining | 113 ;; Base and Combining |
114 (define-category ?. "Base | 114 (define-category ?. "Base |
115 Base characters (Unicode General Category L,N,P,S,Zs)") | 115 Base characters (Unicode General Category L,N,P,S,Zs)") |
116 (define-category ?^ "Combining | 116 (define-category ?^ "Combining |
117 Combining diacritic or mark (Unicode General Category M") | 117 Combining diacritic or mark (Unicode General Category M)") |
118 | 118 |
119 ;;; Setting syntax and category. | 119 ;;; Setting syntax and category. |
120 | 120 |
121 ;; ASCII | 121 ;; ASCII |
122 | 122 |
442 (let* ((char (decode-char 'vietnamese-viscii-upper i)) | 442 (let* ((char (decode-char 'vietnamese-viscii-upper i)) |
443 (charl (decode-char 'vietnamese-viscii-lower i)) | 443 (charl (decode-char 'vietnamese-viscii-lower i)) |
444 (uc (encode-char char 'ucs)) | 444 (uc (encode-char char 'ucs)) |
445 (lc (encode-char charl 'ucs))) | 445 (lc (encode-char charl 'ucs))) |
446 (set-case-syntax-pair char (decode-char 'vietnamese-viscii-lower i) | 446 (set-case-syntax-pair char (decode-char 'vietnamese-viscii-lower i) |
447 tbl) | 447 tbl) |
448 (if uc (modify-category-entry uc ?v)) | 448 (if uc (modify-category-entry uc ?v)) |
449 (if lc (modify-category-entry lc ?v))) | 449 (if lc (modify-category-entry lc ?v))) |
450 (setq i (1+ i)))) | 450 (setq i (1+ i)))) |
451 | 451 |
452 ;; Tai Viet | 452 ;; Tai Viet |
1028 (lambda (range ignore) (set-char-table-range char-width-table range 2)) | 1028 (lambda (range ignore) (set-char-table-range char-width-table range 2)) |
1029 'arabic-2-column) | 1029 'arabic-2-column) |
1030 | 1030 |
1031 (defvar cjk-char-width-table | 1031 (defvar cjk-char-width-table |
1032 (let ((table (make-char-table nil))) | 1032 (let ((table (make-char-table nil))) |
1033 (dolist (charset '(big5 chinese-gb2312 chinese-cns11643-1 | 1033 (dolist (charset '(big5 chinese-gb2312 chinese-cns11643-1 |
1034 japanese-jisx0208 korean-ksc5601)) | 1034 japanese-jisx0208 korean-ksc5601)) |
1035 (map-charset-chars #'(lambda (range arg) | 1035 (map-charset-chars #'(lambda (range arg) |
1036 (set-char-table-range table range 2)) | 1036 (set-char-table-range table range 2)) |
1037 charset)) | 1037 charset)) |
1038 (optimize-char-table table) | 1038 (optimize-char-table table) |