all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: emacs-devel@gnu.org
Subject: Re: BIDI question
Date: Mon, 07 Oct 2013 20:54:12 +0300	[thread overview]
Message-ID: <838uy555mj.fsf@gnu.org> (raw)
In-Reply-To: <5252EEA2.80303@yandex.ru>

> Date: Mon, 07 Oct 2013 21:25:54 +0400
> From: Dmitry Antipov <dmantipov@yandex.ru>
> CC: Eli Zaretskii <eliz@gnu.org>
> 
> There is a text with a mix of Arabic and ASCII characters (attached), and it is
> displayed correctly (first screenshot a.k.a top.png). But, when I concatenate
> this text with itself (cat /tmp/uthmani.txt /tmp/uthmani.txt > 1.txt) and view
> the result, second Arabic fragment is rendered L2R (second screenshot a.k.a
> next.png). Why it is different from the first Arabic fragment, and isn't it a bug?

It's a feature: a paragraph starts after at least one empty line (or
at point-min).  In this case, there's no empty line between the
English text (which is an L2R paragraph) and the second Arabic
fragment, so the second Arabic fragment is rendered as a continuation
of the L2R paragraph that starts with the English text.

IOW, Emacs does not recognize the second Arabic fragment as a new
paragraph, and does not recompute the base paragraph direction for it,
instead it continues using the base paragraph direction computed for
the English text.



      reply	other threads:[~2013-10-07 17:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-07 17:25 BIDI question Dmitry Antipov
2013-10-07 17:54 ` 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=838uy555mj.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dmantipov@yandex.ru \
    --cc=emacs-devel@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 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.