characters of Unicode category `Cf', simply replace it with SPC.
+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)
(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))