diff options
author | Kenichi Handa <handa@m17n.org> | 2007-12-06 07:33:02 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2007-12-06 07:33:02 +0000 |
commit | 6152fd08ce1e54eb6e41bae8ea9e4f2bb64456c3 (patch) | |
tree | f63c1a090d8fedc5b31fc64bd9534a89ff277c82 /lisp/language | |
parent | 93a5991c53867056bd71acebd6f2b3807e47c945 (diff) | |
download | emacs-6152fd08ce1e54eb6e41bae8ea9e4f2bb64456c3.tar.gz |
(malayalam-composition-function): Use
font-shape-text if auto-compose-current-font is non-nil.
Diffstat (limited to 'lisp/language')
-rw-r--r-- | lisp/language/mlm-util.el | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/lisp/language/mlm-util.el b/lisp/language/mlm-util.el index 45d78c7019b..fb2965b14d4 100644 --- a/lisp/language/mlm-util.el +++ b/lisp/language/mlm-util.el @@ -106,12 +106,19 @@ If STRING is not nil, it is a string, and POS is an index to the string. In this case, compose characters after POS of the string." (if string - ;; Not yet implemented. - nil + (if auto-compose-current-font + (if (eq (string-match "[$,1@ (B-$,1A?(B]+" pos) pos) + (or (font-shape-text 0 (match-end 0) auto-compose-current-font + string) + pos))) (goto-char pos) - (if (looking-at malayalam-composable-pattern) - (prog1 (match-end 0) - (malayalam-compose-syllable-region pos (match-end 0)))))) + (if auto-compose-current-font + (if (looking-at "[$,1@ (B-$,1A?(B]+") + (or (font-shape-text pos (match-end 0) auto-compose-current-font) + pos) + (if (looking-at malayalam-composable-pattern) + (prog1 (match-end 0) + (malayalam-compose-syllable-region pos (match-end 0)))))))) ;; Notes on conversion steps. |