You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Matt P." <ma...@area403.org> on 2007/04/23 16:13:38 UTC

Rendering ZWJ (x200D) for Devanagari joints.

Hello,

I am trying to produce a pdf document in Sanskrit based on a docbook
source. I use Xalan (with -p body.font.family "'chandas'") to generate an
fo file, as well as an html, and then fop to convert the fo into pdf.

The html file seems to be correct, in that they render the following
characters as a joint character: &#x093F;&#x0936;&#x094D;&#x091A;
(see fop.png, which is the fo file seen with Firefox in Linux).

The pdf file, however, doesn't seem to be correct. (see pdf.png)

I would appreciate any help on the topic.

Thanks,

Matt


Note:

(1) I use fop-0.93 on a Linux 2.6.20 64bit (gentoo), with sun-jdk-1.5.0.11

(2) I have registered the chandas.ttf (see http://www.sanskritweb.org/cakram/) with fop:
<font metrics-url="file:///usr/local/fop/conf/chandas.xml"
kerning="yes" embed-url="file:///usr/local/share/fonts/devanagari/chandas.ttf">
	<font-triplet name="chandas" style="normal" weight="normal"/>
</font>

(3) Running fop `/usr/local/fop/fop -c /usr/local/fop/conf/fop.xconf utf8.fo
-pdf utf8.pdf` produces several warnings:

matt@blacktiger ~ $ /usr/local/fop/fop -c /usr/local/fop/conf/fop.xconf
utf8.fo -pdf utf8.pdf
Apr 23, 2007 10:06:27 AM org.apache.fop.apps.FopFactory initUserConfig
INFO: Source resolution set to: 72.0dpi (px2mm=0.35277778)
Apr 23, 2007 10:06:27 AM org.apache.fop.apps.FopFactory initUserConfig
INFO: Default page-height set to: 11in
Apr 23, 2007 10:06:27 AM org.apache.fop.apps.FopFactory initUserConfig
INFO: Default page-width set to: 8.26in
Apr 23, 2007 10:06:27 AM org.apache.fop.apps.FopFactory
getBaseURLfromConfig
INFO: base set to: file:/home/matt/./
Apr 23, 2007 10:06:27 AM org.apache.fop.apps.FOUserAgent configure
INFO: Target resolution set to: 72.0dpi (px2mm=0.35277778)
Apr 23, 2007 10:06:29 AM org.apache.fop.hyphenation.Hyphenator
getHyphenationTree
SEVERE: Couldn't find hyphenation pattern en
Apr 23, 2007 10:06:29 AM org.apache.fop.fonts.FontInfo
notifyFontReplacement
WARNING: Font 'chandas,normal,700' not found. Substituting with
'chandas,normal,400'.

(4) You can find the following files:

http://www.area403.org/utf8.xml (docbook source)
http://www.area403.org/utf8.fo (Xalan output w/ fo/docbook.xsl (1.70.1))
http://www.area403.org/utf8.pdf (fop output)
http://www.area403.org.utf8.html (Xalan output w/ html/docbook.xsl (1.70.1))

Re: Rendering ZWJ (x200D) for Devanagari joints.

Posted by ma...@blacktiger.area403.org.
On Mon, Apr 23, 2007 at 10:39:00PM +0800, Manuel Mall wrote:
> On Monday 23 April 2007 22:13, Matt P. wrote:
> > Hello,
> >
> > I am trying to produce a pdf document in Sanskrit based on a docbook
> > source. I use Xalan (with -p body.font.family "'chandas'") to
> > generate an fo file, as well as an html, and then fop to convert the
> > fo into pdf.
> >
> > The html file seems to be correct, in that they render the following
> > characters as a joint character: &#x093F;&#x0936;&#x094D;&#x091A;
> > (see fop.png, which is the fo file seen with Firefox in Linux).
> >
> > The pdf file, however, doesn't seem to be correct. (see pdf.png)
> >
> > I would appreciate any help on the topic.
> >
> 
> Matt,
> 
> sorry but fop doesn't support advanced unicode features like like 
> normalization, glyph merging and substitution, etc.. Any help to 
> improve that area would be most welcome.
> 
> BTW, when I look at the fo in firefox (Linux and Windows) I get a 
> display much more similar to the pdf.png than your fop.png.
> 
> Manuel
> 

Thank you Manuel.

Now that I have my language corrected (glyph merging and such), I see that
I could have found the answer at
http://xmlgraphics.apache.org/fop/compliance.html

... and that you've been answering a few of these questions .... ;-)

Thanks for your answer.

Matt

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


Re: Rendering ZWJ (x200D) for Devanagari joints.

Posted by Manuel Mall <ma...@apache.org>.
On Monday 23 April 2007 22:13, Matt P. wrote:
> Hello,
>
> I am trying to produce a pdf document in Sanskrit based on a docbook
> source. I use Xalan (with -p body.font.family "'chandas'") to
> generate an fo file, as well as an html, and then fop to convert the
> fo into pdf.
>
> The html file seems to be correct, in that they render the following
> characters as a joint character: &#x093F;&#x0936;&#x094D;&#x091A;
> (see fop.png, which is the fo file seen with Firefox in Linux).
>
> The pdf file, however, doesn't seem to be correct. (see pdf.png)
>
> I would appreciate any help on the topic.
>

Matt,

sorry but fop doesn't support advanced unicode features like like 
normalization, glyph merging and substitution, etc.. Any help to 
improve that area would be most welcome.

BTW, when I look at the fo in firefox (Linux and Windows) I get a 
display much more similar to the pdf.png than your fop.png.

Manuel

> Thanks,
>
> Matt
>
>
> Note:
>
> (1) I use fop-0.93 on a Linux 2.6.20 64bit (gentoo), with
> sun-jdk-1.5.0.11
>
> (2) I have registered the chandas.ttf (see
> http://www.sanskritweb.org/cakram/) with fop: <font
> metrics-url="file:///usr/local/fop/conf/chandas.xml"
> kerning="yes"
> embed-url="file:///usr/local/share/fonts/devanagari/chandas.ttf">
> <font-triplet name="chandas" style="normal" weight="normal"/> </font>
>
> (3) Running fop `/usr/local/fop/fop -c /usr/local/fop/conf/fop.xconf
> utf8.fo -pdf utf8.pdf` produces several warnings:
>
> matt@blacktiger ~ $ /usr/local/fop/fop -c
> /usr/local/fop/conf/fop.xconf utf8.fo -pdf utf8.pdf
> Apr 23, 2007 10:06:27 AM org.apache.fop.apps.FopFactory
> initUserConfig INFO: Source resolution set to: 72.0dpi
> (px2mm=0.35277778)
> Apr 23, 2007 10:06:27 AM org.apache.fop.apps.FopFactory
> initUserConfig INFO: Default page-height set to: 11in
> Apr 23, 2007 10:06:27 AM org.apache.fop.apps.FopFactory
> initUserConfig INFO: Default page-width set to: 8.26in
> Apr 23, 2007 10:06:27 AM org.apache.fop.apps.FopFactory
> getBaseURLfromConfig
> INFO: base set to: file:/home/matt/./
> Apr 23, 2007 10:06:27 AM org.apache.fop.apps.FOUserAgent configure
> INFO: Target resolution set to: 72.0dpi (px2mm=0.35277778)
> Apr 23, 2007 10:06:29 AM org.apache.fop.hyphenation.Hyphenator
> getHyphenationTree
> SEVERE: Couldn't find hyphenation pattern en
> Apr 23, 2007 10:06:29 AM org.apache.fop.fonts.FontInfo
> notifyFontReplacement
> WARNING: Font 'chandas,normal,700' not found. Substituting with
> 'chandas,normal,400'.
>
> (4) You can find the following files:
>
> http://www.area403.org/utf8.xml (docbook source)
> http://www.area403.org/utf8.fo (Xalan output w/ fo/docbook.xsl
> (1.70.1)) http://www.area403.org/utf8.pdf (fop output)
> http://www.area403.org.utf8.html (Xalan output w/ html/docbook.xsl
> (1.70.1))

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