You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Shashwat Mehta <sh...@navyuginfo.com> on 2016/09/16 15:55:06 UTC

Unicode support in XSL FO report

Hello Team,
My name is Shashwat Mehta and I am Java developer.
We are working on project which uses XSL-FO reports for PDF reports from
Document objects. Now, we are trying to give support unicode characters in
rports. Here, we found some issues. We are using Document objects to parse
stream to Transformer. Till transformer data is fine and encoded in UTF-8
format. But when we transform from xsl file it generates error that font is
not supported. After some research we found that "Arial Unicode MS" font
supports till Unicode 4.0 code points and the same fonts we were set in
fop-configuration xml. Then we find another fonts "Symbola" which supports
latest Unicode 9.0. But issue is even we set it in configuration as well as
xsl file the font-family, it gives another error for "Mismatch:
page-sequence (http://www.w3.org/1999/XSL/Format) vs. root (
http://www.w3.org/1999/XSL/Format)".
Soon, we recognise this issue comes when there are lot of exception occured
and main exception swallowed by another one.
Now the actual question is whole story goes fine when we use only english
characters or characters till Unicode 4.0 supported. Issue occured only
when we use characters above Unicode 4.0, though Symbola supports Unicode
9.0. Also helps me to understand how to solve "Mismatch : page-sequence"
exception.

Thanks & Regards
Shashwat Mehta

Re: Unicode support in XSL FO report

Posted by Simone Rondelli <mo...@gmail.com>.
Hello Shashwat,

I think the problem that you are facing is that ApacheFOP do not support
Surrogate Pairs: https://issues.apache.org/jira/browse/FOP-1969

I'm currently working for a fix to this problem, I already have a working
solution and I'm planning to send a pull request by the end of next week.

Stay tuned :)

Simone Rondelli

2016-09-16 17:55 GMT+02:00 Shashwat Mehta <sh...@navyuginfo.com>:

> Hello Team,
> My name is Shashwat Mehta and I am Java developer.
> We are working on project which uses XSL-FO reports for PDF reports from
> Document objects. Now, we are trying to give support unicode characters in
> rports. Here, we found some issues. We are using Document objects to parse
> stream to Transformer. Till transformer data is fine and encoded in UTF-8
> format. But when we transform from xsl file it generates error that font is
> not supported. After some research we found that "Arial Unicode MS" font
> supports till Unicode 4.0 code points and the same fonts we were set in
> fop-configuration xml. Then we find another fonts "Symbola" which supports
> latest Unicode 9.0. But issue is even we set it in configuration as well as
> xsl file the font-family, it gives another error for "Mismatch:
> page-sequence (http://www.w3.org/1999/XSL/Format) vs. root (
> http://www.w3.org/1999/XSL/Format)".
> Soon, we recognise this issue comes when there are lot of exception
> occured and main exception swallowed by another one.
> Now the actual question is whole story goes fine when we use only english
> characters or characters till Unicode 4.0 supported. Issue occured only
> when we use characters above Unicode 4.0, though Symbola supports Unicode
> 9.0. Also helps me to understand how to solve "Mismatch : page-sequence"
> exception.
>
> Thanks & Regards
> Shashwat Mehta
>



-- 
Simone Rondelli

Fwd: Unicode support in XSL FO report

Posted by Shashwat Mehta <sh...@navyuginfo.com>.
Thanks & Regards
Shashwat Mehta

---------- Forwarded message ----------
From: Glenn Adams <gl...@skynav.com>
Date: Fri, Sep 16, 2016 at 9:50 PM
Subject: Re: Unicode support in XSL FO report
To: Shashwat Mehta <sh...@navyuginfo.com>


Please send your inquiry to the fop-users@xmlgraphics.apache.org ML. The
fop-dev list is for developer issues.

On Fri, Sep 16, 2016 at 9:55 AM, Shashwat Mehta <
shashwat.mehta@navyuginfo.com> wrote:

> Hello Team,
> My name is Shashwat Mehta and I am Java developer.
> We are working on project which uses XSL-FO reports for PDF reports from
> Document objects. Now, we are trying to give support unicode characters in
> rports. Here, we found some issues. We are using Document objects to parse
> stream to Transformer. Till transformer data is fine and encoded in UTF-8
> format. But when we transform from xsl file it generates error that font is
> not supported. After some research we found that "Arial Unicode MS" font
> supports till Unicode 4.0 code points and the same fonts we were set in
> fop-configuration xml. Then we find another fonts "Symbola" which supports
> latest Unicode 9.0. But issue is even we set it in configuration as well as
> xsl file the font-family, it gives another error for "Mismatch:
> page-sequence (http://www.w3.org/1999/XSL/Format) vs. root (
> http://www.w3.org/1999/XSL/Format)".
> Soon, we recognise this issue comes when there are lot of exception
> occured and main exception swallowed by another one.
> Now the actual question is whole story goes fine when we use only english
> characters or characters till Unicode 4.0 supported. Issue occured only
> when we use characters above Unicode 4.0, though Symbola supports Unicode
> 9.0. Also helps me to understand how to solve "Mismatch : page-sequence"
> exception.
>
> Thanks & Regards
> Shashwat Mehta
>