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