aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/language
diff options
context:
space:
mode:
authorKenichi Handa2007-12-01 04:20:22 +0000
committerKenichi Handa2007-12-01 04:20:22 +0000
commit77aba77ecbf35f2d4a2fb6232b76437203f819c5 (patch)
tree24af5f11b21ed6c65f8bf482762f25ef1340be0c /lisp/language
parent4fa0f779ce3a1d8c302b09f991d1303576f6b526 (diff)
downloademacs-77aba77ecbf35f2d4a2fb6232b76437203f819c5.tar.gz
emacs-77aba77ecbf35f2d4a2fb6232b76437203f819c5.zip
(devanagari-composition-function): Use
font-shape-text if auto-compose-current-font is non-nil.
Diffstat (limited to 'lisp/language')
-rw-r--r--lisp/language/devan-util.el14
1 files changed, 10 insertions, 4 deletions
diff --git a/lisp/language/devan-util.el b/lisp/language/devan-util.el
index 41d7937493c..8b10d6650c8 100644
--- a/lisp/language/devan-util.el
+++ b/lisp/language/devan-util.el
@@ -115,12 +115,18 @@
115If STRING is not nil, it is a string, and POS is an index to the string. 115If STRING is not nil, it is a string, and POS is an index to the string.
116In this case, compose characters after POS of the string." 116In this case, compose characters after POS of the string."
117 (if string 117 (if string
118 ;; Not yet implemented. 118 (if (eq (string-match devanagari-composable-pattern pos) pos)
119 nil 119 (if auto-compose-current-font
120 (or (font-shape-text 0 (match-end 0) auto-compose-current-font
121 string)
122 pos)))
120 (goto-char pos) 123 (goto-char pos)
121 (if (looking-at devanagari-composable-pattern) 124 (if (looking-at devanagari-composable-pattern)
122 (prog1 (match-end 0) 125 (if auto-compose-current-font
123 (devanagari-compose-syllable-region pos (match-end 0)))))) 126 (or (font-shape-text pos (match-end 0) auto-compose-current-font)
127 pos)
128 (prog1 (match-end 0)
129 (devanagari-compose-syllable-region pos (match-end 0)))))))
124 130
125;; Notes on conversion steps. 131;; Notes on conversion steps.
126 132