You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Enke, Michael" <mi...@wincor-nixdorf.com> on 2002/07/11 15:38:35 UTC

Chinese chars in fop-pdf?

Hi,
if I look for <i18n:date-time/> in html with zh_CN locale then I see
chinese letters. But if I transform to pdf and view with acroread or print it out,
these chars are missing, they are replaced with hash marks "#" (netscape from Linux
and MSIE 6.0 from Windows).
 
Does anybody know if this is a problem of
- sitemap configuration,
- FOPSerializer,
- fop itself or
- acroread?

I exclude missing font problems because of the same result in Linux and Windows.
Any idea?

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: Chinese chars in fop-pdf?

Posted by MIYABE Tatsuhiko <mi...@jzf.co.jp>.
Hi,

I already created patch for this problem.
But, now I notice that I posted unrelated patch to bugzilla!

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6533

Please apply this patch and see cocoon.xconf.
http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=2325

Thanks.

--
MIYABE Tatsuhiko
(miyabe@jzf.co.jp)


> -----Original Message-----
> From: J.Pietschmann [mailto:j3322ptm@yahoo.de] 
> Sent: Friday, July 12, 2002 5:57 AM
> To: cocoon-dev@xml.apache.org
> Subject: Re: Chinese chars in fop-pdf?
> 
> 
> Enke, Michael wrote:
> > Hi,
> > if I look for <i18n:date-time/> in html with zh_CN locale 
> then I see 
> > chinese letters. But if I transform to pdf and view with 
> acroread or 
> > print it out, these chars are missing, they are replaced with hash 
> > marks "#" (netscape from Linux and MSIE 6.0 from Windows).
> 
> This means the selected font does not have a glyph
> for the character. You have to prepare a font containing 
> chinese glyphs for FOP, install it, and, depending on the 
> availablility of the font on the reading platform, embed it 
> into the PDF. How to prepare the metrics file and what to put 
> into the FOP configuration cen be glanced from the documentation
>   http://xml.apache.org/fop/fonts.html
>   
http://xml.apache.org/cocoon/userdocs/serializers/pdf-serializer.html

> Does anybody know if this is a problem of
> - sitemap configuration,
> - FOPSerializer,
> - fop itself or
> - acroread?
Yes. Somebody ought to know :-)

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: Chinese chars in fop-pdf?

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Enke, Michael wrote:
> Hi,
> if I look for <i18n:date-time/> in html with zh_CN locale then I see
> chinese letters. But if I transform to pdf and view with acroread or print it out,
> these chars are missing, they are replaced with hash marks "#" (netscape from Linux
> and MSIE 6.0 from Windows).

This means the selected font does not have a glyph
for the character. You have to prepare a font containing
chinese glyphs for FOP, install it, and, depending on
the availablility of the font on the reading platform,
embed it into the PDF.
How to prepare the metrics file and what to put into the
FOP configuration cen be glanced from the documentation
  http://xml.apache.org/fop/fonts.html
  http://xml.apache.org/cocoon/userdocs/serializers/pdf-serializer.html

> Does anybody know if this is a problem of
> - sitemap configuration,
> - FOPSerializer,
> - fop itself or
> - acroread?
Yes. Somebody ought to know :-)

J.Pietschmann


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: Chinese chars in fop-pdf?

Posted by John Morrison <jo...@ntlworld.com>.
Try generating the PDF from a command line prompt and FOP.  If you
can't do it, ask on the FOP list (they will have more idea than
most people here).

Sorry I can't help more.

J.

> From: Enke, Michael [mailto:michael.enke@wincor-nixdorf.com]
> 
> Hi,
> if I look for <i18n:date-time/> in html with zh_CN locale then I see
> chinese letters. But if I transform to pdf and view with acroread 
> or print it out,
> these chars are missing, they are replaced with hash marks "#" 
> (netscape from Linux
> and MSIE 6.0 from Windows).
>  
> Does anybody know if this is a problem of
> - sitemap configuration,
> - FOPSerializer,
> - fop itself or
> - acroread?
> 
> I exclude missing font problems because of the same result in 
> Linux and Windows.
> Any idea?
> 
> Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org