[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to handle mixed LtR and RtL scripts in tabulated lists

From: Joost Kremers
Subject: Re: How to handle mixed LtR and RtL scripts in tabulated lists
Date: Tue, 15 Sep 2020 19:59:57 +0200
User-agent: mu4e 1.5.5; emacs 27.1.50

On Tue, Sep 15 2020, Eli Zaretskii wrote:
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.

Thanks, Eli, that's indeed the place I needed to look. I thought `truncate-width-to-string` was part of the problem, so I didn't think to look elsewhere in the manual...

I'm now passing the strings that make up the individual cells to `bidi-string-mark-left-to-right`, which solves the problem, at least for the test case that I have.

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.

I suspect you are right. If I do run into additional issues, I'll post here, but for the moment, it looks alright.

Thanks again,

Joost Kremers
Life has its moments

reply via email to

[Prev in Thread] Current Thread [Next in Thread]