Has anyone ever successfully converted japanese text to PDF using FOP?

I have tried converting the attached XML file to PDF.  The resulting
file contains "#####" instead of japanese text, as shown in the
screenshot.  Interestingly, the navigation hierarchy on the left does
use the proper characters.

details:
* File is DocBook XML encoded in shift_jis
* File contains katagana (full and half width) and kanji
* Using FOP 0.20.5
* Using Saxon as XSLT processor (also tried with Xalan)
* Using Norm's docbook stylesheets v1.64.1 (slightly customized)
* Using a japanese PDF reader

For what it's worth, the same file processes just fine through Saxon to
HTML and JADE to RTF.

Does anyone have any idea why this is not working?


-k


Attachment: tja.pdf
Description: tja.pdf

<?xml version="1.0" encoding="shift_jis"?>
<!--<!DOCTYPE book PUBLIC '-//OASIS//DTD DocBook V4.2//EN'>-->
<book lang="ja">
   <title>&#12364;&#35373;&#23450;&#12373;&#12428;&#12390;&#12356;&#12414;&#12379;&#12435;</title><?dbhtml filename="tja.html"?>
   <bookinfo>
      <title>&#12364;&#35373;&#23450;&#12373;&#12428;&#12390;&#12356;&#12414;&#12379;&#12435;</title>
      <subtitle>&#65411;&#65438;&#65384;&#65434;&#65400;&#65412;&#65432;</subtitle>
      <author>
         <firstname>&#12364;&#35373;&#23450;&#12373;&#12428;&#12390;&#12356;&#12414;&#12379;&#12435;</firstname>
      </author>
      <pubdate>10-Jun-2004 09:19:56</pubdate>
      <copyright>
         <year>&#12364;&#35373;&#23450;&#12373;&#12428;&#12390;&#12356;&#12414;&#12379;&#12435;</year>
      </copyright>
      <abstract>
         <para>&#12364;&#35373;&#23450;&#12373;&#12428;&#12390;&#12356;&#12414;&#12379;&#12435;</para>
      </abstract>
      <legalnotice>
         <para>&#12364;&#35373;&#23450;&#12373;&#12428;&#12390;&#12356;&#12414;&#12379;&#12435;</para>
      </legalnotice>
   </bookinfo>
   <chapter><?dbhtml filename="tja-001.html"?>
      <title>&#12364;&#35373;&#23450;&#12373;&#12428;&#12390;&#12356;&#12414;&#12379;&#12435;</title>
      <table colsep="1" frame="all" pgwide="1" rowsep="1">
         <title>&#12364;&#35373;&#23450;&#12373;&#12428;&#12390;&#12356;&#12414;&#12379;&#12435;</title>
         <tgroup cols="4">
            <colspec colnum="1" colwidth="1*"/>
            <colspec colnum="2" colwidth="1*"/>
            <colspec colnum="3" colwidth="1*"/>
            <colspec colnum="4" colwidth="1*"/>
            <thead>
               <row>
                  <entry>0.95013</entry>
                  <entry>0.8913</entry>
                  <entry>0.82141</entry>
                  <entry>0.92181</entry>
               </row>
            </thead>
            <tbody>
               <row>
                  <entry>0.23114</entry>
                  <entry>0.7621</entry>
                  <entry>0.4447</entry>
                  <entry>0.73821</entry>
               </row>
               <row>
                  <entry>0.60684</entry>
                  <entry>0.45647</entry>
                  <entry>0.61543</entry>
                  <entry>0.17627</entry>
               </row>
               <row>
                  <entry>0.48598</entry>
                  <entry>0.018504</entry>
                  <entry>0.79194</entry>
                  <entry>0.40571</entry>
               </row>
            </tbody>
         </tgroup>
      </table>
   </chapter>
   <chapter><?dbhtml filename="tja-002.html"?>
      <title>&#12434;&#21547;&#12416;&#22793;&#25968;&#21517;&#12434;&#34920;&#31034;</title>
      <formalpara>
         <title>kanji</title>
         <para>&#26085;&#26412;&#31179;</para>
      </formalpara>
      <formalpara>
         <title>&#65352;&#65353;&#65362;&#65345;&#65351;&#65345;&#65358;&#65345;</title>
         <para>&#12354;&#12356;&#12358;&#12360;&#12362;</para>
      </formalpara>
      <formalpara>
         <title>katagana full-width</title>
         <para>&#12486;&#12473;&#12488;</para>
      </formalpara>
      <formalpara>
         <title>katagana half-width</title>
         <para>&#65411;&#65405;&#65412;</para>
      </formalpara>
      <sect1><?dbhtml filename="tja-003.html"?>
         <title>&#65411;&#65438;&#65384;&#65434;&#65400;&#65412;&#65432;</title>
         <formalpara><title>Name</title><para>figure &#24180;&#26376;&#26085;</para>
         </formalpara><formalpara><title>Description</title><para>model &#24180;&#26376;&#26085;</para></formalpara>
      </sect1>
   </chapter>
</book>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to