From: Eli Zaretskii <eliz@gnu.org>
To: Joost Kremers <joostkremers@fastmail.fm>
Cc: gnu-emacs-help@gnu.org
Subject: Re: How to handle mixed LtR and RtL scripts in tabulated lists
Date: Tue, 15 Sep 2020 18:55:42 +0300 [thread overview]
Message-ID: <83h7rz8269.fsf@gnu.org> (raw)
In-Reply-To: <87ft7j1cwh.fsf@fastmail.fm> (message from Joost Kremers on Tue, 15 Sep 2020 13:45:50 +0200)
> From: Joost Kremers <joostkremers@fastmail.fm>
> Date: Tue, 15 Sep 2020 13:45:50 +0200
>
> I'm wondering if there is a good way to create tabulated lists
> that have both left-to-right and right-to-left scripts. I'm
> running into the problem that the rtl entries have the columns in
> the "wrong" order.
>
> I'm putting "wrong" in quotes here, because for the actual rtl
> entry, the columns would be in the right order. It's just that
> mixing such entries with ltr entries yields bad results.
>
> Details of the actual problem can be found in this Github issue:
>
> https://github.com/joostkremers/ebib/issues/172
This is actually covered in the ELisp manual, in the node
"Bidirectional Display". It suggests several different ways of
handling this, I'm quite sure one of them will satisfy your needs
without being too much of a burden.
> Currently, I'm using the built-in function
> `truncate-string-to-width` to create the rows of the tabulated
> list.
Not sure this part is related. If there are bidi aspects that
interfere with this truncation, please tell the details.
next prev parent reply other threads:[~2020-09-15 15:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-15 11:45 How to handle mixed LtR and RtL scripts in tabulated lists Joost Kremers
2020-09-15 15:55 ` Eli Zaretskii [this message]
2020-09-15 17:59 ` Joost Kremers
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=83h7rz8269.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gnu-emacs-help@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.
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).