unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: hossein valizadeh <valizadeh.ho@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 54325@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	[thread overview]
Message-ID: <CAMyfNNoqj9rkJgi+auEHVUf2DUMi_86z32wbu0K8Y-4MCGuBSw@mail.gmail.com> (raw)
In-Reply-To: <8335jpem20.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1311 bytes --]

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@gnu.org> wrote:

> [PLEASE keep the bug address on the CC list.]
>
> > From: hossein valizadeh <valizadeh.ho@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.
>

[-- Attachment #2: Type: text/html, Size: 1856 bytes --]

  reply	other threads:[~2022-03-10 17:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-10  2:28 bug#54325: Emacs Shows the ZWNJ character (U+200C) as a space character hossein valizadeh
2022-03-10  2:45 ` bug#54325: my emacs-bug-info hossein valizadeh
2022-03-10  6:44 ` bug#54325: Emacs Shows the ZWNJ character (U+200C) as a space character Eli Zaretskii
     [not found]   ` <CAMyfNNoWTJJj-SrZ+Zs0_DimZO3iMbBfe5Ww8MqMOXVKKfW-MA@mail.gmail.com>
2022-03-10 17:04     ` Eli Zaretskii
     [not found]       ` <CAMyfNNpFVggDCCykrYQhNOK_SLJw6U0LWfxr7JN1ONKcbBD9mQ@mail.gmail.com>
2022-03-10 17:48         ` Eli Zaretskii
2022-03-10 17:56           ` hossein valizadeh [this message]
2022-03-10 18:12             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMyfNNoqj9rkJgi+auEHVUf2DUMi_86z32wbu0K8Y-4MCGuBSw@mail.gmail.com \
    --to=valizadeh.ho@gmail.com \
    --cc=54325@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).