aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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