From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54325: Emacs Shows the ZWNJ character (U+200C) as a space character Date: Thu, 10 Mar 2022 19:48:07 +0200 Message-ID: <8335jpem20.fsf@gnu.org> References: <83h786e282.fsf@gnu.org> <837d91eo29.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18523"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54325@debbugs.gnu.org To: hossein valizadeh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 10 18:49:10 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 1nSMuU-0004aX-GB for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Mar 2022 18:49:10 +0100 Original-Received: from localhost ([::1]:40266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSMuS-00008V-T5 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Mar 2022 12:49:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSMuM-00008N-1f for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2022 12:49:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSMuL-0008Di-Oy for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2022 12:49:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nSMuL-00028S-J0 for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2022 12:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2022 17:49:01 +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.16469344968150 (code B ref 54325); Thu, 10 Mar 2022 17:49:01 +0000 Original-Received: (at 54325) by debbugs.gnu.org; 10 Mar 2022 17:48:16 +0000 Original-Received: from localhost ([127.0.0.1]:35442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSMtc-00027N-Gn for submit@debbugs.gnu.org; Thu, 10 Mar 2022 12:48:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:32774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSMta-000279-NR for 54325@debbugs.gnu.org; Thu, 10 Mar 2022 12:48:15 -0500 Original-Received: from [2001:470:142:3::e] (port=60506 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSMtV-00083w-El; Thu, 10 Mar 2022 12:48:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=pcO9FEzyblELAkkjDnHUJk+yJ9BerV62scljOfpJtOM=; b=ajiCT7mEM12c9P8HWyB4 ZkNLSTUN1Sp0yGotMzWmb5rMNglTSoHAdD2ya7vRv5ASzH9Ljo58A6RwJRv6/6n4OazpTawGJmG2w 36jdvaSNc+vb6rwzqZv/tSkCKIuolQECl1t/dYW8OmFZVyNeAPJjcmcUdeTpb5GnvE2FyAe2v0HDZ 2pnN6NU7PXQFxJnS2x7hlSeTz2KjjFoSCISK0ZjvN2uNAXNOLlI7TbiUIEJUYLcuXz9I6yRzPzu00 xGc5+j5x1Kb2bC4/7vtataS6iBJ/834kv4H5oLm6DZlkeNyzZXWGbFbCk1UkgjS89+2k2hj5XWxzn 2ToVQSFkSfyqiw==; Original-Received: from [87.69.77.57] (port=2843 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSMtU-0005PT-Sw; Thu, 10 Mar 2022 12:48:09 -0500 In-Reply-To: (message from hossein valizadeh on Thu, 10 Mar 2022 20:53:49 +0330) 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:228198 Archived-At: [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 ... > > این‌ها > > ماه‌ها > > رفته‌ای 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.