• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Journal Article - Creating Multiple Language PDFs using Apache FOP

 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The just-released September 2004 edition of The JavaRanch Journal includes an article by Balaji Loganathan, "Creating Multiple Language PDFs using Apache FOP".

Please use this thread to comment on and discuss the article.
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please note that the Arabic text may appear in reversed and as seperated chars inspite of the correct xml input.
The current work around for this problem is to use a xsl:template and reverse the input string.

The new xsl is given below which can be used for the above article.


There is also another workaround by custom building the FOP engine specific to hebrew and arabic font, i will update this page when i get more info.
[ October 27, 2004: Message edited by: Balaji Loganathan ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Balaji,

Ok your post is helpfull. but in case of arabic characters it will not help. it is not a character by character language like arabic. I read your article and produce one pdf. Now the arabic characters are from right to left. but it is not readable. the links from one character to another is not there. so it is not the way to display arabic. if you have any solution to this please give me.

thanks in advance.
regards Sreeju
 
Balaji Loganathan
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by sreeju k g:
Now the arabic characters are from right to left. but it is not readable.
regards Sreeju


Is it the case even after reversing the string ??
 
Balaji Loganathan
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By the way welcome to Javaranch Sreeju!!..
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am not able to generate multilingual pdf using the above said procedure

can anyone help???

m using following command

FOP -c conf/userconfig.xml -xml Lang.xml -xsl MultiLAng.xsl -pdf MultiLang.pdf

my userconfig.xml file is

<font metrics-file="m-ARIAn.xml" embed-file="C:/m-ARIAn.ttf" kerning="yes">
<font-triplet name="mARIAn" />
<font-triplet name="mARIAn" />
</font>

<font metrics-file="Iqraa.xml" kerning="yes" embed-file="C:/WINNT/Fonts/Iqraa.ttf">
<font-triplet name="Iqraa" style="normal" weight="normal"/>
</font>

'#' is being generated instead of special characters

Shail
 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This doesn't work for me either.

I'm specifically interested in producing the Arabic output, but I am not getting it. Empty boxes show up for each of the characters.

Any ideas?
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Empty boxes almost always mean you're using a font that can't render the characters that you aren't seeing.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic