On Tue, Aug 10, 2021 at 5:31 PM Eli Zaretskii <
eliz@gnu.org> wrote:
> From: Anand Tamariya <atamariya@gmail.com>
> Date: Tue, 10 Aug 2021 11:11:26 +0530
>
> Here is my next iteration on basic WYSIWYG printing in GNU Emacs for printing RTL languages like Arabic
> and Hebrew.
Does it also start RTL text at the right edge of the paper? And how
does it reorder characters for printing?
(Sorry for asking these questions, but I'm still unable to see
anything useful on the GitLab URL you show -- when I go there, I see
only the navigation tree on the left and an empty pane on the right.)
The code uses window positioning information for characters from Emacs and then scales the content to fit the print width.
It uses following API to determine BIDI classification and processes accordingly:
(get-char-code-property (char-after from) 'bidi-class)