diff options
author | Gabor Kovesdan <gabor@FreeBSD.org> | 2013-07-22 15:29:54 +0000 |
---|---|---|
committer | Gabor Kovesdan <gabor@FreeBSD.org> | 2013-07-22 15:29:54 +0000 |
commit | 74d69e5e971c1d5ee1f8233512fe08daf4c5281f (patch) | |
tree | a5d725df5806bb1b0924ccf1ee1a6da4d2d13584 | |
parent | e2a83ede270ab3717c2c2452aec2738ce5b90013 (diff) | |
download | doc-74d69e5e971c1d5ee1f8233512fe08daf4c5281f.tar.gz doc-74d69e5e971c1d5ee1f8233512fe08daf4c5281f.zip |
- Add Traditional Chinese customization
Notes
Notes:
svn path=/projects/db5/; revision=42375
-rw-r--r-- | zh_TW.Big5/share/xsl/freebsd-dblatex.xsl | 20 | ||||
-rw-r--r-- | zh_TW.Big5/share/xsl/freebsd-fo.xsl | 29 |
2 files changed, 49 insertions, 0 deletions
diff --git a/zh_TW.Big5/share/xsl/freebsd-dblatex.xsl b/zh_TW.Big5/share/xsl/freebsd-dblatex.xsl new file mode 100644 index 0000000000..e603f286fc --- /dev/null +++ b/zh_TW.Big5/share/xsl/freebsd-dblatex.xsl @@ -0,0 +1,20 @@ +<?xml version='1.0'?> + +<!-- $FreeBSD$ --> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version='1.0'> + + <!-- Pull in the language-independent stylesheet --> + <xsl:import href="../../../share/xsl/freebsd-dblatex.xsl"/> + + <xsl:param name="xetex.font"> + <xsl:text>\setmainfont{AR PL Mingti2L Big5} + </xsl:text> + <xsl:text>\setsansfont{AR PL KaitiM Big5} + </xsl:text> + <xsl:text>\setmonofont{DejaVu Sans Mono} + </xsl:text> + </xsl:param> + +</xsl:stylesheet> diff --git a/zh_TW.Big5/share/xsl/freebsd-fo.xsl b/zh_TW.Big5/share/xsl/freebsd-fo.xsl index cbc743b04b..fddcd354ec 100644 --- a/zh_TW.Big5/share/xsl/freebsd-fo.xsl +++ b/zh_TW.Big5/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 Mingti2L Big5</xsl:param> + <xsl:param name="sans.font.family">AR PL KaitiM Big5</xsl:param> + <xsl:param name="title.font.family">AR PL KaitiM Big5</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> |