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