[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emacs-bidi] Where do I start?
From: |
Alex Schroeder |
Subject: |
Re: [emacs-bidi] Where do I start? |
Date: |
Thu, 15 Nov 2001 21:15:13 +0100 |
"Eli Zaretskii" <address@hidden> writes:
> http://crl.NMSU.Edu/~mleisher/ucdata.html
I am looking at the following problem right now:
(bidi-logical-to-visual "SOLVE 1*5 1-5 1/5 1+5")
=> "1+5 1/5 1-5 5*1 EVLOS"
I don't understand why the Unicode Reference Code is giving a
different result. Note that FriBidi returns the same result as my
implementation.
|Test| Source String | Unicode Reference | FriBidi 0.1.9 |
| | | Code | |
+----+--------------------+--------------------+--------------------+
| 14|SOLVE 1*5 1-5 1/5 | 5+1 5/1 5-1 5*1| 1+5 1/5 1-5 5*1|
| |1+5 | EVLOS| EVLOS|
It seems that / - + are treated the same as *. How can that be?
(bidi-get-mnemonics
(bidi-get-types "*/+-"))
=> (ON ES ET ET)
According to W4 and W5 / + and - should turn into EN when present
between or adjacent to EN as in the test string. Any opinions?
Here are the bidi types before and after resolving weak types:
(bidi-get-mnemonics
(bidi-get-types "SOLVE 1*5 1-5 1/5 1+5"))
=> (R R R R R WS EN ON EN WS EN ET EN WS EN ES EN WS EN ET EN)
(bidi-get-mnemonics
(bidi-resolve-weak-types
(bidi-get-types "SOLVE 1*5 1-5 1/5 1+5")))
=> (R R R R R R EN R EN R EN EN EN R EN EN EN R EN EN EN)
* * * *
Alex.
--
http://www.emacswiki.org/
- Re: [emacs-bidi] mirroring of glyphs, (continued)
- Re: [emacs-bidi] mirroring of glyphs, Eli Zaretskii, 2001/11/16
- Re: [emacs-bidi] mirroring of glyphs, Ehud Karni, 2001/11/16
- Re: [emacs-bidi] mirroring of glyphs, Eli Zaretskii, 2001/11/17
- Re: [emacs-bidi] mirroring of glyphs, Alex Schroeder, 2001/11/17
- Re: [emacs-bidi] mirroring of glyphs, Eli Zaretskii, 2001/11/17
- Re: [emacs-bidi] testing bidi.el with the pgba tests, Alex Schroeder, 2001/11/15
- Re: [emacs-bidi] Where do I start?,
Alex Schroeder <=
- Re: [emacs-bidi] Where do I start?, Behdad Esfahbod, 2001/11/19
- Re: [emacs-bidi] Where do I start?, Alex Schroeder, 2001/11/19