2008/12/10 Olaf Meeuwissen <[EMAIL PROTECTED]>:
> I've managed to get the plugin to output a Docbook file with Japanese.
> I've had no luck so far using the companion python script to combine
> multiple wiki pages in a single Docbook document.  Cluebats welcome.

The script seems not friendly and having some assumption.
You might need modifying for your env.


> I've also tried converting the Japanese Docbook file with Debian's fop
> but it seems I also have to fiddle with font settings.  All Japanese
> shows up as ### in the PDF.  I have Japanese TrueType fonts.

You may need to create font metrics for MS-Mincho and MS-Gothic and
configure to use it.

See this page to make font metric and how to configure FOP:
http://xmlgraphics.apache.org/fop/0.94/fonts.html#truetype-collections-metrics

You also need to tell to specify fonts via xls parameter.
I recommend making small .xsl file to define options parameters and it
calls specific .xsl file. For example to make PDF:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version='1.0'>
  <xsl:import href="c:/usr/share/docbook-xsl/fo/docbook.xsl"/>
  <xsl:param name="chunker.output.encoding" select="'utf-8'"/>
  <xsl:param name="fop.extensions" select="1"/>
  <xsl:param name="paper.type" select="'A4'"/>
  <xsl:param name="ulink.show" select="0"/>
  <xsl:param name="draft.mode" select="no"/>
  <xsl:param name="section.autolabel" select="1"/>
  <xsl:param name="section.label.includes.component.label" select="1"/>
  <xsl:param name="hyphenate">false</xsl:param>
  <xsl:param name="title.font.family" select="'MSGothic'"/>
  <xsl:param name="body.font.family" select="'MSMincho'"/>
  <xsl:param name="sans.font.family" select="'MSGothic'"/>
  <xsl:param name="monospace.font.family" select="'Helvetica'"/>
</xsl:stylesheet>


I named it as 'docbook-pdf.xsl' and use it like this:

$ edit mybook.xml
$ xsltproc --nonet -o mybook.fo docbook-pdf.xsl mybook.xml
$ fop -c mybook.cfg mybook.fo mybook.pdf


And you may also need to ensure lang="ja" attribute is in root element
of docbook document. (like <article lang="ja"> .... )


> In the mean time, information on the Japanese fonts would be most
> appreciated.
>
> Hope this helps,


# My knowledge might be bit old because I'd setup with FOP 0.20.x.
# Today, I tried with recent version of fop 0.94 and success for samll
# files, but not yet with AsciiDoc generated files...

-- 
Shun-ichi GOTO

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to