emacs-bidi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-bidi] mirroring of glyphs


From: Eli Zaretskii
Subject: Re: [emacs-bidi] mirroring of glyphs
Date: Mon, 19 Nov 2001 10:40:40 +0200 (IST)

On Sun, 18 Nov 2001, Alex Schroeder wrote:

> * Possible fix: string-reverse

Yes.

> When reversing input and output:
> 
> (string-reverse
>  (bidi-visual-to-logical
>   (string-reverse "<123H/>shalom<123H>") 'R2L))
> returns "<H123>shalom</H123>" as required
> 
> This solves the immediate problem, but fails with the following:
> 
> (string-reverse
>  (bidi-visual-to-logical
>   (string-reverse "<h123>MALAAS</h123>") 'L2R))
> return     "<hSAALAM<123</h123>"
> instead of "<h123>SAALAM</h123>"

This latter case doesn't need to be reversed, because the context is
L2R.  You should only reverse the input if the context is R2L.

Does that solve all of the problems?  If not, please post the menmonic
output of the case that still isn't solved.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]