GNU bug report logs - #54325
Emacs Shows the ZWNJ character (U+200C) as a space character

Previous Next

Package: emacs;

Reported by: hossein valizadeh <valizadeh.ho <at> gmail.com>

Date: Thu, 10 Mar 2022 02:28:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: hossein valizadeh <valizadeh.ho <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 54325 <at> debbugs.gnu.org
Subject: bug#54325: Emacs Shows the ZWNJ character (U+200C) as a space character
Date: Thu, 10 Mar 2022 21:26:27 +0330
[Message part 1 (text/plain, inline)]
You are right. This variable fixed everything.

Thank you very much for your attention.

On Thu, Mar 10, 2022 at 9:18 PM Eli Zaretskii <eliz <at> gnu.org> wrote:

> [PLEASE keep the bug address on the CC list.]
>
> > From: hossein valizadeh <valizadeh.ho <at> gmail.com>
> > Date: Thu, 10 Mar 2022 20:53:49 +0330
> >
> > > Also, does this happen in "emacs -Q"?
> > Yes, it happens ...
> >
> > این‌ها
> >
> > ماه‌ها
> >
> > رفته‌ای
>
> OK, I see it now, thanks.
>
> I think what you want is to customize the variable
> arabic-shaper-ZWNJ-handling to the value 'as-space or maybe even
> 'absorb.  Then the display will be as you expect.
>
> FTR: Emacs 27 had a bug in the character composition/shaping rules for
> the Arabic script, and on my system the text you sent is displayed in
> Emacs 27 with glitches (when I move the cursor across the ZWNJ
> character, it leaves artifacts behind).  Emacs 28 fixes that problem,
> and that's why you see the difference.  By default, Emacs isn't
> supposed to display ZWNJ specially in Arabic shaping, but the above
> variable can change that, so I suggest you use it.
>
> Bottom line: I don't think there's a bug here.  You just don't like
> the default behavior, but an optional behavior like you want is
> available.
>
[Message part 2 (text/html, inline)]

This bug report was last modified 3 years and 70 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.