svn commit: r42374 - projects/db5/zh_CN.GB2312/share/xsl
Gabor Kovesdan
gabor at FreeBSD.org
Mon Jul 22 15:29:27 UTC 2013
Author: gabor
Date: Mon Jul 22 15:29:26 2013
New Revision: 42374
URL: http://svnweb.freebsd.org/changeset/doc/42374
Log:
- Add Simplified Chinese customization
Added:
projects/db5/zh_CN.GB2312/share/xsl/freebsd-dblatex.xsl (contents, props changed)
Modified:
projects/db5/zh_CN.GB2312/share/xsl/freebsd-fo.xsl
Added: projects/db5/zh_CN.GB2312/share/xsl/freebsd-dblatex.xsl
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/db5/zh_CN.GB2312/share/xsl/freebsd-dblatex.xsl Mon Jul 22 15:29:26 2013 (r42374)
@@ -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 SungtiL GB}
+ </xsl:text>
+ <xsl:text>\setsansfont{AR PL KaitiM GB}
+ </xsl:text>
+ <xsl:text>\setmonofont{DejaVu Sans Mono}
+ </xsl:text>
+ </xsl:param>
+
+</xsl:stylesheet>
Modified: projects/db5/zh_CN.GB2312/share/xsl/freebsd-fo.xsl
==============================================================================
--- projects/db5/zh_CN.GB2312/share/xsl/freebsd-fo.xsl Mon Jul 22 12:42:49 2013 (r42373)
+++ projects/db5/zh_CN.GB2312/share/xsl/freebsd-fo.xsl Mon Jul 22 15:29:26 2013 (r42374)
@@ -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>
More information about the svn-doc-projects
mailing list