[svnbook] r6001 committed - branches/1.8/zh/stylesheets/ custom-fo-stylesheet.xsl
wuzhouhui at users.sourceforge.net
wuzhouhui at users.sourceforge.net
Sun Oct 6 22:21:09 CDT 2019
Revision: 6001
http://sourceforge.net/p/svnbook/source/6001
Author: wuzhouhui
Date: 2019-10-07 03:21:09 +0000 (Mon, 07 Oct 2019)
Log Message:
-----------
1.8/zh: make some tunings for pdf:
1. use normal font for title of figure, table, example, etc.
2. enlarge line height, because Chinese character is bigger than ASCII
3. re-translate some generated text, for consistent with other contents
Modified Paths:
--------------
branches/1.8/zh/stylesheets/custom-fo-stylesheet.xsl
Modified: branches/1.8/zh/stylesheets/custom-fo-stylesheet.xsl
===================================================================
--- branches/1.8/zh/stylesheets/custom-fo-stylesheet.xsl 2019-10-05 11:56:32 UTC (rev 6000)
+++ branches/1.8/zh/stylesheets/custom-fo-stylesheet.xsl 2019-10-07 03:21:09 UTC (rev 6001)
@@ -21,4 +21,28 @@
<xsl:call-template name="inline.italicseq"/>
</xsl:template>
+ <xsl:attribute-set name="formal.title.properties">
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
+ </xsl:attribute-set>
+
+ <xsl:attribute-set name="root.properties">
+ <xsl:attribute name="line-height">1.5</xsl:attribute>
+ </xsl:attribute-set>
+
+ <xsl:param name="local.l10n.xml" select="document('')"/>
+ <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
+ <l:l10n language="zh_cn">
+ <l:context name="authorgroup">
+ <l:template name="sep" text=", "/>
+ <l:template name="sep2" text=" 和 "/>
+ <l:template name="seplast" text=" 和 "/>
+ </l:context>
+
+ <l:context name="index">
+ <l:template name="term-separator" text=", "/>
+ <l:template name="number-separator" text=", "/>
+ <l:template name="range-separator" text="-"/>
+ </l:context>
+ </l:l10n>
+ </l:i18n>
</xsl:stylesheet>
More information about the svnbook-dev
mailing list