Hebrew in markup
Dov Grobgeld
dov.grobgeld at gmail.com
Sun Apr 5 11:20:41 IDT 2015
I admit that I have very little knowledge about how font selection and
reordering logic works in emacs.
One way of carrying out reordering of <h1>שלום!</h1> would be if the emacs
major mode was be able to inject the FSI...PDI characters before the text
is passed to the paragraph direction determining logic. Is this possible?
Regards,
Dov
On Sun, Apr 5, 2015 at 10:12 AM, Eli Zaretskii <eliz at gnu.org> wrote:
> > 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20150405/ad281522/attachment.html>
More information about the Linux-il
mailing list