http://mulliner.org/bluetooth/xkbdbthid-0.1_src.tar.gz
[xkbdbthid.git] / xkbd-0.8.15_bthid / doc / docbook.dsl
1 <!-- This file defines the DocBook-utils Style Sheet for DocBook
2      Eric Bischoff <eric@caldera.de>
3 -->
4
5 <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
6   <!ENTITY % html "IGNORE">
7   <![%html; [
8         <!ENTITY % print "IGNORE">
9         <!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA dsssl>
10   ]]>
11   <!ENTITY % print "INCLUDE">
12   <![%print; [
13         <!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA dsssl>
14   ]]>
15 ]>
16
17 <STYLE-SHEET>
18
19   <STYLE-SPECIFICATION ID="UTILS" USE="DOCBOOK">
20     <STYLE-SPECIFICATION-BODY>
21 ;; ===================================================================
22 ;; Generic Parameters
23 ;; (Generic currently means: both print and html)
24
25 (define %chapter-autolabel% #t)
26 (define %section-autolabel% #t)
27 (define (toc-depth nd) 3)
28
29     </STYLE-SPECIFICATION-BODY>
30   </STYLE-SPECIFICATION>
31
32   <STYLE-SPECIFICATION ID="PRINT" USE="UTILS">
33     <STYLE-SPECIFICATION-BODY>
34 ;; ===================================================================
35 ;; Print Parameters
36 ;; Call: jade -d docbook-utils.dsl#print
37
38 ; === Page layout ===
39 ;; (define %paper-type% "A4")           ;; use A4 paper - comment this out if needed
40
41 ; === Media objects ===
42 (define preferred-mediaobject-extensions  ;; this magic allows to use different graphical
43    (list "eps"))                        ;;   formats for printing and putting online
44 (define acceptable-mediaobject-extensions
45    '())
46 (define preferred-mediaobject-notations
47    (list "EPS"))
48 (define acceptable-mediaobject-notations
49    (list "linespecific"))
50
51 ; === Rendering ===
52 (define %head-after-factor% 0.2)        ;; not much whitespace after orderedlist head
53 (define ($paragraph$)                   ;; more whitespace after paragraph than before
54   (make paragraph
55     first-line-start-indent: (if (is-first-para)
56                                  %para-indent-firstpara%
57                                  %para-indent%)
58     space-before: (* %para-sep% 4)
59     space-after: (/ %para-sep% 4)
60     quadding: %default-quadding%
61     hyphenate?: %hyphenation%
62     language: (dsssl-language-code)
63     (process-children)))
64
65     </STYLE-SPECIFICATION-BODY>
66   </STYLE-SPECIFICATION>
67
68   <STYLE-SPECIFICATION ID="HTML" USE="UTILS">
69     <STYLE-SPECIFICATION-BODY>
70 ;; ===================================================================
71 ;; HTML Parameters
72 ;; Call: jade -d docbook-utils.dsl#html
73
74 ; === File names ===
75 (define %root-filename% "index")        ;; name for the root html file
76 (define %html-ext% ".html")             ;; default extension for html output files
77 (define %html-prefix% "")               ;; prefix for all filenames generated (except root)
78 (define %use-id-as-filename% #t)        ;; uses ID value, if present, as filename
79                                         ;;   otherwise a code is used to indicate level
80                                         ;;   of chunk, and general element number
81                                         ;;   (nth element in the document)
82 (define use-output-dir #f)              ;; output in separate directory?
83 (define %output-dir% "HTML")            ;; if output in directory, it's called HTML
84
85 ; === HTML settings ===
86 (define %html-pubid% "-//W3C//DTD HTML 4.01 Transitional//EN") ;; Nearly true :-(
87 (define %html40% #t)
88 (define %stylesheet% "style.css")
89 (define %stylesheet-type% "text/css")
90
91 ; === Media objects ===
92 (define preferred-mediaobject-extensions  ;; this magic allows to use different graphical
93   (list "png" "jpg" "jpeg"))            ;;   formats for printing and putting online
94 (define acceptable-mediaobject-extensions
95   (list "bmp" "gif" "eps" "epsf" "avi" "mpg" "mpeg" "qt"))
96 (define preferred-mediaobject-notations
97   (list "PNG" "JPG" "JPEG"))
98 (define acceptable-mediaobject-notations
99   (list "EPS" "BMP" "GIF" "linespecific"))                                                                                                    
100 ; === Rendering ===
101 (define %admon-graphics% #t)            ;; use symbols for Caution|Important|Note|Tip|Warning
102
103 ; === Books only ===
104 (define %generate-book-titlepage% #t)
105 (define %generate-book-toc% #t)
106 (define ($generate-chapter-toc$) #f)    ;; never generate a chapter TOC in books
107
108 ; === Articles only ===
109 (define %generate-article-titlepage% #t)
110 (define %generate-article-toc% #t)      ;; make TOC
111
112     </STYLE-SPECIFICATION-BODY>
113   </STYLE-SPECIFICATION>
114
115   <EXTERNAL-SPECIFICATION ID="DOCBOOK" DOCUMENT="docbook.dsl">
116
117 </STYLE-SHEET>