How to support Asian languages in EHANDBOOK generated PDF documents

Typically, texts in Japanese, Korean or Chinese are properly rendered in the built-in web-browser of EHANDBOOK-NAVIGATOR.

Example EHANDBOOK Container with Japanese contents

ehandbook navigator japanese example

You can download an example EHANDBOOK Container here.

To properly render Japanese, Korean or Chinese in PDF documents generated via EHANDBOOK Container-Build or in PDF printouts from EHANDBOOK-NAVIGATOR, the fonts that shall be used in the PDF file have to be configured appropriately: the font to be used must a) support the specific language and b) be installed in Microsoft Windows where the PDF is generated or viewed.

Check which fonts are installed in Windows

To configure a font for a specific language, first check which fonts are installed and available for the specific language in your Windows system.

The available fonts are listed under Fonts in the Personalization area in the Settings of Microsoft Windows. (Go to SettingsPersonalizationFonts)

windows font settings

Using the filter, choose the language of interest.

windows font settings japanese
Figure 1. Example fonts supporting Japanese
windows font settings korean
Figure 2. Example fonts supporting Korean
windows font settings chinese
Figure 3. Example fonts supporting Chinese

If no font for the language of interest is available, it has to be installed first.

Configure the fonts for EHANDBOOK generated PDF documents

EHANDBOOK uses XSL stylesheets for the styling of PDF-based contents.

The XSL stylesheets are part of the syling for EHANDBOOK Containers and PDF documents.

There are two XSL stylesheets:

  • PdfCustomization.xsl for PDF documents generated via EHANDBOOK Container-Build

  • PrintCustomization.xsl for PDF documents exported from EHANDBOOK-NAVIGATOR

In order to use a font for a specific text-based content such as headings, paragraphs, captions etc., the font must be listed within the attribute font-family

Example for XSL stylesheet definition for Japanese using Yu Gothic Light font
...

<!-- Chapter title -->
<xsl:attribute-set name="topic.title">
  <xsl:attribute name="color">#000000</xsl:attribute>
  <xsl:attribute name="font-size">1.77em</xsl:attribute>
  <xsl:attribute name="font-family">Yu Gothic Light, sans-serif</xsl:attribute>
</xsl:attribute-set>

<!-- Section title-->
<xsl:attribute-set name="topic.topic.title">
  <xsl:attribute name="color">#000000</xsl:attribute>
  <xsl:attribute name="font-size">1.62em</xsl:attribute>
  <xsl:attribute name="font-family">Yu Gothic Light, sans-serif</xsl:attribute>
</xsl:attribute-set>

...

You can download an example PDF document generated by EHANDBOOK Container-Build here.

ehandbook pdf japanese example
Figure 4. Example PDF generated by EHANDBOOK Container-Build with Japanese contents

The complete example can be downloaded here.