Hebrew in markup
Eli Zaretskii
eliz at gnu.org
Sat Mar 7 11:14:39 IST 2015
> Date: Sat, 7 Mar 2015 02:42:48 +0100
> From: Tzafrir Cohen <tzafrir at cohens.org.il>
>
> I'd like to write a Heberw document, get a nice result HTML and still be
> able to save the source in proper version control.
>
> I could use raw HTML, but there are better options nowadays - asciidoc,
> markdown (various implementations), reSt, and such.
>
> But I could not figure a simple way with any of those to get decent
> control of bidi. Or specifically:
>
> * Make the whole document RTL
> * Make various paragraphs LTR
>
> I guess I need to override some styles. With asciidoc I could not find a
> simple way to do that and ended up having to create my own separate
> "bidi" style. I didn't yet check all the various reSt and markdown
> implementations. Any better alternatives?
Emacs, of course.
You can make the whole document RTL by setting a buffer-local
variable. You also leave the overall direction dynamic and control
each paragraph's direction with the first strong directional character
of the paragraph, or with LRM/RLM if the first character is not what
you need.
For HTML, translate those into the corresponding dir= directives.
More information about the Linux-il
mailing list