[jira] [Commented] (FOP-2352) Unable to render Arabic Text using Apache FOP
[ https://issues.apache.org/jira/browse/FOP-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14064724#comment-14064724 ] ramakanthreddy commented on FOP-2352: - Hi Luis, The attached out.pdf is OK. I changed accordingly but still it is unable to render the arabic text Thanks, Ramakanth > Unable to render Arabic Text using Apache FOP > - > > Key: FOP-2352 > URL: https://issues.apache.org/jira/browse/FOP-2352 > Project: Fop > Issue Type: Bug > Components: renderer/pdf >Affects Versions: 0.95, 1.0, 1.1 > Environment: Operating System:Windows > Java version : 1.6 >Reporter: ramakanthreddy >Priority: Critical > Attachments: out.pdf, readArabicText.txt, src.zip, test.pdf, > userconfig.xml > > > When trying to render arabic text using Apache FOP # is displayed in pdf file > instead of arabic text. > Working fine for french and english but fails for arabic > Characterset used is : UTF-8 > and StreamSource type is StringReader -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (FOP-2352) Unable to render Arabic Text using Apache FOP
[ https://issues.apache.org/jira/browse/FOP-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14064720#comment-14064720 ] Luis Bernardo commented on FOP-2352: Change the embed-url value to point to Arial.ttf, not Arialuni.ttf. Does the attached out.pdf look OK? > Unable to render Arabic Text using Apache FOP > - > > Key: FOP-2352 > URL: https://issues.apache.org/jira/browse/FOP-2352 > Project: Fop > Issue Type: Bug > Components: renderer/pdf >Affects Versions: 0.95, 1.0, 1.1 > Environment: Operating System:Windows > Java version : 1.6 >Reporter: ramakanthreddy >Priority: Critical > Attachments: out.pdf, readArabicText.txt, src.zip, test.pdf, > userconfig.xml > > > When trying to render arabic text using Apache FOP # is displayed in pdf file > instead of arabic text. > Working fine for french and english but fails for arabic > Characterset used is : UTF-8 > and StreamSource type is StringReader -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (FOP-2352) Unable to render Arabic Text using Apache FOP
[ https://issues.apache.org/jira/browse/FOP-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14064718#comment-14064718 ] ramakanthreddy commented on FOP-2352: - Hi Luis, I tried using Arial.ttf but still it is not rendering arabic text properly. Apache fop version: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.1 Created-By: 16.0-b13 (Sun Microsystems Inc.) Main-Class: org.apache.fop.cli.Main Build-Id: 20120825-191622-IST (smishra [Windows XP 5.1 x86, Java 1.6.0 _18-b07, Target Java 1.5]) Name: org/apache/fop/ Specification-Title: XSL-FO - Extensible Stylesheet Language Specification-Version: 1.1 Specification-Vendor: World Wide Web Consortium Specification-URL: http://www.w3.org/TR/xsl Implementation-Title: Apache FOP Implementation-Version: 1.1rc1 Implementation-Vendor: The Apache Software Foundation (http://xmlgraph ics.apache.org/fop/) Configuration File: > Unable to render Arabic Text using Apache FOP > - > > Key: FOP-2352 > URL: https://issues.apache.org/jira/browse/FOP-2352 > Project: Fop > Issue Type: Bug > Components: renderer/pdf >Affects Versions: 0.95, 1.0, 1.1 > Environment: Operating System:Windows > Java version : 1.6 >Reporter: ramakanthreddy >Priority: Critical > Attachments: out.pdf, readArabicText.txt, src.zip, test.pdf, > userconfig.xml > > > When trying to render arabic text using Apache FOP # is displayed in pdf file > instead of arabic text. > Working fine for french and english but fails for arabic > Characterset used is : UTF-8 > and StreamSource type is StringReader -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (FOP-2352) Unable to render Arabic Text using Apache FOP
[ https://issues.apache.org/jira/browse/FOP-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13921000#comment-13921000 ] Glenn Adams commented on FOP-2352: -- Firstly, I recommend you test your content first by using the FOP command line tools, and not use your custom java driver. Second, you are specifying a font family name using Arabic text. As far as I know, I haven't tested using localized font family names. I would recommend you use an ASCII font family name and specify a mapping to the appropriate TTF file that implements the font. Thirdly, you need to keep in mind that Arabic has been tested against only those fonts enumerated in the link [2] noted by Pascal above. For other fonts, it may or may not work depending on whether they correctly support Arabic using the GDEF/GSUB/GPOS openfont tables. Fourthly, I'm not sure why you are using CDATA in your test file to enclose some Arabic text. That is not necessary. I'm going to leave this issue closed since we don't see a definite issue here (yet). > Unable to render Arabic Text using Apache FOP > - > > Key: FOP-2352 > URL: https://issues.apache.org/jira/browse/FOP-2352 > Project: Fop > Issue Type: Bug > Components: pdf >Affects Versions: 0.95, 1.0, 1.1 > Environment: Operating System:Windows > Java version : 1.6 >Reporter: ramakanthreddy >Priority: Critical > Attachments: src.zip > > > When trying to render arabic text using Apache FOP # is displayed in pdf file > instead of arabic text. > Working fine for french and english but fails for arabic > Characterset used is : UTF-8 > and StreamSource type is StringReader -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (FOP-2352) Unable to render Arabic Text using Apache FOP
[ https://issues.apache.org/jira/browse/FOP-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13920879#comment-13920879 ] Pascal Sancho commented on FOP-2352: Hi, Please, for FOP usage related question, ask 1st on fop-user list. That said, '#' is used when required glyph is not available in the font (see FAQ 6.2 at [1]). That can be caused by: - either the used font is not a Unicode one, so the code points do not match to character numbers - or your font is a Unicode one, but doesn't carry arabic subset. I suspect you meet the former case: your font (أوقات رومانية in your example) carries the arabic glyphes, but char codes are offset. In addition, complex script feature uses GPOS and SUBST tables (very usefull for arabic), and not all font files carry them. If confirmed, you should change your font and use one that is known to work like a charm with FOP (see list at [2]). [1] http://xmlgraphics.apache.org/fop/faq.html#pdf-characters [2] http://xmlgraphics.apache.org/fop/1.1/complexscripts.html#fonts_arabic > Unable to render Arabic Text using Apache FOP > - > > Key: FOP-2352 > URL: https://issues.apache.org/jira/browse/FOP-2352 > Project: Fop > Issue Type: Bug > Components: pdf >Affects Versions: 0.95, 1.0, 1.1 > Environment: Operating System:Windows > Java version : 1.6 >Reporter: ramakanthreddy >Priority: Critical > Attachments: src.zip > > > When trying to render arabic text using Apache FOP # is displayed in pdf file > instead of arabic text. > Working fine for french and english but fails for arabic > Characterset used is : UTF-8 > and StreamSource type is StringReader -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (FOP-2352) Unable to render Arabic Text using Apache FOP
[ https://issues.apache.org/jira/browse/FOP-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13920819#comment-13920819 ] ramakanthreddy commented on FOP-2352: - Hi Glenn Adams, Thanks for your response, I am using fop 1.1 version but still # is replaced instead of arabic characters ,Please find the attached source code which I have developed and Text which I am trying to write to PDF file. Libraries I used : 1.avalon-framework-4.2.0.jar 2.batik-all-1.7.jar 3.commons-io-1.3.1.jar 4.commons-logging-1.1.3.jar 5.fop.jar 6.xmlgraphics-commons-1.5rc1.jar > Unable to render Arabic Text using Apache FOP > - > > Key: FOP-2352 > URL: https://issues.apache.org/jira/browse/FOP-2352 > Project: Fop > Issue Type: Bug > Components: pdf >Affects Versions: 0.95, 1.0, 1.1 > Environment: Operating System:Windows > Java version : 1.6 >Reporter: ramakanthreddy >Priority: Critical > > When trying to render arabic text using Apache FOP # is displayed in pdf file > instead of arabic text. > Working fine for french and english but fails for arabic > Characterset used is : UTF-8 > and StreamSource type is StringReader -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (FOP-2352) Unable to render Arabic Text using Apache FOP
[ https://issues.apache.org/jira/browse/FOP-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13915888#comment-13915888 ] Glenn Adams commented on FOP-2352: -- Arabic is not supported prior to version 1.1. It is known to be working in 1.1 and trunk, so you are doing something wrong. Have you read the information in [1]? In any case, you need to provide a test file and your output PDF as well as any console log output if you expect anyone to process your issues. [1] http://xmlgraphics.apache.org/fop/trunk/complexscripts.html > Unable to render Arabic Text using Apache FOP > - > > Key: FOP-2352 > URL: https://issues.apache.org/jira/browse/FOP-2352 > Project: Fop > Issue Type: Bug > Components: pdf >Affects Versions: 0.95, 1.0, 1.1 > Environment: Operating System:Windows > Java version : 1.6 >Reporter: ramakanthreddy >Priority: Critical > > When trying to render arabic text using Apache FOP # is displayed in pdf file > instead of arabic text. > Working fine for french and english but fails for arabic > Characterset used is : UTF-8 > and StreamSource type is StringReader -- This message was sent by Atlassian JIRA (v6.1.5#6160)