PDF変換でタイトルの文字化けを直す。

先週の修正で文字化けは修正されたと思ったが、よーくみるとPDFした文章のヘッダタイトルが文字化けしていることに気づいた。早く気づけよ...

foファイルを見ると該当箇所にはフォントファミリーの記述が無いことがわかったのでdita2fo-shell_template.xslを修正してみる。
236行目

  <!-- internal title page -->
  <!-- edition notices -->
  <!-- document notice data -->
  <!-- grant of usage data -->
  <!-- copyright info -->
  <!-- disclaimers -->
  <!-- redirect to notices page -->
  <!-- definitions for placement of Front Matter content -->
  <xsl:template name="generated-frontmatter">
    <fo:page-sequence master-reference="common-page" format="i" initial-page-number="1">
      <!-- Static setup for the generated pages -->
      <!-- header -->
      <fo:static-content flow-name="xsl-region-before" font-family="Gothic,Mincho,Helvetica">

それともう一箇所
307行目

  <!-- initiate main content processing within basic page "shell" -->
  <xsl:template name="main-doc3">
    <fo:page-sequence master-reference="chapter-master">
      <!-- header: single page -->
      <fo:static-content flow-name="xsl-region-before" font-family="Gothic,Mincho,Helvetica">

これでヘッダタイトルも文字化けが直った。
Eclipse helpも出力までは確認できたので、次はant上でこれらの作業を行なうことか。