GNU bug report logs -
#28339
25.2; Emacs shows ZWNJ character (Zero Width non-Joiner) as Space
Previous Next
Reported by: Nima Aryan <nimawebgard <at> gmail.com>
Date: Sun, 3 Sep 2017 16:41:01 UTC
Severity: normal
Found in version 25.2
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #77 received at 28339 <at> debbugs.gnu.org (full text, mbox):
Hi all,
A few thoughts from an occasional user of this feature.
Eli Zaretskii writes:
> [...] I thought the shaping engine gives us back glyphs that don't
> include ZWNJ itself. Evidently, that's not true, which I find
> strange.
I thought that with OpenType at least that depends on the font? Not
that I trust that fonts do the right thing. I think the right thing for
the font would be to just implement the behaviour (break up ligatgures,
prevent shaping), but not show a glyph. Emacs could of course work
around fonts that *do* show a glyph by rendering the characters before
and after the ZWNJ separately.
For read-only text (Info, Gnus) that is the behaviour that I would like.
For editing, I would like a hair-line type glyph to delete. But I
personally can live with not showing a glyph, and deleting ZWNJ with the
character after it, so that X ZWNJ Y BACKSPACE results in "X". I think
in this scenario multiple ZWNJs should be deleted as one. This is
similar to composed characters, I think.
We should also consider what to do about ZWJ and the bidi directional
control characters. ZWJ handling must come from the font, I think, so
this really can only work when the font works right, but than ZWJ is
probably more rarely used, so it's ok not to try to work around bad
fonts.
Other issues (excuse the verbosity, most of you know all this already,
of course):
* Hightlighting ZWNJ in read-only text while searching for it with
incremental search.
* Read-only parts of buffers that are not completely read-only
(Customize, minibuffer prompts).
* User-specified replacement via display tables.
benny
This bug report was last modified 4 years and 259 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.