• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using FOP for Arabic Output... SOS

 
Gul Khan
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gul khan...
Please check this link,i updated it for you. but the sample PDF you see in that article is still old.
 
Gul Khan
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Balaji, Thanks for replying. I dont see the link, can you plz post it again.
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here it is
 
Gul Khan
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using traditional Arabic. and also Iqraa
 
Gul Khan
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Paul Clapham
Sheriff
Pie
Posts: 20724
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic