Re: Hindi (Devanagari) characters not rendered correctly in pdf using fop 0.95

2010-04-30 Thread ssharma7884

Hi All,
I refered the link [2] in Pascal Sancho's comments below, as per the link,
Glenn Adams is working on a patch to address this issue. Can someone
provide me more information as to when  how can I get more details as to
get  use the patch.

Regards,
Sachin Sharma.



Pascal Sancho wrote:
 
 Hi,
 IIUC, there is some complex shaping mechanism to render Devanagari
 script (see [1]).
 Unfortunately, FOP only supports simple character shaping (like latin
 script).
 I don't know if somebody has sufficient knowledge in FOP team, so help
 is welcome.
 Note that there is similar issue for Arabic, and a patch will be
 available soon (see [2]).
 
 [1]
 http://www.microsoft.com/typography/OpenType%20Dev/devanagari/intro.mspx
 [2] https://issues.apache.org/bugzilla/show_bug.cgi?id=32789
 
 Pascal
 
 ssharma7884 a écrit :
 Hi All,
 .A little more information,
 I tried generating the .fo file using the following command :

 fop -c conf/fop.xconf -xml Account_Statement_Hindi.xml -xsl Acct_Stat.xsl
 -foout Acct_Stat.fo

 The .fo file contains the correct text as is present in the XML (from
 where
 it is read) (refer Image).
 http://old.nabble.com/file/p28397069/fo%2Bfile%2Btext.JPG
 fo+file+text.JPG 
 Regards,
 Sachin.



 ssharma7884 wrote:
   
 Hi all,
 I am using fop 0.95 to generate PDF documents in Hindi, I am using the
 unicode font Arial Unicode MS, but all characters are not displayed
 correctly in the output PDF.

 The font is refered from C:\WINDOWS\Fonts folder, this is set in the
 fop.xconf file.
 I am refering an XML document to get some hindi texts. I get this hindi
 text in PDF using the document() function of XSL.
 (http://www.w3schools.com/xsl/func_document.asp)

 The text is displayed correctly in this XML file (I am using UTF-8
 encoding in XML  XSL files), but in the PDF it is not displayed
 correctly.

 Please refer the attached image for PDF output text  actual text in
 XML.
 http://old.nabble.com/file/p28396963/pdf.JPG pdf.JPG 

 Regards,
 Sachin.
   
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Hindi-%28Devanagari%29-characters-not-rendered-correctly-in-pdf-using-fop-0.95-tp28396963p28408819.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP, hypenation. How to compile hyph pattern? my own

2010-04-30 Thread lexa2009

i try Check Installation in http://ant.apache.org/manual/install.html
all work good. i go to fop.0.95 directory in cmd and write C:\fop-0.95ant
ant compile-hyphenation
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\li
b\tools.jar
Buildfile: build.xml does not exist!
Build failed

i have this error. last post i use my own build.xml which i find in fop
directory. it was my mistake.

i google and find that  tools.jar do not need for hyph, so i can ignore this
message. but why i have error Buildfile: build.xml does not exist! ?


Simon Pepping @ Home wrote:
 
 There is indeed nothing wrong with build.xml; target
 'compile-hyphenation' is defined. However, your error message says:
 project null. That is definitely not good, and shows that your ant
 installation does not work properly. The project is fop, and is also
 defined in build.xml.
 
 In principle you can compile the hyphenation patterns without ant. Run
 java with org.apache.fop.hyphenation.SerializeHyphPattern as the main
 class; arguments are the directory with patterns and the target
 directory for storing the compiled hyphenation files. The class path
 should be the same as for a normal fop run. But this seems more
 complicated than using ant.
 
 Regards, Simon
 
 On Thu, Apr 29, 2010 at 03:44:48PM +0100, Peter Hancock wrote:
 You should have and use the standard build.xml that shipped with fox. 
 The
 target 'compile-hyphenation' is defined in this.  See Simon's post for
 where
 to go from here.
 
   done. now i use it from fop directory but have the same output -
   C:\fop-0.95ant compile-hyphenation
   Unable to locate tools.jar. Expected to find it in C:\Program
   Files\Java\jre6\li
   b\tools.jar
   Buildfile: C:\fop-0.95\build.xml
  
   BUILD FAILED
   Target compile-hyphenation does not exist in the project null.
  
   Total time: 0 seconds
 
 -- 
 Simon Pepping
 home page: http://www.leverkruid.eu
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28409369.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: fox:external-document not showing all pages

2010-04-30 Thread bonekrusher

Thanks for the help. I have verified that the machine which is having the
problem is running a 64bit version of java.

java version 1.6.0_11
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode)

We need to run FOP on a 64 bit server because our documents required about 5
gb of heap, which can not be done on our 32 bit machines... 

Thanks for the help
-- 
View this message in context: 
http://old.nabble.com/fox%3Aexternal-document-not-showing-all-pages-tp28393726p28410793.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: fox:external-document not showing all pages

2010-04-30 Thread Pascal Sancho
FOP behaves correctly on both 32 and 64bits JVM.
You should check if the application embedding FOP is x64 compatible (we
run FOP under Jboss, and there are 2 versions of Jboss: 32 bits Vs 64bits).
Pascal

bonekrusher a écrit :
 Thanks for the help. I have verified that the machine which is having the
 problem is running a 64bit version of java.

 java version 1.6.0_11
 Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
 Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode)

 We need to run FOP on a 64 bit server because our documents required about 5
 gb of heap, which can not be done on our 32 bit machines... 

 Thanks for the help
   


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: fox:external-document not showing all pages

2010-04-30 Thread bonekrusher

Hi Pascal,

I am running FOP via a batch file on the server (no Jboss). FOP runs fine. I
think this has something to with the FOX extension. I will continue to
investigate. 

Thanks,

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




-- 
View this message in context: 
http://old.nabble.com/fox%3Aexternal-document-not-showing-all-pages-tp28393726p28410910.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP, hypenation. How to compile hyph pattern? my own

2010-04-30 Thread J.Pietschmann

On 30.04.2010 09:38, lexa2009 wrote:


i try Check Installation in http://ant.apache.org/manual/install.html
all work good. i go to fop.0.95 directory in cmd and write C:\fop-0.95ant
ant compile-hyphenation
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\li
b\tools.jar
Buildfile: build.xml does not exist!
Build failed

i have this error. last post i use my own build.xml which i find in fop
directory. it was my mistake.

i google and find that  tools.jar do not need for hyph, so i can ignore this
message. but why i have error Buildfile: build.xml does not exist! ?


The error messages comes from ant which tries to load its built-in
tasks, and some of them use tools.jar from the JDK.
Either get a full JDK and point the JAVA_HOME there rather than to a
JRE, or use command line based on the following in your FOP directory:
java -classpath build/fop.jar;lib/commons-logging-1.0.4.jar
   org.apache.fop.hyphenation.SerializeHyphPattern hyph hyph-dest
Undo the linebreak, maybe adjust the directory and filename of the
FOP jar, and you may also have to change the java command into
jre depending on what you have installed. The hyph is the directory
your hyphenation pattern file is in. If you get errors about missing
classes, guess and add the appropriate jar which should be in the lib/
directory (I can't test this right now).

J.Pietschmann

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org