Mercurial > emacs
annotate lisp/international/characters.el @ 41109:0bcf2d7f0112
(values, values-list, multiple-value-list, multiple-value-apply, nth-value):
Use defsubst rather than defalias, to get better doc strings.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 15 Nov 2001 23:57:43 +0000 |
parents | 67b464da13ec |
children | b364f798b789 |
rev | line source |
---|---|
17052 | 1 ;;; characters.el --- set syntax and category for multibyte characters |
2 | |
19958
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
3 ;; Copyright (C) 1995, 1997 Electrotechnical Laboratory, JAPAN. |
18377
8b4a66c66dd6
Change copyright notice.
Richard M. Stallman <rms@gnu.org>
parents:
18304
diff
changeset
|
4 ;; Licensed to the Free Software Foundation. |
17052 | 5 |
6 ;; Keywords: multibyte character, character set, syntax, category | |
7 | |
8 ;; This file is part of GNU Emacs. | |
9 | |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
14 | |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
17071 | 21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
23 ;; Boston, MA 02111-1307, USA. | |
17052 | 24 |
25 ;;; Commentary: | |
26 | |
27 ;; This file contains multibyte characters. Save this file always in | |
18197
90235db802c7
Comment changed (iso-2022-7 -> iso-2022-7bit).
Kenichi Handa <handa@m17n.org>
parents:
17753
diff
changeset
|
28 ;; the coding system `iso-2022-7bit'. |
17052 | 29 |
18205
40dc3b2e9e27
Delete syntax stuff for Latin-1 and Latin-2.
Richard M. Stallman <rms@gnu.org>
parents:
18197
diff
changeset
|
30 ;; This file does not define the syntax for Latin-N character sets; |
40dc3b2e9e27
Delete syntax stuff for Latin-1 and Latin-2.
Richard M. Stallman <rms@gnu.org>
parents:
18197
diff
changeset
|
31 ;; those are defined by the files latin-N.el. |
40dc3b2e9e27
Delete syntax stuff for Latin-1 and Latin-2.
Richard M. Stallman <rms@gnu.org>
parents:
18197
diff
changeset
|
32 |
38414
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
36688
diff
changeset
|
33 ;;; Code: |
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
36688
diff
changeset
|
34 |
17052 | 35 ;;; Predefined categories. |
36 | |
37 ;; For each character set. | |
38 | |
39 (define-category ?a "ASCII") | |
40 (define-category ?l "Latin") | |
41 (define-category ?t "Thai") | |
42 (define-category ?g "Greek") | |
43 (define-category ?b "Arabic") | |
44 (define-category ?w "Hebrew") | |
45 (define-category ?y "Cyrillic") | |
46 (define-category ?k "Japanese katakana") | |
47 (define-category ?r "Japanese roman") | |
48 (define-category ?c "Chinese") | |
49 (define-category ?j "Japanese") | |
50 (define-category ?h "Korean") | |
51 (define-category ?e "Ethiopic (Ge'ez)") | |
52 (define-category ?v "Vietnamese") | |
53 (define-category ?i "Indian") | |
17078
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
54 (define-category ?o "Lao") |
17753
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
55 (define-category ?q "Tibetan") |
17052 | 56 |
57 ;; For each group (row) of 2-byte character sets. | |
58 | |
22529 | 59 (define-category ?A "Alpha-numeric characters of 2-byte character sets") |
17052 | 60 (define-category ?C "Chinese (Han) characters of 2-byte character sets") |
22529 | 61 (define-category ?G "Greek characters of 2-byte character sets") |
17052 | 62 (define-category ?H "Japanese Hiragana characters of 2-byte character sets") |
63 (define-category ?K "Japanese Katakana characters of 2-byte character sets") | |
64 (define-category ?N "Korean Hangul characters of 2-byte character sets") | |
22529 | 65 (define-category ?Y "Cyrillic characters of 2-byte character sets") |
17052 | 66 (define-category ?I "Indian Glyphs") |
67 | |
68 ;; For phonetic classifications. | |
69 | |
70 (define-category ?0 "consonant") | |
18561
f3c28fd5118e
Modify docstring of char category
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
71 (define-category ?1 "base (independent) vowel") |
17052 | 72 (define-category ?2 "upper diacritical mark (including upper vowel)") |
73 (define-category ?3 "lower diacritical mark (including lower vowel)") | |
74 (define-category ?4 "tone mark") | |
18561
f3c28fd5118e
Modify docstring of char category
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
75 (define-category ?5 "symbol") |
17052 | 76 (define-category ?6 "digit") |
77 (define-category ?7 "vowel-modifying diacritical mark") | |
17078
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
78 (define-category ?8 "vowel-signs") |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
79 (define-category ?9 "semivowel lower") |
17052 | 80 |
81 ;; For filling. | |
82 (define-category ?| "While filling, we can break a line at this character.") | |
83 | |
20247 | 84 ;; For indentation calculation. |
20734
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
85 (define-category ? |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
86 "This character counts as a space for indentation purposes.") |
20247 | 87 |
22529 | 88 ;; Keep the following for `kinsoku' processing. See comments in |
17052 | 89 ;; kinsoku.el. |
90 (define-category ?> "A character which can't be placed at beginning of line.") | |
91 (define-category ?< "A character which can't be placed at end of line.") | |
92 | |
93 | |
94 ;;; Setting syntax and category. | |
95 | |
96 ;; ASCII | |
97 | |
98 (let ((ch 32)) | |
99 (while (< ch 127) ; All ASCII characters have | |
100 (modify-category-entry ch ?a) ; the category `a' (ASCII) | |
101 (modify-category-entry ch ?l) ; and `l' (Latin). | |
102 (setq ch (1+ ch)))) | |
103 | |
104 ;; Arabic character set | |
105 | |
106 (let ((charsets '(arabic-iso8859-6 | |
107 arabic-digit | |
108 arabic-1-column | |
109 arabic-2-column))) | |
110 (while charsets | |
111 (modify-syntax-entry (make-char (car charsets)) "w") | |
112 (modify-category-entry (make-char (car charsets)) ?b) | |
113 (setq charsets (cdr charsets)))) | |
114 | |
115 ;; Chinese character set (GB2312) | |
116 | |
117 (modify-syntax-entry (make-char 'chinese-gb2312) "w") | |
118 (modify-syntax-entry (make-char 'chinese-gb2312 33) "_") | |
119 (modify-syntax-entry (make-char 'chinese-gb2312 34) "_") | |
120 (modify-syntax-entry (make-char 'chinese-gb2312 41) "_") | |
121 (modify-syntax-entry ?\$A!2(B "($A!3(B") | |
122 (modify-syntax-entry ?\$A!4(B "($A!5(B") | |
123 (modify-syntax-entry ?\$A!6(B "($A!7(B") | |
124 (modify-syntax-entry ?\$A!8(B "($A!9(B") | |
125 (modify-syntax-entry ?\$A!:(B "($A!;(B") | |
126 (modify-syntax-entry ?\$A!<(B "($A!=(B") | |
127 (modify-syntax-entry ?\$A!>(B "($A!?(B") | |
128 (modify-syntax-entry ?\$A!3(B ")$A!2(B") | |
129 (modify-syntax-entry ?\$A!5(B ")$A!4(B") | |
130 (modify-syntax-entry ?\$A!7(B ")$A!6(B") | |
131 (modify-syntax-entry ?\$A!9(B ")$A!8(B") | |
132 (modify-syntax-entry ?\$A!;(B ")$A!:(B") | |
133 (modify-syntax-entry ?\$A!=(B ")$A!<(B") | |
134 (modify-syntax-entry ?\$A!?(B ")$A!>(B") | |
135 | |
136 (modify-category-entry (make-char 'chinese-gb2312) ?c) | |
137 (modify-category-entry (make-char 'chinese-gb2312) ?\|) | |
138 (modify-category-entry (make-char 'chinese-gb2312 35) ?A) | |
139 (modify-category-entry (make-char 'chinese-gb2312 36) ?H) | |
140 (modify-category-entry (make-char 'chinese-gb2312 37) ?K) | |
141 (modify-category-entry (make-char 'chinese-gb2312 38) ?G) | |
142 (modify-category-entry (make-char 'chinese-gb2312 39) ?Y) | |
143 (let ((row 48)) | |
144 (while (< row 127) | |
145 (modify-category-entry (make-char 'chinese-gb2312 row) ?C) | |
146 (setq row (1+ row)))) | |
147 | |
148 ;; Chinese character set (BIG5) | |
149 | |
150 (let ((generic-big5-1-char (make-char 'chinese-big5-1)) | |
151 (generic-big5-2-char (make-char 'chinese-big5-2))) | |
152 (modify-syntax-entry generic-big5-1-char "w") | |
153 (modify-syntax-entry generic-big5-2-char "w") | |
154 | |
155 (modify-category-entry generic-big5-1-char ?c) | |
156 (modify-category-entry generic-big5-2-char ?c) | |
157 | |
158 (modify-category-entry generic-big5-1-char ?C) | |
159 (modify-category-entry generic-big5-2-char ?C) | |
160 | |
161 (modify-category-entry generic-big5-1-char ?\|) | |
162 (modify-category-entry generic-big5-2-char ?\|)) | |
163 | |
164 | |
165 ;; Chinese character set (CNS11643) | |
166 | |
167 (let ((cns-list '(chinese-cns11643-1 | |
168 chinese-cns11643-2 | |
169 chinese-cns11643-3 | |
170 chinese-cns11643-4 | |
171 chinese-cns11643-5 | |
172 chinese-cns11643-6 | |
173 chinese-cns11643-7)) | |
174 generic-char) | |
175 (while cns-list | |
176 (setq generic-char (make-char (car cns-list))) | |
177 (modify-syntax-entry generic-char "w") | |
178 (modify-category-entry generic-char ?c) | |
179 (modify-category-entry generic-char ?C) | |
180 (modify-category-entry generic-char ?|) | |
181 (setq cns-list (cdr cns-list)))) | |
182 | |
183 ;; Cyrillic character set (ISO-8859-5) | |
184 | |
185 (modify-category-entry (make-char 'cyrillic-iso8859-5) ?y) | |
186 | |
19958
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
187 (modify-syntax-entry (make-char 'cyrillic-iso8859-5 160) " ") |
17052 | 188 (modify-syntax-entry ?,L-(B ".") |
189 (modify-syntax-entry ?,Lp(B ".") | |
190 (modify-syntax-entry ?,L}(B ".") | |
19958
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
191 (let ((tbl (standard-case-table))) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
192 (set-case-syntax-pair ?,L!(B ?,Lq(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
193 (set-case-syntax-pair ?,L"(B ?,Lr(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
194 (set-case-syntax-pair ?,L#(B ?,Ls(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
195 (set-case-syntax-pair ?,L$(B ?,Lt(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
196 (set-case-syntax-pair ?,L%(B ?,Lu(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
197 (set-case-syntax-pair ?,L&(B ?,Lv(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
198 (set-case-syntax-pair ?,L'(B ?,Lw(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
199 (set-case-syntax-pair ?,L((B ?,Lx(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
200 (set-case-syntax-pair ?,L)(B ?,Ly(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
201 (set-case-syntax-pair ?,L*(B ?,Lz(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
202 (set-case-syntax-pair ?,L+(B ?,L{(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
203 (set-case-syntax-pair ?,L,(B ?,L|(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
204 (set-case-syntax-pair ?,L.(B ?,L~(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
205 (set-case-syntax-pair ?,L/(B ?,L(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
206 (set-case-syntax-pair ?,L0(B ?,LP(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
207 (set-case-syntax-pair ?,L1(B ?,LQ(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
208 (set-case-syntax-pair ?,L2(B ?,LR(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
209 (set-case-syntax-pair ?,L3(B ?,LS(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
210 (set-case-syntax-pair ?,L4(B ?,LT(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
211 (set-case-syntax-pair ?,L5(B ?,LU(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
212 (set-case-syntax-pair ?,L6(B ?,LV(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
213 (set-case-syntax-pair ?,L7(B ?,LW(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
214 (set-case-syntax-pair ?,L8(B ?,LX(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
215 (set-case-syntax-pair ?,L9(B ?,LY(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
216 (set-case-syntax-pair ?,L:(B ?,LZ(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
217 (set-case-syntax-pair ?,L;(B ?,L[(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
218 (set-case-syntax-pair ?,L<(B ?,L\(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
219 (set-case-syntax-pair ?,L=(B ?,L](B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
220 (set-case-syntax-pair ?,L>(B ?,L^(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
221 (set-case-syntax-pair ?,L?(B ?,L_(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
222 (set-case-syntax-pair ?,L@(B ?,L`(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
223 (set-case-syntax-pair ?,LA(B ?,La(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
224 (set-case-syntax-pair ?,LB(B ?,Lb(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
225 (set-case-syntax-pair ?,LC(B ?,Lc(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
226 (set-case-syntax-pair ?,LD(B ?,Ld(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
227 (set-case-syntax-pair ?,LE(B ?,Le(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
228 (set-case-syntax-pair ?,LF(B ?,Lf(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
229 (set-case-syntax-pair ?,LG(B ?,Lg(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
230 (set-case-syntax-pair ?,LH(B ?,Lh(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
231 (set-case-syntax-pair ?,LI(B ?,Li(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
232 (set-case-syntax-pair ?,LJ(B ?,Lj(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
233 (set-case-syntax-pair ?,LK(B ?,Lk(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
234 (set-case-syntax-pair ?,LL(B ?,Ll(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
235 (set-case-syntax-pair ?,LM(B ?,Lm(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
236 (set-case-syntax-pair ?,LN(B ?,Ln(B tbl) |
f7ab34ae92bb
Set case-table for Cyrillic characters.
Richard M. Stallman <rms@gnu.org>
parents:
18561
diff
changeset
|
237 (set-case-syntax-pair ?,LO(B ?,Lo(B tbl)) |
17052 | 238 |
17753
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
239 ;; Devanagari character set |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
240 |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
241 (let ((deflist '(;; chars syntax category |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
242 ("$(5!!!"!#(B" "w" ?7) ; vowel-modifying diacritical mark |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
243 ; chandrabindu, anuswar, visarga |
18561
f3c28fd5118e
Modify docstring of char category
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
244 ("$(5!$(B-$(5!2(B" "w" ?1) ; independent vowel |
17753
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
245 ("$(5!3(B-$(5!X(B" "w" ?0) ; consonant |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
246 ("$(5!Z(B-$(5!g(B" "w" ?8) ; matra |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
247 ("$(5!q(B-$(5!z(B" "w" ?6) ; digit |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
248 )) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
249 elm chars len syntax category to ch i) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
250 (while deflist |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
251 (setq elm (car deflist)) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
252 (setq chars (car elm) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
253 len (length chars) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
254 syntax (nth 1 elm) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
255 category (nth 2 elm) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
256 i 0) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
257 (while (< i len) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
258 (if (= (aref chars i) ?-) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
259 (setq i (1+ i) |
20843 | 260 to (aref chars i)) |
261 (setq ch (aref chars i) | |
17753
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
262 to ch)) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
263 (while (<= ch to) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
264 (modify-syntax-entry ch syntax) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
265 (modify-category-entry ch category) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
266 (setq ch (1+ ch))) |
20843 | 267 (setq i (1+ i))) |
17753
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
268 (setq deflist (cdr deflist)))) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
269 |
17052 | 270 ;; Ethiopic character set |
271 | |
272 (modify-category-entry (make-char 'ethiopic) ?e) | |
18304
58b39b4108d5
Set syntaxes of Ethiopic characters.
Kenichi Handa <handa@m17n.org>
parents:
18205
diff
changeset
|
273 (modify-syntax-entry (make-char 'ethiopic) "w") |
58b39b4108d5
Set syntaxes of Ethiopic characters.
Kenichi Handa <handa@m17n.org>
parents:
18205
diff
changeset
|
274 (let ((chars '(?$(3$h(B ?$(3$i(B ?$(3$j(B ?$(3$k(B ?$(3$l(B ?$(3$m(B ?$(3$n(B ?$(3$o(B ?$(3%i(B ?$(3%t(B ?$(3%u(B ?$(3%v(B ?$(3%w(B ?$(3%x(B))) |
58b39b4108d5
Set syntaxes of Ethiopic characters.
Kenichi Handa <handa@m17n.org>
parents:
18205
diff
changeset
|
275 (while chars |
58b39b4108d5
Set syntaxes of Ethiopic characters.
Kenichi Handa <handa@m17n.org>
parents:
18205
diff
changeset
|
276 (modify-syntax-entry (car chars) ".") |
58b39b4108d5
Set syntaxes of Ethiopic characters.
Kenichi Handa <handa@m17n.org>
parents:
18205
diff
changeset
|
277 (setq chars (cdr chars)))) |
17052 | 278 |
279 ;; Greek character set (ISO-8859-7) | |
280 | |
281 (modify-category-entry (make-char 'greek-iso8859-7) ?g) | |
282 | |
283 (let ((c 182)) | |
284 (while (< c 255) | |
285 (modify-syntax-entry (make-char 'greek-iso8859-7 c) "w") | |
286 (setq c (1+ c)))) | |
287 (modify-syntax-entry (make-char 'greek-iso8859-7 160) "w") ; NBSP | |
288 (modify-syntax-entry ?,F7(B ".") | |
289 (modify-syntax-entry ?,F;(B ".") | |
290 (modify-syntax-entry ?,F=(B ".") | |
31664
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
291 (let ((tbl (standard-case-table))) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
292 (set-case-syntax-pair ?,FA(B ?,Fa(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
293 (set-case-syntax-pair ?,FB(B ?,Fb(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
294 (set-case-syntax-pair ?,FC(B ?,Fc(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
295 (set-case-syntax-pair ?,FD(B ?,Fd(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
296 (set-case-syntax-pair ?,FE(B ?,Fe(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
297 (set-case-syntax-pair ?,FF(B ?,Ff(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
298 (set-case-syntax-pair ?,FG(B ?,Fg(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
299 (set-case-syntax-pair ?,FH(B ?,Fh(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
300 (set-case-syntax-pair ?,FI(B ?,Fi(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
301 (set-case-syntax-pair ?,FJ(B ?,Fj(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
302 (set-case-syntax-pair ?,FK(B ?,Fk(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
303 (set-case-syntax-pair ?,FL(B ?,Fl(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
304 (set-case-syntax-pair ?,FM(B ?,Fm(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
305 (set-case-syntax-pair ?,FN(B ?,Fn(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
306 (set-case-syntax-pair ?,FO(B ?,Fo(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
307 (set-case-syntax-pair ?,FP(B ?,Fp(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
308 (set-case-syntax-pair ?,FQ(B ?,Fq(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
309 (set-case-syntax-pair ?,FS(B ?,Fs(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
310 (set-case-syntax-pair ?,FT(B ?,Ft(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
311 (set-case-syntax-pair ?,FU(B ?,Fu(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
312 (set-case-syntax-pair ?,FV(B ?,Fv(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
313 (set-case-syntax-pair ?,FW(B ?,Fw(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
314 (set-case-syntax-pair ?,FX(B ?,Fx(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
315 (set-case-syntax-pair ?,FY(B ?,Fy(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
316 (set-case-syntax-pair ?,FZ(B ?,Fz(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
317 (set-case-syntax-pair ?,F[(B ?,F{(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
318 (set-case-syntax-pair ?,F?(B ?,F~(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
319 (set-case-syntax-pair ?,F>(B ?,F}(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
320 (set-case-syntax-pair ?,F<(B ?,F|(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
321 (set-case-syntax-pair ?,F6(B ?,F\(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
322 (set-case-syntax-pair ?,F8(B ?,F](B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
323 (set-case-syntax-pair ?,F9(B ?,F^(B tbl) |
b41bc1b0a044
(standard-case-table): Add entries
Dave Love <fx@gnu.org>
parents:
29362
diff
changeset
|
324 (set-case-syntax-pair ?,F:(B ?,F_(B tbl)) |
17052 | 325 |
326 ;; Hebrew character set (ISO-8859-8) | |
327 | |
328 (modify-category-entry (make-char 'hebrew-iso8859-8) ?w) | |
329 | |
330 (let ((c 224)) | |
331 (while (< c 251) | |
332 (modify-syntax-entry (make-char 'hebrew-iso8859-8 c) "w") | |
333 (setq c (1+ c)))) | |
334 (modify-syntax-entry (make-char 'hebrew-iso8859-8 160) "w") ; NBSP | |
335 | |
336 ;; Indian character set (IS 13194 and other Emacs original Indian charsets) | |
337 | |
338 (modify-category-entry (make-char 'indian-is13194) ?i) | |
339 (modify-category-entry (make-char 'indian-2-column) ?I) | |
340 (modify-category-entry (make-char 'indian-1-column) ?I) | |
341 | |
20843 | 342 (let ((deflist |
343 '(;; chars syntax category | |
344 ("(5!"#(B" "w" ?7) ; vowel-modifying diacritical mark | |
345 ; chandrabindu, anuswar, visarga | |
346 ("(5$(B-(52(B" "w" ?1) ; base (independent) vowel | |
347 ("(53(B-(5X(B" "w" ?0) ; consonant | |
348 ("(5Z(B-(5g(B" "w" ?8) ; matra | |
349 ("(5q(B-(5z(B" "w" ?6) ; digit | |
350 )) | |
351 elm chars len syntax category to ch i) | |
352 (while deflist | |
353 (setq elm (car deflist)) | |
354 (setq chars (car elm) | |
355 len (length chars) | |
356 syntax (nth 1 elm) | |
357 category (nth 2 elm) | |
358 i 0) | |
359 (while (< i len) | |
360 (if (= (aref chars i) ?-) | |
361 (setq i (1+ i) | |
362 to (aref chars i)) | |
363 (setq ch (aref chars i) | |
364 to ch)) | |
365 (while (<= ch to) | |
366 (modify-syntax-entry ch syntax) | |
367 (modify-category-entry ch category) | |
368 (setq ch (1+ ch))) | |
369 (setq i (1+ i))) | |
370 (setq deflist (cdr deflist)))) | |
371 | |
372 | |
17052 | 373 ;; Japanese character set (JISX0201-kana, JISX0201-roman, JISX0208, JISX0212) |
374 | |
375 (modify-category-entry (make-char 'katakana-jisx0201) ?k) | |
36688
45b172fa5c17
Add category `j' for katakana-jisx0201. Fix syntaxes of
Kenichi Handa <handa@m17n.org>
parents:
34507
diff
changeset
|
376 (modify-category-entry (make-char 'katakana-jisx0201) ?j) |
17052 | 377 (modify-category-entry (make-char 'latin-jisx0201) ?r) |
378 (modify-category-entry (make-char 'japanese-jisx0208) ?j) | |
379 (modify-category-entry (make-char 'japanese-jisx0212) ?j) | |
17753
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
380 (modify-category-entry (make-char 'katakana-jisx0201) ?\|) |
17052 | 381 (modify-category-entry (make-char 'japanese-jisx0208) ?\|) |
17753
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
382 (modify-category-entry (make-char 'japanese-jisx0212) ?\|) |
17052 | 383 |
384 ;; JISX0208 | |
385 (modify-syntax-entry (make-char 'japanese-jisx0208) "w") | |
386 (modify-syntax-entry (make-char 'japanese-jisx0208 33) "_") | |
387 (modify-syntax-entry (make-char 'japanese-jisx0208 34) "_") | |
388 (modify-syntax-entry (make-char 'japanese-jisx0208 40) "_") | |
389 (let ((chars '(?$B!<(B ?$B!+(B ?$B!,(B ?$B!3(B ?$B!4(B ?$B!5(B ?$B!6(B ?$B!7(B ?$B!8(B ?$B!9(B ?$B!:(B ?$B!;(B))) | |
390 (while chars | |
391 (modify-syntax-entry (car chars) "w") | |
392 (setq chars (cdr chars)))) | |
393 (modify-syntax-entry ?\$B!J(B "($B!K(B") | |
394 (modify-syntax-entry ?\$B!N(B "($B!O(B") | |
395 (modify-syntax-entry ?\$B!P(B "($B!Q(B") | |
396 (modify-syntax-entry ?\$B!V(B "($B!W(B") | |
397 (modify-syntax-entry ?\$B!X(B "($B!Y(B") | |
398 (modify-syntax-entry ?\$B!K(B ")$B!J(B") | |
399 (modify-syntax-entry ?\$B!O(B ")$B!N(B") | |
400 (modify-syntax-entry ?\$B!Q(B ")$B!P(B") | |
401 (modify-syntax-entry ?\$B!W(B ")$B!V(B") | |
402 (modify-syntax-entry ?\$B!Y(B ")$B!X(B") | |
403 | |
404 (modify-category-entry (make-char 'japanese-jisx0208 35) ?A) | |
405 (modify-category-entry (make-char 'japanese-jisx0208 36) ?H) | |
406 (modify-category-entry (make-char 'japanese-jisx0208 37) ?K) | |
407 (modify-category-entry (make-char 'japanese-jisx0208 38) ?G) | |
408 (modify-category-entry (make-char 'japanese-jisx0208 39) ?Y) | |
409 (let ((row 48)) | |
410 (while (< row 127) | |
411 (modify-category-entry (make-char 'japanese-jisx0208 row) ?C) | |
412 (setq row (1+ row)))) | |
17296
dc3f449803f6
Change a category of one Japanese character.
Kenichi Handa <handa@m17n.org>
parents:
17078
diff
changeset
|
413 (modify-category-entry ?$B!<(B ?K) |
dc3f449803f6
Change a category of one Japanese character.
Kenichi Handa <handa@m17n.org>
parents:
17078
diff
changeset
|
414 (let ((chars '(?$B!+(B ?$B!,(B))) |
17052 | 415 (while chars |
416 (modify-category-entry (car chars) ?K) | |
417 (modify-category-entry (car chars) ?H) | |
418 (setq chars (cdr chars)))) | |
419 (let ((chars '(?$B!3(B ?$B!4(B ?$B!5(B ?$B!6(B ?$B!7(B ?$B!8(B ?$B!9(B ?$B!:(B ?$B!;(B))) | |
420 (while chars | |
421 (modify-category-entry (car chars) ?C) | |
422 (setq chars (cdr chars)))) | |
423 | |
424 ;; JISX0212 | |
425 (modify-syntax-entry (make-char 'japanese-jisx0212) "w") | |
426 (modify-syntax-entry (make-char 'japanese-jisx0212 33) "_") | |
427 (modify-syntax-entry (make-char 'japanese-jisx0212 34) "_") | |
428 (modify-syntax-entry (make-char 'japanese-jisx0212 35) "_") | |
429 | |
430 (modify-category-entry (make-char 'japanese-jisx0212 ) ?C) | |
431 | |
432 ;; JISX0201-Kana | |
433 (modify-syntax-entry (make-char 'katakana-jisx0201) "w") | |
36688
45b172fa5c17
Add category `j' for katakana-jisx0201. Fix syntaxes of
Kenichi Handa <handa@m17n.org>
parents:
34507
diff
changeset
|
434 (let ((chars '(?(I!(B ?(I$(B ?(I%(B))) |
17052 | 435 (while chars |
436 (modify-syntax-entry (car chars) ".") | |
437 (setq chars (cdr chars)))) | |
438 | |
36688
45b172fa5c17
Add category `j' for katakana-jisx0201. Fix syntaxes of
Kenichi Handa <handa@m17n.org>
parents:
34507
diff
changeset
|
439 (modify-syntax-entry ?\(I"(B "((I#(B") |
45b172fa5c17
Add category `j' for katakana-jisx0201. Fix syntaxes of
Kenichi Handa <handa@m17n.org>
parents:
34507
diff
changeset
|
440 (modify-syntax-entry ?\(I#(B "((I"(B") |
45b172fa5c17
Add category `j' for katakana-jisx0201. Fix syntaxes of
Kenichi Handa <handa@m17n.org>
parents:
34507
diff
changeset
|
441 |
17052 | 442 ;; Korean character set (KSC5601) |
443 | |
444 (modify-syntax-entry (make-char 'korean-ksc5601) "w") | |
445 (modify-syntax-entry (make-char 'korean-ksc5601 33) "_") | |
446 (modify-syntax-entry (make-char 'korean-ksc5601 34) "_") | |
447 (modify-syntax-entry (make-char 'korean-ksc5601 38) "_") | |
448 (modify-syntax-entry (make-char 'korean-ksc5601 39) "_") | |
449 (modify-syntax-entry (make-char 'korean-ksc5601 40) "_") | |
450 (modify-syntax-entry (make-char 'korean-ksc5601 41) "_") | |
451 | |
452 (modify-category-entry (make-char 'korean-ksc5601) ?h) | |
453 (modify-category-entry (make-char 'korean-ksc5601 35) ?A) | |
454 (modify-category-entry (make-char 'korean-ksc5601 37) ?G) | |
455 (modify-category-entry (make-char 'korean-ksc5601 42) ?H) | |
456 (modify-category-entry (make-char 'korean-ksc5601 43) ?K) | |
457 (modify-category-entry (make-char 'korean-ksc5601 44) ?Y) | |
458 | |
33902
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
459 ;; Latin character set (latin-1,2,3,4,5,8,9) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
460 |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
461 (modify-category-entry (make-char 'latin-iso8859-1) ?l) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
462 (modify-category-entry (make-char 'latin-iso8859-2) ?l) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
463 (modify-category-entry (make-char 'latin-iso8859-3) ?l) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
464 (modify-category-entry (make-char 'latin-iso8859-4) ?l) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
465 (modify-category-entry (make-char 'latin-iso8859-9) ?l) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
466 (modify-category-entry (make-char 'latin-iso8859-14) ?l) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
467 (modify-category-entry (make-char 'latin-iso8859-15) ?l) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
468 |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
469 (modify-category-entry (make-char 'latin-iso8859-1 160) ?\ ) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
470 (modify-category-entry (make-char 'latin-iso8859-2 160) ?\ ) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
471 (modify-category-entry (make-char 'latin-iso8859-3 160) ?\ ) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
472 (modify-category-entry (make-char 'latin-iso8859-4 160) ?\ ) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
473 (modify-category-entry (make-char 'latin-iso8859-9 160) ?\ ) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
474 (modify-category-entry (make-char 'latin-iso8859-14 160) ?\ ) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
475 (modify-category-entry (make-char 'latin-iso8859-15 160) ?\ ) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
476 |
17078
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
477 ;; Lao character set |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
478 |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
479 (modify-category-entry (make-char 'lao) ?o) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
480 |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
481 (let ((deflist '(;; chars syntax category |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
482 ("(1!(B-(1N(B" "w" ?0) ; consonant |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
483 ("(1PRS]`(B-(1d(B" "w" ?1) ; vowel base |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
484 ("(1QT(B-(1W[m(B" "w" ?2) ; vowel upper |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
485 ("(1XY(B" "w" ?3) ; vowel lower |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
486 ("(1h(B-(1l(B" "w" ?4) ; tone mark |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
487 ("(1\(B" "w" ?9) ; semivowel lower |
18561
f3c28fd5118e
Modify docstring of char category
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
488 ("(1p(B-(1y(B" "w" ?6) ; digit |
26885
c151d3ae1794
Fix cateogries of Lao symbols.
Kenichi Handa <handa@m17n.org>
parents:
26013
diff
changeset
|
489 ("(1Of(B" "_" ?5) ; symbol |
17078
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
490 )) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
491 elm chars len syntax category to ch i) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
492 (while deflist |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
493 (setq elm (car deflist)) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
494 (setq chars (car elm) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
495 len (length chars) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
496 syntax (nth 1 elm) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
497 category (nth 2 elm) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
498 i 0) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
499 (while (< i len) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
500 (if (= (aref chars i) ?-) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
501 (setq i (1+ i) |
20843 | 502 to (aref chars i)) |
503 (setq ch (aref chars i) | |
17078
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
504 to ch)) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
505 (while (<= ch to) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
506 (modify-syntax-entry ch syntax) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
507 (modify-category-entry ch category) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
508 (setq ch (1+ ch))) |
20843 | 509 (setq i (1+ i))) |
17078
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
510 (setq deflist (cdr deflist)))) |
874b471d6635
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
511 |
17052 | 512 ;; Thai character set (TIS620) |
513 | |
514 (modify-category-entry (make-char 'thai-tis620) ?t) | |
515 | |
516 (let ((deflist '(;; chars syntax category | |
517 (",T!(B-,TCEG(B-,TN(B" "w" ?0) ; consonant | |
518 (",TDFPRS`(B-,Te(B" "w" ?1) ; vowel base | |
519 (",TQT(B-,TWgn(B" "w" ?2) ; vowel upper | |
520 (",TX(B-,TZ(B" "w" ?3) ; vowel lower | |
521 (",Th(B-,Tm(B" "w" ?4) ; tone mark | |
18561
f3c28fd5118e
Modify docstring of char category
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
522 (",Tp(B-,Ty(B" "w" ?6) ; digit |
f3c28fd5118e
Modify docstring of char category
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
523 (",TOf_oz{(B" "_" ?5) ; symbol |
17052 | 524 )) |
525 elm chars len syntax category to ch i) | |
526 (while deflist | |
527 (setq elm (car deflist)) | |
528 (setq chars (car elm) | |
529 len (length chars) | |
530 syntax (nth 1 elm) | |
531 category (nth 2 elm) | |
532 i 0) | |
533 (while (< i len) | |
534 (if (= (aref chars i) ?-) | |
535 (setq i (1+ i) | |
20843 | 536 to (aref chars i)) |
537 (setq ch (aref chars i) | |
17052 | 538 to ch)) |
539 (while (<= ch to) | |
540 (modify-syntax-entry ch syntax) | |
541 (modify-category-entry ch category) | |
542 (setq ch (1+ ch))) | |
20843 | 543 (setq i (1+ i))) |
17052 | 544 (setq deflist (cdr deflist)))) |
545 | |
17753
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
546 ;; Tibetan character set |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
547 |
24208
6964e11724dc
Set category `q' for all characters
Kenichi Handa <handa@m17n.org>
parents:
23527
diff
changeset
|
548 (modify-category-entry (make-char 'tibetan) ?q) |
6964e11724dc
Set category `q' for all characters
Kenichi Handa <handa@m17n.org>
parents:
23527
diff
changeset
|
549 (modify-category-entry (make-char 'tibetan-1-column) ?q) |
17753
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
550 |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
551 (let ((deflist '(;; chars syntax category |
29362
038c13f83357
Fix syntax/category setting of Tibetan characters.
Kenichi Handa <handa@m17n.org>
parents:
27691
diff
changeset
|
552 ("$(7"!(B-$(7"J"K(B" "w" ?0) ; consonant |
038c13f83357
Fix syntax/category setting of Tibetan characters.
Kenichi Handa <handa@m17n.org>
parents:
27691
diff
changeset
|
553 ("$(7#!(B-$(7#J#K#L#M!"!#(B" "w" ?0) ; |
17753
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
554 ("$(7$!(B-$(7$e(B" "w" ?0) ; |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
555 ("$(7%!(B-$(7%u(B" "w" ?0) ; |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
556 ("$(7"S"["\"]"^"a(B" "w" ?2) ; upper vowel |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
557 ("$(7"_"c"d"g"h"i"j"k"l(B" "w" ?2) ; upper modifier |
29362
038c13f83357
Fix syntax/category setting of Tibetan characters.
Kenichi Handa <handa@m17n.org>
parents:
27691
diff
changeset
|
558 ("$(7!I"Q"R"U"e!e!g(B" "w" ?3) ; lowel vowel/modifier |
17753
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
559 ("$(7!P(B-$(7!Y!Z(B-$(7!c(B" "w" ?6) ; digit |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
560 ("$(7!;!=(B-$(7!B!D"`(B" "." ?|) ; line-break char |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
561 ("$(8!;!=!?!@!A!D"`(B" "." ?|) ; |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
562 ("$(7!8!;!=(B-$(7!B!D"`!m!d(B" "." ?>) ; prohibition |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
563 ("$(8!;!=!?!@!A!D"`(B" "." ?>) ; |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
564 ("$(7!0(B-$(7!:!l#R#S"f(B" "." ?<) ; prohibition |
29362
038c13f83357
Fix syntax/category setting of Tibetan characters.
Kenichi Handa <handa@m17n.org>
parents:
27691
diff
changeset
|
565 ("$(7!C!E(B-$(7!H!J(B-$(7!O!f!h(B-$(7!k!n!o#O#P(B-$(7#`(B" "." ?q) ; others |
17753
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
566 )) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
567 elm chars len syntax category to ch i) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
568 (while deflist |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
569 (setq elm (car deflist)) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
570 (setq chars (car elm) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
571 len (length chars) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
572 syntax (nth 1 elm) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
573 category (nth 2 elm) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
574 i 0) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
575 (while (< i len) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
576 (if (= (aref chars i) ?-) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
577 (setq i (1+ i) |
20843 | 578 to (aref chars i)) |
579 (setq ch (aref chars i) | |
17753
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
580 to ch)) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
581 (while (<= ch to) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
582 (modify-syntax-entry ch syntax) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
583 (modify-category-entry ch category) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
584 (setq ch (1+ ch))) |
20843 | 585 (setq i (1+ i))) |
17753
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
586 (setq deflist (cdr deflist)))) |
de6be7f3b904
Set syntax and category for Devanagari, Thai, and
Kenichi Handa <handa@m17n.org>
parents:
17296
diff
changeset
|
587 |
17052 | 588 ;; Vietnamese character set |
589 | |
590 (let ((lower (make-char 'vietnamese-viscii-lower)) | |
591 (upper (make-char 'vietnamese-viscii-upper))) | |
592 (modify-syntax-entry lower "w") | |
593 (modify-syntax-entry upper "w") | |
594 (modify-category-entry lower ?v) | |
595 (modify-category-entry upper ?v) | |
596 (modify-category-entry lower ?l) ; To make a word with | |
597 (modify-category-entry upper ?l) ; latin characters. | |
598 ) | |
599 | |
27691
5ed8dd27c116
Setup case table for Vietnamese.
Kenichi Handa <handa@m17n.org>
parents:
26885
diff
changeset
|
600 (let ((tbl (standard-case-table)) |
5ed8dd27c116
Setup case table for Vietnamese.
Kenichi Handa <handa@m17n.org>
parents:
26885
diff
changeset
|
601 (i 32)) |
5ed8dd27c116
Setup case table for Vietnamese.
Kenichi Handa <handa@m17n.org>
parents:
26885
diff
changeset
|
602 (while (< i 128) |
5ed8dd27c116
Setup case table for Vietnamese.
Kenichi Handa <handa@m17n.org>
parents:
26885
diff
changeset
|
603 (set-case-syntax-pair (make-char 'vietnamese-viscii-upper i) |
5ed8dd27c116
Setup case table for Vietnamese.
Kenichi Handa <handa@m17n.org>
parents:
26885
diff
changeset
|
604 (make-char 'vietnamese-viscii-lower i) |
5ed8dd27c116
Setup case table for Vietnamese.
Kenichi Handa <handa@m17n.org>
parents:
26885
diff
changeset
|
605 tbl) |
5ed8dd27c116
Setup case table for Vietnamese.
Kenichi Handa <handa@m17n.org>
parents:
26885
diff
changeset
|
606 (setq i (1+ i)))) |
5ed8dd27c116
Setup case table for Vietnamese.
Kenichi Handa <handa@m17n.org>
parents:
26885
diff
changeset
|
607 |
33902
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
608 ;; Unicode (mule-unicode-0100-24ff) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
609 |
34507
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
610 (let ((tbl (standard-case-table)) c) |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
611 |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
612 ;; In some languages, U+0049 LATIN CAPITAL LETTER I and U+0131 LATIN |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
613 ;; SMALL LETTER DOTLESS I make a case pair, and so do U+0130 LATIN |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
614 ;; CAPITAL LETTER I WITH DOT ABOVE and U+0069 LATIN SMALL LETTER I. |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
615 ;; Thus we have to check language-environment to handle casing |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
616 ;; correctly. Currently only I<->i is available. |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
617 |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
618 ;; case-syntax-pair's are not yet given for Latin Extendet-B |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
619 |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
620 ;; Latin Extended-A, Latin Extended-B |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
621 (setq c #x0100) |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
622 (while (<= c #x0233) |
33902
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
623 (modify-category-entry (decode-char 'ucs c) ?l) |
34507
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
624 (and (or (<= c #x012e) |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
625 (and (>= c #x014a) (<= c #x0177))) |
33902
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
626 (zerop (% c 2)) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
627 (set-case-syntax-pair |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
628 (decode-char 'ucs c) (decode-char 'ucs (1+ c)) tbl)) |
34507
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
629 (and (>= c #x013a) |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
630 (<= c #x0148) |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
631 (zerop (% c 2)) |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
632 (set-case-syntax-pair |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
633 (decode-char 'ucs (1- c)) (decode-char 'ucs c) tbl)) |
33902
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
634 (setq c (1+ c))) |
34507
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
635 (set-case-syntax-pair ?$,1 R(B ?$,1 S(B tbl) |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
636 (set-case-syntax-pair ?$,1 T(B ?$,1 U(B tbl) |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
637 (set-case-syntax-pair ?$,1 V(B ?$,1 W(B tbl) |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
638 ; (set-case-syntax-pair ?$,1!8(B ?,A(B tbl) ; these two have different length! |
33902
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
639 (set-case-syntax-pair ?$,1!9(B ?$,1!:(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
640 (set-case-syntax-pair ?$,1!;(B ?$,1!<(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
641 (set-case-syntax-pair ?$,1!=(B ?$,1!>(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
642 |
34507
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
643 ;; Latin Extended Additional |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
644 (setq c #x1e00) |
33902
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
645 (while (<= c #x1ef9) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
646 (modify-category-entry (decode-char 'ucs c) ?l) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
647 (and (zerop (% c 2)) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
648 (or (<= c #x1e94) (>= c #x1ea0)) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
649 (set-case-syntax-pair |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
650 (decode-char 'ucs c) (decode-char 'ucs (1+ c)) tbl)) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
651 (setq c (1+ c))) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
652 |
34507
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
653 ;; Greek |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
654 (setq c #x0370) |
33902
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
655 (while (<= c #x03ff) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
656 (modify-category-entry (decode-char 'ucs c) ?g) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
657 (if (or (and (>= c #x0391) (<= c #x03a1)) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
658 (and (>= c #x03a3) (<= c #x03ab))) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
659 (set-case-syntax-pair |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
660 (decode-char 'ucs c) (decode-char 'ucs (+ c 32)) tbl)) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
661 (and (>= c #x03da) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
662 (<= c #x03ee) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
663 (zerop (% c 2)) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
664 (set-case-syntax-pair |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
665 (decode-char 'ucs c) (decode-char 'ucs (1+ c)) tbl)) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
666 (setq c (1+ c))) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
667 (set-case-syntax-pair ?$,1&f(B ?$,1',(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
668 (set-case-syntax-pair ?$,1&h(B ?$,1'-(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
669 (set-case-syntax-pair ?$,1&i(B ?$,1'.(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
670 (set-case-syntax-pair ?$,1&j(B ?$,1'/(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
671 (set-case-syntax-pair ?$,1&l(B ?$,1'L(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
672 (set-case-syntax-pair ?$,1&n(B ?$,1'M(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
673 (set-case-syntax-pair ?$,1&o(B ?$,1'N(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
674 |
34507
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
675 ;; Greek Extended |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
676 (setq c #x1f00) |
33902
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
677 (while (<= c #x1fff) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
678 (modify-category-entry (decode-char 'ucs c) ?g) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
679 (and (<= (logand c #x000f) 7) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
680 (<= c #x1fa7) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
681 (not (memq c '(#x1f50 #x1f52 #x1f54 #x1f56))) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
682 (/= (logand c #x00f0) 7) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
683 (set-case-syntax-pair |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
684 (decode-char 'ucs (+ c 8)) (decode-char 'ucs c) tbl)) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
685 (setq c (1+ c))) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
686 (set-case-syntax-pair ?$,1qx(B ?$,1qp(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
687 (set-case-syntax-pair ?$,1qy(B ?$,1qq(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
688 (set-case-syntax-pair ?$,1qz(B ?$,1q0(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
689 (set-case-syntax-pair ?$,1q{(B ?$,1q1(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
690 (set-case-syntax-pair ?$,1q|(B ?$,1qs(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
691 (set-case-syntax-pair ?$,1r((B ?$,1q2(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
692 (set-case-syntax-pair ?$,1r)(B ?$,1q3(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
693 (set-case-syntax-pair ?$,1r*(B ?$,1q4(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
694 (set-case-syntax-pair ?$,1r+(B ?$,1q5(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
695 (set-case-syntax-pair ?$,1r,(B ?$,1r#(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
696 (set-case-syntax-pair ?$,1r8(B ?$,1r0(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
697 (set-case-syntax-pair ?$,1r9(B ?$,1r1(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
698 (set-case-syntax-pair ?$,1r:(B ?$,1q6(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
699 (set-case-syntax-pair ?$,1r;(B ?$,1q7(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
700 (set-case-syntax-pair ?$,1rH(B ?$,1r@(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
701 (set-case-syntax-pair ?$,1rI(B ?$,1rA(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
702 (set-case-syntax-pair ?$,1rJ(B ?$,1q:(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
703 (set-case-syntax-pair ?$,1rK(B ?$,1q;(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
704 (set-case-syntax-pair ?$,1rL(B ?$,1rE(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
705 (set-case-syntax-pair ?$,1rX(B ?$,1q8(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
706 (set-case-syntax-pair ?$,1rY(B ?$,1q9(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
707 (set-case-syntax-pair ?$,1rZ(B ?$,1q<(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
708 (set-case-syntax-pair ?$,1r[(B ?$,1q=(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
709 (set-case-syntax-pair ?$,1r\(B ?$,1rS(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
710 |
34507
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
711 ;; cyrillic |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
712 (setq c #x0400) |
33902
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
713 (while (<= c #x04ff) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
714 (modify-category-entry (decode-char 'ucs c) ?y) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
715 (and (>= c #x0400) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
716 (<= c #x040f) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
717 (set-case-syntax-pair |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
718 (decode-char 'ucs c) (decode-char 'ucs (+ c 80)) tbl)) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
719 (and (>= c #x0410) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
720 (<= c #x042f) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
721 (set-case-syntax-pair |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
722 (decode-char 'ucs c) (decode-char 'ucs (+ c 32)) tbl)) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
723 (and (zerop (% c 2)) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
724 (or (and (>= c #x0460) (<= c #x0480)) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
725 (and (>= c #x048c) (<= c #x04be)) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
726 (and (>= c #x04d0) (<= c #x04f4))) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
727 (set-case-syntax-pair |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
728 (decode-char 'ucs c) (decode-char 'ucs (1+ c)) tbl)) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
729 (setq c (1+ c))) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
730 (set-case-syntax-pair ?$,1*!(B ?$,1*"(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
731 (set-case-syntax-pair ?$,1*#(B ?$,1*$(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
732 (set-case-syntax-pair ?$,1*'(B ?$,1*((B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
733 (set-case-syntax-pair ?$,1*+(B ?$,1*,(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
734 (set-case-syntax-pair ?$,1*X(B ?$,1*Y(B tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
735 |
34507
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
736 ;; general punctuation |
ed8ea5cf198b
Fix cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
33902
diff
changeset
|
737 (setq c #x2000) |
33902
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
738 (while (<= c #x200b) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
739 (set-case-syntax c " " tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
740 (setq c (1+ c))) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
741 (setq c #x2010) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
742 (while (<= c #x2027) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
743 (set-case-syntax c "_" tbl) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
744 (setq c (1+ c))) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
745 ) |
aacccd8ad977
Specify cases and syntaxes for mule-unicode-0100-24ff.
Kenichi Handa <handa@m17n.org>
parents:
31664
diff
changeset
|
746 |
17052 | 747 |
748 ;;; Setting word boundary. | |
749 | |
750 (setq word-combining-categories | |
751 '((?l . ?l))) | |
752 | |
753 (setq word-separating-categories ; (2-byte character sets) | |
754 '((?A . ?K) ; Alpha numeric - Katakana | |
755 (?A . ?C) ; Alpha numeric - Chinese | |
756 (?H . ?A) ; Hiragana - Alpha numeric | |
757 (?H . ?K) ; Hiragana - Katakana | |
758 (?H . ?C) ; Hiragana - Chinese | |
759 (?K . ?A) ; Katakana - Alpha numeric | |
760 (?K . ?C) ; Katakana - Chinese | |
761 (?C . ?A) ; Chinese - Alpha numeric | |
762 (?C . ?K) ; Chinese - Katakana | |
763 )) | |
20734
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
764 |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
765 |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
766 ;; For each character set, put the information of the most proper |
24782
8f65cd6729b5
Typo fixed; prefered->preferred.
Kenichi Handa <handa@m17n.org>
parents:
24256
diff
changeset
|
767 ;; coding system to encode it by `preferred-coding-system' property. |
20734
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
768 |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
769 (let ((l '((latin-iso8859-1 . iso-latin-1) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
770 (latin-iso8859-2 . iso-latin-2) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
771 (latin-iso8859-3 . iso-latin-3) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
772 (latin-iso8859-4 . iso-latin-4) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
773 (thai-tis620 . thai-tis620) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
774 (greek-iso8859-7 . greek-iso-8bit) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
775 (arabic-iso8859-6 . iso-2022-7bit) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
776 (hebrew-iso8859-8 . hebrew-iso-8bit) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
777 (katakana-jisx0201 . japanese-shift-jis) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
778 (latin-jisx0201 . japanese-shift-jis) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
779 (cyrillic-iso8859-5 . cyrillic-iso-8bit) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
780 (latin-iso8859-9 . iso-latin-5) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
781 (japanese-jisx0208-1978 . iso-2022-jp) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
782 (chinese-gb2312 . cn-gb-2312) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
783 (japanese-jisx0208 . iso-2022-jp) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
784 (korean-ksc5601 . iso-2022-kr) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
785 (japanese-jisx0212 . iso-2022-jp) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
786 (chinese-cns11643-1 . iso-2022-cn) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
787 (chinese-cns11643-2 . iso-2022-cn) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
788 (chinese-big5-1 . chinese-big5) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
789 (chinese-big5-2 . chinese-big5) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
790 (chinese-sisheng . iso-2022-7bit) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
791 (ipa . iso-2022-7bit) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
792 (vietnamese-viscii-lower . vietnamese-viscii) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
793 (vietnamese-viscii-upper . vietnamese-viscii) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
794 (arabic-digit . iso-2022-7bit) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
795 (arabic-1-column . iso-2022-7bit) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
796 (ascii-right-to-left . iso-2022-7bit) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
797 (lao . lao) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
798 (arabic-2-column . iso-2022-7bit) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
799 (indian-is13194 . devanagari) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
800 (indian-1-column . devanagari) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
801 (tibetan-1-column . tibetan) |
24256
47e6aa168a66
Let ethiopic use iso-2022-7bit.
Kenichi Handa <handa@m17n.org>
parents:
24208
diff
changeset
|
802 (ethiopic . iso-2022-7bit) |
20734
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
803 (chinese-cns11643-3 . iso-2022-cn) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
804 (chinese-cns11643-4 . iso-2022-cn) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
805 (chinese-cns11643-5 . iso-2022-cn) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
806 (chinese-cns11643-6 . iso-2022-cn) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
807 (chinese-cns11643-7 . iso-2022-cn) |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
808 (indian-2-column . devanagari) |
26013 | 809 (tibetan . tibetan) |
810 (latin-iso8859-14 . iso-latin-8) | |
811 (latin-iso8859-15 . iso-latin-9)))) | |
20734
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
812 (while l |
24782
8f65cd6729b5
Typo fixed; prefered->preferred.
Kenichi Handa <handa@m17n.org>
parents:
24256
diff
changeset
|
813 (put-charset-property (car (car l)) 'preferred-coding-system (cdr (car l))) |
20734
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
814 (setq l (cdr l)))) |
23493 | 815 |
816 | |
23527
06e8c3b9deec
Setup charset property nospace-between-words.
Kenichi Handa <handa@m17n.org>
parents:
23493
diff
changeset
|
817 ;; Setup auto-fill-chars for charsets that should invoke auto-filling. |
06e8c3b9deec
Setup charset property nospace-between-words.
Kenichi Handa <handa@m17n.org>
parents:
23493
diff
changeset
|
818 ;; SPACE and NEWLIE are already set. Also put `nospace-between-words' |
06e8c3b9deec
Setup charset property nospace-between-words.
Kenichi Handa <handa@m17n.org>
parents:
23493
diff
changeset
|
819 ;; property to the charsets. |
23493 | 820 (let ((l '(katakana-jisx0201 |
821 japanese-jisx0208 japanese-jisx0212 | |
822 chinese-gb2312 chinese-big5-1 chinese-big5-2))) | |
823 (while l | |
824 (aset auto-fill-chars (make-char (car l)) t) | |
23527
06e8c3b9deec
Setup charset property nospace-between-words.
Kenichi Handa <handa@m17n.org>
parents:
23493
diff
changeset
|
825 (put-charset-property (car l) 'nospace-between-words t) |
23493 | 826 (setq l (cdr l)))) |
20734
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
827 |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
828 ;;; Local Variables: |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
829 ;;; coding: iso-2022-7bit |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
830 ;;; End: |
179dbdbc3882
Put `prefered-coding-system'
Kenichi Handa <handa@m17n.org>
parents:
20247
diff
changeset
|
831 |
38414
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
36688
diff
changeset
|
832 ;;; characters.el ends here |