hgbook
diff stylesheets/zh/fo.xsl @ 791:bf84d6b2281c
Minor changes and translation of code snippets for Ch.7.
author | Giulio@puck |
---|---|
date | Tue Aug 11 23:01:30 2009 +0200 (2009-08-11) |
parents | 3c5e1c03cc3e |
children | 8a2b0994ccd9 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/stylesheets/zh/fo.xsl Tue Aug 11 23:01:30 2009 +0200 1.3 @@ -0,0 +1,30 @@ 1.4 +<?xml version="1.0"?> 1.5 +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 1.6 + xmlns:fo="http://www.w3.org/1999/XSL/Format" 1.7 + version='1.0'> 1.8 + 1.9 + <xsl:import href="../fo.xsl"/> 1.10 + 1.11 + <xsl:param name="l10n.gentext.language" select="'zh'"/> 1.12 + 1.13 + <!-- Chinese font related settings --> 1.14 + <xsl:param name="body.font.master">12</xsl:param> 1.15 + 1.16 + <xsl:attribute-set name="standard.para.spacing" use-attribute-sets="normal.para.spacing"> 1.17 + <xsl:attribute name="text-indent">24pt</xsl:attribute> 1.18 + </xsl:attribute-set> 1.19 + 1.20 + <xsl:template match="abstract/para|appendix/para|chapter/para|colophon/para|legalnotice/para|preface/para|section/para|sect1/para|sect2/para"> 1.21 + <fo:block xsl:use-attribute-sets="standard.para.spacing"> 1.22 + <xsl:call-template name="anchor"/> 1.23 + <xsl:apply-templates/> 1.24 + </fo:block> 1.25 + </xsl:template> 1.26 + 1.27 + <xsl:template match="section/para/*"> 1.28 + <fo:wrapper text-indent="0pt"> 1.29 + <xsl:apply-imports/> 1.30 + </fo:wrapper> 1.31 + </xsl:template> 1.32 + 1.33 +</xsl:stylesheet>