From: Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 69384@debbugs.gnu.org
Subject: bug#69384: 30.0.50; :align-to and bidi-paragraph-direction interaction
Date: Mon, 26 Feb 2024 15:12:25 +0100 [thread overview]
Message-ID: <871q8zgvqu.fsf@gmx.net> (raw)
In-Reply-To: <867cirwg77.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 26 Feb 2024 14:41:32 +0200")
On Mon, 26 Feb 2024 14:41:32 +0200 Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Stephen Berman <stephen.berman@gmx.net>
>> Cc: 69384@debbugs.gnu.org
>> Date: Sun, 25 Feb 2024 22:18:10 +0100
>>
>> > Sorry, this is still too vague. What do you mean by "RTL text aligned
>> > with LTR text"? "aligned" in what way and sense?
>> >
>> > How about an example of text showing what you want to do? To avoid
>> > strange effects of bidi reordering, please use lower-case letters to
>> > represent LTR text and upper-case letters to represent RTL text.
>>
>> The screenshot in my first post in this bug shows the alignment I want:
>> the last (i.e. leftmost) character of the Arabic string occupies the
>> same horizontal position (in this case, the leftmost column) as the
>> first (i.e. leftmost) character of the English string.
>
> Then why not use something like this:
>
> (let* ((a "السّلام عليكم")
> (b "Hello")
> (buf (get-buffer-create "Test1")))
> (with-current-buffer buf
> (erase-buffer)
> (setq bidi-paragraph-direction 'left-to-right)
> (insert " " a
> "\n\n"
> " " b)
> (switch-to-buffer buf)))
>
> IOW, align with spaces and TABs.
🤦 As so often, the obvious solution is only obvious after it's shown to
you.... Thanks.
Steve Berman
next prev parent reply other threads:[~2024-02-26 14:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-25 16:22 bug#69384: 30.0.50; :align-to and bidi-paragraph-direction interaction Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-25 16:47 ` Eli Zaretskii
2024-02-25 17:17 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-25 17:35 ` Eli Zaretskii
2024-02-25 18:26 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-25 19:45 ` Eli Zaretskii
2024-02-25 21:18 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-26 12:41 ` Eli Zaretskii
2024-02-26 14:12 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-02-26 17:28 ` Eli Zaretskii
2024-02-26 21:46 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-27 7:44 ` Eli Zaretskii
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=871q8zgvqu.fsf@gmx.net \
--to=bug-gnu-emacs@gnu.org \
--cc=69384@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=stephen.berman@gmx.net \
/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).