From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28339: 25.2; Emacs shows ZWNJ character (Zero Width non-Joiner) as Space Date: Wed, 20 Sep 2017 10:25:57 +0300 Message-ID: <83r2v1g7ay.fsf@gnu.org> References: <87h8vyop9k.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1505892434 16958 195.159.176.226 (20 Sep 2017 07:27:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 20 Sep 2017 07:27:14 +0000 (UTC) Cc: b.riefenstahl@turtle-trading.net, nimawebgard@gmail.com, 28339@debbugs.gnu.org To: handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 20 09:27:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duZPT-0003tT-Id for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Sep 2017 09:27:03 +0200 Original-Received: from localhost ([::1]:47202 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duZPa-00081T-Re for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Sep 2017 03:27:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duZPV-00081L-Ei for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 03:27:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duZPS-0007dr-Qw for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 03:27:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40340) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duZPS-0007d5-O5 for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 03:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1duZPS-00060Z-Fk for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 03:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Sep 2017 07:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28339 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28339-submit@debbugs.gnu.org id=B28339.150589238023040 (code B ref 28339); Wed, 20 Sep 2017 07:27:02 +0000 Original-Received: (at 28339) by debbugs.gnu.org; 20 Sep 2017 07:26:20 +0000 Original-Received: from localhost ([127.0.0.1]:49021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duZOm-0005zY-0O for submit@debbugs.gnu.org; Wed, 20 Sep 2017 03:26:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51401) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duZOk-0005zJ-4C for 28339@debbugs.gnu.org; Wed, 20 Sep 2017 03:26:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duZOd-0004E0-Ub for 28339@debbugs.gnu.org; Wed, 20 Sep 2017 03:26:12 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duZOY-0003zM-P0; Wed, 20 Sep 2017 03:26:06 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2999 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1duZOY-00049q-1J; Wed, 20 Sep 2017 03:26:06 -0400 In-reply-to: <87h8vyop9k.fsf@gnu.org> (message from handa on Tue, 19 Sep 2017 21:18:31 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137162 Archived-At: > From: handa > Cc: b.riefenstahl@turtle-trading.net, nimawebgard@gmail.com, > 28339@debbugs.gnu.org > Date: Tue, 19 Sep 2017 21:18:31 +0900 > > In article <83h8w0hwa7.fsf@gnu.org>, Eli Zaretskii writes: > > > I don't see this in Unicode, but maybe I'm missing something. > > > Anyway, what would you suggest as a solution to this issue? Should we > > install the arabic-font-shape-gstring function into Emacs? Do we need > > to do something else in addition? E.g., do we need to make the > > display of ZWNJ optional? > > As I don't know what is the right thing, I'm asking here. > > If users never ever want to put cursor on ZWNJ, > arabic-font-shape-gstring-ZWNJ-absorb is the solution. > > If users want a thin space to be able to handle ZWNJ directly, > arabic-font-shape-gstring-ZWNJ-as-space is the solution. > > If it depends on a situation or a user's prefernce, it is better to have > a user customizable variable to switch between them. Maybe we should go with an option. I will try to come up with a patch for that. > By the way, I've just tried arabic-shape.el on Windows, and found that > arabic-font-shape-gstring-ZWNJ-as-space worked, which means Windows text > laout backend on Windows (uniscribe?) also returns ZWNJ glyph. Yes, it does. > And, without arabic-font-shape-gstring-ZWNJ-as-space, I see a > strange cursor display. Is it the "glitch" you mentioned? Yes. Do you understand what is the reason for that? Thanks.