unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Joost Kremers <joostkremers@fastmail.fm>
Cc: crculver@christopherculver.com, emacs-devel@gnu.org
Subject: Re: Message Mode and bidi
Date: Tue, 20 Feb 2024 05:29:43 +0200	[thread overview]
Message-ID: <861q97q0d4.fsf@gnu.org> (raw)
In-Reply-To: <86bk8cw20e.fsf@p200300d627023a0ad1f3c3db8ccb4c50.dip0.t-ipconnect.de> (message from Joost Kremers on Mon, 19 Feb 2024 22:50:50 +0100)

> From: Joost Kremers <joostkremers@fastmail.fm>
> Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
> Date: Mon, 19 Feb 2024 22:50:50 +0100
> 
> On Mon, Feb 19 2024, Christopher Culver via "Emacs development discussions." wrote:
> > Eli Zaretskii <eliz@gnu.org> writes:
> >> I cannot reproduce this.  What I see is that Message mode supports
> >> bidirectional text as expected, including what you describe in the
> >> previous paragraph regarding right-aligning the RTL text.  So please
> >> tell more what you did by describing in detail the commands you typed.
> >
> > I have tried this with a completely virgin Emacs installation, but
> > Message Mode continues to show less than full support for bidi text.
> 
> When you compose a new message, is there a line "--text follows this line--"
> separating the headers and the message text? In my case, there is (I use mu4e)
> and when I type Arabic text on the line below this text, I get the effect you
> mention. If I leave an empty line after "--text follows this line--", bidi works
> as expected.

Right.

> I believe this is due to the interaction of two things: 1. Emacs uses the first
> word of a paragraph to determine whether the paragraph is ltr or rtl; and 2.
> Emacs assumes that a paragraph is preceded by an empty line. So if you type rtl
> text on the line below the "--text follows this line--" separator, Emacs
> assumes the separator and the text you're typing belong to the same paragraph,
> and since the first word of this paragraph is from an ltr writing system, the
> paragraph is displayed ltr.

Exactly.



      parent reply	other threads:[~2024-02-20  3:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-19  1:12 Message Mode and bidi Christopher Culver via Emacs development discussions.
2024-02-19  3:36 ` Eli Zaretskii
2024-02-19 21:29   ` Christopher Culver via Emacs development discussions.
2024-02-19 21:50     ` Joost Kremers
2024-02-19 22:06       ` Christopher Culver via Emacs development discussions.
2024-02-20  0:46         ` Eric Abrahamsen
2024-02-20  3:37           ` Eli Zaretskii
2024-02-20  5:16             ` Eric Abrahamsen
2024-02-20 14:36               ` Eli Zaretskii
2024-02-28 16:54                 ` Eric Abrahamsen
2024-02-28 17:23                   ` Eli Zaretskii
2024-02-29  3:16                     ` Eric Abrahamsen
2024-02-20  3:31         ` Eli Zaretskii
2024-02-20  3:29       ` 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

  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=861q97q0d4.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=crculver@christopherculver.com \
    --cc=emacs-devel@gnu.org \
    --cc=joostkremers@fastmail.fm \
    /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).