aboutsummaryrefslogtreecommitdiff
path: root/zh_CN.GB2312/share/xsl/freebsd-fo.xsl
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2013-07-22 15:29:26 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2013-07-22 15:29:26 +0000
commite2a83ede270ab3717c2c2452aec2738ce5b90013 (patch)
treed798b9884e8c598397ef06f0dd74df9b8b0c2174 /zh_CN.GB2312/share/xsl/freebsd-fo.xsl
parentbb135e40e01537b16f59370242d611d142751f6b (diff)
downloaddoc-e2a83ede270ab3717c2c2452aec2738ce5b90013.tar.gz
doc-e2a83ede270ab3717c2c2452aec2738ce5b90013.zip
- Add Simplified Chinese customization
Notes
Notes: svn path=/projects/db5/; revision=42374
Diffstat (limited to 'zh_CN.GB2312/share/xsl/freebsd-fo.xsl')
-rw-r--r--zh_CN.GB2312/share/xsl/freebsd-fo.xsl29
1 files changed, 29 insertions, 0 deletions
diff --git a/zh_CN.GB2312/share/xsl/freebsd-fo.xsl b/zh_CN.GB2312/share/xsl/freebsd-fo.xsl
index cbc743b04b..682cc2be1a 100644
--- a/zh_CN.GB2312/share/xsl/freebsd-fo.xsl
+++ b/zh_CN.GB2312/share/xsl/freebsd-fo.xsl
@@ -12,4 +12,33 @@
<!-- Language-specific general customizations -->
<xsl:import href="freebsd-common.xsl"/>
+
+ <!--
+ CHINESE-SPECIFIC PARAMETERS
+ -->
+
+ <!-- Base fonts -->
+ <xsl:param name="body.font.family">AR PL SungtiL GB</xsl:param>
+ <xsl:param name="sans.font.family">AR PL KaitiM GB</xsl:param>
+ <xsl:param name="title.font.family">AR PL KaitiM GB</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>