diff options
| -rw-r--r-- | lisp/language/tibet-util.el | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lisp/language/tibet-util.el b/lisp/language/tibet-util.el index e9f5e67df9d..b58c60dc784 100644 --- a/lisp/language/tibet-util.el +++ b/lisp/language/tibet-util.el | |||
| @@ -317,13 +317,17 @@ are decomposed into normal Tibetan character sequences." | |||
| 317 | 317 | ||
| 318 | ;;;###autoload | 318 | ;;;###autoload |
| 319 | (defun tibetan-composition-function (pos &optional string) | 319 | (defun tibetan-composition-function (pos &optional string) |
| 320 | (setq pos (1- pos)) | ||
| 321 | (if string | 320 | (if string |
| 322 | ;; Not yet implemented. | 321 | (if auto-compose-current-font |
| 323 | nil | 322 | (if (eq (string-match "[$(7!0(B-$,1GQ(B]+" pos) pos) |
| 324 | (if (>= pos (point-min)) | 323 | (or (font-shape-text 0 (match-end 0) auto-compose-current-font |
| 325 | (save-excursion | 324 | string) |
| 326 | (goto-char pos) | 325 | pos))) |
| 326 | (goto-char pos) | ||
| 327 | (if auto-compose-current-font | ||
| 328 | (if (looking-at "[$(7!0(B-$,1GQ(B]+") | ||
| 329 | (or (font-shape-text pos (match-end 0) auto-compose-current-font) | ||
| 330 | pos) | ||
| 327 | (if (looking-at tibetan-composable-pattern) | 331 | (if (looking-at tibetan-composable-pattern) |
| 328 | (prog1 (match-end 0) | 332 | (prog1 (match-end 0) |
| 329 | (tibetan-compose-region pos (match-end 0)))))))) | 333 | (tibetan-compose-region pos (match-end 0)))))))) |