diff options
| author | Kenichi Handa | 2007-12-04 06:07:44 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2007-12-04 06:07:44 +0000 |
| commit | 3240618b729d06247e937f750aab2eadaac99d15 (patch) | |
| tree | 0ba73d6b0fd1e27d580beac75514f5372c0029ec | |
| parent | 3f8b1daa441934eb95e273432531381814cfaf75 (diff) | |
| download | emacs-3240618b729d06247e937f750aab2eadaac99d15.tar.gz emacs-3240618b729d06247e937f750aab2eadaac99d15.zip | |
(devanagari-composition-function): Use
font-shape-text if auto-compose-current-font is non-nil.
| -rw-r--r-- | lisp/language/devan-util.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/language/devan-util.el b/lisp/language/devan-util.el index 8b10d6650c8..3d2efce9224 100644 --- a/lisp/language/devan-util.el +++ b/lisp/language/devan-util.el | |||
| @@ -115,18 +115,19 @@ | |||
| 115 | If STRING is not nil, it is a string, and POS is an index to the string. | 115 | If STRING is not nil, it is a string, and POS is an index to the string. |
| 116 | In this case, compose characters after POS of the string." | 116 | In this case, compose characters after POS of the string." |
| 117 | (if string | 117 | (if string |
| 118 | (if (eq (string-match devanagari-composable-pattern pos) pos) | 118 | (if auto-compose-current-font |
| 119 | (if auto-compose-current-font | 119 | (if (eq (string-match "[$,15@(B-$,16_(B]+" pos) pos) |
| 120 | (or (font-shape-text 0 (match-end 0) auto-compose-current-font | 120 | (or (font-shape-text 0 (match-end 0) auto-compose-current-font |
| 121 | string) | 121 | string) |
| 122 | pos))) | 122 | pos))) |
| 123 | (goto-char pos) | 123 | (goto-char pos) |
| 124 | (if (looking-at devanagari-composable-pattern) | 124 | (if auto-compose-current-font |
| 125 | (if auto-compose-current-font | 125 | (if (looking-at "[$,15@(B-$,16_(B]+") |
| 126 | (or (font-shape-text pos (match-end 0) auto-compose-current-font) | 126 | (or (font-shape-text pos (match-end 0) auto-compose-current-font) |
| 127 | pos) | 127 | pos) |
| 128 | (prog1 (match-end 0) | 128 | (if (looking-at devanagari-composable-pattern) |
| 129 | (devanagari-compose-syllable-region pos (match-end 0))))))) | 129 | (prog1 (match-end 0) |
| 130 | (devanagari-compose-syllable-region pos (match-end 0)))))))) | ||
| 130 | 131 | ||
| 131 | ;; Notes on conversion steps. | 132 | ;; Notes on conversion steps. |
| 132 | 133 | ||