aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2007-12-06 07:33:28 +0000
committerKenichi Handa2007-12-06 07:33:28 +0000
commit33e2c0dadbb1ee191936d5bf6b521f4e0d63d2ec (patch)
tree2be525a4eeff72a3cb4ca1a3cdad44faeeb856de
parentfd19b75d0425b774d8560576ce5c783dbf3218e4 (diff)
downloademacs-33e2c0dadbb1ee191936d5bf6b521f4e0d63d2ec.tar.gz
emacs-33e2c0dadbb1ee191936d5bf6b521f4e0d63d2ec.zip
(tamil-composition-function): Use
font-shape-text if auto-compose-current-font is non-nil.
-rw-r--r--lisp/language/tml-util.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/language/tml-util.el b/lisp/language/tml-util.el
index 84e00f1fa89..58f32897f0d 100644
--- a/lisp/language/tml-util.el
+++ b/lisp/language/tml-util.el
@@ -360,17 +360,18 @@
360If STRING is not nil, it is a string, and POS is an index to the string. 360If STRING is not nil, it is a string, and POS is an index to the string.
361In this case, compose characters after POS of the string." 361In this case, compose characters after POS of the string."
362 (if string 362 (if string
363 (if (eq (string-match tamil-composable-pattern pos) pos) 363 (if auto-compose-current-font
364 (if auto-compose-current-font 364 (if (eq (string-match "[$,1< (B-$,1=?(B]+" pos) pos)
365 (or (font-shape-text 0 (match-end 0) auto-compose-current-font 365 (or (font-shape-text 0 (match-end 0) auto-compose-current-font
366 string) 366 string)
367 pos))) 367 pos)))
368 (goto-char pos) 368 (goto-char pos)
369 (if (looking-at tamil-composable-pattern) 369 (if auto-compose-current-font
370 (if auto-compose-current-font 370 (if (looking-at "[$,1< (B-$,1=?(B]+")
371 (or (font-shape-text pos (match-end 0) auto-compose-current-font)) 371 (or (font-shape-text pos (match-end 0) auto-compose-current-font))
372 (prog1 (match-end 0) 372 (if (looking-at tamil-composable-pattern)
373 (tamil-compose-syllable-region pos (match-end 0))))))) 373 (prog1 (match-end 0)
374 (tamil-compose-syllable-region pos (match-end 0))))))))
374 375
375(provide 'tml-util) 376(provide 'tml-util)
376 377