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