Hindi (Devanagari) characters not rendered correctly in pdf using fop 0.95
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. (ssharma7...@gmail.com) -- View this message in context: http://old.nabble.com/Hindi-%28Devanagari%29-characters-not-rendered-correctly-in-pdf-using-fop-0.95-tp28396963p28396963.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: Hindi (Devanagari) characters not rendered correctly in pdf using fop 0.95
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. (ssharma7...@gmail.com) -- View this message in context: http://old.nabble.com/Hindi-%28Devanagari%29-characters-not-rendered-correctly-in-pdf-using-fop-0.95-tp28396963p28397069.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: Hindi (Devanagari) characters not rendered correctly in pdf using fop 0.95
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
Re: Hindi (Devanagari) characters not rendered correctly in pdf using fop 0.95
Thanks Pascal Sancho.. If anyone has feedback/fix/solution w.r.t. this issue, please share it. Regards, Sachin. 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-tp28396963p28397946.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
Hi! Thx a lot, i change my pattern file for this (for example) ?xml version=1.0 encoding=UTF-8? !DOCTYPE hyphenation-info SYSTEM hyphenation.dtd hyphenation-info hyphen-min before=2 after=3/ patterns -- +5a a5+ +5b b5+ /patterns /hyphenation-info when i try to compile it( in cmd i go to ant/bin and write ant.bat compile-hyphenation i have an error Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar Buildfile: C:\ant\bin\build.xml BUILD FAILED Target compile-hyphenation does not exist in the project null. Total time: 0 seconds i use google and fing that i can ignore Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar because i do not need it for my task. but what to do with Target compile-hyphenation does not exist in the project null.? i have to write build.xml by myself? thx! -- View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28398640.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
Thanks John, I double checked and reloaded the files on the PC that its not working and still having the problem. Perhaps the issue lies in the pdf... Any other thoughts? -- View this message in context: http://old.nabble.com/fox%3Aexternal-document-not-showing-all-pages-tp28393726p28398990.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
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 Peter Hancock-2 wrote: You should run ant from the your fop dir. If ant is not in your path see http://ant.apache.org/ for details. Pete On Thu, Apr 29, 2010 at 10:58 AM, lexa2009 mename...@gmail.com wrote: Hi! Thx a lot, i change my pattern file for this (for example) ?xml version=1.0 encoding=UTF-8? !DOCTYPE hyphenation-info SYSTEM hyphenation.dtd hyphenation-info hyphen-min before=2 after=3/ patterns -- +5a a5+ +5b b5+ /patterns /hyphenation-info when i try to compile it( in cmd i go to ant/bin and write ant.bat compile-hyphenation i have an error Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar Buildfile: C:\ant\bin\build.xml BUILD FAILED Target compile-hyphenation does not exist in the project null. Total time: 0 seconds i use google and fing that i can ignore Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar because i do not need it for my task. but what to do with Target compile-hyphenation does not exist in the project null.? i have to write build.xml by myself? thx! -- View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28398640.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 -- View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28399146.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
Hi, Googling lead me to the suggestion that you need JAVA_HOME to point to the jdk, not the jre. see http://forums.sun.com/thread.jspa?threadID=757039 Pete On Thu, Apr 29, 2010 at 12:08 PM, lexa2009 mename...@gmail.com wrote: 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 Peter Hancock-2 wrote: You should run ant from the your fop dir. If ant is not in your path see http://ant.apache.org/ for details. Pete On Thu, Apr 29, 2010 at 10:58 AM, lexa2009 mename...@gmail.com wrote: Hi! Thx a lot, i change my pattern file for this (for example) ?xml version=1.0 encoding=UTF-8? !DOCTYPE hyphenation-info SYSTEM hyphenation.dtd hyphenation-info hyphen-min before=2 after=3/ patterns -- +5a a5+ +5b b5+ /patterns /hyphenation-info when i try to compile it( in cmd i go to ant/bin and write ant.bat compile-hyphenation i have an error Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar Buildfile: C:\ant\bin\build.xml BUILD FAILED Target compile-hyphenation does not exist in the project null. Total time: 0 seconds i use google and fing that i can ignore Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar because i do not need it for my task. but what to do with Target compile-hyphenation does not exist in the project null.? i have to write build.xml by myself? thx! -- View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28398640.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 -- View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28399146.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
hihi, thx. u think problem in this? it is only warning. on some forum i read that it does not metter when create hyph. what must be in build.xml ?? i really do not know what to write in it. Peter Hancock-2 wrote: Hi, Googling lead me to the suggestion that you need JAVA_HOME to point to the jdk, not the jre. see http://forums.sun.com/thread.jspa?threadID=757039 Pete On Thu, Apr 29, 2010 at 12:08 PM, lexa2009 mename...@gmail.com wrote: 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 Peter Hancock-2 wrote: You should run ant from the your fop dir. If ant is not in your path see http://ant.apache.org/ for details. Pete On Thu, Apr 29, 2010 at 10:58 AM, lexa2009 mename...@gmail.com wrote: Hi! Thx a lot, i change my pattern file for this (for example) ?xml version=1.0 encoding=UTF-8? !DOCTYPE hyphenation-info SYSTEM hyphenation.dtd hyphenation-info hyphen-min before=2 after=3/ patterns -- +5a a5+ +5b b5+ /patterns /hyphenation-info when i try to compile it( in cmd i go to ant/bin and write ant.bat compile-hyphenation i have an error Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar Buildfile: C:\ant\bin\build.xml BUILD FAILED Target compile-hyphenation does not exist in the project null. Total time: 0 seconds i use google and fing that i can ignore Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar because i do not need it for my task. but what to do with Target compile-hyphenation does not exist in the project null.? i have to write build.xml by myself? thx! -- View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28398640.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 -- View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28399146.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 -- View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28400915.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
bonekrusher wrote: Thanks John, I double checked and reloaded the files on the PC that its not working and still having the problem. Perhaps the issue lies in the pdf... Any other thoughts? Apart from that, I don't have any ideas. I still believe that the difference must be in the FOP installation on the machines. If you are sure that both machines are using: 1) The same version of FOP 2) The same version of the PDF image plugin - what version are you using by the way? 3) FOP is being invoked the same way - for example, your CLASSPATH is set on both machines such that an older version of (1) and (2) is not being found before the current version then I don't know what it could be. If the same PDF works on one machine and not the other, it cannot be the PDF. Regards, Alias John Brown. _ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 - 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
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
Re: fox:external-document not showing all pages
On 29.04.2010 19:31, John Brown wrote: I still believe that the difference must be in the FOP installation on the machines. If you are sure that both machines are using: 1) The same version of FOP [etc.] JRE vendor and version and in some cases even the OS may be relevant too. In particular JREs on Linux tend to have weird bugs which had caused FOP to malfunction for some input in the past. J.Pietschmann - 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
J.Pietschmann wrote: On 29.04.2010 19:31, John Brown wrote: I still believe that the difference must be in the FOP installation on the machines. If you are sure that both machines are using: 1) The same version of FOP [etc.] JRE vendor and version and in some cases even the OS may be relevant too. In particular JREs on Linux tend to have weird bugs which had caused FOP to malfunction for some input in the past. J.Pietschmann Indeed. I assumed that the original poster would have checked the Java versions. I believe that the Sun JRE is the one that is supported by the FOP developers. I have never had a problem using the Sun JRE on Windows or Linux. I once wasted a lot of time on Ubuntu Linux because I did not realise that even though the Sun JRE was installed, it was not the default. FOP did not work with the default JRE. Regards, Alias John Brown. _ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org