diff options
| author | Kenichi Handa | 2007-12-01 04:20:54 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2007-12-01 04:20:54 +0000 |
| commit | e542e76e4ceef54f46a157c4f26054d74b3c590a (patch) | |
| tree | 0b2555221df802acfbd42d9554fa6a43de446bc2 | |
| parent | 77aba77ecbf35f2d4a2fb6232b76437203f819c5 (diff) | |
| download | emacs-e542e76e4ceef54f46a157c4f26054d74b3c590a.tar.gz emacs-e542e76e4ceef54f46a157c4f26054d74b3c590a.zip | |
(tamil-composition-function): Use
font-shape-text if auto-compose-current-font is non-nil.
| -rw-r--r-- | lisp/language/tml-util.el | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/language/tml-util.el b/lisp/language/tml-util.el index ca4ad7a41fd..84e00f1fa89 100644 --- a/lisp/language/tml-util.el +++ b/lisp/language/tml-util.el | |||
| @@ -360,12 +360,17 @@ | |||
| 360 | If STRING is not nil, it is a string, and POS is an index to the string. | 360 | If STRING is not nil, it is a string, and POS is an index to the string. |
| 361 | In this case, compose characters after POS of the string." | 361 | In this case, compose characters after POS of the string." |
| 362 | (if string | 362 | (if string |
| 363 | ;; Not yet implemented. | 363 | (if (eq (string-match tamil-composable-pattern pos) pos) |
| 364 | nil | 364 | (if auto-compose-current-font |
| 365 | (or (font-shape-text 0 (match-end 0) auto-compose-current-font | ||
| 366 | string) | ||
| 367 | pos))) | ||
| 365 | (goto-char pos) | 368 | (goto-char pos) |
| 366 | (if (looking-at tamil-composable-pattern) | 369 | (if (looking-at tamil-composable-pattern) |
| 367 | (prog1 (match-end 0) | 370 | (if auto-compose-current-font |
| 368 | (tamil-compose-syllable-region pos (match-end 0)))))) | 371 | (or (font-shape-text pos (match-end 0) auto-compose-current-font)) |
| 372 | (prog1 (match-end 0) | ||
| 373 | (tamil-compose-syllable-region pos (match-end 0))))))) | ||
| 369 | 374 | ||
| 370 | (provide 'tml-util) | 375 | (provide 'tml-util) |
| 371 | 376 | ||