aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKenichi Handa2002-11-07 06:32:49 +0000
committerKenichi Handa2002-11-07 06:32:49 +0000
commit69d21b0cc86c3d2053671e3238f190d43b853cfd (patch)
tree28bd2d24f7820eb4e7db274e179b5caee4aa9001 /lisp
parented01146036acc018eb62e5e41e6ab34b44853a7e (diff)
downloademacs-69d21b0cc86c3d2053671e3238f190d43b853cfd.tar.gz
emacs-69d21b0cc86c3d2053671e3238f190d43b853cfd.zip
Register tibetan-composition-function in
composition-function-table for Tibetan characters.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/language/tibetan.el32
1 files changed, 17 insertions, 15 deletions
diff --git a/lisp/language/tibetan.el b/lisp/language/tibetan.el
index 3a51b709fe2..9ee39ddae87 100644
--- a/lisp/language/tibetan.el
+++ b/lisp/language/tibetan.el
@@ -101,7 +101,7 @@
101 (sample-text 101 (sample-text
102 . (tibetan-compose-string 102 . (tibetan-compose-string
103 (copy-sequence 103 (copy-sequence
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"))))) 104"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")))))
105 105
106 106
107;; `$(7"A(B' is included in the pattern for subjoined consonants because we 107;; `$(7"A(B' is included in the pattern for subjoined consonants because we
@@ -116,13 +116,6 @@
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]*" 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]*"
117 "Regexp matching a composable sequence of Tibetan characters.") 117 "Regexp matching a composable sequence of Tibetan characters.")
118 118
119;; Register a function to compose Tibetan characters.
120(set-char-table-range composition-function-table
121 (cons (decode-char 'tibetan #x2121)
122 (decode-char 'tibetan #x7E7E))
123 (list (cons tibetan-composable-pattern
124 'tibetan-composition-function)))
125
126;;; 119;;;
127;;; Definitions of conversion data. 120;;; Definitions of conversion data.
128;;; 121;;;
@@ -557,13 +550,13 @@
557 ("$(7"G#9(B" . "$(7%Y(B"))) 550 ("$(7"G#9(B" . "$(7%Y(B")))
558 551
559(defconst tibetan-obsolete-glyphs 552(defconst tibetan-obsolete-glyphs
560 `(("$(7!=(B" . "$(8!=(B") ; 2 col <-> 1 col 553 `(("$(7!=(B" . "$(7!=(B") ; 2 col <-> 1 col
561 ("$(7!?(B" . "$(8!?(B") 554 ("$(7!?(B" . "$(7!?(B")
562 ("$(7!@(B" . "$(8!@(B") 555 ("$(7!@(B" . "$(7!@(B")
563 ("$(7!A(B" . "$(8!A(B") 556 ("$(7!A(B" . "$(7!A(B")
564 ("$(7"`(B" . "$(8"`(B") 557 ("$(7"`(B" . "$(7"`(B")
565 ("$(7!;(B" . "$(8!;(B") 558 ("$(7!;(B" . "$(7!;(B")
566 ("$(7!D(B" . "$(8!D(B") 559 ("$(7!D(B" . "$(7!D(B")
567 ;; Yes these are dirty. But ... 560 ;; Yes these are dirty. But ...
568 ("$(7!>(B $(7!>(B" . ,(compose-string "$(7!>(B $(7!>(B" 0 3 [?$(7!>(B (Br . Bl) ? (Br . Bl) ?$(7!>(B])) 561 ("$(7!>(B $(7!>(B" . ,(compose-string "$(7!>(B $(7!>(B" 0 3 [?$(7!>(B (Br . Bl) ? (Br . Bl) ?$(7!>(B]))
569 ("$(7!4!5!5(B" . ,(compose-string 562 ("$(7!4!5!5(B" . ,(compose-string
@@ -626,6 +619,15 @@ This also matches some punctuation characters which need conversion.")
626(defvar tibetan-decomposed nil) 619(defvar tibetan-decomposed nil)
627(defvar tibetan-decomposed-temp nil) 620(defvar tibetan-decomposed-temp nil)
628 621
622;; For automatic composition.
623(dolist (range '((?$(7#!(B . ?$(7#J(B) "$(7#K#L#M"Q"R(B" (?$(7"S(B . ?$(7"^(B) "$(7"a"b"e"_"c"d(B" (?$(7"g(B . ?$(7"l(B) "$(7!I!e!g(B"))
624 (if (stringp range)
625 (dotimes (i (length range))
626 (aset composition-function-table (aref range i)
627 'tibetan-composition-function))
628 (set-char-table-range composition-function-table range
629 'tibetan-composition-function)))
630
629(provide 'tibetan) 631(provide 'tibetan)
630 632
631;;; tibetan.el ends here 633;;; tibetan.el ends here