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: Alex Schroeder
Subject: Re: [emacs-bidi] mirroring of glyphs
Date: Mon, 19 Nov 2001 11:56:31 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu)

Eli Zaretskii <address@hidden> writes:

> 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.

Ok, here's with input and output only reversed in R2L environments:

* <123H/>shalom<123H> works

(bidi-visual-to-logical-test "<123H/>shalom<123H>" 'R2L 'string)
"   <   1   2   3   H   /   >   s   h   a   l   o   m   <   1   2   3   H   >"
(bidi-visual-to-logical-test "<123H/>shalom<123H>" 'R2L 'types)
"  ON  EN  EN  EN   R  ES  ON   L   L   L   L   L   L  ON  EN  EN  EN   R  ON"
(bidi-visual-to-logical-test "<123H/>shalom<123H>" 'R2L 'resolved-types)
"   R  EN  EN  EN   R   R   R   L   L   L   L   L   L   R  EN  EN  EN   R   R"
(bidi-visual-to-logical-test "<123H/>shalom<123H>" 'R2L 'levels)
"   1   2   2   2   1   1   1   2   2   2   2   2   2   1   2   2   2   1   1"
(bidi-visual-to-logical-test "<123H/>shalom<123H>" 'R2L)
"<H123>shalom</H123>"

* <h123>MALAAS</h123> works

(bidi-visual-to-logical-test "<h123>MALAAS</h123>" 'L2R 'string)
"   <   h   1   2   3   >   M   A   L   A   A   S   <   /   h   1   2   3   >"
(bidi-visual-to-logical-test "<h123>MALAAS</h123>" 'L2R 'types)
"  ON   L  EN  EN  EN  ON   R   R   R   R   R   R  ON  ES   L  EN  EN  EN  ON"
(bidi-visual-to-logical-test "<h123>MALAAS</h123>" 'L2R 'resolved-types)
"   L   L   L   L   L   L   R   R   R   R   R   R   L   L   L   L   L   L   L"
(bidi-visual-to-logical-test "<h123>MALAAS</h123>" 'L2R 'levels)
"   0   0   0   0   0   0   1   1   1   1   1   1   0   0   0   0   0   0   0"
(bidi-visual-to-logical-test "<h123>MALAAS</h123>" 'L2R)
"<h123>SAALAM</h123>"

* "abc ECNO abc ~~~23%%% TSET" fails

(bidi-visual-to-logical-test "abc ECNO abc ~~~23%%% TSET" 'R2L 'string)
"   a   b   c       E   C   N   O       a   b   c       ~   ~   ~   2   3   %   
%   %       T   S   E   T"
(bidi-visual-to-logical-test "abc ECNO abc ~~~23%%% TSET" 'R2L 'types)
"   L   L   L  WS   R   R   R   R  WS   L   L   L  WS  ON  ON  ON  EN  EN  ET  
ET  ET  WS   R   R   R   R"
(bidi-visual-to-logical-test "abc ECNO abc ~~~23%%% TSET" 'R2L 'resolved-types)
"   L   L   L   R   R   R   R   R   R   L   L   L   R   R   R   R  EN  EN  EN  
EN  EN   R   R   R   R   R"
(bidi-visual-to-logical-test "abc ECNO abc ~~~23%%% TSET" 'R2L 'levels)
"   2   2   2   1   1   1   1   1   1   2   2   2   1   1   1   1   2   2   2   
2   2   1   1   1   1   1"
(bidi-visual-to-logical-test "abc ECNO abc ~~~23%%% TSET" 'R2L)
"TEST 23%%%~~~ abc ONCE abc"

instead of 

"TEST abc ~~~23%%% ONCE abc"

Alex.
-- 
http://www.emacswiki.org/



reply via email to

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