Mercurial > emacs
annotate lisp/language/tibetan.el @ 66986:24b9342c0182
*** empty log message ***
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Fri, 18 Nov 2005 13:57:25 +0000 |
parents | 18a818a2ee7c |
children | 43cc94d955c2 f9a65d7ebd29 |
rev | line source |
---|---|
38436
b174db545cfd
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
33778
diff
changeset
|
1 ;;; tibetan.el --- support for Tibetan language -*- coding: iso-2022-7bit; -*- |
17301 | 2 |
62396 | 3 ;; Copyright (C) 1997, 2002 Free Software Foundation, Inc. |
4 ;; Copyright (C) 1997, 1999, 2000 | |
5 ;; National Institute of Advanced Industrial Science and Technology (AIST) | |
6 ;; Registration Number H14PRO021 | |
17301 | 7 |
8 ;; Keywords: multilingual, Tibetan | |
9 | |
10 ;; This file is part of GNU Emacs. | |
11 | |
12 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
13 ;; it under the terms of the GNU General Public License as published by | |
14 ;; the Free Software Foundation; either version 2, or (at your option) | |
15 ;; any later version. | |
16 | |
17 ;; GNU Emacs is distributed in the hope that it will be useful, | |
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 ;; GNU General Public License for more details. | |
21 | |
22 ;; You should have received a copy of the GNU General Public License | |
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
64085 | 24 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
25 ;; Boston, MA 02110-1301, USA. | |
17301 | 26 |
27 ;; Author: Toru TOMABECHI, <Toru.Tomabechi@orient.unil.ch> | |
28 | |
29 ;; Created: Feb. 17. 1997 | |
30 | |
31 ;; History: | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45031
diff
changeset
|
32 ;; 1997.03.13 Modification for special signs and punctuations. |
17301 | 33 |
38436
b174db545cfd
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
33778
diff
changeset
|
34 ;;; Commentary: |
b174db545cfd
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
33778
diff
changeset
|
35 |
17301 | 36 ;;; Code: |
37 | |
38 ;;; Tibetan Character set. | |
39 ;;; \x2130 -- \x234a is a subset of Unicode v.2 \x0f00 - \x0fb9 | |
40 ;;; with a slight modification. And there are some subjoined | |
41 ;;; consonants which are not specified in Unicode. | |
42 ;;; I hope I can add missing characters later. | |
43 ;;; | |
44 ;;; 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | |
29364
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
45 ;;;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 ; obsolete glyphs (2123-5) |
17301 | 46 ;;;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, |
47 ;;;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 | |
48 ;;;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. | |
49 ;;;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 ; | |
50 ;;;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 // ; | |
51 ;;; | |
52 ;;; 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | |
53 ;;;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 | |
54 ;;;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 | |
55 ;;;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. | |
56 ;;;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) | |
57 ;;;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 | |
29364
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
58 ;;;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 |
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
59 ;;; ; atomically |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45031
diff
changeset
|
60 ;;; ; encoded. |
17301 | 61 ;;; 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |
62 ;;;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 | |
63 ;;;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 ; | |
29364
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
64 ;;;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 ; |
17301 | 65 ;;;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 |
66 ;;;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 | |
67 ;;;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. | |
29364
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
68 ;;; |
17301 | 69 ;;; 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |
70 ;;;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 | |
71 ;;;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 | |
72 ;;;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. | |
73 ;;;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 | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45031
diff
changeset
|
74 ;;;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 |
17301 | 75 ;;;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 |
76 ;;; ; when written on a | |
77 ;;; 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F ; file in Tibetan | |
78 ;;;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. | |
79 ;;;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 ; | |
80 ;;;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 ; | |
81 ;;;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 ; | |
82 ;;;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 ; | |
83 ;;;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 // ; | |
84 ;;; | |
85 | |
86 | |
87 (make-coding-system | |
20739
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
88 'tibetan-iso-8bit 2 ?Q |
42152 | 89 "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
|
90 '(ascii tibetan nil nil |
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
91 nil nil) |
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
92 '((safe-charsets ascii tibetan) |
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
93 (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
|
94 (pre-write-conversion . tibetan-pre-write-conversion))) |
17301 | 95 |
20739
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
96 (define-coding-system-alias 'tibetan 'tibetan-iso-8bit) |
17301 | 97 |
98 (set-language-info-alist | |
22983
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
20739
diff
changeset
|
99 "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
|
100 (coding-system tibetan-iso-8bit) |
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20159
diff
changeset
|
101 (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
|
102 (input-method . "tibetan-wylie") |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
20739
diff
changeset
|
103 (features tibet-util) |
17301 | 104 (documentation . t) |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45031
diff
changeset
|
105 (sample-text |
33224
16e812e93e0d
("Tibetan"): Set a lisp form that produces
Kenichi Handa <handa@m17n.org>
parents:
29597
diff
changeset
|
106 . (tibetan-compose-string |
16e812e93e0d
("Tibetan"): Set a lisp form that produces
Kenichi Handa <handa@m17n.org>
parents:
29597
diff
changeset
|
107 (copy-sequence |
16e812e93e0d
("Tibetan"): Set a lisp form that produces
Kenichi Handa <handa@m17n.org>
parents:
29597
diff
changeset
|
108 "Tibetan (4$(7"7r'"]0"7"]14"20"21!;4%P0"G#!"Q14"20"21!;(B) $(7!4!5!5!>4"70"714$P0"!#C"Q1!;4"Er'"S0"E"S14"G0"G1!;4"70"714"2r'"[0"2"[1!;4"Dr'"[0"D"[14"#0"#14"G0"G1!>4"Ir'"]r'"_0"I"]"_1!;4"90"9"Q1!;4"/r'"S0"/"S1!;4"50"5"Q14#2x!#9r'"[0"2#9"[1!;4"Hx!"Rx!"Ur'"c0"H"A"U"c1!>(B"))))) |
26897
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
109 |
17301 | 110 |
26897
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
111 ;; `$(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
|
112 ;; treat it specially in tibetan-add-components. |
29364
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
113 ;; modified by Tomabechi 1999/12/10 |
29597
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
114 ;; modified by Tomabechi 2000/06/08 |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
115 ;; To allow infinite addition of vowels/modifiers |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
116 ;; as specified in Unicode v.3 |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
117 ;; $(7"A(B is removed from the class of subjoined. Tomabechi 2000/06/08 |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
118 ;; (for Unicode support) |
26897
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
119 (defconst tibetan-composable-pattern |
29597
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
120 "[$(7"!(B-$(7"J"K(B][$(7#!(B-$(7#J#K#L#M(B]*[$(7"Q"R"S(B-$(7"^"a"b"e(B]*[$(7"_"c"d"g(B-$(7"l!I!e!g(B]*" |
26897
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
121 "Regexp matching a composable sequence of Tibetan characters.") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
122 |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
123 ;; Register a function to compose Tibetan characters. |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
124 (aset composition-function-table (make-char 'tibetan) |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
125 (list (cons tibetan-composable-pattern 'tibetan-composition-function))) |
17301 | 126 |
127 ;;; | |
128 ;;; Definitions of conversion data. | |
129 ;;; | |
130 | |
131 | |
132 ;;; alists for tibetan char <-> transcription conversion | |
133 ;;; longer transcription should come first | |
134 (defconst tibetan-consonant-transcription-alist | |
135 '(("tsh" . "$(7";(B") | |
136 ("dzh" . "$(7"=(B") | |
137 ("kSH" . "$(7"J(B") | |
138 ("kh" . "$(7""(B") | |
139 ("gh" . "$(7"$(B") | |
140 ("ng" . "$(7"%(B") | |
141 ("ch" . "$(7"'(B") | |
142 ("ny" . "$(7"*(B") | |
143 ("TH" . "$(7",(B") | |
144 ("DH" . "$(7".(B") | |
145 ("th" . "$(7"1(B") | |
146 ("dh" . "$(7"3(B") | |
147 ("ph" . "$(7"6(B") | |
148 ("bh" . "$(7"8(B") | |
149 ("ts" . "$(7":(B") | |
150 ("dz" . "$(7"<(B") | |
151 ("zh" . "$(7"?(B") | |
152 ("sh" . "$(7"E(B") | |
153 ("SH" . "$(7"F(B") | |
154 ("k" . "$(7"!(B") | |
155 ("g" . "$(7"#(B") | |
156 ("c" . "$(7"&(B") | |
157 ("j" . "$(7"((B") | |
158 ("T" . "$(7"+(B") | |
159 ("D" . "$(7"-(B") | |
160 ("N" . "$(7"/(B") | |
161 ("t" . "$(7"0(B") | |
162 ("d" . "$(7"2(B") | |
163 ("n" . "$(7"4(B") | |
164 ("p" . "$(7"5(B") | |
165 ("b" . "$(7"7(B") | |
166 ("m" . "$(7"9(B") | |
167 ("w" . "$(7">(B") | |
168 ("z" . "$(7"@(B") | |
169 ("'" . "$(7"A(B") | |
170 ("y" . "$(7"B(B") | |
171 ("r" . "$(7"C(B") | |
172 ("l" . "$(7"D(B") | |
173 ("s" . "$(7"G(B") | |
174 ("h" . "$(7"H(B") | |
175 ("H" . "$(7"H(B") | |
29364
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
176 ("A" . "$(7"I(B") |
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
177 ;; Added by Tomabechi 1999/12/10 |
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
178 ("R" . "$(7"K(B") ;; fixed form RA |
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
179 )) |
17301 | 180 |
181 | |
182 (defconst tibetan-vowel-transcription-alist | |
29597
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
183 '( |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
184 ;; Composite Vowels |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
185 ;; Added by Tomabechi 2000/06/08 |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
186 ("frr" . "$(7"X(B") |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
187 ("fll" . "$(7"Z(B") |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
188 ("fa" . "$(7"R(B") |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
189 ("fi" . "$(7"T(B") |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
190 ("fu" . "$(7"V(B") |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
191 ("fr" . "$(7"W(B") |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
192 ("fl" . "$(7"Y(B") |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
193 ("fI" . "$(7"b(B") |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
194 ;; Normal Vowels |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
195 ("ai" . "$(7"\(B") |
17301 | 196 ("au" . "$(7"^(B") |
197 ("ee" . "$(7"\(B") | |
198 ("oo" . "$(7"^(B") | |
199 ("a" . "$(7"Q(B") ; invisible vowel sign (\x2251) | |
200 ("i" . "$(7"S(B") | |
201 ("u" . "$(7"U(B") | |
202 ("e" . "$(7"[(B") | |
203 ("o" . "$(7"](B") | |
204 ("E" . "$(7"\(B") | |
205 ("O" . "$(7"^(B") | |
206 ("I" . "$(7"a(B") | |
207 ("," . "$(7"e(B") ; idem. | |
208 )) | |
209 | |
26897
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
210 (defconst tibetan-modifier-transcription-alist |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
211 '(("M" . "$(7"_(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
212 ("~" . "$(7"c(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
213 ("`" . "$(7"d(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
214 ("x" . "$(7"i(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
215 ("X" . "$(7"j(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
216 ("v" . "$(7"g(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
217 ("V" . "$(7"h(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
218 ("q" . "$(7"k(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
219 ("Q" . "$(7"l(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
220 ("_/" . "$(7!I(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
221 ("_o" . "$(7!g(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
222 ("_O" . "$(7!e(B"))) |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
223 |
17301 | 224 (defconst tibetan-precomposed-transcription-alist |
225 '(("phyw" . "$(7$G(B") | |
226 ("tshw" . "$(7$)(B") | |
227 ("rtsw" . "$(7%.(B") | |
228 ("khw" . "$(7$"(B") | |
229 ("nyw" . "$(7$%(B") | |
230 ("tsw" . "$(7$((B") | |
231 ("zhw" . "$(7$*(B") | |
232 ("shw" . "$(7$.(B") | |
233 ("khy" . "$(7$A(B") | |
234 ("phy" . "$(7$D(B") | |
235 ("khr" . "$(7$Q(B") | |
236 ("thr" . "$(7$T(B") | |
237 ("phr" . "$(7$W(B") | |
238 ("shr" . "$(7$Z(B") | |
239 ("dzr" . "$(7$^(B") | |
240 ("grw" . "$(7$_(B") | |
241 ("rng" . "$(7%#(B") | |
242 ("rny" . "$(7%%(B") | |
243 ("rts" . "$(7%+(B") | |
244 ("rdz" . "$(7%,(B") | |
245 ("rgw" . "$(7%-(B") | |
246 ("rky" . "$(7%0(B") | |
247 ("rgy" . "$(7%1(B") | |
248 ("rmy" . "$(7%2(B") | |
249 ("lng" . "$(7%B(B") | |
250 ("sng" . "$(7%R(B") | |
251 ("sny" . "$(7%S(B") | |
252 ("sts" . "$(7%Z(B") | |
253 ("sky" . "$(7%`(B") | |
254 ("sgy" . "$(7%a(B") | |
255 ("spy" . "$(7%b(B") | |
256 ("sby" . "$(7%c(B") | |
257 ("smy" . "$(7%d(B") | |
258 ("skr" . "$(7%p(B") | |
259 ("sgr" . "$(7%q(B") | |
260 ("snr" . "$(7%r(B") | |
261 ("spr" . "$(7%s(B") | |
262 ("sbr" . "$(7%t(B") | |
263 ("smr" . "$(7%u(B") | |
264 ("kw" . "$(7$!(B") | |
265 ("gw" . "$(7$#(B") | |
266 ("cw" . "$(7$$(B") | |
267 ("tw" . "$(7$&(B") | |
268 ("dw" . "$(7$'(B") | |
269 ("zw" . "$(7$+(B") | |
270 ("rw" . "$(7$,(B") | |
271 ("lw" . "$(7$-(B") | |
272 ("sw" . "$(7$/(B") | |
273 ("hw" . "$(7$0(B") | |
274 ("ky" . "$(7$@(B") | |
275 ("gy" . "$(7$B(B") | |
276 ("py" . "$(7$C(B") | |
277 ("by" . "$(7$E(B") | |
278 ("my" . "$(7$F(B") | |
279 ("kr" . "$(7$P(B") | |
280 ("gr" . "$(7$R(B") | |
281 ("tr" . "$(7$S(B") | |
282 ("dr" . "$(7$U(B") | |
283 ("pr" . "$(7$V(B") | |
284 ("brk" . "$(7"7%!(B") | |
285 ("brg" . "$(7"7%"(B") | |
286 ("brng" . "$(7"7%#(B") | |
287 ("brj" . "$(7"7%$(B") | |
288 ("brny" . "$(7"7%%(B") | |
29364
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
289 ("brt" . "$(7"7%&(B") |
17301 | 290 ("brd" . "$(7"7%'(B") |
291 ("brn" . "$(7"7%((B") | |
292 ("brts" . "$(7"7%+(B") | |
293 ("brdz" . "$(7"7%,(B") | |
294 ("brl" . "$(7"7$d(B") | |
295 ("br" . "$(7$X(B") | |
296 ("mr" . "$(7$Y(B") | |
297 ("sr" . "$(7$[(B") | |
298 ("hr" . "$(7$\(B") | |
299 ("jr" . "$(7$](B") | |
300 ("kl" . "$(7$`(B") | |
301 ("gl" . "$(7$a(B") | |
302 ("blt" . "$(7"7%E(B") | |
303 ("bld" . "$(7"7%F(B") | |
304 ("bl" . "$(7$b(B") | |
305 ("zl" . "$(7$c(B") | |
306 ("rl" . "$(7$d(B") | |
307 ("sl" . "$(7$e(B") | |
308 ("rk" . "$(7%!(B") | |
309 ("rg" . "$(7%"(B") | |
310 ("rj" . "$(7%$(B") | |
311 ("rt" . "$(7%&(B") | |
312 ("rd" . "$(7%'(B") | |
313 ("rn" . "$(7%((B") | |
314 ("rb" . "$(7%)(B") | |
315 ("rm" . "$(7%*(B") | |
316 ("lk" . "$(7%@(B") | |
317 ("lg" . "$(7%A(B") | |
318 ("lc" . "$(7%C(B") | |
319 ("lj" . "$(7%D(B") | |
320 ("lt" . "$(7%E(B") | |
321 ("ld" . "$(7%F(B") | |
322 ("ln" . "$(7!!(B") ; dummy \x2121 | |
323 ("lp" . "$(7%G(B") | |
324 ("lb" . "$(7%H(B") | |
325 ("lh" . "$(7%I(B") | |
326 ("sk" . "$(7%P(B") | |
327 ("sg" . "$(7%Q(B") | |
328 ("st" . "$(7%T(B") | |
329 ("sd" . "$(7%U(B") | |
330 ("sn" . "$(7%V(B") | |
331 ("sp" . "$(7%W(B") | |
332 ("sb" . "$(7%X(B") | |
29364
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
333 ("sm" . "$(7%Y(B")) |
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
334 ) |
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
335 |
17301 | 336 |
337 (defconst tibetan-subjoined-transcription-alist | |
26897
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
338 (sort '(("+k" . "$(7#!(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
339 ("+kh" . "$(7#"(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
340 ("+g" . "$(7##(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
341 ("+gh" . "$(7#$(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
342 ("+ng" . "$(7#%(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
343 ("+c" . "$(7#&(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
344 ("+ch" . "$(7#'(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
345 ("+j" . "$(7#((B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
346 ("+ny" . "$(7#*(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
347 ("+T" . "$(7#+(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
348 ("+TH" . "$(7#,(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
349 ("+D" . "$(7#-(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
350 ("+DH" . "$(7#.(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
351 ("+N" . "$(7#/(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
352 ("+t" . "$(7#0(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
353 ("+th" . "$(7#1(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
354 ("+d" . "$(7#2(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
355 ("+dh" . "$(7#3(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
356 ("+n" . "$(7#4(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
357 ("+p" . "$(7#5(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
358 ("+ph" . "$(7#6(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
359 ("+b" . "$(7#7(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
360 ("+bh" . "$(7#8(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
361 ("+m" . "$(7#9(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
362 ("+ts" . "$(7#:(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
363 ("+tsh" . "$(7#;(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
364 ("+dz" . "$(7#<(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
365 ("+dzh" . "$(7#=(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
366 ("+w" . "$(7#>(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
367 ("+zh" . "$(7#?(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
368 ("+z" . "$(7#@(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
369 ("+'" . "$(7#A(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
370 ("+y" . "$(7#B(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
371 ("+r" . "$(7#C(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
372 ("+l" . "$(7#D(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
373 ("+sh" . "$(7#E(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
374 ("+SH" . "$(7#F(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
375 ("+s" . "$(7#G(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
376 ("+h" . "$(7#H(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
377 ("+A" . "$(7#I(B") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
378 ("+kSH" . "$(7#J(B") |
29364
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
379 ;; Added by Tomabechi 1999/12/10 |
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
380 ("+W" . "$(7#K(B") ;; fixed form subscribed WA |
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
381 ("+Y" . "$(7#L(B") ;; fixed form subscribed YA |
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
382 ("+R" . "$(7#M(B") ;; fixed form subscribed RA |
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
383 ) |
26897
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
384 (lambda (x y) (> (length (car x)) (length (car y)))))) |
17301 | 385 |
386 ;;; | |
387 ;;; alist for Tibetan base consonant <-> subjoined consonant conversion. | |
388 ;;; | |
389 (defconst tibetan-base-to-subjoined-alist | |
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"'(B" . "$(7#'(B") | |
397 ("$(7"((B" . "$(7#((B") | |
398 ("$(7"*(B" . "$(7#*(B") | |
399 ("$(7"+(B" . "$(7#+(B") | |
400 ("$(7",(B" . "$(7#,(B") | |
401 ("$(7"-(B" . "$(7#-(B") | |
402 ("$(7".(B" . "$(7#.(B") | |
403 ("$(7"/(B" . "$(7#/(B") | |
404 ("$(7"0(B" . "$(7#0(B") | |
405 ("$(7"1(B" . "$(7#1(B") | |
406 ("$(7"2(B" . "$(7#2(B") | |
407 ("$(7"3(B" . "$(7#3(B") | |
408 ("$(7"4(B" . "$(7#4(B") | |
409 ("$(7"5(B" . "$(7#5(B") | |
410 ("$(7"6(B" . "$(7#6(B") | |
411 ("$(7"7(B" . "$(7#7(B") | |
412 ("$(7"8(B" . "$(7#8(B") | |
413 ("$(7"9(B" . "$(7#9(B") | |
414 ("$(7":(B" . "$(7#:(B") | |
415 ("$(7";(B" . "$(7#;(B") | |
416 ("$(7"<(B" . "$(7#<(B") | |
417 ("$(7"=(B" . "$(7#=(B") | |
418 ("$(7">(B" . "$(7#>(B") | |
419 ("$(7"?(B" . "$(7#?(B") | |
420 ("$(7"@(B" . "$(7#@(B") | |
421 ("$(7"A(B" . "$(7#A(B") | |
422 ("$(7"B(B" . "$(7#B(B") | |
423 ("$(7"C(B" . "$(7#C(B") | |
424 ("$(7"D(B" . "$(7#D(B") | |
425 ("$(7"E(B" . "$(7#E(B") | |
426 ("$(7"F(B" . "$(7#F(B") | |
427 ("$(7"G(B" . "$(7#G(B") | |
428 ("$(7"H(B" . "$(7#H(B") | |
429 ("$(7"I(B" . "$(7#I(B") | |
29364
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
430 ("$(7"J(B" . "$(7#J(B") |
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
431 ;; Added by Tomabechi 1999/12/10 |
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
432 ("$(7"K(B" . "$(7#M(B") ;; Fixed form RA (224B->234D) |
2891d66b723b
(tibetan-composable-pattern): More
Kenichi Handa <handa@m17n.org>
parents:
26897
diff
changeset
|
433 )) |
29597
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
434 |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
435 ;;; alist for Tibetan composite vowels (long i, vocalic r, etc.) |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
436 ;;; New varialble. created by Tomabechi 2000/06/08 |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
437 (defconst tibetan-composite-vowel-alist |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
438 '(;; LONG A |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
439 ;; ("$(7"R(B" . ((bc . tc) ?$(7"R(B)) |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
440 ;; LONG I |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
441 ("$(7"T(B" . (?$(7"R(B (tc . bc) ?$(7"S(B)) |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
442 ;; LONG U |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
443 ("$(7"V(B" . (?$(7"R(B (bc . tc) ?$(7"U(B)) |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
444 ;; VOCALIC R |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
445 ("$(7"W(B" . (?$(7#C(B (tc . bc) ?$(7"a(B)) |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
446 ;; LONG VOCALIC R |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
447 ("$(7"X(B" . (?$(7#C(B (bc . tc) ?$(7"R(B (tc . bc) ?$(7"a(B)) |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
448 ;; VOCALIC L |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
449 ("$(7"Y(B" . (?$(7#D(B (tc . bc) ?$(7"a(B)) |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
450 ;;$(7!;(BLONG VOCALIC L |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
451 ("$(7"Z(B" . (?$(7#D(B (bc . tc) ?$(7"R(B (tc . bc) ?$(7"a(B)) |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
452 ;; LONG REVERSE I |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
453 ("$(7"b(B" . (?$(7"R(B (tc . bc) ?$(7"a(B)) |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
454 )) |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
455 |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
456 |
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
457 |
17301 | 458 ;;; |
459 ;;; alist for Tibetan consonantic components <-> precomposed glyph conversion. | |
460 ;;; (includes some punctuation conversion rules) | |
461 ;;; | |
462 (defconst tibetan-precomposition-rule-alist | |
26897
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
463 `(("$(7"6#B#>(B" . "$(7$G(B") |
17301 | 464 ("$(7"##C#>(B" . "$(7$_(B") |
465 ("$(7";#>(B" . "$(7$)(B") | |
466 ("$(7"C#:#>(B" . "$(7%.(B") | |
467 ("$(7"C###>(B" . "$(7%-(B") | |
468 ("$(7"C#!#B(B" . "$(7%0(B") | |
469 ("$(7"C###B(B" . "$(7%1(B") | |
470 ("$(7"C#9#B(B" . "$(7%2(B") | |
471 ("$(7"G#!#B(B" . "$(7%`(B") | |
472 ("$(7"G###B(B" . "$(7%a(B") | |
473 ("$(7"G#5#B(B" . "$(7%b(B") | |
474 ("$(7"G#7#B(B" . "$(7%c(B") | |
475 ("$(7"G#9#B(B" . "$(7%d(B") | |
476 ("$(7"G#!#C(B" . "$(7%p(B") | |
477 ("$(7"G###C(B" . "$(7%q(B") | |
478 ("$(7"G#4#C(B" . "$(7%r(B") | |
479 ("$(7"G#5#C(B" . "$(7%s(B") | |
480 ("$(7"G#7#C(B" . "$(7%t(B") | |
481 ("$(7"G#9#C(B" . "$(7%u(B") | |
482 ("$(7""#>(B" . "$(7$"(B") | |
483 ("$(7"*#>(B" . "$(7$%(B") | |
484 ("$(7":#>(B" . "$(7$((B") | |
485 ("$(7"?#>(B" . "$(7$*(B") | |
486 ("$(7"E#>(B" . "$(7$.(B") | |
487 ("$(7""#B(B" . "$(7$A(B") | |
488 ("$(7"6#B(B" . "$(7$D(B") | |
489 ("$(7""#C(B" . "$(7$Q(B") | |
490 ("$(7"1#C(B" . "$(7$T(B") | |
491 ("$(7"6#C(B" . "$(7$W(B") | |
492 ("$(7"E#C(B" . "$(7$Z(B") | |
493 ("$(7"<#C(B" . "$(7$^(B") | |
494 ("$(7"C#%(B" . "$(7%#(B") | |
495 ("$(7"C#*(B" . "$(7%%(B") | |
496 ("$(7"C#:(B" . "$(7%+(B") | |
497 ("$(7"C#<(B" . "$(7%,(B") | |
498 ("$(7"D#%(B" . "$(7%B(B") | |
499 ("$(7"G#%(B" . "$(7%R(B") | |
500 ("$(7"G#*(B" . "$(7%S(B") | |
501 ("$(7"G#:(B" . "$(7%Z(B") | |
502 ("$(7"!#>(B" . "$(7$!(B") | |
503 ("$(7"##>(B" . "$(7$#(B") | |
504 ("$(7"&#>(B" . "$(7$$(B") | |
505 ("$(7"0#>(B" . "$(7$&(B") | |
506 ("$(7"2#>(B" . "$(7$'(B") | |
507 ("$(7"@#>(B" . "$(7$+(B") | |
508 ("$(7"C#>(B" . "$(7$,(B") | |
509 ("$(7"D#>(B" . "$(7$-(B") | |
510 ("$(7"G#>(B" . "$(7$/(B") | |
511 ("$(7"H#>(B" . "$(7$0(B") | |
512 ("$(7"!#B(B" . "$(7$@(B") | |
513 ("$(7"##B(B" . "$(7$B(B") | |
514 ("$(7"5#B(B" . "$(7$C(B") | |
515 ("$(7"7#B(B" . "$(7$E(B") | |
516 ("$(7"9#B(B" . "$(7$F(B") | |
517 ("$(7"!#C(B" . "$(7$P(B") | |
518 ("$(7"##C(B" . "$(7$R(B") | |
519 ("$(7"0#C(B" . "$(7$S(B") | |
520 ("$(7"2#C(B" . "$(7$U(B") | |
521 ("$(7"5#C(B" . "$(7$V(B") | |
522 ("$(7"7#C(B" . "$(7$X(B") | |
523 ("$(7"9#C(B" . "$(7$Y(B") | |
524 ("$(7"G#C(B" . "$(7$[(B") | |
525 ("$(7"H#C(B" . "$(7$\(B") | |
526 ("$(7"(#C(B" . "$(7$](B") | |
527 ("$(7"!#D(B" . "$(7$`(B") | |
528 ("$(7"##D(B" . "$(7$a(B") | |
529 ("$(7"7#D(B" . "$(7$b(B") | |
530 ("$(7"@#D(B" . "$(7$c(B") | |
531 ("$(7"C#D(B" . "$(7$d(B") | |
532 ("$(7"G#D(B" . "$(7$e(B") | |
533 ("$(7"C#!(B" . "$(7%!(B") | |
534 ("$(7"C##(B" . "$(7%"(B") | |
535 ("$(7"C#((B" . "$(7%$(B") | |
536 ("$(7"C#0(B" . "$(7%&(B") | |
537 ("$(7"C#2(B" . "$(7%'(B") | |
538 ("$(7"C#4(B" . "$(7%((B") | |
539 ("$(7"C#7(B" . "$(7%)(B") | |
540 ("$(7"C#9(B" . "$(7%*(B") | |
541 ("$(7"D#!(B" . "$(7%@(B") | |
542 ("$(7"D##(B" . "$(7%A(B") | |
29597
79fb788042f3
(tibetan-composable-pattern): Fix previous change.
Kenichi Handa <handa@m17n.org>
parents:
29364
diff
changeset
|
543 ("$(7"D#4(B" . "$(7!!(B") ; dummy 0x2121 added 2000/06/08 for transition l -> lng |
17301 | 544 ("$(7"D#&(B" . "$(7%C(B") |
545 ("$(7"D#((B" . "$(7%D(B") | |
546 ("$(7"D#0(B" . "$(7%E(B") | |
547 ("$(7"D#2(B" . "$(7%F(B") | |
548 ("$(7"D#5(B" . "$(7%G(B") | |
549 ("$(7"D#7(B" . "$(7%H(B") | |
550 ("$(7"D#H(B" . "$(7%I(B") | |
551 ("$(7"G#!(B" . "$(7%P(B") | |
552 ("$(7"G##(B" . "$(7%Q(B") | |
553 ("$(7"G#0(B" . "$(7%T(B") | |
554 ("$(7"G#2(B" . "$(7%U(B") | |
555 ("$(7"G#4(B" . "$(7%V(B") | |
556 ("$(7"G#5(B" . "$(7%W(B") | |
557 ("$(7"G#7(B" . "$(7%X(B") | |
26897
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
558 ("$(7"G#9(B" . "$(7%Y(B"))) |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
559 |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
560 (defconst tibetan-regexp |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
561 (let ((l (list tibetan-precomposed-transcription-alist |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
562 tibetan-consonant-transcription-alist |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
563 tibetan-vowel-transcription-alist |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
564 tibetan-modifier-transcription-alist |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
565 tibetan-subjoined-transcription-alist)) |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
566 (separator "\\|") |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
567 tail pattern) |
17301 | 568 (while l |
26897
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
569 (setq tail (car l) l (cdr l)) |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
570 (while tail |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
571 (setq pattern (cons separator (cons (car (car tail)) pattern)) |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
572 tail (cdr tail)))) |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
573 (apply 'concat (nreverse (cdr pattern)))) |
9895d3c3e7ce
Register tibetan-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
574 "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
|
575 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
|
576 from a roman transcription to the corresponding Tibetan character.") |
17301 | 577 |
578 (defvar tibetan-precomposed-regexp | |
579 (let ((l tibetan-precomposed-transcription-alist) | |
580 temp) | |
581 (setq temp "^\\(") | |
582 (setq temp | |
583 (concat temp (car (car l)))) | |
584 (setq l (cdr l)) | |
585 (while l | |
586 (setq temp | |
587 (concat temp "\\|" (car (car l)))) | |
588 (setq l (cdr l))) | |
589 (concat temp "\\)")) | |
590 "Regexp string to match a romanized Tibetan complex consonant. | |
591 The result of matching is to be used for indexing alists when the input key | |
592 from an input method is converted to the corresponding precomposed glyph.") | |
593 | |
594 (defvar tibetan-precomposition-rule-regexp | |
595 (let ((l tibetan-precomposition-rule-alist) | |
596 temp) | |
597 (setq temp "\\(") | |
598 (setq temp (concat temp (car (car l)))) | |
599 (setq l (cdr l)) | |
600 (while l | |
601 (setq temp (concat temp "\\|" (car (car l)))) | |
602 (setq l (cdr l))) | |
603 (concat temp "\\)")) | |
604 "Regexp string to match a sequence of Tibetan consonantic components, i.e., | |
605 one base consonant and one or more subjoined consonants. | |
606 The result of matching is to be used for indexing alist when the component | |
607 sequence is converted to the corresponding precomposed glyph. | |
608 This also matches some punctuation characters which need conversion.") | |
609 | |
610 (defvar tibetan-decomposed nil) | |
611 (defvar tibetan-decomposed-temp nil) | |
612 | |
33778 | 613 (provide 'tibetan) |
614 | |
52401 | 615 ;;; arch-tag: 8d37c8d7-f95d-450f-9ec2-819e61fc79a7 |
38436
b174db545cfd
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
33778
diff
changeset
|
616 ;;; tibetan.el ends here |