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