summaryrefslogtreecommitdiff
path: root/lisp/language/tibet-util.el
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1999-01-24 04:25:14 +0000
committerKenichi Handa <handa@m17n.org>1999-01-24 04:25:14 +0000
commit9bb5c292c136ad999ca7aa71e8aed0dfbcf76c9c (patch)
treec9f7aea1a65da74701a0fc5ea8a7965ad50ee0e0 /lisp/language/tibet-util.el
parent9758b521a6d3a6ceb5838f0859924d4558f915d1 (diff)
downloademacs-9bb5c292c136ad999ca7aa71e8aed0dfbcf76c9c.tar.gz
(tibetan-vertical-stacking): If the arg
FIRST is a composite character, decompose it at first.
Diffstat (limited to 'lisp/language/tibet-util.el')
-rw-r--r--lisp/language/tibet-util.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/language/tibet-util.el b/lisp/language/tibet-util.el
index e26f3779382..df2a0261212 100644
--- a/lisp/language/tibet-util.el
+++ b/lisp/language/tibet-util.el
@@ -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.