diff options
| author | Kenichi Handa | 2007-12-06 07:33:02 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2007-12-06 07:33:02 +0000 |
| commit | fd19b75d0425b774d8560576ce5c783dbf3218e4 (patch) | |
| tree | e2ee9bf22ff3537b2a704c6da1747b4902dcee85 | |
| parent | 40fd3bb210485641b793bc49ffb3fead37039cfa (diff) | |
| download | emacs-fd19b75d0425b774d8560576ce5c783dbf3218e4.tar.gz emacs-fd19b75d0425b774d8560576ce5c783dbf3218e4.zip | |
(malayalam-composition-function): Use
font-shape-text if auto-compose-current-font is non-nil.
| -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 @@ | |||
| 106 | If STRING is not nil, it is a string, and POS is an index to the string. | 106 | If STRING is not nil, it is a string, and POS is an index to the string. |
| 107 | In this case, compose characters after POS of the string." | 107 | In this case, compose characters after POS of the string." |
| 108 | (if string | 108 | (if string |
| 109 | ;; Not yet implemented. | 109 | (if auto-compose-current-font |
| 110 | nil | 110 | (if (eq (string-match "[$,1@ (B-$,1A?(B]+" pos) pos) |
| 111 | (or (font-shape-text 0 (match-end 0) auto-compose-current-font | ||
| 112 | string) | ||
| 113 | pos))) | ||
| 111 | (goto-char pos) | 114 | (goto-char pos) |
| 112 | (if (looking-at malayalam-composable-pattern) | 115 | (if auto-compose-current-font |
| 113 | (prog1 (match-end 0) | 116 | (if (looking-at "[$,1@ (B-$,1A?(B]+") |
| 114 | (malayalam-compose-syllable-region pos (match-end 0)))))) | 117 | (or (font-shape-text pos (match-end 0) auto-compose-current-font) |
| 118 | pos) | ||
| 119 | (if (looking-at malayalam-composable-pattern) | ||
| 120 | (prog1 (match-end 0) | ||
| 121 | (malayalam-compose-syllable-region pos (match-end 0)))))))) | ||
| 115 | 122 | ||
| 116 | ;; Notes on conversion steps. | 123 | ;; Notes on conversion steps. |
| 117 | 124 | ||