From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: hossein valizadeh Newsgroups: gmane.emacs.bugs Subject: bug#54325: Emacs Shows the ZWNJ character (U+200C) as a space character Date: Thu, 10 Mar 2022 21:26:27 +0330 Message-ID: References: <83h786e282.fsf@gnu.org> <837d91eo29.fsf@gnu.org> <8335jpem20.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000019232205d9e0ed52" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29143"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54325@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 10 18:58:59 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nSN3z-0007SN-Bd for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Mar 2022 18:58:59 +0100 Original-Received: from localhost ([::1]:56432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSN3y-0002tD-4j for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Mar 2022 12:58:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSN26-0000WC-In for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2022 12:57:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41549) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSN26-0001Dx-9V for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2022 12:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nSN26-0002LI-5j for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2022 12:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: hossein valizadeh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2022 17:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54325 X-GNU-PR-Package: emacs Original-Received: via spool by 54325-submit@debbugs.gnu.org id=B54325.16469349648920 (code B ref 54325); Thu, 10 Mar 2022 17:57:02 +0000 Original-Received: (at 54325) by debbugs.gnu.org; 10 Mar 2022 17:56:04 +0000 Original-Received: from localhost ([127.0.0.1]:35446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSN1A-0002Jo-AS for submit@debbugs.gnu.org; Thu, 10 Mar 2022 12:56:04 -0500 Original-Received: from mail-io1-f44.google.com ([209.85.166.44]:42920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSN19-0002JI-0O for 54325@debbugs.gnu.org; Thu, 10 Mar 2022 12:56:03 -0500 Original-Received: by mail-io1-f44.google.com with SMTP id r2so7343870iod.9 for <54325@debbugs.gnu.org>; Thu, 10 Mar 2022 09:56:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YyGtA1RkZvtdv01dPF01vm0FgdGhJhbW+vAptGR5bWA=; b=SZ2DGIEn3AhIPqKDJ1Fo6z5c1UjSbpTDLd0tmNDazJSHFCWx6RBagV7iThcfQxQwSR 5VQUznG2PHlYY7VVCt6FUJIjOvow7tgs0cuS46mhXIptBz1GiozjhvW3VV8O5ci3tUW1 7BfJfvDC1OcX3SqEDg+TVDafotAWSFPxcj0IO3nub7V6q2axN12sqPwX+xiFDQkQ7y23 KHywd/8+/pTEjiTxm5G4OWSu300RG2osDmBbnnIjTKaAV3SyCNY0r2HC1vxTh3SZNG88 TuhGdbo9NOiJEV9jsntt0LDpSABQjPb7ffm1j4M3l/Djno7Sm8c0XNBdbPCbHDCSEIvw BTBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YyGtA1RkZvtdv01dPF01vm0FgdGhJhbW+vAptGR5bWA=; b=8RyAUVCoNSMQfwBdAut1SvyHGQylUAuISU7kTv1alDlrgT77jx632/w9uiQ7yHRhNb 7/oJoTE5IBk2Cai1R3xq2n7bcZNFjLatnG76sgeogS9O+9VA6m4UoxJMfsFF2aCiQ7E/ YO6Is/uTY+OC98cnfoNy16r1rMJ9CCAyEJouiVtHgSrnfb2zlJ9TwhLTHDmfBWbFNgUS 5HOyYFqg2VQ8qF0DxNucWDkZHvMtoCtib6pOPNcBzMQsmJwmxRVsu3hv8D+bnLkTIU2L RoTvE7qYs9uWo8DPt3Bvmh5YsQFHJI+JFHc639tfHvPWyoI6t6hUf/OHVMHeBcwFuChw Mf/g== X-Gm-Message-State: AOAM533u70gCPwJOFn5Nh0Wu8Sho3WbOZ1uBIuEkLrZQf41aO1QcA08k To8VL94DcGR2gkJ+/YG09/S3J3F2TG9FFOrI4rU= X-Google-Smtp-Source: ABdhPJy9C9A63wkfhlLY7S/ExLTo9omqut6RuhqtmSp1mvFVSYTrS7RXiT8J2ab7RkzangBlt7uYnMro1VxWWeS+Ejg= X-Received: by 2002:a02:aa89:0:b0:319:b1c6:979d with SMTP id u9-20020a02aa89000000b00319b1c6979dmr3664449jai.180.1646934957300; Thu, 10 Mar 2022 09:55:57 -0800 (PST) In-Reply-To: <8335jpem20.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228199 Archived-At: --00000000000019232205d9e0ed52 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 wrote: > [PLEASE keep the bug address on the CC list.] > > > From: hossein valizadeh > > Date: Thu, 10 Mar 2022 20:53:49 +0330 > > > > > Also, does this happen in "emacs -Q"? > > Yes, it happens ... > > > > =D8=A7=DB=8C=D9=86=E2=80=8C=D9=87=D8=A7 > > > > =D9=85=D8=A7=D9=87=E2=80=8C=D9=87=D8=A7 > > > > =D8=B1=D9=81=D8=AA=D9=87=E2=80=8C=D8=A7=DB=8C > > 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. > --00000000000019232205d9e0ed52 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 ...
>
> =D8=A7=DB=8C=D9=86=E2=80=8C=D9=87=D8=A7
>
> =D9=85=D8=A7=D9=87=E2=80=8C=D9=87=D8=A7
>
> =D8=B1=D9=81=D8=AA=D9=87=E2=80=8C=D8=A7=DB=8C

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.=C2=A0 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).=C2=A0 Emacs 28 fixes that problem,<= br> and that's why you see the difference.=C2=A0 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.=C2=A0 You just don&#= 39;t like
the default behavior, but an optional behavior like you want is
available.
--00000000000019232205d9e0ed52--