Mercurial > emacs
annotate lisp/language/tibetan.el @ 23806:b59294a6167e
(dumpglyphs): Use unsigned char arrays.
Use FONT_MAX_WIDTH to detect and fudge proportional fonts
for various languages.
Compensate for fonts that have underhangs (e.g., Thai).
author | Geoff Voelker <voelker@cs.washington.edu> |
---|---|
date | Thu, 03 Dec 1998 00:06:03 +0000 |
parents | 5c0a4ed13900 |
children | 9895d3c3e7ce |
rev | line source |
---|---|
23158
5c0a4ed13900
Add coding: local variable, to avoid bootstrapping problem
Paul Eggert <eggert@twinsun.com>
parents:
22983
diff
changeset
|
1 ;;; tibetan.el --- Support for Tibetan language -*- coding: iso-2022-7bit; -*- |
17301 | 2 |
3 ;; Copyright (C) 1997 Electrotechnical Laboratory, JAPAN. | |
18377
8b4a66c66dd6
Change copyright notice.
Richard M. Stallman <rms@gnu.org>
parents:
18309
diff
changeset
|
4 ;; Licensed to the Free Software Foundation. |
17301 | 5 |
6 ;; Keywords: multilingual, Tibetan | |
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 | |
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. | |
24 | |
25 ;; Author: Toru TOMABECHI, <Toru.Tomabechi@orient.unil.ch> | |
26 | |
27 ;; Created: Feb. 17. 1997 | |
28 | |
29 ;; History: | |
30 ;; 1997.03.13 Modification for special signs and punctuations. | |
31 | |
32 ;;; Code: | |
33 | |
34 ;;; Tibetan Character set. | |
35 ;;; \x2130 -- \x234a is a subset of Unicode v.2 \x0f00 - \x0fb9 | |
36 ;;; with a slight modification. And there are some subjoined | |
37 ;;; consonants which are not specified in Unicode. | |
38 ;;; I hope I can add missing characters later. | |
39 ;;; | |
40 ;;; 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | |
41 ;;;2120 // $(7!!(B $(7!"(B $(7!#(B $(7!$(B $(7!%(B $(7!&(B $(7!'(B $(7!((B $(7!)(B $(7!*(B $(7!+(B $(7!,(B $(7!-(B $(7!.(B $(7!/(B ; | |
42 ;;;2130 $(7!0(B $(7!1(B $(7!2(B $(7!3(B $(7!4(B $(7!5(B $(7!6(B $(7!7(B $(7!8(B $(7!9(B $(7!:(B $(7!;(B $(7!<(B $(7!=(B $(7!>(B $(7!?(B ; Punctuations, | |
43 ;;;2140 $(7!@(B $(7!A(B $(7!B(B $(7!C(B $(7!D(B $(7!E(B $(7!F(B $(7!G(B $(7!H(B $(7!I(B $(7!J(B $(7!K(B $(7!L(B $(7!M(B $(7!N(B $(7!O(B ; Digits and | |
44 ;;;2150 $(7!P(B $(7!Q(B $(7!R(B $(7!S(B $(7!T(B $(7!U(B $(7!V(B $(7!W(B $(7!X(B $(7!Y(B $(7!Z(B $(7![(B $(7!\(B $(7!](B $(7!^(B $(7!_(B ; Special signs. | |
45 ;;;2160 $(7!`(B $(7!a(B $(7!b(B $(7!c(B $(7!d(B $(7!e(B $(7!f(B $(7!g(B $(7!h(B $(7!i(B $(7!j(B $(7!k(B $(7!l(B $(7!m(B $(7!n(B $(7!o(B ; | |
46 ;;;2170 $(7!p(B $(7!q(B $(7!r(B $(7!s(B $(7!t(B $(7!u(B $(7!v(B $(7!w(B $(7!x(B $(7!y(B $(7!z(B $(7!{(B $(7!|(B $(7!}(B $(7!~(B // ; | |
47 ;;; | |
48 ;;; 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | |
49 ;;;2220 // $(7"!(B $(7""(B $(7"#(B $(7"$(B $(7"%(B $(7"&(B $(7"'(B $(7"((B $(7")(B $(7"*(B $(7"+(B $(7",(B $(7"-(B $(7".(B $(7"/(B ; Base consonants | |
50 ;;;2230 $(7"0(B $(7"1(B $(7"2(B $(7"3(B $(7"4(B $(7"5(B $(7"6(B $(7"7(B $(7"8(B $(7"9(B $(7":(B $(7";(B $(7"<(B $(7"=(B $(7">(B $(7"?(B ; and | |
51 ;;;2240 $(7"@(B $(7"A(B $(7"B(B $(7"C(B $(7"D(B $(7"E(B $(7"F(B $(7"G(B $(7"H(B $(7"I(B $(7"J(B $(7"K(B $(7"L(B $(7"M(B $(7"N(B $(7"O(B ; Vowel signs. | |
52 ;;;2250 $(7"P(B $(7"Q(B $(7"R(B $(7"S(B $(7"T(B $(7"U(B $(7"V(B $(7"W(B $(7"X(B $(7"Y(B $(7"Z(B $(7"[(B $(7"\(B $(7"](B $(7"^(B $(7"_(B ; (\x2251 = vowel a) | |
53 ;;;2260 $(7"`(B $(7"a(B $(7"b(B $(7"c(B $(7"d(B $(7"e(B $(7"f(B $(7"g(B $(7"h(B $(7"i(B $(7"j(B $(7"k(B $(7"l(B $(7"m(B $(7"n(B $(7"o(B ; Long vowels and | |
54 ;;;2270 $(7"p(B $(7"q(B $(7"r(B $(7"s(B $(7"t(B $(7"u(B $(7"v(B $(7"w(B $(7"x(B $(7"y(B $(7"z(B $(7"{(B $(7"|(B $(7"}(B $(7"~(B // ; vocalic r, l are | |
55 ;;; ; not atomically | |
56 ;;; ; encoded. | |
57 ;;; 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | |
58 ;;;2320 // $(7#!(B $(7#"(B $(7##(B $(7#$(B $(7#%(B $(7#&(B $(7#'(B $(7#((B $(7#)(B $(7#*(B $(7#+(B $(7#,(B $(7#-(B $(7#.(B $(7#/(B ; Subjoined consonants | |
59 ;;;2330 $(7#0(B $(7#1(B $(7#2(B $(7#3(B $(7#4(B $(7#5(B $(7#6(B $(7#7(B $(7#8(B $(7#9(B $(7#:(B $(7#;(B $(7#<(B $(7#=(B $(7#>(B $(7#?(B ; | |
60 ;;;2340 $(7#@(B $(7#A(B $(7#B(B $(7#C(B $(7#D(B $(7#E(B $(7#F(B $(7#G(B $(7#H(B $(7#I(B $(7#J(B $(7#K(B $(7#L(B $(7#M(B $(7#N(B $(7#O(B ; 'a chung (\x2341)is | |
61 ;;; ; here, | |
62 ;;; ; while in Unicode | |
63 ;;; ; it is classified | |
64 ;;; ; as a vowel sign | |
65 ;;; ; (\x0f71). | |
66 ;;; | |
67 ;;;2350 $(7#P(B $(7#Q(B $(7#R(B $(7#S(B $(7#T(B $(7#U(B $(7#V(B $(7#W(B $(7#X(B $(7#Y(B $(7#Z(B $(7#[(B $(7#\(B $(7#](B $(7#^(B $(7#_(B ; Hereafter, the chars | |
68 ;;;2360 $(7#`(B $(7#a(B $(7#b(B $(7#c(B $(7#d(B $(7#e(B $(7#f(B $(7#g(B $(7#h(B $(7#i(B $(7#j(B $(7#k(B $(7#l(B $(7#m(B $(7#n(B $(7#o(B ; are not specified | |
69 ;;;2370 $(7#p(B $(7#q(B $(7#r(B $(7#s(B $(7#t(B $(7#u(B $(7#v(B $(7#w(B $(7#x(B $(7#y(B $(7#z(B $(7#{(B $(7#|(B $(7#}(B $(7#~(B // ; in Unicode. | |
70 ;;; ; The character \x2351 | |
71 ;;; ; is not used in our | |
72 ;;; ; implementation. | |
73 ;;; 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | |
74 ;;;2420 // $(7$!(B $(7$"(B $(7$#(B $(7$$(B $(7$%(B $(7$&(B $(7$'(B $(7$((B $(7$)(B $(7$*(B $(7$+(B $(7$,(B $(7$-(B $(7$.(B $(7$/(B ; Precomposed | |
75 ;;;2430 $(7$0(B $(7$1(B $(7$2(B $(7$3(B $(7$4(B $(7$5(B $(7$6(B $(7$7(B $(7$8(B $(7$9(B $(7$:(B $(7$;(B $(7$<(B $(7$=(B $(7$>(B $(7$?(B ; consonants for | |
76 ;;;2440 $(7$@(B $(7$A(B $(7$B(B $(7$C(B $(7$D(B $(7$E(B $(7$F(B $(7$G(B $(7$H(B $(7$I(B $(7$J(B $(7$K(B $(7$L(B $(7$M(B $(7$N(B $(7$O(B ; ordinary Tibetan. | |
77 ;;;2450 $(7$P(B $(7$Q(B $(7$R(B $(7$S(B $(7$T(B $(7$U(B $(7$V(B $(7$W(B $(7$X(B $(7$Y(B $(7$Z(B $(7$[(B $(7$\(B $(7$](B $(7$^(B $(7$_(B ; They are decomposed | |
78 ;;;2460 $(7$`(B $(7$a(B $(7$b(B $(7$c(B $(7$d(B $(7$e(B $(7$f(B $(7$g(B $(7$h(B $(7$i(B $(7$j(B $(7$k(B $(7$l(B $(7$m(B $(7$n(B $(7$o(B ; into base and | |
79 ;;;2470 $(7$p(B $(7$q(B $(7$r(B $(7$s(B $(7$t(B $(7$u(B $(7$v(B $(7$w(B $(7$x(B $(7$y(B $(7$z(B $(7${(B $(7$|(B $(7$}(B $(7$~(B // ; subjoined consonants | |
80 ;;; ; when written on a | |
81 ;;; 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F ; file in Tibetan | |
82 ;;;2520 // $(7%!(B $(7%"(B $(7%#(B $(7%$(B $(7%%(B $(7%&(B $(7%'(B $(7%((B $(7%)(B $(7%*(B $(7%+(B $(7%,(B $(7%-(B $(7%.(B $(7%/(B ; coding system. | |
83 ;;;2530 $(7%0(B $(7%1(B $(7%2(B $(7%3(B $(7%4(B $(7%5(B $(7%6(B $(7%7(B $(7%8(B $(7%9(B $(7%:(B $(7%;(B $(7%<(B $(7%=(B $(7%>(B $(7%?(B ; | |
84 ;;;2540 $(7%@(B $(7%A(B $(7%B(B $(7%C(B $(7%D(B $(7%E(B $(7%F(B $(7%G(B $(7%H(B $(7%I(B $(7%J(B $(7%K(B $(7%L(B $(7%M(B $(7%N(B $(7%O(B ; | |
85 ;;;2550 $(7%P(B $(7%Q(B $(7%R(B $(7%S(B $(7%T(B $(7%U(B $(7%V(B $(7%W(B $(7%X(B $(7%Y(B $(7%Z(B $(7%[(B $(7%\(B $(7%](B $(7%^(B $(7%_(B ; | |
86 ;;;2560 $(7%`(B $(7%a(B $(7%b(B $(7%c(B $(7%d(B $(7%e(B $(7%f(B $(7%g(B $(7%h(B $(7%i(B $(7%j(B $(7%k(B $(7%l(B $(7%m(B $(7%n(B $(7%o(B ; | |
87 ;;;2570 $(7%p(B $(7%q(B $(7%r(B $(7%s(B $(7%t(B $(7%u(B $(7%v(B $(7%w(B $(7%x(B $(7%y(B $(7%z(B $(7%{(B $(7%|(B $(7%}(B $(7%~(B // ; | |
88 ;;; | |
89 | |
90 | |
91 (make-coding-system | |
20739
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
92 'tibetan-iso-8bit 2 ?Q |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
93 "8-bit encoding for ASCII (MSB=0) and TIBETAN (MSB=1)" |
20739
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
94 '(ascii tibetan nil nil |
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
95 nil nil) |
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
96 '((safe-charsets ascii tibetan) |
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
97 (post-read-conversion . tibetan-post-read-conversion) |
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
98 (pre-write-conversion . tibetan-pre-write-conversion))) |
17301 | 99 |
20739
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
100 (define-coding-system-alias 'tibetan 'tibetan-iso-8bit) |
17301 | 101 |
102 (set-language-info-alist | |
22983
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
20739
diff
changeset
|
103 "Tibetan" '((charset tibetan tibetan-1-column) |
20739
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
104 (coding-system tibetan-iso-8bit) |
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
105 (coding-priority iso-2022-7bit tibetan-iso-8bit) |
22983
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
20739
diff
changeset
|
106 (input-method . "tibetan-wylie") |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
20739
diff
changeset
|
107 (features tibet-util) |
17301 | 108 (documentation . t) |
109 (sample-text . | |
22983
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
20739
diff
changeset
|
110 "Tibetan (2$(7"70"](B1$(7"2$(8!;(B2$(7%P`"Q(B1$(7"2$(8!;(B) 2$(7#RP#SP#S(B1$(7!>"7(B2$(7$P`"Q(B1$(8!;(B2$(7"E0"S(B1$(7"G$(8!;$(7"7(B2$(7"20"[(B1$(8!;(B2$(7"D0"[(B1$(7"#"G!>(B2$(7"I0"]0"_(B1$(8!;(B2$(7"9`"Q(B1$(8!;(B2$(7"/0"S(B1$(8!;(B2$(7"5`"Q(B12$(7#2`#90"[(B1$(8!;(B2$(7"H`#A`"U0"c(B1$(7!>(B"))) |
17301 | 111 |
112 | |
113 ;;; | |
114 ;;; Definitions of conversion data. | |
115 ;;; | |
116 | |
117 | |
118 ;;; alists for tibetan char <-> transcription conversion | |
119 ;;; longer transcription should come first | |
120 (defconst tibetan-consonant-transcription-alist | |
121 '(("tsh" . "$(7";(B") | |
122 ("dzh" . "$(7"=(B") | |
123 ("kSH" . "$(7"J(B") | |
124 ("kh" . "$(7""(B") | |
125 ("gh" . "$(7"$(B") | |
126 ("ng" . "$(7"%(B") | |
127 ("ch" . "$(7"'(B") | |
128 ("ny" . "$(7"*(B") | |
129 ("TH" . "$(7",(B") | |
130 ("DH" . "$(7".(B") | |
131 ("th" . "$(7"1(B") | |
132 ("dh" . "$(7"3(B") | |
133 ("ph" . "$(7"6(B") | |
134 ("bh" . "$(7"8(B") | |
135 ("ts" . "$(7":(B") | |
136 ("dz" . "$(7"<(B") | |
137 ("zh" . "$(7"?(B") | |
138 ("sh" . "$(7"E(B") | |
139 ("SH" . "$(7"F(B") | |
140 ("k" . "$(7"!(B") | |
141 ("g" . "$(7"#(B") | |
142 ("c" . "$(7"&(B") | |
143 ("j" . "$(7"((B") | |
144 ("T" . "$(7"+(B") | |
145 ("D" . "$(7"-(B") | |
146 ("N" . "$(7"/(B") | |
147 ("t" . "$(7"0(B") | |
148 ("d" . "$(7"2(B") | |
149 ("n" . "$(7"4(B") | |
150 ("p" . "$(7"5(B") | |
151 ("b" . "$(7"7(B") | |
152 ("m" . "$(7"9(B") | |
153 ("w" . "$(7">(B") | |
154 ("z" . "$(7"@(B") | |
155 ("'" . "$(7"A(B") | |
156 ("y" . "$(7"B(B") | |
157 ("r" . "$(7"C(B") | |
158 ("l" . "$(7"D(B") | |
159 ("s" . "$(7"G(B") | |
160 ("h" . "$(7"H(B") | |
161 ("H" . "$(7"H(B") | |
162 ("A" . "$(7"I(B"))) | |
163 | |
164 | |
165 (defconst tibetan-vowel-transcription-alist | |
166 '(("ai" . "$(7"\(B") | |
167 ("au" . "$(7"^(B") | |
168 ("ee" . "$(7"\(B") | |
169 ("oo" . "$(7"^(B") | |
170 ("a" . "$(7"Q(B") ; invisible vowel sign (\x2251) | |
171 ("i" . "$(7"S(B") | |
172 ("u" . "$(7"U(B") | |
173 ("e" . "$(7"[(B") | |
174 ("o" . "$(7"](B") | |
175 ("E" . "$(7"\(B") | |
176 ("O" . "$(7"^(B") | |
177 ("I" . "$(7"a(B") | |
178 ("M" . "$(7"_(B") | |
179 ("~" . "$(7"c(B") ; not specified in Ext.wylie | |
180 ("`" . "$(7"d(B") ; idem. | |
181 ("," . "$(7"e(B") ; idem. | |
182 ("v" . "$(7"g(B") ; idem. | |
183 ("V" . "$(7"h(B") ; idem. | |
184 ("x" . "$(7"i(B") ; idem. | |
185 ("X" . "$(7"j(B") ; idem. | |
186 ("q" . "$(7"k(B") ; idem. | |
187 ("Q" . "$(7"l(B") ; idem. | |
188 ("_o" . "$(7!g(B") ; idem. | |
189 ("_O" . "$(7!e(B") ; idem. | |
190 ("_/" . "$(7!I(B") ; idem. | |
191 )) | |
192 | |
193 (defconst tibetan-precomposed-transcription-alist | |
194 '(("phyw" . "$(7$G(B") | |
195 ("tshw" . "$(7$)(B") | |
196 ("rtsw" . "$(7%.(B") | |
197 ("khw" . "$(7$"(B") | |
198 ("nyw" . "$(7$%(B") | |
199 ("tsw" . "$(7$((B") | |
200 ("zhw" . "$(7$*(B") | |
201 ("shw" . "$(7$.(B") | |
202 ("khy" . "$(7$A(B") | |
203 ("phy" . "$(7$D(B") | |
204 ("khr" . "$(7$Q(B") | |
205 ("thr" . "$(7$T(B") | |
206 ("phr" . "$(7$W(B") | |
207 ("shr" . "$(7$Z(B") | |
208 ("dzr" . "$(7$^(B") | |
209 ("grw" . "$(7$_(B") | |
210 ("rng" . "$(7%#(B") | |
211 ("rny" . "$(7%%(B") | |
212 ("rts" . "$(7%+(B") | |
213 ("rdz" . "$(7%,(B") | |
214 ("rgw" . "$(7%-(B") | |
215 ("rky" . "$(7%0(B") | |
216 ("rgy" . "$(7%1(B") | |
217 ("rmy" . "$(7%2(B") | |
218 ("lng" . "$(7%B(B") | |
219 ("sng" . "$(7%R(B") | |
220 ("sny" . "$(7%S(B") | |
221 ("sts" . "$(7%Z(B") | |
222 ("sky" . "$(7%`(B") | |
223 ("sgy" . "$(7%a(B") | |
224 ("spy" . "$(7%b(B") | |
225 ("sby" . "$(7%c(B") | |
226 ("smy" . "$(7%d(B") | |
227 ("skr" . "$(7%p(B") | |
228 ("sgr" . "$(7%q(B") | |
229 ("snr" . "$(7%r(B") | |
230 ("spr" . "$(7%s(B") | |
231 ("sbr" . "$(7%t(B") | |
232 ("smr" . "$(7%u(B") | |
233 ("kw" . "$(7$!(B") | |
234 ("gw" . "$(7$#(B") | |
235 ("cw" . "$(7$$(B") | |
236 ("tw" . "$(7$&(B") | |
237 ("dw" . "$(7$'(B") | |
238 ("zw" . "$(7$+(B") | |
239 ("rw" . "$(7$,(B") | |
240 ("lw" . "$(7$-(B") | |
241 ("sw" . "$(7$/(B") | |
242 ("hw" . "$(7$0(B") | |
243 ("ky" . "$(7$@(B") | |
244 ("gy" . "$(7$B(B") | |
245 ("py" . "$(7$C(B") | |
246 ("by" . "$(7$E(B") | |
247 ("my" . "$(7$F(B") | |
248 ("kr" . "$(7$P(B") | |
249 ("gr" . "$(7$R(B") | |
250 ("tr" . "$(7$S(B") | |
251 ("dr" . "$(7$U(B") | |
252 ("pr" . "$(7$V(B") | |
253 ("brk" . "$(7"7%!(B") | |
254 ("brg" . "$(7"7%"(B") | |
255 ("brng" . "$(7"7%#(B") | |
256 ("brj" . "$(7"7%$(B") | |
257 ("brny" . "$(7"7%%(B") | |
258 ("brt" . "$(7"7%&(B") | |
259 ("brd" . "$(7"7%'(B") | |
260 ("brn" . "$(7"7%((B") | |
261 ("brts" . "$(7"7%+(B") | |
262 ("brdz" . "$(7"7%,(B") | |
263 ("brl" . "$(7"7$d(B") | |
264 ("br" . "$(7$X(B") | |
265 ("mr" . "$(7$Y(B") | |
266 ("sr" . "$(7$[(B") | |
267 ("hr" . "$(7$\(B") | |
268 ("jr" . "$(7$](B") | |
269 ("kl" . "$(7$`(B") | |
270 ("gl" . "$(7$a(B") | |
271 ("blt" . "$(7"7%E(B") | |
272 ("bld" . "$(7"7%F(B") | |
273 ("bl" . "$(7$b(B") | |
274 ("zl" . "$(7$c(B") | |
275 ("rl" . "$(7$d(B") | |
276 ("sl" . "$(7$e(B") | |
277 ("rk" . "$(7%!(B") | |
278 ("rg" . "$(7%"(B") | |
279 ("rj" . "$(7%$(B") | |
280 ("rt" . "$(7%&(B") | |
281 ("rd" . "$(7%'(B") | |
282 ("rn" . "$(7%((B") | |
283 ("rb" . "$(7%)(B") | |
284 ("rm" . "$(7%*(B") | |
285 ("lk" . "$(7%@(B") | |
286 ("lg" . "$(7%A(B") | |
287 ("lc" . "$(7%C(B") | |
288 ("lj" . "$(7%D(B") | |
289 ("lt" . "$(7%E(B") | |
290 ("ld" . "$(7%F(B") | |
291 ("ln" . "$(7!!(B") ; dummy \x2121 | |
292 ("lp" . "$(7%G(B") | |
293 ("lb" . "$(7%H(B") | |
294 ("lh" . "$(7%I(B") | |
295 ("sk" . "$(7%P(B") | |
296 ("sg" . "$(7%Q(B") | |
297 ("st" . "$(7%T(B") | |
298 ("sd" . "$(7%U(B") | |
299 ("sn" . "$(7%V(B") | |
300 ("sp" . "$(7%W(B") | |
301 ("sb" . "$(7%X(B") | |
302 ("sm" . "$(7%Y(B"))) | |
303 | |
304 (defconst tibetan-subjoined-transcription-alist | |
305 '(("+k" . "$(7#!(B") | |
306 ("+kh" . "$(7#"(B") | |
307 ("+g" . "$(7##(B") | |
308 ("+gh" . "$(7#$(B") | |
309 ("+ng" . "$(7#%(B") | |
310 ("+c" . "$(7#&(B") | |
311 ("+ch" . "$(7#'(B") | |
312 ("+j" . "$(7#((B") | |
313 ("+ny" . "$(7#*(B") | |
314 ("+T" . "$(7#+(B") | |
315 ("+TH" . "$(7#,(B") | |
316 ("+D" . "$(7#-(B") | |
317 ("+DH" . "$(7#.(B") | |
318 ("+N" . "$(7#/(B") | |
319 ("+t" . "$(7#0(B") | |
320 ("+th" . "$(7#1(B") | |
321 ("+d" . "$(7#2(B") | |
322 ("+dh" . "$(7#3(B") | |
323 ("+n" . "$(7#4(B") | |
324 ("+p" . "$(7#5(B") | |
325 ("+ph" . "$(7#6(B") | |
326 ("+b" . "$(7#7(B") | |
327 ("+bh" . "$(7#8(B") | |
328 ("+m" . "$(7#9(B") | |
329 ("+ts" . "$(7#:(B") | |
330 ("+tsh" . "$(7#;(B") | |
331 ("+dz" . "$(7#<(B") | |
332 ("+dzh" . "$(7#=(B") | |
333 ("+w" . "$(7#>(B") | |
334 ("+zh" . "$(7#?(B") | |
335 ("+z" . "$(7#@(B") | |
336 ("+'" . "$(7#A(B") | |
337 ("+y" . "$(7#B(B") | |
338 ("+r" . "$(7#C(B") | |
339 ("+l" . "$(7#D(B") | |
340 ("+sh" . "$(7#E(B") | |
341 ("+SH" . "$(7#F(B") | |
342 ("+s" . "$(7#G(B") | |
343 ("+h" . "$(7#H(B") | |
344 ("+A" . "$(7#I(B") | |
345 ("+kSH" . "$(7#J(B") | |
346 ("R" . "$(7#P(B"))) | |
347 | |
348 ;;; | |
349 ;;; alist for Tibetan base consonant <-> subjoined consonant conversion. | |
350 ;;; | |
351 (defconst tibetan-base-to-subjoined-alist | |
352 '(("$(7"!(B" . "$(7#!(B") | |
353 ("$(7""(B" . "$(7#"(B") | |
354 ("$(7"#(B" . "$(7##(B") | |
355 ("$(7"$(B" . "$(7#$(B") | |
356 ("$(7"%(B" . "$(7#%(B") | |
357 ("$(7"&(B" . "$(7#&(B") | |
358 ("$(7"'(B" . "$(7#'(B") | |
359 ("$(7"((B" . "$(7#((B") | |
360 ("$(7"*(B" . "$(7#*(B") | |
361 ("$(7"+(B" . "$(7#+(B") | |
362 ("$(7",(B" . "$(7#,(B") | |
363 ("$(7"-(B" . "$(7#-(B") | |
364 ("$(7".(B" . "$(7#.(B") | |
365 ("$(7"/(B" . "$(7#/(B") | |
366 ("$(7"0(B" . "$(7#0(B") | |
367 ("$(7"1(B" . "$(7#1(B") | |
368 ("$(7"2(B" . "$(7#2(B") | |
369 ("$(7"3(B" . "$(7#3(B") | |
370 ("$(7"4(B" . "$(7#4(B") | |
371 ("$(7"5(B" . "$(7#5(B") | |
372 ("$(7"6(B" . "$(7#6(B") | |
373 ("$(7"7(B" . "$(7#7(B") | |
374 ("$(7"8(B" . "$(7#8(B") | |
375 ("$(7"9(B" . "$(7#9(B") | |
376 ("$(7":(B" . "$(7#:(B") | |
377 ("$(7";(B" . "$(7#;(B") | |
378 ("$(7"<(B" . "$(7#<(B") | |
379 ("$(7"=(B" . "$(7#=(B") | |
380 ("$(7">(B" . "$(7#>(B") | |
381 ("$(7"?(B" . "$(7#?(B") | |
382 ("$(7"@(B" . "$(7#@(B") | |
383 ("$(7"A(B" . "$(7#A(B") | |
384 ("$(7"B(B" . "$(7#B(B") | |
385 ("$(7"C(B" . "$(7#C(B") | |
386 ("$(7"D(B" . "$(7#D(B") | |
387 ("$(7"E(B" . "$(7#E(B") | |
388 ("$(7"F(B" . "$(7#F(B") | |
389 ("$(7"G(B" . "$(7#G(B") | |
390 ("$(7"H(B" . "$(7#H(B") | |
391 ("$(7"I(B" . "$(7#I(B") | |
392 ("$(7"J(B" . "$(7#J(B"))) | |
393 | |
394 ;;; | |
395 ;;; alist for Tibetan consonantic components <-> precomposed glyph conversion. | |
396 ;;; (includes some punctuation conversion rules) | |
397 ;;; | |
398 (defconst tibetan-precomposition-rule-alist | |
399 '(("$(7"6#B#>(B" . "$(7$G(B") | |
400 ("$(7"##C#>(B" . "$(7$_(B") | |
401 ("$(7";#>(B" . "$(7$)(B") | |
402 ("$(7"C#:#>(B" . "$(7%.(B") | |
403 ("$(7"C###>(B" . "$(7%-(B") | |
404 ("$(7"C#!#B(B" . "$(7%0(B") | |
405 ("$(7"C###B(B" . "$(7%1(B") | |
406 ("$(7"C#9#B(B" . "$(7%2(B") | |
407 ("$(7"G#!#B(B" . "$(7%`(B") | |
408 ("$(7"G###B(B" . "$(7%a(B") | |
409 ("$(7"G#5#B(B" . "$(7%b(B") | |
410 ("$(7"G#7#B(B" . "$(7%c(B") | |
411 ("$(7"G#9#B(B" . "$(7%d(B") | |
412 ("$(7"G#!#C(B" . "$(7%p(B") | |
413 ("$(7"G###C(B" . "$(7%q(B") | |
414 ("$(7"G#4#C(B" . "$(7%r(B") | |
415 ("$(7"G#5#C(B" . "$(7%s(B") | |
416 ("$(7"G#7#C(B" . "$(7%t(B") | |
417 ("$(7"G#9#C(B" . "$(7%u(B") | |
418 ("$(7""#>(B" . "$(7$"(B") | |
419 ("$(7"*#>(B" . "$(7$%(B") | |
420 ("$(7":#>(B" . "$(7$((B") | |
421 ("$(7"?#>(B" . "$(7$*(B") | |
422 ("$(7"E#>(B" . "$(7$.(B") | |
423 ("$(7""#B(B" . "$(7$A(B") | |
424 ("$(7"6#B(B" . "$(7$D(B") | |
425 ("$(7""#C(B" . "$(7$Q(B") | |
426 ("$(7"1#C(B" . "$(7$T(B") | |
427 ("$(7"6#C(B" . "$(7$W(B") | |
428 ("$(7"E#C(B" . "$(7$Z(B") | |
429 ("$(7"<#C(B" . "$(7$^(B") | |
430 ("$(7"C#%(B" . "$(7%#(B") | |
431 ("$(7"C#*(B" . "$(7%%(B") | |
432 ("$(7"C#:(B" . "$(7%+(B") | |
433 ("$(7"C#<(B" . "$(7%,(B") | |
434 ("$(7"D#%(B" . "$(7%B(B") | |
435 ("$(7"G#%(B" . "$(7%R(B") | |
436 ("$(7"G#*(B" . "$(7%S(B") | |
437 ("$(7"G#:(B" . "$(7%Z(B") | |
438 ("$(7"!#>(B" . "$(7$!(B") | |
439 ("$(7"##>(B" . "$(7$#(B") | |
440 ("$(7"&#>(B" . "$(7$$(B") | |
441 ("$(7"0#>(B" . "$(7$&(B") | |
442 ("$(7"2#>(B" . "$(7$'(B") | |
443 ("$(7"@#>(B" . "$(7$+(B") | |
444 ("$(7"C#>(B" . "$(7$,(B") | |
445 ("$(7"D#>(B" . "$(7$-(B") | |
446 ("$(7"G#>(B" . "$(7$/(B") | |
447 ("$(7"H#>(B" . "$(7$0(B") | |
448 ("$(7"!#B(B" . "$(7$@(B") | |
449 ("$(7"##B(B" . "$(7$B(B") | |
450 ("$(7"5#B(B" . "$(7$C(B") | |
451 ("$(7"7#B(B" . "$(7$E(B") | |
452 ("$(7"9#B(B" . "$(7$F(B") | |
453 ("$(7"!#C(B" . "$(7$P(B") | |
454 ("$(7"##C(B" . "$(7$R(B") | |
455 ("$(7"0#C(B" . "$(7$S(B") | |
456 ("$(7"2#C(B" . "$(7$U(B") | |
457 ("$(7"5#C(B" . "$(7$V(B") | |
458 ("$(7"7#C(B" . "$(7$X(B") | |
459 ("$(7"9#C(B" . "$(7$Y(B") | |
460 ("$(7"G#C(B" . "$(7$[(B") | |
461 ("$(7"H#C(B" . "$(7$\(B") | |
462 ("$(7"(#C(B" . "$(7$](B") | |
463 ("$(7"!#D(B" . "$(7$`(B") | |
464 ("$(7"##D(B" . "$(7$a(B") | |
465 ("$(7"7#D(B" . "$(7$b(B") | |
466 ("$(7"@#D(B" . "$(7$c(B") | |
467 ("$(7"C#D(B" . "$(7$d(B") | |
468 ("$(7"G#D(B" . "$(7$e(B") | |
469 ("$(7"C#!(B" . "$(7%!(B") | |
470 ("$(7"C##(B" . "$(7%"(B") | |
471 ("$(7"C#((B" . "$(7%$(B") | |
472 ("$(7"C#0(B" . "$(7%&(B") | |
473 ("$(7"C#2(B" . "$(7%'(B") | |
474 ("$(7"C#4(B" . "$(7%((B") | |
475 ("$(7"C#7(B" . "$(7%)(B") | |
476 ("$(7"C#9(B" . "$(7%*(B") | |
477 ("$(7"D#!(B" . "$(7%@(B") | |
478 ("$(7"D##(B" . "$(7%A(B") | |
479 ("$(7"D#&(B" . "$(7%C(B") | |
480 ("$(7"D#((B" . "$(7%D(B") | |
481 ("$(7"D#0(B" . "$(7%E(B") | |
482 ("$(7"D#2(B" . "$(7%F(B") | |
483 ("$(7"D#5(B" . "$(7%G(B") | |
484 ("$(7"D#7(B" . "$(7%H(B") | |
485 ("$(7"D#H(B" . "$(7%I(B") | |
486 ("$(7"G#!(B" . "$(7%P(B") | |
487 ("$(7"G##(B" . "$(7%Q(B") | |
488 ("$(7"G#0(B" . "$(7%T(B") | |
489 ("$(7"G#2(B" . "$(7%U(B") | |
490 ("$(7"G#4(B" . "$(7%V(B") | |
491 ("$(7"G#5(B" . "$(7%W(B") | |
492 ("$(7"G#7(B" . "$(7%X(B") | |
493 ("$(7"G#9(B" . "$(7%Y(B") | |
494 ("$(7!=(B" . "$(8!=(B") ; 2 col <-> 1 col | |
495 ("$(7!?(B" . "$(8!?(B") | |
496 ("$(7!@(B" . "$(8!@(B") | |
497 ("$(7!A(B" . "$(8!A(B") | |
498 ("$(7"`(B" . "$(8"`(B") | |
499 ("$(7!;(B" . "$(8!;(B") | |
500 ("$(7!D(B" . "$(8!D(B") | |
22983
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
20739
diff
changeset
|
501 ("$(7!>(B $(7!>(B" . "2$(7!>P(B P$(7!>(B1") ; Yes this is dirty. But ... |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
20739
diff
changeset
|
502 ("$(7!4!5!5(B" . "2$(7#RP#SP#SP#S(B1") |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
20739
diff
changeset
|
503 ("$(7!4!5(B" . "2$(7#RP#SP#S(B1") |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
20739
diff
changeset
|
504 ("$(7!6(B" . "2$(7#RP#S_!I(B1") |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
20739
diff
changeset
|
505 ("$(7!4(B" . "2$(7#RP#S(B1"))) |
17301 | 506 |
507 (defvar tibetan-regexp | |
508 (let ((l (append tibetan-consonant-transcription-alist | |
509 tibetan-vowel-transcription-alist | |
510 tibetan-subjoined-transcription-alist)) | |
511 temp) | |
512 (setq temp "\\(") | |
513 (setq temp (concat temp (car (car l)))) | |
514 (setq l (cdr l)) | |
515 (while l | |
516 (setq temp (concat temp "\\|" (car (car l)))) | |
517 (setq l (cdr l))) | |
518 (concat temp "\\)$")) | |
519 "Regexp string to match a romanized Tibetan character component, i.e., | |
520 base and subjoined consonant, vowel and vowel modifier. The result of matching | |
521 is to be used for indexing alists at conversion from a roman transcription to | |
522 the corresponding Tibetan character.") | |
523 | |
524 (defvar tibetan-precomposed-regexp | |
525 (let ((l tibetan-precomposed-transcription-alist) | |
526 temp) | |
527 (setq temp "^\\(") | |
528 (setq temp | |
529 (concat temp (car (car l)))) | |
530 (setq l (cdr l)) | |
531 (while l | |
532 (setq temp | |
533 (concat temp "\\|" (car (car l)))) | |
534 (setq l (cdr l))) | |
535 (concat temp "\\)")) | |
536 "Regexp string to match a romanized Tibetan complex consonant. | |
537 The result of matching is to be used for indexing alists when the input key | |
538 from an input method is converted to the corresponding precomposed glyph.") | |
539 | |
540 (defvar tibetan-precomposition-rule-regexp | |
541 (let ((l tibetan-precomposition-rule-alist) | |
542 temp) | |
543 (setq temp "\\(") | |
544 (setq temp (concat temp (car (car l)))) | |
545 (setq l (cdr l)) | |
546 (while l | |
547 (setq temp (concat temp "\\|" (car (car l)))) | |
548 (setq l (cdr l))) | |
549 (concat temp "\\)")) | |
550 "Regexp string to match a sequence of Tibetan consonantic components, i.e., | |
551 one base consonant and one or more subjoined consonants. | |
552 The result of matching is to be used for indexing alist when the component | |
553 sequence is converted to the corresponding precomposed glyph. | |
554 This also matches some punctuation characters which need conversion.") | |
555 | |
556 (defvar tibetan-decomposed nil) | |
557 (defvar tibetan-decomposed-temp nil) | |
558 | |
559 ;;; language/tibetan.el ends here |