aboutsummaryrefslogtreecommitdiff
path: root/zh_TW.Big5/share/xsl/freebsd-fo.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'zh_TW.Big5/share/xsl/freebsd-fo.xsl')
-rw-r--r--zh_TW.Big5/share/xsl/freebsd-fo.xsl59
1 files changed, 59 insertions, 0 deletions
diff --git a/zh_TW.Big5/share/xsl/freebsd-fo.xsl b/zh_TW.Big5/share/xsl/freebsd-fo.xsl
index cbc743b04b..84d9bec83b 100644
--- a/zh_TW.Big5/share/xsl/freebsd-fo.xsl
+++ b/zh_TW.Big5/share/xsl/freebsd-fo.xsl
@@ -12,4 +12,63 @@
<!-- Language-specific general customizations -->
<xsl:import href="freebsd-common.xsl"/>
+
+ <!-- Pull in the CJK-specific stylesheet -->
+ <xsl:import href="http://www.FreeBSD.org/XML/doc/share/xsl/freebsd-fo-cjk.xsl"/>
+
+ <!--
+ CHINESE-SPECIFIC PARAMETERS
+ -->
+
+ <xsl:param name="local.l10n.xml" select="document('')"/>
+
+ <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
+ <l:l10n language="zh_tw">
+ <l:context name="title-numbered">
+ <l:template name="appendix" text="附錄 %n. %t"/>
+ <l:template name="article/appendix" text="%n. %t" lang="en"/>
+ <l:template name="bridgehead" text="%t"/>
+ <l:template name="chapter" text="章 %n. %t"/>
+ <l:template name="part" text="部 %n. %t"/>
+ </l:context>
+ <l:context name="title-numbered">
+ <l:template name="appendix" text="附錄 %n. %t"/>
+ <l:template name="article/appendix" text="%n. %t" lang="en"/>
+ <l:template name="chapter" text="章 %n. %t"/>
+ <l:template name="part" text="部 %n. %t"/>
+ <l:template name="sect1" text="%n. %t"/>
+ <l:template name="sect2" text="%n. %t"/>
+ <l:template name="sect3" text="%n. %t"/>
+ <l:template name="sect4" text="%n. %t"/>
+ <l:template name="sect5" text="%n. %t"/>
+ <l:template name="section" text="%n. %t"/>
+ <l:template name="simplesect" text="%n. %t"/>
+ </l:context>
+ </l:l10n>
+ </l:i18n>
+
+ <!-- Base fonts -->
+ <xsl:param name="body.font.family">AR PL Mingti2L Big5, Gentium Plus</xsl:param>
+ <xsl:param name="sans.font.family">AR PL KaitiM Big5, Droid Sans</xsl:param>
+ <xsl:param name="title.font.family">AR PL KaitiM Big5, Droid Sans</xsl:param>
+
+ <!-- Slightly reduce header font-size to make headers fit -->
+ <xsl:attribute-set name="header.content.properties">
+ <xsl:attribute name="font-size">8pt</xsl:attribute>
+ <xsl:attribute name="font-family">
+ <xsl:value-of select="$body.fontset"></xsl:value-of>
+ </xsl:attribute>
+ <xsl:attribute name="margin-left">
+ <xsl:value-of select="$title.margin.left"></xsl:value-of>
+ </xsl:attribute>
+ </xsl:attribute-set>
+
+ <!-- Increase inline monospace fonts to better fit the Chinese font-size -->
+ <xsl:attribute-set name="monospace.properties">
+ <xsl:attribute name="font-family">
+ <xsl:value-of select="$monospace.font.family"></xsl:value-of>
+ </xsl:attribute>
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
+ </xsl:attribute-set>
+
</xsl:stylesheet>