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