emacs-bidi
[Top][All Lists]
Advanced

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

Re: [emacs-bidi] debugging visual-to-logical


From: Eli Zaretskii
Subject: Re: [emacs-bidi] debugging visual-to-logical
Date: Tue, 20 Nov 2001 12:46:08 +0200

> From: Alex Schroeder <address@hidden>
> Date: Mon, 19 Nov 2001 17:48:50 +0100
> 
> >> Strange, it seems to be no problem at all:
> >> 
> >> (bidi-visual-to-logical ".02-654-3210 :SI REBMUN YM" 'R2L)
> >> "MY NUMBER IS: 02-654-3210."
> >
> > That's a bug ;-)  The logical-to-visual transformation of this:
> >
> >    MY NUMBER IS: 02-654-3210.
> >
> > is this:
> >
> >    .3210-654-02 :SI REBMUN YM
> 
> Hm.
> 
> (bidi-logical-to-visual "MY NUMBER IS: 02-654-3210." 'R2L)
> ".02-654-3210 :SI REBMUN YM"
> 
> Do you think there is a bug when resolving the levels?

No, I goofed.  I tested with the reference implementation, which has
a problem with `-', and with my own code.  My code works correctly,
but I forgot that it treats digits 6..9 as AN, not EN.  If I replace
`6' with `3', everything works as with your code.

I believe Yair also was tripped by the buggy reference implementation.

Sorry for the line noise.



reply via email to

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