]> git.eshelyaron.com Git - emacs.git/commitdiff
(tibetan-vertical-stacking): If the arg
authorKenichi Handa <handa@m17n.org>
Sun, 24 Jan 1999 04:25:14 +0000 (04:25 +0000)
committerKenichi Handa <handa@m17n.org>
Sun, 24 Jan 1999 04:25:14 +0000 (04:25 +0000)
FIRST is a composite character, decompose it at first.

lisp/language/tibet-util.el

index e26f3779382b96521b4917dd3f68b7a4f81d976f..df2a02612122114018a498b0fa2096456f2f4049 100644 (file)
@@ -194,9 +194,15 @@ Returns non-nil, if CH contains vowel/vowel modifiers."
 (defun tibetan-vertical-stacking (first second upward)
   "Return a vertically stacked composite char consisting of FIRST and SECOND.
 If UPWARD is non-nil, then SECOND is put above FIRST."
-  (if upward
-      (compose-chars first '(tc . bc) second)
-    (compose-chars first '(bc . tc) second)))
+  (let (l rule)
+    (if (cmpcharp first)
+           (setq l (decompose-composite-char first 'list t))
+        (setq l (list first)))
+    (if upward
+           (setq rule (list '(tc . bc)))
+        (setq rule (list '(bc . tc))))
+    (setq l (append l rule (list second)))
+    (apply 'compose-chars l)))
 
 ;;; This function makes a composite char from a string.
 ;;; Note that this function returns a string, not a char.