aspose file tools*
The moose likes XML and Related Technologies and the fly likes Using FOP for Arabic Output... SOS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Using FOP for Arabic Output... SOS" Watch "Using FOP for Arabic Output... SOS" New topic
Author

Using FOP for Arabic Output... SOS

Gul Khan
Ranch Hand

Joined: Sep 03, 2003
Posts: 173
Hi ALL
I am trying to generate PDF for Arabic language. The problem: it appears left to right, and by doing that all the characters break apart. From what I read from web, FOP should use the default direction from the font, which should be right to left.

I have embedded the font successfully into fop and using fop 0.20.5.

Any Help Pls? Thanks.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Hi Gul khan...
Please check this link,i updated it for you. but the sample PDF you see in that article is still old.


Spritle Software Blogs
Gul Khan
Ranch Hand

Joined: Sep 03, 2003
Posts: 173
Balaji, Thanks for replying. I dont see the link, can you plz post it again.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
here it is
Gul Khan
Ranch Hand

Joined: Sep 03, 2003
Posts: 173
Thanks Balaji for the great help. The problem is still not solved completely though. Though the characters are now from right to left but they are still broken.

Can you plz tell me how to fix this.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Using letter-spacing may help
<fo:block text-align="end" font-family="{$font}" letter-spacing="-2pt">
..

BTW what font are you using ? Was it a free one to download ?
Gul Khan
Ranch Hand

Joined: Sep 03, 2003
Posts: 173
I am using traditional Arabic. and also Iqraa
Gul Khan
Ranch Hand

Joined: Sep 03, 2003
Posts: 173
The problem still not solved. The words are still broken. I tried lots of fonts from the web, for most of them fop could not generate the matrix file.

Gul Khan
Ranch Hand

Joined: Sep 03, 2003
Posts: 173
hi All,
this issue is still not solved. Would appreciate if anyone could help.
The arabic characters are displayed from right to left on the pdf BUT they are broken. I am using Traditional Arabic font.

Thanks.

Gul
Skip Cole
Ranch Hand

Joined: Jan 05, 2001
Posts: 177
Any body figure this out yet?

Or have any other way to create PDFs with proper Arabic in them?
(The letters HAVE to have their context dependent shapes and run together.)

I'm getting desperate. Could a case of beer entice anyone to tell me how to do this?

Thanks,
Skip
[ August 20, 2006: Message edited by: Skip Cole ]

If you love me, you will visit docs.opensimplatform.org
(FYI, Getting it tattooed on is a bit much.)
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

Skip, there are a couple of problems with your recent posts. First off, attaching your questions to threads that have been dead for a couple of years is not as good as posting a new thread that asks the question straight out.

Second, your question is basically "How can I create PDFs with Arabic characters that use the proper calligraphy?" (Or whatever the correct term is for your requirement.) There doesn't seem to be any XML aspect to this question, so this isn't even the right forum. Sure, you were originally trying to work with Apache FOP, but you do seem to be focusing on the core question now.

And I'm sorry, I can't answer your question. I would have assumed that using a decent Arabic font would automatically take care of ligatures and medial versus final forms and all that sort of thing, but if that isn't the case then I would suggest maybe it's a problem with Acrobat. However I have basically no expertise in the area so that's just an educated guess.

I suspect that there's not many people who do have expertise with Arabic in Acrobat, and those that do don't tend to answer questions in Java-related forums. That may seem unhelpful but it's meant to suggest you might get better answers in forums about, say, typography or Acrobat. Not that I know of any such forums. Probably Adobe itself would be your best bet for such a question.
Skip Cole
Ranch Hand

Joined: Jan 05, 2001
Posts: 177
Thanks Paul.

Actually, I think that that multi-language FOP paper ("Journal Article - Creating Multiple Language PDFs using Apache FOP") should be removed from this site, since it gives the false impression that it is possible to use FOP and generate real Arabic. (The fact that it is full of typos - indicating that it is not code that actually was run - should have tipped me off to this.)

It seems to be a complete waste of time to go down that path.

Good idea on contacting Adobe. I'm going to do that.
[ August 21, 2006: Message edited by: Skip Cole ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using FOP for Arabic Output... SOS