emacs-bidi
[Top][All Lists]

## Re: [emacs-bidi] editing hebrew latex

 From: Eli Zaretskii Subject: Re: [emacs-bidi] editing hebrew latex Date: Tue, 25 Dec 2001 13:38:31 +0200 (IST)

On Tue, 25 Dec 2001, Tzafrir Cohen wrote:

> A bit f document may look like this (assuming main language is Hebrew,
> and rtl is CAPITALS)
>
> >>>>>>>>>>>>>>>>
> SOME RTL TEXT \L{some embedded text}.
>
> \begin{otherlanguage}{english}
>
>   in this environment i can write l2r text, and then \R{RTL TEXT NEEDS TO
>   BE EMBEDDED}
>
> \end{otherlanguage}
> <<<<<<<<<<<<<<<

Thanks for the explanations.

One question: in what order is the text inside the \R{} written--in
the logical or in visual order?

> * What is the base direction?

Why not do what UAX#9 says, i.e. look at the first strong directional
character in each paragraph?

> * There are also macros \sethebrew and \unsethebrew

What do they do, and why is that a problem?

> Anyway, from a quick search it seems like this is intended for editing
> visual-hebrew text, which is not what I need.

Reversing a buffer (or any part thereof) is a trivial exercise in Lisp.
But I think what you want is reversed display, not one-time reversal.
For that, I don't think an Emacs solution exists.  I'm working on that,
but it will take time.  You can find the details in the archives of this
list.