svn commit: r42283 - projects/db5/ja_JP.eucJP/share/xsl
Gabor Kovesdan
gabor at FreeBSD.org
Mon Jul 15 08:29:05 UTC 2013
Author: gabor
Date: Mon Jul 15 08:29:04 2013
New Revision: 42283
URL: http://svnweb.freebsd.org/changeset/doc/42283
Log:
- Add Japanese customization
Modified:
projects/db5/ja_JP.eucJP/share/xsl/freebsd-fo.xsl
Modified: projects/db5/ja_JP.eucJP/share/xsl/freebsd-fo.xsl
==============================================================================
--- projects/db5/ja_JP.eucJP/share/xsl/freebsd-fo.xsl Sun Jul 14 20:59:45 2013 (r42282)
+++ projects/db5/ja_JP.eucJP/share/xsl/freebsd-fo.xsl Mon Jul 15 08:29:04 2013 (r42283)
@@ -12,4 +12,33 @@
<!-- Language-specific general customizations -->
<xsl:import href="freebsd-common.xsl"/>
+
+ <!--
+ JAPANESE-SPECIFIC PARAMETERS
+ -->
+
+ <!-- Base fonts -->
+ <xsl:param name="body.font.family">IPAPMincho</xsl:param>
+ <xsl:param name="sans.font.family">IPAPGothic</xsl:param>
+ <xsl:param name="title.font.family">IPAPGothic</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 Japanese 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