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