It is good news that you are working on the implementation of
As you can read in this thread , I’m working also on this task and
an independent solution without the usage of java.text.bidi, trying to
compatible with JDK 1.3.
I could find some useful codes in iText project  and wrote a simple
Arabic-shaping on Arabic/Persian inline texts.
I wrote a simple fo test file and gave it to my class and done the
and the converting them into Hexadecimals . At the end I created a
test pdf file .
Now I am trying to rewrite the codes from the iText completely for the
and find the best place to integrate them into the fop project.
The abrabic shaping is not required for the rtf, text or xml output, it
is just a problem with pdf, ps,
Please look at these classes in iText project:
I don’t know if you used the java.text.bidi or maybe the java.awt for
the Arabic shaping, but it
works well with some small bugs,
I created from the same fo file  with your arabicfop a pdf file 
and have seen that
there is some connection problems, see the (ALLEF connections, the
vertical lines to the other words).
Please compare it with , and check the presentaion form A/B in Unicode.
This is not a font problem; I tested the same files with your font and
several other Unicode ttf fonts.
There is some free fonts for Arabic and Persian language(GPL) , may
be we can create some free
Arabic/Persian fonts for fop.
Unfortunately I could get your first email on 4th August, because of
some problems with the mail server.
About the CTM class and the rl-tb writing mode, in Arabic shaping we
find the Arabic words in a paragraph,
then find the presentation forms for the chars depending on the position
of chars in a word (four possibilities)
and at the end we should reverse the Arabic words but not the
English/Latin words between the Arabic paragraph.
I think we can work together and trying to find a JDK1.3 compatible
My aim is to be able to create Persian/Arabic documentation with docbook
I am looking forward to your email! (Wenn du willst, kannst du mir auf
Sebastian Weber schrieb:
you can download the version of FOP that I use to print Arabic script from
I hope it works for you. Unfortunately I don't understand Arabic but I know
that there are still some problems with the type setting. Maybe you can
inform me about bugs you'll find.
I'll add some explanations and the source code in a few days.