annotate stylesheets/zh/fo.xsl @ 886:8a2b0994ccd9
Make pdf looks more beautiful
author |
Dongsheng Song <dongsheng.song@gmail.com> |
date |
Thu Oct 22 15:08:18 2009 +0800 (2009-10-22) |
parents |
bae6d1503482 |
children |
|
rev |
line source |
dongsheng@624
|
1 <?xml version="1.0"?>
|
dongsheng@624
|
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
dongsheng@624
|
3 xmlns:fo="http://www.w3.org/1999/XSL/Format"
|
dongsheng@624
|
4 version='1.0'>
|
dongsheng@624
|
5
|
dongsheng@624
|
6 <xsl:import href="../fo.xsl"/>
|
dongsheng@624
|
7
|
dongsheng@624
|
8 <xsl:param name="l10n.gentext.language" select="'zh'"/>
|
dongsheng@624
|
9
|
dongsheng@624
|
10 <!-- Chinese font related settings -->
|
dongsheng@886
|
11 <xsl:param name="title.font.family">Calibri,sans-serif,SimHei</xsl:param>
|
dongsheng@886
|
12 <xsl:param name="body.font.family">Cambria,Cambria Math,serif,SimSun</xsl:param>
|
dongsheng@886
|
13 <xsl:param name="sans.font.family">Calibri,sans-serif,SimHei</xsl:param>
|
dongsheng@886
|
14 <xsl:param name="dingbat.font.family">Cambria,Cambria Math,serif,SimSun</xsl:param>
|
dongsheng@886
|
15 <xsl:param name="monospace.font.family">Courier New,monospace,FangSong</xsl:param>
|
dongsheng@886
|
16
|
dongsheng@886
|
17 <!-- Chinese para related settings -->
|
dongsheng@624
|
18 <xsl:param name="body.font.master">12</xsl:param>
|
dongsheng@624
|
19
|
dongsheng@624
|
20 <xsl:attribute-set name="standard.para.spacing" use-attribute-sets="normal.para.spacing">
|
dongsheng@624
|
21 <xsl:attribute name="text-indent">24pt</xsl:attribute>
|
dongsheng@624
|
22 </xsl:attribute-set>
|
dongsheng@624
|
23
|
dongsheng@624
|
24 <xsl:template match="abstract/para|appendix/para|chapter/para|colophon/para|legalnotice/para|preface/para|section/para|sect1/para|sect2/para">
|
dongsheng@624
|
25 <fo:block xsl:use-attribute-sets="standard.para.spacing">
|
dongsheng@624
|
26 <xsl:call-template name="anchor"/>
|
dongsheng@624
|
27 <xsl:apply-templates/>
|
dongsheng@624
|
28 </fo:block>
|
dongsheng@624
|
29 </xsl:template>
|
dongsheng@624
|
30
|
dongsheng@624
|
31 <xsl:template match="section/para/*">
|
dongsheng@624
|
32 <fo:wrapper text-indent="0pt">
|
dongsheng@624
|
33 <xsl:apply-imports/>
|
dongsheng@624
|
34 </fo:wrapper>
|
dongsheng@624
|
35 </xsl:template>
|
dongsheng@624
|
36
|
dongsheng@624
|
37 </xsl:stylesheet>
|