Mercurial > emacs
annotate lisp/language/tibetan.el @ 20047:735f0cdfc5b9
(winner-change-fun): Don't use pushnew.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Wed, 15 Oct 1997 22:41:09 +0000 |
parents | 8b4a66c66dd6 |
children | 00b744016673 |
rev | line source |
---|---|
17301 | 1 ;;; tibetan.el --- Support for Tibetan language |
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 | |
92 'tibetan 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)" |
17301 | 94 '((ascii t) (tibetan t) nil nil |
95 nil ascii-eol)) | |
96 | |
97 (put 'tibetan 'post-read-conversion 'tibetan-post-read-conversion) | |
98 (put 'tibetan 'pre-write-conversion 'tibetan-pre-write-conversion) | |
99 | |
100 (set-language-info-alist | |
101 "Tibetan" '((setup-function . setup-tibetan-environment) | |
102 (charset . (tibetan tibetan-1-column)) | |
103 (coding-system . (tibetan)) | |
104 (documentation . t) | |
105 (sample-text . | |
106 "Tibetan (2$(7"70"]1"2$(8!;2$(7%P`"Q1"2$(8!;(B) 2$(7#RP#SP#S1!>"72$P`"Q1$(8!;2$(7"E0"S1"G$(8!;$(7"72"20"[1$(8!;2$(7"D0"[1"#"G!>2"I0"]0"_1$(8!;2$(7"9`"Q1$(8!;2$(7"/0"S1$(8!;2$(7"5`"Q12#2`#90"[1$(8!;2$(7"H`#A`"U0"c1!>(B"))) | |
107 | |
108 | |
109 ;;; | |
110 ;;; Definitions of conversion data. | |
111 ;;; | |
112 | |
113 | |
114 ;;; alists for tibetan char <-> transcription conversion | |
115 ;;; longer transcription should come first | |
116 (defconst tibetan-consonant-transcription-alist | |
117 '(("tsh" . "$(7";(B") | |
118 ("dzh" . "$(7"=(B") | |
119 ("kSH" . "$(7"J(B") | |
120 ("kh" . "$(7""(B") | |
121 ("gh" . "$(7"$(B") | |
122 ("ng" . "$(7"%(B") | |
123 ("ch" . "$(7"'(B") | |
124 ("ny" . "$(7"*(B") | |
125 ("TH" . "$(7",(B") | |
126 ("DH" . "$(7".(B") | |
127 ("th" . "$(7"1(B") | |
128 ("dh" . "$(7"3(B") | |
129 ("ph" . "$(7"6(B") | |
130 ("bh" . "$(7"8(B") | |
131 ("ts" . "$(7":(B") | |
132 ("dz" . "$(7"<(B") | |
133 ("zh" . "$(7"?(B") | |
134 ("sh" . "$(7"E(B") | |
135 ("SH" . "$(7"F(B") | |
136 ("k" . "$(7"!(B") | |
137 ("g" . "$(7"#(B") | |
138 ("c" . "$(7"&(B") | |
139 ("j" . "$(7"((B") | |
140 ("T" . "$(7"+(B") | |
141 ("D" . "$(7"-(B") | |
142 ("N" . "$(7"/(B") | |
143 ("t" . "$(7"0(B") | |
144 ("d" . "$(7"2(B") | |
145 ("n" . "$(7"4(B") | |
146 ("p" . "$(7"5(B") | |
147 ("b" . "$(7"7(B") | |
148 ("m" . "$(7"9(B") | |
149 ("w" . "$(7">(B") | |
150 ("z" . "$(7"@(B") | |
151 ("'" . "$(7"A(B") | |
152 ("y" . "$(7"B(B") | |
153 ("r" . "$(7"C(B") | |
154 ("l" . "$(7"D(B") | |
155 ("s" . "$(7"G(B") | |
156 ("h" . "$(7"H(B") | |
157 ("H" . "$(7"H(B") | |
158 ("A" . "$(7"I(B"))) | |
159 | |
160 | |
161 (defconst tibetan-vowel-transcription-alist | |
162 '(("ai" . "$(7"\(B") | |
163 ("au" . "$(7"^(B") | |
164 ("ee" . "$(7"\(B") | |
165 ("oo" . "$(7"^(B") | |
166 ("a" . "$(7"Q(B") ; invisible vowel sign (\x2251) | |
167 ("i" . "$(7"S(B") | |
168 ("u" . "$(7"U(B") | |
169 ("e" . "$(7"[(B") | |
170 ("o" . "$(7"](B") | |
171 ("E" . "$(7"\(B") | |
172 ("O" . "$(7"^(B") | |
173 ("I" . "$(7"a(B") | |
174 ("M" . "$(7"_(B") | |
175 ("~" . "$(7"c(B") ; not specified in Ext.wylie | |
176 ("`" . "$(7"d(B") ; idem. | |
177 ("," . "$(7"e(B") ; idem. | |
178 ("v" . "$(7"g(B") ; idem. | |
179 ("V" . "$(7"h(B") ; idem. | |
180 ("x" . "$(7"i(B") ; idem. | |
181 ("X" . "$(7"j(B") ; idem. | |
182 ("q" . "$(7"k(B") ; idem. | |
183 ("Q" . "$(7"l(B") ; idem. | |
184 ("_o" . "$(7!g(B") ; idem. | |
185 ("_O" . "$(7!e(B") ; idem. | |
186 ("_/" . "$(7!I(B") ; idem. | |
187 )) | |
188 | |
189 (defconst tibetan-precomposed-transcription-alist | |
190 '(("phyw" . "$(7$G(B") | |
191 ("tshw" . "$(7$)(B") | |
192 ("rtsw" . "$(7%.(B") | |
193 ("khw" . "$(7$"(B") | |
194 ("nyw" . "$(7$%(B") | |
195 ("tsw" . "$(7$((B") | |
196 ("zhw" . "$(7$*(B") | |
197 ("shw" . "$(7$.(B") | |
198 ("khy" . "$(7$A(B") | |
199 ("phy" . "$(7$D(B") | |
200 ("khr" . "$(7$Q(B") | |
201 ("thr" . "$(7$T(B") | |
202 ("phr" . "$(7$W(B") | |
203 ("shr" . "$(7$Z(B") | |
204 ("dzr" . "$(7$^(B") | |
205 ("grw" . "$(7$_(B") | |
206 ("rng" . "$(7%#(B") | |
207 ("rny" . "$(7%%(B") | |
208 ("rts" . "$(7%+(B") | |
209 ("rdz" . "$(7%,(B") | |
210 ("rgw" . "$(7%-(B") | |
211 ("rky" . "$(7%0(B") | |
212 ("rgy" . "$(7%1(B") | |
213 ("rmy" . "$(7%2(B") | |
214 ("lng" . "$(7%B(B") | |
215 ("sng" . "$(7%R(B") | |
216 ("sny" . "$(7%S(B") | |
217 ("sts" . "$(7%Z(B") | |
218 ("sky" . "$(7%`(B") | |
219 ("sgy" . "$(7%a(B") | |
220 ("spy" . "$(7%b(B") | |
221 ("sby" . "$(7%c(B") | |
222 ("smy" . "$(7%d(B") | |
223 ("skr" . "$(7%p(B") | |
224 ("sgr" . "$(7%q(B") | |
225 ("snr" . "$(7%r(B") | |
226 ("spr" . "$(7%s(B") | |
227 ("sbr" . "$(7%t(B") | |
228 ("smr" . "$(7%u(B") | |
229 ("kw" . "$(7$!(B") | |
230 ("gw" . "$(7$#(B") | |
231 ("cw" . "$(7$$(B") | |
232 ("tw" . "$(7$&(B") | |
233 ("dw" . "$(7$'(B") | |
234 ("zw" . "$(7$+(B") | |
235 ("rw" . "$(7$,(B") | |
236 ("lw" . "$(7$-(B") | |
237 ("sw" . "$(7$/(B") | |
238 ("hw" . "$(7$0(B") | |
239 ("ky" . "$(7$@(B") | |
240 ("gy" . "$(7$B(B") | |
241 ("py" . "$(7$C(B") | |
242 ("by" . "$(7$E(B") | |
243 ("my" . "$(7$F(B") | |
244 ("kr" . "$(7$P(B") | |
245 ("gr" . "$(7$R(B") | |
246 ("tr" . "$(7$S(B") | |
247 ("dr" . "$(7$U(B") | |
248 ("pr" . "$(7$V(B") | |
249 ("brk" . "$(7"7%!(B") | |
250 ("brg" . "$(7"7%"(B") | |
251 ("brng" . "$(7"7%#(B") | |
252 ("brj" . "$(7"7%$(B") | |
253 ("brny" . "$(7"7%%(B") | |
254 ("brt" . "$(7"7%&(B") | |
255 ("brd" . "$(7"7%'(B") | |
256 ("brn" . "$(7"7%((B") | |
257 ("brts" . "$(7"7%+(B") | |
258 ("brdz" . "$(7"7%,(B") | |
259 ("brl" . "$(7"7$d(B") | |
260 ("br" . "$(7$X(B") | |
261 ("mr" . "$(7$Y(B") | |
262 ("sr" . "$(7$[(B") | |
263 ("hr" . "$(7$\(B") | |
264 ("jr" . "$(7$](B") | |
265 ("kl" . "$(7$`(B") | |
266 ("gl" . "$(7$a(B") | |
267 ("blt" . "$(7"7%E(B") | |
268 ("bld" . "$(7"7%F(B") | |
269 ("bl" . "$(7$b(B") | |
270 ("zl" . "$(7$c(B") | |
271 ("rl" . "$(7$d(B") | |
272 ("sl" . "$(7$e(B") | |
273 ("rk" . "$(7%!(B") | |
274 ("rg" . "$(7%"(B") | |
275 ("rj" . "$(7%$(B") | |
276 ("rt" . "$(7%&(B") | |
277 ("rd" . "$(7%'(B") | |
278 ("rn" . "$(7%((B") | |
279 ("rb" . "$(7%)(B") | |
280 ("rm" . "$(7%*(B") | |
281 ("lk" . "$(7%@(B") | |
282 ("lg" . "$(7%A(B") | |
283 ("lc" . "$(7%C(B") | |
284 ("lj" . "$(7%D(B") | |
285 ("lt" . "$(7%E(B") | |
286 ("ld" . "$(7%F(B") | |
287 ("ln" . "$(7!!(B") ; dummy \x2121 | |
288 ("lp" . "$(7%G(B") | |
289 ("lb" . "$(7%H(B") | |
290 ("lh" . "$(7%I(B") | |
291 ("sk" . "$(7%P(B") | |
292 ("sg" . "$(7%Q(B") | |
293 ("st" . "$(7%T(B") | |
294 ("sd" . "$(7%U(B") | |
295 ("sn" . "$(7%V(B") | |
296 ("sp" . "$(7%W(B") | |
297 ("sb" . "$(7%X(B") | |
298 ("sm" . "$(7%Y(B"))) | |
299 | |
300 (defconst tibetan-subjoined-transcription-alist | |
301 '(("+k" . "$(7#!(B") | |
302 ("+kh" . "$(7#"(B") | |
303 ("+g" . "$(7##(B") | |
304 ("+gh" . "$(7#$(B") | |
305 ("+ng" . "$(7#%(B") | |
306 ("+c" . "$(7#&(B") | |
307 ("+ch" . "$(7#'(B") | |
308 ("+j" . "$(7#((B") | |
309 ("+ny" . "$(7#*(B") | |
310 ("+T" . "$(7#+(B") | |
311 ("+TH" . "$(7#,(B") | |
312 ("+D" . "$(7#-(B") | |
313 ("+DH" . "$(7#.(B") | |
314 ("+N" . "$(7#/(B") | |
315 ("+t" . "$(7#0(B") | |
316 ("+th" . "$(7#1(B") | |
317 ("+d" . "$(7#2(B") | |
318 ("+dh" . "$(7#3(B") | |
319 ("+n" . "$(7#4(B") | |
320 ("+p" . "$(7#5(B") | |
321 ("+ph" . "$(7#6(B") | |
322 ("+b" . "$(7#7(B") | |
323 ("+bh" . "$(7#8(B") | |
324 ("+m" . "$(7#9(B") | |
325 ("+ts" . "$(7#:(B") | |
326 ("+tsh" . "$(7#;(B") | |
327 ("+dz" . "$(7#<(B") | |
328 ("+dzh" . "$(7#=(B") | |
329 ("+w" . "$(7#>(B") | |
330 ("+zh" . "$(7#?(B") | |
331 ("+z" . "$(7#@(B") | |
332 ("+'" . "$(7#A(B") | |
333 ("+y" . "$(7#B(B") | |
334 ("+r" . "$(7#C(B") | |
335 ("+l" . "$(7#D(B") | |
336 ("+sh" . "$(7#E(B") | |
337 ("+SH" . "$(7#F(B") | |
338 ("+s" . "$(7#G(B") | |
339 ("+h" . "$(7#H(B") | |
340 ("+A" . "$(7#I(B") | |
341 ("+kSH" . "$(7#J(B") | |
342 ("R" . "$(7#P(B"))) | |
343 | |
344 ;;; | |
345 ;;; alist for Tibetan base consonant <-> subjoined consonant conversion. | |
346 ;;; | |
347 (defconst tibetan-base-to-subjoined-alist | |
348 '(("$(7"!(B" . "$(7#!(B") | |
349 ("$(7""(B" . "$(7#"(B") | |
350 ("$(7"#(B" . "$(7##(B") | |
351 ("$(7"$(B" . "$(7#$(B") | |
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"0(B" . "$(7#0(B") | |
363 ("$(7"1(B" . "$(7#1(B") | |
364 ("$(7"2(B" . "$(7#2(B") | |
365 ("$(7"3(B" . "$(7#3(B") | |
366 ("$(7"4(B" . "$(7#4(B") | |
367 ("$(7"5(B" . "$(7#5(B") | |
368 ("$(7"6(B" . "$(7#6(B") | |
369 ("$(7"7(B" . "$(7#7(B") | |
370 ("$(7"8(B" . "$(7#8(B") | |
371 ("$(7"9(B" . "$(7#9(B") | |
372 ("$(7":(B" . "$(7#:(B") | |
373 ("$(7";(B" . "$(7#;(B") | |
374 ("$(7"<(B" . "$(7#<(B") | |
375 ("$(7"=(B" . "$(7#=(B") | |
376 ("$(7">(B" . "$(7#>(B") | |
377 ("$(7"?(B" . "$(7#?(B") | |
378 ("$(7"@(B" . "$(7#@(B") | |
379 ("$(7"A(B" . "$(7#A(B") | |
380 ("$(7"B(B" . "$(7#B(B") | |
381 ("$(7"C(B" . "$(7#C(B") | |
382 ("$(7"D(B" . "$(7#D(B") | |
383 ("$(7"E(B" . "$(7#E(B") | |
384 ("$(7"F(B" . "$(7#F(B") | |
385 ("$(7"G(B" . "$(7#G(B") | |
386 ("$(7"H(B" . "$(7#H(B") | |
387 ("$(7"I(B" . "$(7#I(B") | |
388 ("$(7"J(B" . "$(7#J(B"))) | |
389 | |
390 ;;; | |
391 ;;; alist for Tibetan consonantic components <-> precomposed glyph conversion. | |
392 ;;; (includes some punctuation conversion rules) | |
393 ;;; | |
394 (defconst tibetan-precomposition-rule-alist | |
395 '(("$(7"6#B#>(B" . "$(7$G(B") | |
396 ("$(7"##C#>(B" . "$(7$_(B") | |
397 ("$(7";#>(B" . "$(7$)(B") | |
398 ("$(7"C#:#>(B" . "$(7%.(B") | |
399 ("$(7"C###>(B" . "$(7%-(B") | |
400 ("$(7"C#!#B(B" . "$(7%0(B") | |
401 ("$(7"C###B(B" . "$(7%1(B") | |
402 ("$(7"C#9#B(B" . "$(7%2(B") | |
403 ("$(7"G#!#B(B" . "$(7%`(B") | |
404 ("$(7"G###B(B" . "$(7%a(B") | |
405 ("$(7"G#5#B(B" . "$(7%b(B") | |
406 ("$(7"G#7#B(B" . "$(7%c(B") | |
407 ("$(7"G#9#B(B" . "$(7%d(B") | |
408 ("$(7"G#!#C(B" . "$(7%p(B") | |
409 ("$(7"G###C(B" . "$(7%q(B") | |
410 ("$(7"G#4#C(B" . "$(7%r(B") | |
411 ("$(7"G#5#C(B" . "$(7%s(B") | |
412 ("$(7"G#7#C(B" . "$(7%t(B") | |
413 ("$(7"G#9#C(B" . "$(7%u(B") | |
414 ("$(7""#>(B" . "$(7$"(B") | |
415 ("$(7"*#>(B" . "$(7$%(B") | |
416 ("$(7":#>(B" . "$(7$((B") | |
417 ("$(7"?#>(B" . "$(7$*(B") | |
418 ("$(7"E#>(B" . "$(7$.(B") | |
419 ("$(7""#B(B" . "$(7$A(B") | |
420 ("$(7"6#B(B" . "$(7$D(B") | |
421 ("$(7""#C(B" . "$(7$Q(B") | |
422 ("$(7"1#C(B" . "$(7$T(B") | |
423 ("$(7"6#C(B" . "$(7$W(B") | |
424 ("$(7"E#C(B" . "$(7$Z(B") | |
425 ("$(7"<#C(B" . "$(7$^(B") | |
426 ("$(7"C#%(B" . "$(7%#(B") | |
427 ("$(7"C#*(B" . "$(7%%(B") | |
428 ("$(7"C#:(B" . "$(7%+(B") | |
429 ("$(7"C#<(B" . "$(7%,(B") | |
430 ("$(7"D#%(B" . "$(7%B(B") | |
431 ("$(7"G#%(B" . "$(7%R(B") | |
432 ("$(7"G#*(B" . "$(7%S(B") | |
433 ("$(7"G#:(B" . "$(7%Z(B") | |
434 ("$(7"!#>(B" . "$(7$!(B") | |
435 ("$(7"##>(B" . "$(7$#(B") | |
436 ("$(7"&#>(B" . "$(7$$(B") | |
437 ("$(7"0#>(B" . "$(7$&(B") | |
438 ("$(7"2#>(B" . "$(7$'(B") | |
439 ("$(7"@#>(B" . "$(7$+(B") | |
440 ("$(7"C#>(B" . "$(7$,(B") | |
441 ("$(7"D#>(B" . "$(7$-(B") | |
442 ("$(7"G#>(B" . "$(7$/(B") | |
443 ("$(7"H#>(B" . "$(7$0(B") | |
444 ("$(7"!#B(B" . "$(7$@(B") | |
445 ("$(7"##B(B" . "$(7$B(B") | |
446 ("$(7"5#B(B" . "$(7$C(B") | |
447 ("$(7"7#B(B" . "$(7$E(B") | |
448 ("$(7"9#B(B" . "$(7$F(B") | |
449 ("$(7"!#C(B" . "$(7$P(B") | |
450 ("$(7"##C(B" . "$(7$R(B") | |
451 ("$(7"0#C(B" . "$(7$S(B") | |
452 ("$(7"2#C(B" . "$(7$U(B") | |
453 ("$(7"5#C(B" . "$(7$V(B") | |
454 ("$(7"7#C(B" . "$(7$X(B") | |
455 ("$(7"9#C(B" . "$(7$Y(B") | |
456 ("$(7"G#C(B" . "$(7$[(B") | |
457 ("$(7"H#C(B" . "$(7$\(B") | |
458 ("$(7"(#C(B" . "$(7$](B") | |
459 ("$(7"!#D(B" . "$(7$`(B") | |
460 ("$(7"##D(B" . "$(7$a(B") | |
461 ("$(7"7#D(B" . "$(7$b(B") | |
462 ("$(7"@#D(B" . "$(7$c(B") | |
463 ("$(7"C#D(B" . "$(7$d(B") | |
464 ("$(7"G#D(B" . "$(7$e(B") | |
465 ("$(7"C#!(B" . "$(7%!(B") | |
466 ("$(7"C##(B" . "$(7%"(B") | |
467 ("$(7"C#((B" . "$(7%$(B") | |
468 ("$(7"C#0(B" . "$(7%&(B") | |
469 ("$(7"C#2(B" . "$(7%'(B") | |
470 ("$(7"C#4(B" . "$(7%((B") | |
471 ("$(7"C#7(B" . "$(7%)(B") | |
472 ("$(7"C#9(B" . "$(7%*(B") | |
473 ("$(7"D#!(B" . "$(7%@(B") | |
474 ("$(7"D##(B" . "$(7%A(B") | |
475 ("$(7"D#&(B" . "$(7%C(B") | |
476 ("$(7"D#((B" . "$(7%D(B") | |
477 ("$(7"D#0(B" . "$(7%E(B") | |
478 ("$(7"D#2(B" . "$(7%F(B") | |
479 ("$(7"D#5(B" . "$(7%G(B") | |
480 ("$(7"D#7(B" . "$(7%H(B") | |
481 ("$(7"D#H(B" . "$(7%I(B") | |
482 ("$(7"G#!(B" . "$(7%P(B") | |
483 ("$(7"G##(B" . "$(7%Q(B") | |
484 ("$(7"G#0(B" . "$(7%T(B") | |
485 ("$(7"G#2(B" . "$(7%U(B") | |
486 ("$(7"G#4(B" . "$(7%V(B") | |
487 ("$(7"G#5(B" . "$(7%W(B") | |
488 ("$(7"G#7(B" . "$(7%X(B") | |
489 ("$(7"G#9(B" . "$(7%Y(B") | |
490 ("$(7!=(B" . "$(8!=(B") ; 2 col <-> 1 col | |
491 ("$(7!?(B" . "$(8!?(B") | |
492 ("$(7!@(B" . "$(8!@(B") | |
493 ("$(7!A(B" . "$(8!A(B") | |
494 ("$(7"`(B" . "$(8"`(B") | |
495 ("$(7!;(B" . "$(8!;(B") | |
496 ("$(7!D(B" . "$(8!D(B") | |
497 ("$(7!>(B $(7!>(B" . "2$(7!>P(B P$(7!>1(B") ; Yes this is dirty. But ... | |
498 ("$(7!4!5!5(B" . "2$(7#RP#SP#SP#S1(B") | |
499 ("$(7!4!5(B" . "2$(7#RP#SP#S1(B") | |
500 ("$(7!6(B" . "2$(7#RP#S_!I1(B") | |
501 ("$(7!4(B" . "2$(7#RP#S1(B"))) | |
502 | |
503 (defvar tibetan-regexp | |
504 (let ((l (append tibetan-consonant-transcription-alist | |
505 tibetan-vowel-transcription-alist | |
506 tibetan-subjoined-transcription-alist)) | |
507 temp) | |
508 (setq temp "\\(") | |
509 (setq temp (concat temp (car (car l)))) | |
510 (setq l (cdr l)) | |
511 (while l | |
512 (setq temp (concat temp "\\|" (car (car l)))) | |
513 (setq l (cdr l))) | |
514 (concat temp "\\)$")) | |
515 "Regexp string to match a romanized Tibetan character component, i.e., | |
516 base and subjoined consonant, vowel and vowel modifier. The result of matching | |
517 is to be used for indexing alists at conversion from a roman transcription to | |
518 the corresponding Tibetan character.") | |
519 | |
520 (defvar tibetan-precomposed-regexp | |
521 (let ((l tibetan-precomposed-transcription-alist) | |
522 temp) | |
523 (setq temp "^\\(") | |
524 (setq temp | |
525 (concat temp (car (car l)))) | |
526 (setq l (cdr l)) | |
527 (while l | |
528 (setq temp | |
529 (concat temp "\\|" (car (car l)))) | |
530 (setq l (cdr l))) | |
531 (concat temp "\\)")) | |
532 "Regexp string to match a romanized Tibetan complex consonant. | |
533 The result of matching is to be used for indexing alists when the input key | |
534 from an input method is converted to the corresponding precomposed glyph.") | |
535 | |
536 (defvar tibetan-precomposition-rule-regexp | |
537 (let ((l tibetan-precomposition-rule-alist) | |
538 temp) | |
539 (setq temp "\\(") | |
540 (setq temp (concat temp (car (car l)))) | |
541 (setq l (cdr l)) | |
542 (while l | |
543 (setq temp (concat temp "\\|" (car (car l)))) | |
544 (setq l (cdr l))) | |
545 (concat temp "\\)")) | |
546 "Regexp string to match a sequence of Tibetan consonantic components, i.e., | |
547 one base consonant and one or more subjoined consonants. | |
548 The result of matching is to be used for indexing alist when the component | |
549 sequence is converted to the corresponding precomposed glyph. | |
550 This also matches some punctuation characters which need conversion.") | |
551 | |
552 (defvar tibetan-decomposed nil) | |
553 (defvar tibetan-decomposed-temp nil) | |
554 | |
555 ;;; language/tibetan.el ends here |