hgbook

view stylesheets/zh/fo.xsl @ 1025:3013064edcf7

Adding french in translation list
author Romain PELISSE <belaran@gmail.com>
date Wed Apr 21 17:09:27 2010 +0200 (2010-04-21)
parents bae6d1503482
children
line source
1 <?xml version="1.0"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:fo="http://www.w3.org/1999/XSL/Format"
4 version='1.0'>
6 <xsl:import href="../fo.xsl"/>
8 <xsl:param name="l10n.gentext.language" select="'zh'"/>
10 <!-- Chinese font related settings -->
11 <xsl:param name="title.font.family">Calibri,sans-serif,SimHei</xsl:param>
12 <xsl:param name="body.font.family">Cambria,Cambria Math,serif,SimSun</xsl:param>
13 <xsl:param name="sans.font.family">Calibri,sans-serif,SimHei</xsl:param>
14 <xsl:param name="dingbat.font.family">Cambria,Cambria Math,serif,SimSun</xsl:param>
15 <xsl:param name="monospace.font.family">Courier New,monospace,FangSong</xsl:param>
17 <!-- Chinese para related settings -->
18 <xsl:param name="body.font.master">12</xsl:param>
20 <xsl:attribute-set name="standard.para.spacing" use-attribute-sets="normal.para.spacing">
21 <xsl:attribute name="text-indent">24pt</xsl:attribute>
22 </xsl:attribute-set>
24 <xsl:template match="abstract/para|appendix/para|chapter/para|colophon/para|legalnotice/para|preface/para|section/para|sect1/para|sect2/para">
25 <fo:block xsl:use-attribute-sets="standard.para.spacing">
26 <xsl:call-template name="anchor"/>
27 <xsl:apply-templates/>
28 </fo:block>
29 </xsl:template>
31 <xsl:template match="section/para/*">
32 <fo:wrapper text-indent="0pt">
33 <xsl:apply-imports/>
34 </fo:wrapper>
35 </xsl:template>
37 </xsl:stylesheet>