annotate DOCS/xml/ldp.dsl @ 34226:8b5513a75ab4

doc: Move all XML entities to main.xml.
author diego
date Sun, 06 Nov 2011 13:11:58 +0000
parents 0ad2da052b2e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
1 <!DOCTYPE style-sheet PUBLIC
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
2 "-//James Clark//DTD DSSSL Style Sheet//EN" [
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
3 <!ENTITY % html "IGNORE">
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
4 <![%html;[
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
5 <!ENTITY % print "IGNORE">
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
6 <!ENTITY docbook.dsl PUBLIC
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
7 "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
8 CDATA dsssl>
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
9 ]]>
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
10 <!ENTITY % print "INCLUDE">
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
11 <![%print;[
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
12 <!ENTITY docbook.dsl PUBLIC
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
13 "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
14 CDATA dsssl>
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
15 ]]>
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
16 ]>
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
17
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
18 <style-sheet>
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
19
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
20 ;; ------------------------------------------------------------------------
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
21 ;; ldp.dsl - LDP Customized DSSSL Stylesheet
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
22 ;; v1.11, 2003-02-03
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
23 ;; Copyright (C) 2000-2003
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
24 ;;
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
25 ;; This program is free software; you can redistribute it and/or modify
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
26 ;; it under the terms of the GNU General Public License as published by
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
27 ;; the Free Software Foundation; either version 2 of the License, or
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
28 ;; (at your option) any later version.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
29 ;;
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
30 ;; This program is distributed in the hope that it will be useful,
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
31 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
32 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
33 ;; GNU General Public License for more details.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
34 ;;
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
35 ;; You should have received a copy of the GNU General Public License
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
36 ;; along with this program; if not, write to the Free Software
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
37 ;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
38 ;; ------------------------------------------------------------------------
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
39
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
40 <style-specification id="print" use="docbook">
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 9674
diff changeset
41 <style-specification-body>
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
42
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
43 ;; customize the print stylesheet
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
44
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
45 (declare-characteristic preserve-sdata?
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
46 ;; this is necessary because right now jadetex does not understand
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
47 ;; symbolic entities, whereas things work well with numeric entities.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
48 "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
49 #f)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
50
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
51 (define %generate-article-toc%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
52 ;; Should a Table of Contents be produced for Articles?
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
53 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
54
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
55 (define (toc-depth nd)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
56 4)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
57
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
58 (define %generate-article-titlepage-on-separate-page%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
59 ;; Should the article title page be on a separate page?
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
60 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
61
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
62 (define %section-autolabel%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
63 ;; Are sections enumerated?
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
64 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
65
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
66 (define %footnote-ulinks%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
67 ;; Generate footnotes for ULinks?
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
68 #f)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
69
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
70 (define %bop-footnotes%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
71 ;; Make "bottom-of-page" footnotes?
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
72 #f)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
73
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
74 (define %body-start-indent%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
75 ;; Default indent of body text
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
76 0pi)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
77
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
78 (define %para-indent-firstpara%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
79 ;; First line start-indent for the first paragraph
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
80 0pt)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
81
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
82 (define %para-indent%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
83 ;; First line start-indent for paragraphs (other than the first)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
84 0pt)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
85
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
86 (define %block-start-indent%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
87 ;; Extra start-indent for block-elements
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
88 0pt)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
89
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
90 (define formal-object-float
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
91 ;; Do formal objects float?
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
92 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
93
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
94 (define %hyphenation%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
95 ;; Allow automatic hyphenation?
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
96 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
97
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
98 (define %admon-graphics%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
99 ;; Use graphics in admonitions?
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
100 #f)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
101
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
102 (define %default-quadding%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
103 ;; Full justification.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
104 'justify)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
105
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
106 (define (book-titlepage-verso-elements)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
107 ;;added publisher, releaseinfo to the default list
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
108 (list (normalize "title")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
109 (normalize "subtitle")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
110 (normalize "corpauthor")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
111 (normalize "authorgroup")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
112 (normalize "author")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
113 (normalize "publisher")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
114 (normalize "releaseinfo")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
115 (normalize "editor")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
116 (normalize "edition")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
117 (normalize "pubdate")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
118 (normalize "copyright")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
119 (normalize "abstract")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
120 (normalize "legalnotice")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
121 (normalize "revhistory")))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
122
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
123 </style-specification-body>
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
124 </style-specification>
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
125
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
126
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
127 <!--
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 9674
diff changeset
128 ;; customize the html stylesheet; parts borrowed from
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
129 ;; Cygnus at http://sourceware.cygnus.com/ (cygnus-both.dsl)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
130 -->
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
131
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
132 <style-specification id="html" use="docbook">
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 9674
diff changeset
133 <style-specification-body>
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
134
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
135 (declare-characteristic preserve-sdata?
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
136 ;; this is necessary because right now jadetex does not understand
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
137 ;; symbolic entities, whereas things work well with numeric entities.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
138 "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
139 #f)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
140
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
141 (declare-flow-object-class element
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
142 ;; for redhat
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
143 "UNREGISTERED::James Clark//Flow Object Class::element")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
144
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
145 (define %generate-legalnotice-link%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
146 ;; put the legal notice in a separate file
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
147 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
148
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
149 (define %admon-graphics-path%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
150 ;; use graphics in admonitions, set their
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
151 "../images/")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
152
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
153 (define %admon-graphics%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
154 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
155
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
156 (define %funcsynopsis-decoration%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
157 ;; make funcsynopsis look pretty
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
158 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
159
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
160 (define %html-ext%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
161 ;; when producing HTML files, use this extension
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
162 ".html")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
163
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
164 (define %generate-book-toc%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
165 ;; Should a Table of Contents be produced for books?
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
166 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
167
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 9674
diff changeset
168 (define %generate-article-toc%
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
169 ;; Should a Table of Contents be produced for articles?
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
170 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
171
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
172 (define %generate-part-toc%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
173 ;; Should a Table of Contents be produced for parts?
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
174 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
175
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
176 (define %generate-book-titlepage%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
177 ;; produce a title page for books
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
178 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
179
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
180 (define %generate-article-titlepage%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
181 ;; produce a title page for articles
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
182 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
183
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
184 (define (chunk-skip-first-element-list)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
185 ;; forces the Table of Contents on separate page
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
186 '())
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
187
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
188 (define (list-element-list)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
189 ;; fixes bug in Table of Contents generation
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
190 '())
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
191
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
192 (define %root-filename%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
193 ;; The filename of the root HTML document (e.g, "index").
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
194 "index")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
195
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
196 (define %shade-verbatim%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
197 ;; verbatim sections will be shaded if t(rue)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
198 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
199
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
200 (define %use-id-as-filename%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
201 ;; Use ID attributes as name for component HTML files?
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
202 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
203
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
204 (define %graphic-extensions%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
205 ;; graphic extensions allowed
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
206 '("gif" "png" "jpg" "jpeg" "tif" "tiff" "eps" "epsf" ))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
207
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 9674
diff changeset
208 (define %graphic-default-extension%
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
209 "gif")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
210
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
211 (define %section-autolabel%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
212 ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
213 #t)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
214
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
215 (define (toc-depth nd)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
216 ;; more depth (2 levels) to toc; instead of flat hierarchy
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
217 2)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
218
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
219 (element emphasis
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
220 ;; make role=strong equate to bold for emphasis tag
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
221 (if (equal? (attribute-string "role") "strong")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
222 (make element gi: "STRONG" (process-children))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
223 (make element gi: "EM" (process-children))))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
224
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
225 (define (book-titlepage-recto-elements)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
226 ;; elements on a book's titlepage
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
227 (list (normalize "title")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
228 (normalize "subtitle")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
229 (normalize "graphic")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
230 (normalize "mediaobject")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
231 (normalize "corpauthor")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
232 (normalize "authorgroup")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
233 (normalize "author")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
234 (normalize "othercredit")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
235 (normalize "edition")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
236 (normalize "releaseinfo")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
237 (normalize "publisher")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
238 (normalize "editor")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
239 (normalize "copyright")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
240 (normalize "pubdate")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
241 (normalize "revhistory")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
242 (normalize "abstract")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
243 (normalize "legalnotice")))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
244
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
245 (define (article-titlepage-recto-elements)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
246 ;; elements on an article's titlepage
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
247 (list (normalize "title")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
248 (normalize "subtitle")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
249 (normalize "authorgroup")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
250 (normalize "author")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
251 (normalize "othercredit")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
252 (normalize "releaseinfo")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
253 (normalize "copyright")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
254 (normalize "pubdate")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
255 (normalize "revhistory")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
256 (normalize "abstract")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
257 (normalize "legalnotice")))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
258
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
259 (define (process-contrib #!optional (sosofo (process-children)))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
260 ;; print out with othercredit information; for translators, etc.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
261 (make sequence
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
262 (make element gi: "SPAN"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
263 attributes: (list (list "CLASS" (gi)))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
264 (process-children))))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
265
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
266 (define (process-othercredit #!optional (sosofo (process-children)))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
267 ;; print out othercredit information; for translators, etc.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
268 (let ((author-name (author-string))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
269 (author-contrib (select-elements (children (current-node))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
270 (normalize "contrib"))))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
271 (make element gi: "P"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
272 attributes: (list (list "CLASS" (gi)))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
273 (make element gi: "B"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
274 (literal author-name)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
275 (literal " - "))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
276 (process-node-list author-contrib))))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
277
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
278 (mode article-titlepage-recto-mode
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
279 (element contrib (process-contrib))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
280 (element othercredit (process-othercredit))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
281 )
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
282
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
283 (mode book-titlepage-recto-mode
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
284 (element contrib (process-contrib))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
285 (element othercredit (process-othercredit))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
286 )
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
287
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
288 (define (article-title nd)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
289 (let* ((artchild (children nd))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
290 (artheader (select-elements artchild (normalize "artheader")))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
291 (artinfo (select-elements artchild (normalize "articleinfo")))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
292 (ahdr (if (node-list-empty? artheader)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
293 artinfo
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
294 artheader))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
295 (ahtitles (select-elements (children ahdr)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
296 (normalize "title")))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
297 (artitles (select-elements artchild (normalize "title")))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
298 (titles (if (node-list-empty? artitles)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
299 ahtitles
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
300 artitles)))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
301 (if (node-list-empty? titles)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
302 ""
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
303 (node-list-first titles))))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
304
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
305 (mode subtitle-mode
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
306 ;; do not print subtitle on subsequent pages
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
307 (element subtitle (empty-sosofo)))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
308
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
309 ;; Redefinition of $verbatim-display$
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
310 ;; Origin: dbverb.dsl
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
311 ;; Different foreground and background colors for verbatim elements
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
312 ;; Author: Philippe Martin (feloy@free.fr) 2001-04-07
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
313
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
314 (define ($verbatim-display$ indent line-numbers?)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
315 (let ((verbatim-element (gi))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
316 (content (make element gi: "PRE"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
317 attributes: (list
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
318 (list "CLASS" (gi)))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
319 (if (or indent line-numbers?)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
320 ($verbatim-line-by-line$ indent line-numbers?)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
321 (process-children)))))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
322 (if %shade-verbatim%
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
323 (make element gi: "TABLE"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
324 attributes: (shade-verbatim-attr-element verbatim-element)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
325 (make element gi: "TR"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
326 (make element gi: "TD"
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 9674
diff changeset
327 (make element gi: "FONT"
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
328 attributes: (list
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
329 (list "COLOR" (car (shade-verbatim-element-colors
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
330 verbatim-element))))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
331 content))))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
332 content)))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
333
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
334 ;;
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
335 ;; Customize this function
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
336 ;; to change the foreground and background colors
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
337 ;; of the different verbatim elements
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
338 ;; Return (list "foreground color" "background color")
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
339 ;;
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
340 (define (shade-verbatim-element-colors element)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
341 (case element
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
342 (("SYNOPSIS") (list "#000000" "#6495ED"))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
343 ;; ...
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
344 ;; Add your verbatim elements here
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
345 ;; ...
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
346 (else (list "#000000" "#E0E0E0"))))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
347
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
348 (define (shade-verbatim-attr-element element)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
349 (list
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 9674
diff changeset
350 (list "BORDER"
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 30633
diff changeset
351 (cond
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 30633
diff changeset
352 ((equal? element (normalize "SCREEN")) "1")
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 30633
diff changeset
353 (else "0")))
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
354 (list "BGCOLOR" (car (cdr (shade-verbatim-element-colors element))))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
355 (list "WIDTH" ($table-width$))))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
356
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
357 ;; End of $verbatim-display$ redefinition
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
358
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
359 </style-specification-body>
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
360 </style-specification>
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
361
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
362 <external-specification id="docbook" document="docbook.dsl">
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
363
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
364 </style-sheet>