diff options
author | Eli Zaretskii <eliz@gnu.org> | 2019-06-07 17:52:16 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-06-07 17:52:16 +0300 |
commit | 4ebfec02f05d838e4c88d10a764c13789816d6d4 (patch) | |
tree | f479671bb5f295b5eb324163e56751cb000f20b4 /lisp/language | |
parent | e5bc9a32b65e16ff48a50d56e3d8b4990e95acac (diff) | |
parent | f3fddfb5ef9b72cecc379e8b7ae4b728ed3895d7 (diff) | |
download | emacs-4ebfec02f05d838e4c88d10a764c13789816d6d4.tar.gz emacs-4ebfec02f05d838e4c88d10a764c13789816d6d4.tar.bz2 emacs-4ebfec02f05d838e4c88d10a764c13789816d6d4.zip |
Merge remote-tracking branch 'origin/harfbuzz'
Diffstat (limited to 'lisp/language')
-rw-r--r-- | lisp/language/ethio-util.el | 2 | ||||
-rw-r--r-- | lisp/language/hebrew.el | 6 | ||||
-rw-r--r-- | lisp/language/ind-util.el | 3 | ||||
-rw-r--r-- | lisp/language/japanese.el | 2 | ||||
-rw-r--r-- | lisp/language/lao-util.el | 6 | ||||
-rw-r--r-- | lisp/language/misc-lang.el | 4 | ||||
-rw-r--r-- | lisp/language/thai-util.el | 6 | ||||
-rw-r--r-- | lisp/language/tv-util.el | 2 |
8 files changed, 17 insertions, 14 deletions
diff --git a/lisp/language/ethio-util.el b/lisp/language/ethio-util.el index 04b15ddd9a8..2741538e68a 100644 --- a/lisp/language/ethio-util.el +++ b/lisp/language/ethio-util.el @@ -1014,7 +1014,7 @@ With ARG, insert that many delimiters." ;; ;;;###autoload -(defun ethio-composition-function (pos to font-object string) +(defun ethio-composition-function (pos to font-object string _direction) (setq pos (1- pos)) (let ((pattern "\\ce\\(፟\\|\\)")) (if string diff --git a/lisp/language/hebrew.el b/lisp/language/hebrew.el index ca3058b8eed..b493c291c24 100644 --- a/lisp/language/hebrew.el +++ b/lisp/language/hebrew.el @@ -152,7 +152,7 @@ Bidirectional editing is supported."))) ;; (3) If the font has precomposed glyphs, use them as far as ;; possible. Adjust the remaining glyphs artificially. -(defun hebrew-shape-gstring (gstring) +(defun hebrew-shape-gstring (gstring direction) (let* ((font (lgstring-font gstring)) (otf (font-get font :otf)) (nchars (lgstring-char-len gstring)) @@ -172,7 +172,7 @@ Bidirectional editing is supported."))) ((or (assq 'hebr (car otf)) (assq 'hebr (cdr otf))) ;; FONT has OpenType features for Hebrew. - (font-shape-gstring gstring)) + (font-shape-gstring gstring direction)) (t ;; FONT doesn't have OpenType features for Hebrew. @@ -217,7 +217,7 @@ Bidirectional editing is supported."))) ;; Now IDX is an index to the first non-precomposed glyph. ;; Adjust positions of the remaining glyphs artificially. (if (font-get font :combining-capability) - (font-shape-gstring gstring) + (font-shape-gstring gstring direction) (setq base-width (lglyph-width (lgstring-glyph gstring 0))) (while (< idx nglyphs) (setq glyph (lgstring-glyph gstring idx)) diff --git a/lisp/language/ind-util.el b/lisp/language/ind-util.el index 2bbfdc190b6..89397f2a81a 100644 --- a/lisp/language/ind-util.el +++ b/lisp/language/ind-util.el @@ -828,6 +828,9 @@ Returns new end position." (let ((pos from) newpos func (max to)) (narrow-to-region from to) (while (< pos max) + ;; FIXME: The below seems to assume + ;; composition-function-table holds functions? That is no + ;; longer true, since long ago. (setq func (aref composition-function-table (char-after pos))) (if (fboundp func) (setq newpos (funcall func pos nil) diff --git a/lisp/language/japanese.el b/lisp/language/japanese.el index fabeab89c12..7a0fd740e8e 100644 --- a/lisp/language/japanese.el +++ b/lisp/language/japanese.el @@ -248,7 +248,7 @@ eucJP-ms is defined in <http://www.opengroup.or.jp/jvc/cde/appendix.html>." (define-translation-table 'unicode-to-jisx0213 (char-table-extra-slot table 0))) -(defun compose-gstring-for-variation-glyph (gstring) +(defun compose-gstring-for-variation-glyph (gstring _direction) "Compose glyph-string GSTRING for graphic display. GSTRING must have two glyphs; the first is a glyph for a han character, and the second is a glyph for a variation selector." diff --git a/lisp/language/lao-util.el b/lisp/language/lao-util.el index 92b41e4f801..d2532030ce5 100644 --- a/lisp/language/lao-util.el +++ b/lisp/language/lao-util.el @@ -489,10 +489,10 @@ syllable. In that case, FROM and TO are indexes to STR." lao-str))) ;;;###autoload -(defun lao-composition-function (gstring) +(defun lao-composition-function (gstring direction) (if (= (lgstring-char-len gstring) 1) - (compose-gstring-for-graphic gstring) - (or (font-shape-gstring gstring) + (compose-gstring-for-graphic gstring direction) + (or (font-shape-gstring gstring direction) (let ((glyph-len (lgstring-glyph-len gstring)) (i 0) glyph) diff --git a/lisp/language/misc-lang.el b/lisp/language/misc-lang.el index c1aa79cae45..e25e63b4c5c 100644 --- a/lisp/language/misc-lang.el +++ b/lisp/language/misc-lang.el @@ -101,8 +101,8 @@ thin (i.e. 1-dot width) space." ;; Record error in arabic-change-gstring. (defvar arabic-shape-log nil) -(defun arabic-shape-gstring (gstring) - (setq gstring (font-shape-gstring gstring)) +(defun arabic-shape-gstring (gstring direction) + (setq gstring (font-shape-gstring gstring direction)) (condition-case err (when arabic-shaper-ZWNJ-handling (let ((font (lgstring-font gstring)) diff --git a/lisp/language/thai-util.el b/lisp/language/thai-util.el index d0f664951e9..e3303954c62 100644 --- a/lisp/language/thai-util.el +++ b/lisp/language/thai-util.el @@ -225,10 +225,10 @@ positions (integers or markers) specifying the region." (thai-compose-region (point-min) (point-max))) ;;;###autoload -(defun thai-composition-function (gstring) +(defun thai-composition-function (gstring direction) (if (= (lgstring-char-len gstring) 1) - (compose-gstring-for-graphic gstring) - (or (font-shape-gstring gstring) + (compose-gstring-for-graphic gstring direction) + (or (font-shape-gstring gstring direction) (let ((glyph-len (lgstring-glyph-len gstring)) (last-char (lgstring-char gstring (1- (lgstring-char-len gstring)))) diff --git a/lisp/language/tv-util.el b/lisp/language/tv-util.el index a667956a060..7ce8ee1e500 100644 --- a/lisp/language/tv-util.el +++ b/lisp/language/tv-util.el @@ -128,7 +128,7 @@ ;;;###autoload -(defun tai-viet-composition-function (from to font-object string) +(defun tai-viet-composition-function (from to font-object string _direction) (if string (if (string-match tai-viet-re string from) (tai-viet-compose-string from (match-end 0) string)) |