Rodolfo M. Raya wrote:

Does anybody have a routine to reorder BIDI text?
You can use java.text.Bidi from jdk1.4 and sun.awt.font.Bidi in jdk1.2/1.3, they provide basic BIDI facilities. The problem is that java.text.Bidi is since jdk1.4 and sun.awt.font.Bidi does not exist in jdk1.4. So I suggest you not to use BIDI implementation directly, but indirectly through java.awt.font.TextLayout and so on.

I'm writing code to visually reorder BIDI text before generating XSL-FO files, but I don't want to reinvent the wheel.
btw, that's not the solution actually. This way you do provide visually reordered text to FOP, but FOP as being BIDI-unaware will still layout text ltr-tb, so you'll end with rtl-bt layout:

logical: RAC A SI SIHT
visual: THIS IS A CAR
One line is ok, but once line break occurs:
IS A CAR
    THIS

The solution is to make FOP BIDI-aware itself. I have experimented with it and actually I have BIDI-aware version of FOP 0.20.5rc or earlier, but the implementation is neither fast nor clean from design point of view, so I decided not to commit it to cvs, but instead to implement it in FOP1.0dev in a better way. You are welcome to help us with this. Lack of free time, unfortunately, you know, too many day works last time :((((

--
Oleg Tkachenko
Multiconn Technologies, Israel


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to