aboutsummaryrefslogtreecommitdiff
path: root/zh_CN.GB2312/share/xsl/freebsd-fo.xsl
blob: 5071f3f41b01d78a3dddf9adca31b0b697a5579c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?xml version='1.0'?>

<!-- $FreeBSD$ -->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'
                xmlns="http://www.w3.org/TR/xhtml1/transitional"
                exclude-result-prefixes="#default">

  <!-- Pull in the language-independent stylesheet -->
  <xsl:import href="http://www.FreeBSD.org/XML/doc/share/xsl/freebsd-fo.xsl"/>

  <!-- Language-specific general customizations -->
  <xsl:import href="freebsd-common.xsl"/>

  <!-- Pull in the CJK-specific stylesheet -->
  <xsl:import href="http://www.FreeBSD.org/XML/doc/share/xsl/freebsd-fo-cjk.xsl"/>

  <!--
	CHINESE-SPECIFIC PARAMETERS
  -->

  <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="title-numbered">
	<l:template name="appendix" text="附录 %n. %t"/>
	<l:template name="article/appendix" text="%n. %t"/>
	<l:template name="bridgehead" text="%n. %t"/>
	<l:template name="chapter" text="第 %n 章 %t"/>
	<l:template name="part" text="部分 %n. %t"/>
	<l:template name="sect1" text="%n. %t"/>
	<l:template name="sect2" text="%n. %t"/>
	<l:template name="sect3" text="%n. %t"/>
	<l:template name="sect4" text="%n. %t"/>
	<l:template name="sect5" text="%n. %t"/>
	<l:template name="section" text="%n. %t"/>
	<l:template name="simplesect" text="%t"/>
	<l:template name="topic" text="%t" lang="en"/>
      </l:context>
      <l:context name="title">
	<l:template name="appendix" text="附录 %n. %t"/>
	<l:template name="chapter" text="第 %n 章 %t"/>
	<l:template name="equation" text="公式 %n. %t"/>
	<l:template name="example" text="例 %n. %t"/>
	<l:template name="figure" text="图 %n. %t"/>
	<l:template name="part" text="第 %n 部分 %t"/>
	<l:template name="procedure.formal" text="过程 %n. %t"/>
	<l:template name="productionset.formal" text="产品 %n"/>
	<l:template name="table" text="表 %n. %t"/>
       </l:context>
      <l:context name="xref">
	<l:template name="answer" text="答: %n"/>
	<l:template name="qandaentry" text="问: %n"/>
	<l:template name="question" text="问: %n"/>
	<l:template name="olink.document.citation" text=" in %o"/>
	<l:template name="olink.page.citation" text=" (page %p)"/>
	<l:template name="page.citation" text=" [%p]"/>
	<l:template name="page" text="(第 %p 页)"/>
	<l:template name="docname" text=" 在 %o"/>
	<l:template name="docnamelong" text=" 在文档标题 %o"/>
	<l:template name="pageabbrev" text="(第 %p 页)"/>
	<l:template name="Page" text="第 %p 页"/>
      </l:context>
      <l:context name="xref-number">
	<l:template name="answer" text="答: %n"/>
	<l:template name="appendix" text="附录 %n"/>
	<l:template name="bridgehead" text="第 %n 节"/>
	<l:template name="chapter" text="第 %n 章"/>
	<l:template name="equation" text="公式 %n"/>
	<l:template name="example" text="例 %n"/>
	<l:template name="figure" text="图 %n"/>
	<l:template name="part" text="第 %n 部分"/>
	<l:template name="procedure" text="过程 %n"/>
	<l:template name="productionset" text="产品 %n"/>
	<l:template name="qandadiv" text="答问集 %n"/>
	<l:template name="qandaentry" text="问: %n"/>
	<l:template name="question" text="问: %n"/>
	<l:template name="sect1" text="第 %n 节"/>
	<l:template name="sect2" text="第 %n 节"/>
	<l:template name="sect3" text="第 %n 节"/>
	<l:template name="sect4" text="第 %n 节"/>
	<l:template name="sect5" text="第 %n 节"/>
	<l:template name="section" text="第 %n 节"/>
	<l:template name="table" text="表 %n"/>
      </l:context>
      <l:context name="xref-number-and-title">
	<l:template name="appendix" text="附录 %n, %t"/>
	<l:template name="bridgehead" text="第 %n 节 “%t”"/>
	<l:template name="chapter" text="第 %n 章 %t"/>
	<l:template name="equation" text="公式 %n “%t”"/>
	<l:template name="example" text="例 %n “%t”"/>
	<l:template name="figure" text="图 %n “%t”"/>
	<l:template name="part" text="第 %n 部分 “%t”"/>
	<l:template name="procedure" text="过程 %n, “%t”"/>
	<l:template name="productionset" text="产品 %n, “%t”"/>
	<l:template name="qandadiv" text="答问集 %n, “%t”"/>
	<l:template name="sect1" text="第 %n 节 “%t”"/>
	<l:template name="sect2" text="第 %n 节 “%t”"/>
	<l:template name="sect3" text="第 %n 节 “%t”"/>
	<l:template name="sect4" text="第 %n 节 “%t”"/>
	<l:template name="sect5" text="第 %n 节 “%t”"/>
	<l:template name="section" text="第 %n 节 “%t”"/>
	<l:template name="table" text="表 %n “%t”"/>
      </l:context>
    </l:l10n>
  </l:i18n>

  <!-- Base fonts -->
  <xsl:param name="body.font.family">AR PL SungtiL GB, Gentium Plus</xsl:param>
  <xsl:param name="sans.font.family">AR PL KaitiM GB, Droid Sans</xsl:param>
  <xsl:param name="title.font.family">AR PL KaitiM GB, Droid Sans</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 Chinese 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>