diff options
| author | Kenichi Handa | 2008-02-25 01:38:06 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-02-25 01:38:06 +0000 |
| commit | 7d8402965e9e7f364a84fde59881f463bd12e5ef (patch) | |
| tree | 1a0f97e213df70a7f9cdbf5efd18985e64fd7e2b | |
| parent | 0bc30ad94db078887bade9a09b1e49c8a0f70361 (diff) | |
| download | emacs-7d8402965e9e7f364a84fde59881f463bd12e5ef.tar.gz emacs-7d8402965e9e7f364a84fde59881f463bd12e5ef.zip | |
(tibetan-composition-function): Adjusted for the new calling way
(argument changed). Try font-shape-text if possible.
| -rw-r--r-- | lisp/language/tibet-util.el | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/lisp/language/tibet-util.el b/lisp/language/tibet-util.el index 88f970e5704..5dc948ed90e 100644 --- a/lisp/language/tibet-util.el +++ b/lisp/language/tibet-util.el | |||
| @@ -316,21 +316,12 @@ are decomposed into normal Tibetan character sequences." | |||
| 316 | new)) | 316 | new)) |
| 317 | 317 | ||
| 318 | ;;;###autoload | 318 | ;;;###autoload |
| 319 | (defun tibetan-composition-function (pos &optional string) | 319 | (defun tibetan-composition-function (from to font-object string) |
| 320 | (if string | 320 | (or (and font-object |
| 321 | (if auto-compose-current-font | 321 | (font-shape-text from to font-object string)) |
| 322 | (if (eq (string-match "[$(7!0(B-$,1GQ(B]+" pos) pos) | 322 | (if string |
| 323 | (or (font-shape-text 0 (match-end 0) auto-compose-current-font | 323 | (tibetan-compose-string string) |
| 324 | string) | 324 | (tibetan-compose-region from to)))) |
| 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) | ||
| 331 | (if (looking-at tibetan-composable-pattern) | ||
| 332 | (prog1 (match-end 0) | ||
| 333 | (tibetan-compose-region pos (match-end 0)))))))) | ||
| 334 | 325 | ||
| 335 | ;;; | 326 | ;;; |
| 336 | ;;; This variable is used to avoid repeated decomposition. | 327 | ;;; This variable is used to avoid repeated decomposition. |