diff options
| author | Kenichi Handa | 1999-01-24 04:25:14 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1999-01-24 04:25:14 +0000 |
| commit | 1d5021c352f9a5e7856e58f7edc8a93c2a2ed521 (patch) | |
| tree | 628a6e385ce390c1dc4bbe5a55217d54227bb4f8 | |
| parent | 2e92a8cb870d3d94b3e98332e296ca530f3ce99a (diff) | |
| download | emacs-1d5021c352f9a5e7856e58f7edc8a93c2a2ed521.tar.gz emacs-1d5021c352f9a5e7856e58f7edc8a93c2a2ed521.zip | |
(tibetan-vertical-stacking): If the arg
FIRST is a composite character, decompose it at first.
| -rw-r--r-- | lisp/language/tibet-util.el | 12 |
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." | |||
| 194 | (defun tibetan-vertical-stacking (first second upward) | 194 | (defun tibetan-vertical-stacking (first second upward) |
| 195 | "Return a vertically stacked composite char consisting of FIRST and SECOND. | 195 | "Return a vertically stacked composite char consisting of FIRST and SECOND. |
| 196 | If UPWARD is non-nil, then SECOND is put above FIRST." | 196 | If UPWARD is non-nil, then SECOND is put above FIRST." |
| 197 | (if upward | 197 | (let (l rule) |
| 198 | (compose-chars first '(tc . bc) second) | 198 | (if (cmpcharp first) |
| 199 | (compose-chars first '(bc . tc) second))) | 199 | (setq l (decompose-composite-char first 'list t)) |
| 200 | (setq l (list first))) | ||
| 201 | (if upward | ||
| 202 | (setq rule (list '(tc . bc))) | ||
| 203 | (setq rule (list '(bc . tc)))) | ||
| 204 | (setq l (append l rule (list second))) | ||
| 205 | (apply 'compose-chars l))) | ||
| 200 | 206 | ||
| 201 | ;;; This function makes a composite char from a string. | 207 | ;;; This function makes a composite char from a string. |
| 202 | ;;; Note that this function returns a string, not a char. | 208 | ;;; Note that this function returns a string, not a char. |