Hebrew in markup
Eli Zaretskii
eliz at gnu.org
Sun Apr 5 10:12:34 IDT 2015
> Date: Sun, 5 Apr 2015 09:46:50 +0300
> From: Dov Grobgeld <dov.grobgeld at gmail.com>
> Cc: "Nadav Har'El" <nyh at math.technion.ac.il>, Dotan Cohen <dotancohen at gmail.com>,
> linux-il <linux-il at cs.huji.ac.il>
>
> Great! Does this mean that a major mode can now modify a markup like <tag> so
> that it is "rendered" as &FSI;<tag>&PDI; and thus have no influence on the
> chosen paragraph direction?
I'm not sure what you mean by "rendered as". Emacs needs to see the
FSI and PDI controls in the buffer, in order for them to take their
effect on buffer text prescribed by the UBA. And if the tag is in
some display or overlay string, the FSI and PDI controls must be in
the same string.
> If this works and you write
>
> <h1>שלום!</h1>
>
> it would be shown in emacs as an RTL paragraph as the tags would be ignored.
Yes, if <h1> is enclosed in FSI..PDI, this is displayed as an RTL
paragraph in Emacs 25.0.50, the development version. However, usual
caveats about what is a paragraph apply: if the above line is not
preceded by an empty line, it will "inherit" the base paragraph
direction from preceding lines; Emacs will not change the base
direction except at the beginning of a new paragraph.
More information about the Linux-il
mailing list