Commit b8321d86 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(compose-gstring-for-terminal): For zero-width

characters of Unicode category `Cf', simply replace it with SPC.
parent 560bb6ea
2009-06-10 Kenichi Handa <handa@m17n.org>
* composite.el (compose-gstring-for-terminal): For zero-width
characters of Unicode category `Cf', simply replace it with SPC.
2009-06-09 Agustín Martín <agustin.martin@hispalinux.es>
* ispell.el: Make `ispell-dictionary' customizable (#2555)
......
......@@ -681,7 +681,14 @@ a prepending a space before it."
(lglyph-set-from-to glyph i i)
(setq i (1+ i))))
(if (= (lglyph-width glyph) 0)
(progn
(if (eq (get-char-code-property (lglyph-char glyph)
'general-category)
'Cf)
(progn
;; Compose by replacing with a space.
(lglyph-set-char glyph 32)
(lglyph-set-width glyph 1)
(setq i (1+ i)))
;; Compose by prepending a space.
(setq gstring (lgstring-insert-glyph gstring i
(lglyph-copy glyph))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment