unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Nima Aryan <nimawebgard@gmail.com>
To: 28339@debbugs.gnu.org
Subject: bug#28339: 25.2; Emacs shows ZWNJ character (Zero Width non-Joiner) as Space
Date: Mon, 04 Sep 2017 11:49:17 +0000	[thread overview]
Message-ID: <CALp2H_0GqL8ECmXsZs1UQYt29nhgjPvXX28Zsep4V3c43Vnq3A@mail.gmail.com> (raw)
In-Reply-To: <CALp2H_0qdAU9sH50+SJQj1TJhvZd=OzexGUQmkHQKCq+V08ujA@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2653 bytes --]

In previous email I just open the test file but now I try to write the
example again this behavior is shown which might be useful:

When I type A[ZWNJ]B it's OK. In Persian when I type first character and
then ZWNJ it's exactly the same as English but just after I type the next
character it replaced by '['. So some another mechanism might be involved.
I've provided a screen shot which now show these three cases:

Regards,

On Mon, Sep 4, 2017 at 4:12 PM Nima Aryan <nimawebgard@gmail.com> wrote:

> It got interesting and I've found a workaround for the issue. display of
> ZWNJ as SPACE or any other character is matter of font. Different fonts
> uses different characters. Default Emacs font shows '[' instead of space
> which is better and more readable at least.
>
> The only minor problem I've seen so far is the irrelevance of displayed
> character (shown as ZWNJ) to the 'glyphless-char-display-control' for
> Persian alphabet.
>
> I've attached a screenshot which shows different behavior of display for
> both English and Persian at the same time. I execute `emacs -q` to launch
> default Emacs. Then I open Test.text sample attached in previous emails.
> Set the `glyphless-char-display-control` to show hex-box. It's clearly
> shown that The English one is replaced by a hex-box but the Persian one
> with a '[' (or SPACE).  No matter what the 'glyphless-char-display-control'
> the Persian case shows same character.
>
> Note, To type the ZWNJ for the English text, AB, I used Persian input (A,
> switch keyboard layout, SHIFT+Space, switch back to English, B). So when I
> put ZWNJ between the AB it's shown as hex-box (and affected by
> 'glyphless-char-display-control' as expected) but when I type it between
> Persian characters it's shown as fixed '[' or 'SPACE' (font based) no
> matter what the glyphless-char dictates.
>
> Best Regards,
>
>
> On Mon, Sep 4, 2017 at 1:45 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
>> > From: sadid sahami <sadidsahami@gmail.com>
>> > Date: Mon, 04 Sep 2017 05:05:03 +0000
>> >
>> > I've provided a minimal test text, written in Emacs (Test.text) and its
>> display for Gedit (Gedit_display.png) and
>> > Emacs (Emacs_display.png). The Gedit display is the correct one.
>>
>> Hmm.. on my system I see a display that is almost identical to what
>> your "Gedit" display shows.
>>
>> CC'ing Handa-san who might be able to help us with verifying the
>> composition rules for Persian.  Or maybe this is a problem with the
>> shaping engine used on GNU/Linux?
>>
>> In any case, disabling bidi reordering doesn't fix the display (it
>> makes the display much worse for me), so it is not the problem.
>>
>

[-- Attachment #1.2: Type: text/html, Size: 3556 bytes --]

[-- Attachment #2: 2017-09-04-161616_888x354_scrot.png --]
[-- Type: image/png, Size: 39694 bytes --]

  reply	other threads:[~2017-09-04 11:49 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-03 15:57 bug#28339: 25.2; Emacs shows ZWNJ character (Zero Width non-Joiner) as Space Nima Aryan
2017-09-03 17:06 ` Eli Zaretskii
2017-09-03 17:11   ` Eli Zaretskii
2017-09-03 19:31     ` Nima Aryan
2017-09-04  4:26       ` Eli Zaretskii
2017-09-04  5:05         ` sadid sahami
2017-09-04  9:15           ` Eli Zaretskii
2017-09-04 11:43             ` Nima Aryan
2017-09-04 11:49               ` Nima Aryan [this message]
2017-09-04 12:11               ` Eli Zaretskii
2017-09-06 23:25           ` handa
2017-09-07  2:40             ` Eli Zaretskii
     [not found] ` <CALp2H_0RgoW6NL-N3yLA_io38-y8noymU4gGwEbLGcDV4AX9_g@mail.gmail.com>
2017-09-10 23:08   ` handa
2017-09-11 16:19     ` Eli Zaretskii
2017-09-13 14:06       ` handa
2017-09-13 15:02         ` Eli Zaretskii
2017-09-14 12:24           ` handa
2017-09-14 17:15             ` Eli Zaretskii
2017-09-16  1:32               ` handa
2017-09-16  4:05                 ` Nima Aryan
2017-09-16  7:24                 ` Eli Zaretskii
2017-09-16 17:30               ` Benjamin Riefenstahl
2017-09-16 17:42                 ` Eli Zaretskii
2017-09-16 18:05                   ` Benjamin Riefenstahl
2017-09-16 18:23                     ` Eli Zaretskii
2017-09-16 18:20                   ` Eli Zaretskii
2017-09-18  1:52                   ` handa
2017-09-18 15:16                     ` Eli Zaretskii
2017-09-19 12:18                       ` handa
2017-09-20  7:25                         ` Eli Zaretskii
2017-09-18 15:22                     ` Benjamin Riefenstahl
2017-09-14 21:13           ` Nima Aryan
     [not found] ` <CALp2H_2w50RrBiaWV1dpg760cUpamy1nZdRgrwJKAjESq3no3Q@mail.gmail.com>
2017-09-13 14:02   ` handa
     [not found] ` <CALp2H_3tLC71X6-jvH2XD-6qX8O=KE5wHa561QPk-w2OoCX9HA@mail.gmail.com>
2017-09-16 12:36   ` handa
     [not found] ` <CALp2H_2MWgjoEEm6Rp5+5uOdMk-RbFWzaCrweo=pbdzAaq8btA@mail.gmail.com>
2017-10-06 10:05   ` handa
2017-10-06 12:14     ` Eli Zaretskii
2017-10-07  1:11       ` handa
2020-09-04  5:12       ` Lars Ingebrigtsen

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=CALp2H_0GqL8ECmXsZs1UQYt29nhgjPvXX28Zsep4V3c43Vnq3A@mail.gmail.com \
    --to=nimawebgard@gmail.com \
    --cc=28339@debbugs.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).