all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: jtowler@soncom.com
Cc: 12438@debbugs.gnu.org
Subject: bug#12438: 24.2; emacs-24.2 bidi Hebrew switch introduces editing error
Date: Fri, 14 Sep 2012 12:40:41 +0300	[thread overview]
Message-ID: <83ehm5ueli.fsf@gnu.org> (raw)
In-Reply-To: <83ipbhugj1.fsf@gnu.org>

> Date: Fri, 14 Sep 2012 11:58:58 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 12438@debbugs.gnu.org
> 
> However, I cannot figure out what exactly is the problem you are
> complaining about.  What "editing error" did you find, and how to
> reproduce it starting with "emacs -Q"?

If you mean the seemingly strange arrangement of characters (marked
with "^^^^") at the end of this line:

  [(z, ז), (x, ס), (c, ב), (v, ה), (b, נ), (n, מ), (m, צ), (, , ת
                                                       ^^^^^^^^^^

then this is not a bug.  This is how the Unicode standard prescribes
to display the sequence of characters at the end of that line.
Because the characters between צ and ת are all "neutral", i.e. have no
strong directionality attribute, these two Hebrew characters, which
are strong R2L characters, cause this entire run of characters between
them be rendered as R2L text, which includes mirroring of '(' as ')'.
In the other tuples on the above line, Latin characters, which are
strong L2R characters, after the '(' that begins the next tuple
prevent the text to be rendered as R2L.  But in the last tuple,
there's a space instead of a Latin character, and space has no strong
directionality.

If you want the end of that line be rendered as you expect, use the
LRM character, like this:

  [(z, ז), (x, ס), (c, ב), (v, ה), (b, נ), (n, מ), (m, צ), (‎,, ת)
                                                            ^

Here I inserted the LRM character (u+200E) before the comma, as marked
by "^".  LRM is a strong L2R character whose purpose is precisely to
"fix" display of mixed L2R/R2L text in such cases.  This character is
displayed by Emacs as a thin space, which makes it almost invisible on
display.  (See "C-h v glyphless-char-display" for other options of
displaying such characters.)






      reply	other threads:[~2012-09-14  9:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-14  2:37 bug#12438: 24.2; emacs-24.2 bidi Hebrew switch introduces editing error jtowler
2012-09-14  8:58 ` Eli Zaretskii
2012-09-14  9:40   ` Eli Zaretskii [this message]

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

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

  git send-email \
    --in-reply-to=83ehm5ueli.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=12438@debbugs.gnu.org \
    --cc=jtowler@soncom.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.