FooBarWidget-mizuho 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +1 -1
- data/Rakefile +14 -2
- data/asciidoc/BUGS +11 -6
- data/asciidoc/BUGS.txt +7 -3
- data/asciidoc/CHANGELOG +313 -151
- data/asciidoc/CHANGELOG.txt +177 -12
- data/asciidoc/INSTALL +30 -36
- data/asciidoc/INSTALL.txt +20 -20
- data/asciidoc/Makefile.in +145 -0
- data/asciidoc/README +11 -11
- data/asciidoc/README.txt +9 -9
- data/asciidoc/a2x +40 -7
- data/asciidoc/asciidoc.conf +180 -126
- data/asciidoc/asciidoc.py +1667 -977
- data/asciidoc/common.aap +2 -2
- data/asciidoc/configure +2840 -0
- data/asciidoc/configure.ac +11 -0
- data/asciidoc/dblatex/asciidoc-dblatex.sty +2 -0
- data/asciidoc/dblatex/asciidoc-dblatex.xsl +15 -0
- data/asciidoc/dblatex/dblatex-readme.txt +19 -2
- data/asciidoc/doc/a2x.1 +77 -67
- data/asciidoc/doc/a2x.1.txt +11 -2
- data/asciidoc/doc/article.css-embedded.html +85 -63
- data/asciidoc/doc/article.html +644 -62
- data/asciidoc/doc/article.pdf +0 -0
- data/asciidoc/doc/article.txt +15 -17
- data/asciidoc/doc/asciidoc.1 +34 -40
- data/asciidoc/doc/asciidoc.1.css-embedded.html +67 -32
- data/asciidoc/doc/asciidoc.1.css.html +28 -28
- data/asciidoc/doc/asciidoc.1.html +33 -33
- data/asciidoc/doc/asciidoc.css-embedded.html +2234 -2348
- data/asciidoc/doc/asciidoc.css.html +2203 -2352
- data/asciidoc/doc/asciidoc.dict +52 -1
- data/asciidoc/doc/asciidoc.html +980 -1160
- data/asciidoc/doc/asciidoc.txt +941 -738
- data/asciidoc/doc/asciimathml.txt +63 -0
- data/asciidoc/doc/book-multi.html +26 -43
- data/asciidoc/doc/book-multi.txt +19 -23
- data/asciidoc/doc/book.css-embedded.html +92 -71
- data/asciidoc/doc/book.html +24 -41
- data/asciidoc/doc/book.txt +19 -21
- data/asciidoc/doc/docbook-xsl.css +1 -0
- data/asciidoc/doc/faq.txt +288 -60
- data/asciidoc/doc/images +1 -0
- data/asciidoc/doc/latex-backend.html +16 -123
- data/asciidoc/doc/latex-backend.txt +17 -19
- data/asciidoc/doc/latexmath.txt +233 -24
- data/asciidoc/doc/latexmathml.txt +41 -0
- data/asciidoc/doc/main.aap +9 -5
- data/asciidoc/doc/music-filter.pdf +0 -0
- data/asciidoc/doc/music-filter.txt +2 -2
- data/asciidoc/doc/source-highlight-filter.html +476 -105
- data/asciidoc/doc/source-highlight-filter.pdf +0 -0
- data/asciidoc/doc/source-highlight-filter.txt +39 -10
- data/asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt +1 -29
- data/asciidoc/docbook-xsl/fo.xsl +35 -3
- data/asciidoc/docbook-xsl/manpage.xsl +3 -0
- data/asciidoc/docbook-xsl/text.xsl +50 -0
- data/asciidoc/docbook.conf +182 -73
- data/asciidoc/examples/website/ASCIIMathML.js +1 -0
- data/asciidoc/examples/website/CHANGELOG.html +618 -182
- data/asciidoc/examples/website/CHANGELOG.txt +1 -0
- data/asciidoc/examples/website/INSTALL.html +34 -36
- data/asciidoc/examples/website/INSTALL.txt +1 -0
- data/asciidoc/examples/website/LaTeXMathML.js +1 -0
- data/asciidoc/examples/website/README-website.html +26 -37
- data/asciidoc/examples/website/README-website.txt +6 -6
- data/asciidoc/examples/website/README.html +15 -15
- data/asciidoc/examples/website/README.txt +1 -0
- data/asciidoc/examples/website/a2x.1.html +74 -50
- data/asciidoc/examples/website/a2x.1.txt +1 -0
- data/asciidoc/examples/website/asciidoc-docbook-xsl.html +13 -48
- data/asciidoc/examples/website/asciidoc-docbook-xsl.txt +1 -0
- data/asciidoc/examples/website/asciimathml.txt +1 -0
- data/asciidoc/examples/website/customers.csv +1 -0
- data/asciidoc/examples/website/downloads.html +69 -31
- data/asciidoc/examples/website/downloads.txt +28 -5
- data/asciidoc/examples/website/faq.html +370 -124
- data/asciidoc/examples/website/faq.txt +1 -0
- data/asciidoc/examples/website/images +1 -0
- data/asciidoc/examples/website/index.html +64 -64
- data/asciidoc/examples/website/index.txt +22 -15
- data/asciidoc/examples/website/latex-backend.html +152 -257
- data/asciidoc/examples/website/latex-backend.txt +1 -0
- data/asciidoc/examples/website/latexmathml.txt +1 -0
- data/asciidoc/examples/website/manpage.html +27 -27
- data/asciidoc/examples/website/manpage.txt +1 -0
- data/asciidoc/examples/website/music-filter.html +18 -18
- data/asciidoc/examples/website/music-filter.txt +1 -0
- data/asciidoc/examples/website/music1.abc +1 -1
- data/asciidoc/examples/website/music1.png +0 -0
- data/asciidoc/examples/website/music2.ly +1 -1
- data/asciidoc/examples/website/music2.png +0 -0
- data/asciidoc/examples/website/newlists.txt +40 -0
- data/asciidoc/examples/website/newtables.txt +397 -0
- data/asciidoc/examples/website/source-highlight-filter.html +67 -32
- data/asciidoc/examples/website/source-highlight-filter.txt +1 -0
- data/asciidoc/examples/website/support.html +4 -4
- data/asciidoc/examples/website/toc.js +1 -0
- data/asciidoc/examples/website/userguide.html +2190 -2339
- data/asciidoc/examples/website/userguide.txt +1 -0
- data/asciidoc/examples/website/version83.txt +37 -0
- data/asciidoc/examples/website/version9.html +13 -13
- data/asciidoc/examples/website/xhtml11-manpage.css +1 -0
- data/asciidoc/examples/website/xhtml11-quirks.css +1 -0
- data/asciidoc/examples/website/xhtml11.css +1 -0
- data/asciidoc/filters/code-filter-readme.txt +3 -3
- data/asciidoc/filters/code-filter-test.txt +6 -6
- data/asciidoc/filters/source-highlight-filter.conf +12 -5
- data/asciidoc/html4.conf +152 -58
- data/asciidoc/install-sh +201 -0
- data/asciidoc/latex.conf +41 -41
- data/asciidoc/stylesheets/docbook-xsl.css +1 -0
- data/asciidoc/stylesheets/xhtml11.css +39 -4
- data/asciidoc/text.conf +4 -4
- data/asciidoc/vim/syntax/asciidoc.vim +58 -32
- data/asciidoc/wordpress.conf +48 -0
- data/asciidoc/xhtml11-quirks.conf +1 -1
- data/asciidoc/xhtml11.conf +198 -70
- data/bin/mizuho +5 -2
- data/lib/mizuho/generator.rb +48 -19
- data/mizuho.gemspec +16 -6
- metadata +58 -15
- data/asciidoc/doc/asciimath.txt +0 -47
- data/asciidoc/docbook-xsl/shaded-literallayout.patch +0 -32
- data/asciidoc/examples/website/asciimath.html +0 -157
- data/asciidoc/examples/website/latexmath.html +0 -119
- data/asciidoc/filters/code-filter-test-c++.txt +0 -7
- data/asciidoc/install.sh +0 -55
- data/asciidoc/linuxdoc.conf +0 -285
- data/asciidoc/math.conf +0 -50
- data/asciidoc/stylesheets/xhtml-deprecated-manpage.css +0 -21
- data/asciidoc/stylesheets/xhtml-deprecated.css +0 -247
- data/asciidoc/t.conf +0 -20
- data/asciidoc/xhtml-deprecated-css.conf +0 -235
- data/asciidoc/xhtml-deprecated.conf +0 -351
Binary file
|
@@ -83,8 +83,8 @@ def sub_word(mo):
|
|
83
83
|
return word
|
84
84
|
---------------------------------------------------------------------
|
85
85
|
|
86
|
-
Numbered source code listing
|
87
|
-
|
86
|
+
Numbered source code listing with callouts
|
87
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
88
88
|
This source-highlight filtered block:
|
89
89
|
|
90
90
|
---------------------------------------------------------------------
|
@@ -108,19 +108,23 @@ This source-highlight filtered block:
|
|
108
108
|
|
109
109
|
end
|
110
110
|
|
111
|
-
if $0 == __FILE__
|
111
|
+
if $0 == __FILE__ \<1>
|
112
112
|
# Array#cycle test
|
113
113
|
# true => 0
|
114
114
|
# false => 1
|
115
115
|
# true => 2
|
116
116
|
# false => 3
|
117
117
|
# true => 4
|
118
|
-
puts 'Array#cycle test'
|
118
|
+
puts 'Array#cycle test' \<2>
|
119
119
|
[true, false].cycle([0, 1, 2, 3, 4]) do |a, b|
|
120
120
|
puts "#{a.inspect} => #{b.inspect}"
|
121
121
|
end
|
122
122
|
end
|
123
123
|
---------------------------------------------------------------------
|
124
|
+
|
125
|
+
\<1> First callout.
|
126
|
+
\<2> Second callout.
|
127
|
+
|
124
128
|
---------------------------------------------------------------------
|
125
129
|
|
126
130
|
Renders this highlighted source code:
|
@@ -145,29 +149,54 @@ class Array
|
|
145
149
|
|
146
150
|
end
|
147
151
|
|
148
|
-
if $0 == __FILE__
|
152
|
+
if $0 == __FILE__ <1>
|
149
153
|
# Array#cycle test
|
150
154
|
# true => 0
|
151
155
|
# false => 1
|
152
156
|
# true => 2
|
153
157
|
# false => 3
|
154
158
|
# true => 4
|
155
|
-
puts 'Array#cycle test'
|
159
|
+
puts 'Array#cycle test' <2>
|
156
160
|
[true, false].cycle([0, 1, 2, 3, 4]) do |a, b|
|
157
161
|
puts "#{a.inspect} => #{b.inspect}"
|
158
162
|
end
|
159
163
|
end
|
160
164
|
---------------------------------------------------------------------
|
161
165
|
|
166
|
+
<1> First callout.
|
167
|
+
<2> Second callout.
|
168
|
+
|
162
169
|
|
163
170
|
Installation
|
164
171
|
------------
|
165
|
-
|
172
|
+
HTML
|
173
|
+
~~~~
|
174
|
+
If you want to syntax highlight AsciiDoc HTML outputs (`html4` and
|
175
|
+
`xhtml11` backends) you need to
|
166
176
|
install http://www.gnu.org/software/src-highlite/[GNU
|
167
|
-
source-highlight] (most distributions have this package).
|
168
|
-
|
169
|
-
|
177
|
+
source-highlight] (most distributions have this package).
|
178
|
+
|
179
|
+
DocBook
|
180
|
+
~~~~~~~
|
181
|
+
AsciiDoc encloses the source code in a DocBook 'programlisting'
|
182
|
+
element and leaves source code highlighting to the DocBook toolchain
|
183
|
+
(dblatex has a particularly nice programlisting highlighter). The
|
184
|
+
DocBook programlisting element is assigned two attributes:
|
185
|
+
|
186
|
+
. The 'language' attribute is set to the AsciiDoc 'language'
|
187
|
+
attribute.
|
188
|
+
. The 'linenumbering' attribute is set to the AsciiDoc 'src_numbered'
|
189
|
+
attribute ('numbered' or 'unnumbered').
|
190
|
+
|
191
|
+
If you use `a2x(1)` to generate PDF you need to include the
|
192
|
+
`--no-xmllint` option to suppress `xmllint(1)` checking -- the
|
193
|
+
programlisting 'language' attribute (required by the dblatex source
|
194
|
+
highlighter) is not part of the DocBook 4 specification (but it is in
|
195
|
+
the newer DocBook 5 specification).
|
196
|
+
|
170
197
|
|
198
|
+
Testing
|
199
|
+
~~~~~~~
|
171
200
|
Test the filter by converting the test file to HTML with AsciiDoc:
|
172
201
|
|
173
202
|
$ asciidoc -v ./filters/source-highlight-filter-test.txt
|
@@ -5,7 +5,7 @@ PDF generation from AsciiDoc generated DocBook using FOP plus DocBook XSL
|
|
5
5
|
Stylesheets.
|
6
6
|
|
7
7
|
- FOP 0.95beta.
|
8
|
-
- DocBook XSL Stylesheets version 1.
|
8
|
+
- DocBook XSL Stylesheets version 1.74.0.
|
9
9
|
|
10
10
|
Output file customisation is achieved by tweaking the DocBook XSL
|
11
11
|
stylesheets. I've tried to keep customization to a minimum and
|
@@ -41,31 +41,3 @@ wait for the Debian `docbook-xsl` package:
|
|
41
41
|
$ cd /etc/xml/
|
42
42
|
$ sudo cp -p docbook-xsl.xml docbook-xsl.xml.ORIG
|
43
43
|
$ sudo vi docbook-xsl.xml
|
44
|
-
|
45
|
-
- Apply optional patches (see below).
|
46
|
-
|
47
|
-
|
48
|
-
Patches to DocBook XSL Stylesheets
|
49
|
-
----------------------------------
|
50
|
-
NOTE: You'll find the patch files in the AsciiDoc distribution archive
|
51
|
-
`./docbook-xsl/` directory.
|
52
|
-
|
53
|
-
Shade Literal Block Patch
|
54
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~
|
55
|
-
The processing expectation for AsciiDoc LiteralBlocks and
|
56
|
-
LiteralParagraphs is that they are not shaded. The
|
57
|
-
`shaded-literallayout.patch` was devised to allow AciiDoc Listing
|
58
|
-
blocks to be shaded while leaving Literal paragraphs and Literal
|
59
|
-
blocks unshaded (the default DocBook XSL Stylesheets behavior is to
|
60
|
-
shade all verbatim elements).
|
61
|
-
|
62
|
-
The patch implements a `shade.literallayout` XSL parameter so that
|
63
|
-
shading in literal elements could be disabled while other verbatim
|
64
|
-
elements are left shaded (by setting the XSL `shade.verbatim`
|
65
|
-
parameter).
|
66
|
-
|
67
|
-
The relevant patch file is `shaded-literallayout.patch` and it can be
|
68
|
-
applied from the DocBook XSL Stylesheets directory:
|
69
|
-
|
70
|
-
$ cd /usr/share/xml/docbook/stylesheet/docbook-xsl-1.72.0
|
71
|
-
$ sudo patch -p0 < /tmp/shaded-literallayout.patch
|
data/asciidoc/docbook-xsl/fo.xsl
CHANGED
@@ -10,7 +10,9 @@
|
|
10
10
|
stylesheets. This means you don't need to edit the <xsl:import> elements on
|
11
11
|
a machine by machine basis.
|
12
12
|
-->
|
13
|
-
<xsl:stylesheet
|
13
|
+
<xsl:stylesheet version="1.0"
|
14
|
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
15
|
+
xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
14
16
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
|
15
17
|
<xsl:import href="common.xsl"/>
|
16
18
|
|
@@ -38,6 +40,23 @@
|
|
38
40
|
<!-- Default fetches image from Internet (long timeouts) -->
|
39
41
|
<xsl:param name="draft.watermark.image" select="''"/>
|
40
42
|
|
43
|
+
<!-- Line break -->
|
44
|
+
<xsl:template match="processing-instruction('asciidoc-br')">
|
45
|
+
<fo:block/>
|
46
|
+
</xsl:template>
|
47
|
+
|
48
|
+
<!-- Horizontal ruler -->
|
49
|
+
<xsl:template match="processing-instruction('asciidoc-hr')">
|
50
|
+
<fo:block space-after="1em">
|
51
|
+
<fo:leader leader-pattern="rule" rule-thickness="0.5pt" rule-style="solid" leader-length.minimum="100%"/>
|
52
|
+
</fo:block>
|
53
|
+
</xsl:template>
|
54
|
+
|
55
|
+
<!-- Hard page break -->
|
56
|
+
<xsl:template match="processing-instruction('asciidoc-pagebreak')">
|
57
|
+
<fo:block break-after='page'/>
|
58
|
+
</xsl:template>
|
59
|
+
|
41
60
|
<!-- Sets title to body text indent -->
|
42
61
|
<xsl:param name="body.start.indent">
|
43
62
|
<xsl:choose>
|
@@ -108,10 +127,23 @@
|
|
108
127
|
|
109
128
|
<xsl:param name="callout.graphics" select="'1'"/>
|
110
129
|
|
111
|
-
|
130
|
+
<!-- Only shade programlisting and screen verbatim elements -->
|
112
131
|
<xsl:param name="shade.verbatim" select="1"/>
|
113
132
|
<xsl:attribute-set name="shade.verbatim.style">
|
114
|
-
<xsl:attribute name="background-color"
|
133
|
+
<xsl:attribute name="background-color">
|
134
|
+
<xsl:choose>
|
135
|
+
<xsl:when test="self::programlisting|self::screen">#E0E0E0</xsl:when>
|
136
|
+
<xsl:otherwise>inherit</xsl:otherwise>
|
137
|
+
</xsl:choose>
|
138
|
+
</xsl:attribute>
|
139
|
+
</xsl:attribute-set>
|
140
|
+
|
141
|
+
<!--
|
142
|
+
Force XSL Stylesheets 1.72 default table breaks to be the same as the current
|
143
|
+
version (1.74) default which (for tables) is keep-together="auto".
|
144
|
+
-->
|
145
|
+
<xsl:attribute-set name="table.properties">
|
146
|
+
<xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
|
115
147
|
</xsl:attribute-set>
|
116
148
|
|
117
149
|
</xsl:stylesheet>
|
@@ -21,6 +21,9 @@
|
|
21
21
|
</xsl:template>
|
22
22
|
|
23
23
|
<!-- Don't automatically generate the REFERENCES section -->
|
24
|
+
<xsl:template name="endnotes.list">
|
25
|
+
</xsl:template>
|
26
|
+
<!-- Next entry for backward compatibility with old docbook-xsl versions -->
|
24
27
|
<xsl:template name="format.links.list">
|
25
28
|
</xsl:template>
|
26
29
|
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!--
|
3
|
+
docbook-xsl/text.xsl
|
4
|
+
Used by AsciiDoc a2x(1) for w3m(1) based text generation.
|
5
|
+
-->
|
6
|
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
7
|
+
version="1.0">
|
8
|
+
<xsl:import
|
9
|
+
href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
|
10
|
+
|
11
|
+
<!-- parameters for optimal text output -->
|
12
|
+
<xsl:param name="callout.graphics" select="0"/>
|
13
|
+
<xsl:param name="callout.unicode" select="0"/>
|
14
|
+
<xsl:param name="section.autolabel" select="1"/>
|
15
|
+
<xsl:param name="section.label.includes.component.label" select="1"/>
|
16
|
+
<xsl:param name="generate.toc">
|
17
|
+
appendix title
|
18
|
+
article/appendix nop
|
19
|
+
article toc,title
|
20
|
+
book toc,title,figure,table,example,equation
|
21
|
+
chapter title
|
22
|
+
part toc,title
|
23
|
+
preface toc,title
|
24
|
+
qandadiv toc
|
25
|
+
qandaset toc
|
26
|
+
reference toc,title
|
27
|
+
section toc
|
28
|
+
set toc,title
|
29
|
+
</xsl:param>
|
30
|
+
|
31
|
+
<xsl:template match="book/bookinfo/title | article/articleinfo/title" mode="titlepage.mode">
|
32
|
+
<hr />
|
33
|
+
<xsl:apply-imports/>
|
34
|
+
<hr />
|
35
|
+
</xsl:template>
|
36
|
+
|
37
|
+
<xsl:template match="book/*/title | article/*/title" mode="titlepage.mode">
|
38
|
+
<br /><hr />
|
39
|
+
<xsl:apply-imports/>
|
40
|
+
<hr />
|
41
|
+
</xsl:template>
|
42
|
+
|
43
|
+
<xsl:template match="book/chapter/*/title | article/section/*/title" mode="titlepage.mode">
|
44
|
+
<br />
|
45
|
+
<xsl:apply-imports/>
|
46
|
+
<hr width="100" align="left" />
|
47
|
+
</xsl:template>
|
48
|
+
|
49
|
+
|
50
|
+
</xsl:stylesheet>
|
data/asciidoc/docbook.conf
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
[miscellaneous]
|
9
9
|
outfilesuffix=.xml
|
10
10
|
# Printable page width in pts.
|
11
|
-
pagewidth=
|
11
|
+
pagewidth=425
|
12
12
|
pageunits=pt
|
13
13
|
|
14
14
|
[attributes]
|
@@ -16,8 +16,8 @@ basebackend=docbook
|
|
16
16
|
basebackend-docbook=
|
17
17
|
|
18
18
|
[replacements]
|
19
|
-
# Line break markup
|
20
|
-
(?m)^(.*)\s\+$=\1
|
19
|
+
# Line break markup. Custom processing instruction in fo.xsl.
|
20
|
+
(?m)^(.*)\s\+$=\1<?asciidoc-br?>
|
21
21
|
ifdef::asciidoc7compatible[]
|
22
22
|
# Superscripts.
|
23
23
|
\^(.+?)\^=<superscript>\1</superscript>
|
@@ -26,7 +26,40 @@ ifdef::asciidoc7compatible[]
|
|
26
26
|
endif::asciidoc7compatible[]
|
27
27
|
|
28
28
|
[ruler-blockmacro]
|
29
|
-
#
|
29
|
+
# Uses a custom processing instruction in fo.xsl.
|
30
|
+
<?asciidoc-hr?>
|
31
|
+
|
32
|
+
[pagebreak-blockmacro]
|
33
|
+
# Uses a custom processing instruction in fo.xsl.
|
34
|
+
<?asciidoc-pagebreak?>
|
35
|
+
|
36
|
+
[blockdef-pass]
|
37
|
+
latexmath-style=template="latexmathblock",subs=[]
|
38
|
+
|
39
|
+
[macros]
|
40
|
+
# math macros.
|
41
|
+
(?su)[\\]?(?P<name>latexmath):(?P<subslist>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[]
|
42
|
+
(?u)^(?P<name>latexmath)::(?P<subslist>\S*?)(\[(?P<passtext>.*?)\])$=#[]
|
43
|
+
|
44
|
+
[latexmath-inlinemacro]
|
45
|
+
<inlineequation>
|
46
|
+
<alt><![CDATA[{passtext}]]></alt>
|
47
|
+
<inlinemediaobject><textobject><phrase></phrase></textobject></inlinemediaobject>
|
48
|
+
</inlineequation>
|
49
|
+
|
50
|
+
[latexmath-blockmacro]
|
51
|
+
<informalequation>
|
52
|
+
<alt><![CDATA[{passtext}]]></alt>
|
53
|
+
<mediaobject><textobject><phrase></phrase></textobject></mediaobject>
|
54
|
+
</informalequation>
|
55
|
+
|
56
|
+
[latexmathblock]
|
57
|
+
<equation{id? id="{id}"}><title>{title}</title>
|
58
|
+
{title%}<informalequation{id? id="{id}"}>
|
59
|
+
<alt><![CDATA[|]]></alt>
|
60
|
+
<mediaobject><textobject><phrase></phrase></textobject></mediaobject>
|
61
|
+
{title#}</equation>
|
62
|
+
{title%}</informalequation>
|
30
63
|
|
31
64
|
[image-inlinemacro]
|
32
65
|
<inlinemediaobject>
|
@@ -37,8 +70,8 @@ endif::asciidoc7compatible[]
|
|
37
70
|
</inlinemediaobject>
|
38
71
|
|
39
72
|
[image-blockmacro]
|
40
|
-
<figure{id? id="{id}"}><title>{title}</title>
|
41
|
-
{title%}<informalfigure{id? id="{id}"}>
|
73
|
+
<figure{id? id="{id}"}{pgwide-option? pgwide="1"}><title>{title}</title>
|
74
|
+
{title%}<informalfigure{id? id="{id}"}>{pgwide-option?<?dbfo pgwide="1"?>}
|
42
75
|
<mediaobject>
|
43
76
|
<imageobject>
|
44
77
|
<imagedata fileref="{imagesdir=}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}{scaledwidth? width="{scaledwidth}" scalefit="1"}{align? align="{align}"}/>
|
@@ -49,7 +82,7 @@ endif::asciidoc7compatible[]
|
|
49
82
|
{title%}</informalfigure>
|
50
83
|
|
51
84
|
[indexterm-inlinemacro]
|
52
|
-
#
|
85
|
+
# Index term.
|
53
86
|
# Generate separate index entries for primary, secondary and tertiary
|
54
87
|
# descriptions.
|
55
88
|
# Primary only.
|
@@ -75,77 +108,95 @@ endif::asciidoc7compatible[]
|
|
75
108
|
{3#}</indexterm>
|
76
109
|
|
77
110
|
[indexterm2-inlinemacro]
|
78
|
-
#
|
111
|
+
# Index term.
|
79
112
|
# Single entry index term that is visible in the primary text flow.
|
80
|
-
<indexterm>
|
81
|
-
<primary>{1}</primary>
|
82
|
-
</indexterm>
|
83
|
-
{1}
|
113
|
+
<indexterm><primary>{1}</primary></indexterm>{1}
|
84
114
|
|
85
115
|
[footnote-inlinemacro]
|
86
|
-
#
|
116
|
+
# Footnote.
|
87
117
|
<footnote><simpara>{0}</simpara></footnote>
|
88
118
|
|
119
|
+
[footnoteref-inlinemacro]
|
120
|
+
# Footnote reference.
|
121
|
+
{2#}<footnote id="{1}"><simpara>{2}</simpara></footnote>
|
122
|
+
{2%}<footnoteref linkend="{1}" />
|
123
|
+
|
89
124
|
[callout-inlinemacro]
|
90
|
-
#
|
125
|
+
# Callout.
|
91
126
|
<co id="{coid}"/>
|
92
127
|
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
128
|
+
# List tags.
|
129
|
+
[listtags-bulleted]
|
130
|
+
list=<itemizedlist{id? id="{id}"}{compact-option? spacing="compact"}>{title?<title>{title}</title>}|</itemizedlist>
|
131
|
+
item=<listitem>|</listitem>
|
132
|
+
text=<simpara>|</simpara>
|
133
|
+
|
134
|
+
[listtags-numbered]
|
135
|
+
list=<orderedlist{id? id="{id}"}{compact-option? spacing="compact"}>{title?<title>{title}</title>}|</orderedlist>
|
136
|
+
item=<listitem>|</listitem>
|
137
|
+
text=<simpara>|</simpara>
|
138
|
+
|
139
|
+
[listtags-numbered2]
|
140
|
+
list=<orderedlist{id? id="{id}"} numeration="loweralpha"{compact-option? spacing="compact"}>|</orderedlist>
|
141
|
+
item=<listitem>|</listitem>
|
142
|
+
text=<simpara>|</simpara>
|
143
|
+
|
144
|
+
[listtags-labeled]
|
145
|
+
list=<variablelist{id? id="{id}"}>{title?<title>{title}</title>}|</variablelist>
|
146
|
+
entry=<varlistentry>|</varlistentry>
|
147
|
+
label=
|
148
|
+
term=<term>|</term>
|
149
|
+
item=<listitem>|</listitem>
|
150
|
+
text=<simpara>|</simpara>
|
151
|
+
|
152
|
+
[listtags-horizontal]
|
107
153
|
# Horizontal labeled list (implemented with two column table).
|
108
154
|
# Hardwired column widths to 30%,70% because the current crop of PDF
|
109
155
|
# generators do not auto calculate column widths.
|
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
|
-
|
135
|
-
|
156
|
+
list=<{title?table}{title!informaltable}{id? id="{id}"}{style? tabstyle="{style}"}{pgwide-option? pgwide="1"} frame="none" colsep="0" rowsep="0">{title?<title>{title}</title>}<tgroup cols="2"><colspec colwidth="{labelwidth=15}*"/><colspec colwidth="{itemwidth=85}*"/><tbody valign="top">|</tbody></tgroup><{title?/table}{title!/informaltable}>
|
157
|
+
entry=<row>|</row>
|
158
|
+
label=<entry>|</entry>
|
159
|
+
term=<simpara>|</simpara>
|
160
|
+
item=<entry>|</entry>
|
161
|
+
text=<simpara>|</simpara>
|
162
|
+
|
163
|
+
[listtags-callout]
|
164
|
+
list=<calloutlist{id? id="{id}"}>{title?<title>{title}</title>}|</calloutlist>
|
165
|
+
item=<callout arearefs="{coids}">|</callout>
|
166
|
+
text=<simpara>|</simpara>
|
167
|
+
|
168
|
+
[listtags-qanda]
|
169
|
+
list=<qandaset{id? id="{id}"}>{title?<title>{title}</title>}|</qandaset>
|
170
|
+
entry=<qandaentry>|</qandaentry>
|
171
|
+
label=<question>|</question>
|
172
|
+
term=<simpara>|</simpara>
|
173
|
+
item=<answer>|</answer>
|
174
|
+
text=<simpara>|</simpara>
|
175
|
+
|
176
|
+
[listtags-bibliography]
|
177
|
+
list=
|
178
|
+
item=<bibliomixed>|</bibliomixed>
|
179
|
+
text=<bibliomisc>|</bibliomisc>
|
180
|
+
|
181
|
+
[listtags-glossary]
|
182
|
+
list=
|
183
|
+
entry=<glossentry>|</glossentry>
|
184
|
+
label=
|
185
|
+
term=<glossterm>|</glossterm>
|
186
|
+
item=<glossdef>|</glossdef>
|
187
|
+
text=<simpara>|</simpara>
|
136
188
|
|
189
|
+
[tags]
|
137
190
|
# Quoted text
|
138
191
|
emphasis=<emphasis>|</emphasis>
|
139
192
|
strong=<emphasis role="strong">|</emphasis>
|
140
193
|
monospaced=<literal>|</literal>
|
141
|
-
|
142
|
-
|
194
|
+
singlequoted={amp}#8216;|{amp}#8217;
|
195
|
+
doublequoted={amp}#8220;|{amp}#8221;
|
196
|
+
unquoted=
|
143
197
|
subscript=<subscript>|</subscript>
|
144
198
|
superscript=<superscript>|</superscript>
|
145
199
|
|
146
|
-
# $$ inline passthrough.
|
147
|
-
$$passthrough=|
|
148
|
-
|
149
200
|
# Inline macros
|
150
201
|
[http-inlinemacro]
|
151
202
|
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
|
@@ -155,6 +206,8 @@ $$passthrough=|
|
|
155
206
|
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
|
156
207
|
[file-inlinemacro]
|
157
208
|
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
|
209
|
+
[irc-inlinemacro]
|
210
|
+
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
|
158
211
|
[mailto-inlinemacro]
|
159
212
|
<ulink url="mailto:{target}">{0={target}}</ulink>
|
160
213
|
[callto-inlinemacro]
|
@@ -190,8 +243,8 @@ $$passthrough=|
|
|
190
243
|
|
191
244
|
# Paragraph substitution.
|
192
245
|
[paragraph]
|
193
|
-
<formalpara{id? id="{id}"}><title>{title}</title><para>
|
194
|
-
{title%}<simpara{id? id="{id}"}>
|
246
|
+
<formalpara{style? role="{style}"}{id? id="{id}"}><title>{title}</title><para>
|
247
|
+
{title%}<simpara{style? role="{style}"}{id? id="{id}"}>
|
195
248
|
|
|
196
249
|
{title%}</simpara>
|
197
250
|
{title#}</para></formalpara>
|
@@ -209,15 +262,17 @@ template::[verseblock]
|
|
209
262
|
|
210
263
|
# Delimited blocks.
|
211
264
|
[literalblock]
|
212
|
-
<example><title>{title}</title>
|
213
|
-
<literallayout
|
265
|
+
<example{id? id="{id}"}><title>{title}</title>
|
266
|
+
{title#}<literallayout class="monospaced">
|
267
|
+
{title%}<literallayout{id? id="{id}"} class="monospaced">
|
214
268
|
|
|
215
269
|
</literallayout>
|
216
270
|
{title#}</example>
|
217
271
|
|
218
272
|
[listingblock]
|
219
|
-
<example><title>{title}</title>
|
220
|
-
<screen>
|
273
|
+
<example{id? id="{id}"}><title>{title}</title>
|
274
|
+
{title#}<screen>
|
275
|
+
{title%}<screen{id? id="{id}"}>
|
221
276
|
|
|
222
277
|
</screen>
|
223
278
|
{title#}</example>
|
@@ -228,9 +283,6 @@ template::[verseblock]
|
|
228
283
|
|
|
229
284
|
</sidebar>
|
230
285
|
|
231
|
-
[passthroughblock]
|
232
|
-
|
|
233
|
-
|
234
286
|
[quoteblock]
|
235
287
|
<blockquote{id? id="{id}"}>
|
236
288
|
<title>{title}</title>
|
@@ -272,13 +324,67 @@ template::[verseblock]
|
|
272
324
|
</{name}>
|
273
325
|
|
274
326
|
# Tables.
|
275
|
-
[
|
276
|
-
|
277
|
-
colspec=<colspec colwidth="{colwidth}{pageunits}" align="{colalign}"/>
|
327
|
+
[tabletags-default]
|
328
|
+
colspec=<colspec colwidth="{width!{colpcwidth}*}{width?{colabswidth}{pageunits}}" align="{colalign}"/>
|
278
329
|
bodyrow=<row>|</row>
|
330
|
+
headdata=<entry>|</entry>
|
279
331
|
bodydata=<entry>|</entry>
|
332
|
+
paragraph=<simpara>|</simpara>
|
333
|
+
|
334
|
+
[tabletags-emphasis]
|
335
|
+
paragraph=<simpara><emphasis>|</emphasis></simpara>
|
336
|
+
|
337
|
+
[tabletags-strong]
|
338
|
+
paragraph=<simpara><emphasis role="strong">|</emphasis></simpara>
|
339
|
+
|
340
|
+
[tabletags-monospaced]
|
341
|
+
paragraph=<simpara><literal>|</literal></simpara>
|
342
|
+
|
343
|
+
[tabletags-verse]
|
344
|
+
bodydata=<entry><literallayout>|</literallayout></entry>
|
345
|
+
paragraph=
|
346
|
+
|
347
|
+
[tabletags-literal]
|
348
|
+
bodydata=<entry><literallayout class="monospaced">|</literallayout></entry>
|
349
|
+
paragraph=
|
350
|
+
|
351
|
+
[tabletags-asciidoc]
|
352
|
+
paragraph=
|
280
353
|
|
281
354
|
[table]
|
355
|
+
<{title?table}{title!informaltable}{id? id="{id}"}{pgwide-option? pgwide="1"}
|
356
|
+
frame="{frame=all}"
|
357
|
+
{grid%rowsep="1" colsep="1"}
|
358
|
+
rowsep="{grid@none|cols:0:1}" colsep="{grid@none|rows:0:1}"
|
359
|
+
>
|
360
|
+
<title>{title}</title>
|
361
|
+
<?dbfo keep-together="{breakable-option#auto}"?>
|
362
|
+
<?dbfo keep-together="{unbreakable-option#always}"?>
|
363
|
+
<tgroup cols="{colcount}">
|
364
|
+
{colspecs}
|
365
|
+
{headrows#}<thead valign="{valign=top}">
|
366
|
+
{headrows}
|
367
|
+
{headrows#}</thead>
|
368
|
+
{footrows#}<tfoot valign="{valign=top}">
|
369
|
+
{footrows}
|
370
|
+
{footrows#}</tfoot>
|
371
|
+
<tbody valign="{valign=top}">
|
372
|
+
{bodyrows}
|
373
|
+
</tbody>
|
374
|
+
</tgroup>
|
375
|
+
</{title?table}{title!informaltable}>
|
376
|
+
|
377
|
+
#--------------------------------------------------------------------
|
378
|
+
# Deprecated old table definitions.
|
379
|
+
#
|
380
|
+
|
381
|
+
[old_tabledef-default]
|
382
|
+
template=old_table
|
383
|
+
colspec=<colspec colwidth="{colwidth}{pageunits}" align="{colalign}"/>
|
384
|
+
bodyrow=<row>|</row>
|
385
|
+
bodydata=<entry>|</entry>
|
386
|
+
|
387
|
+
[old_table]
|
282
388
|
<{title?table}{title!informaltable}{id? id="{id}"} pgwide="0"
|
283
389
|
frame="{frame=topbot}"
|
284
390
|
{grid%rowsep="0" colsep="0"}
|
@@ -299,6 +405,9 @@ rowsep="{grid@none|cols:0:1}" colsep="{grid@none|rows:0:1}"
|
|
299
405
|
</tgroup>
|
300
406
|
</{title?table}{title!informaltable}>
|
301
407
|
|
408
|
+
# End of deprecated old table definitions.
|
409
|
+
#--------------------------------------------------------------------
|
410
|
+
|
302
411
|
[specialsections]
|
303
412
|
ifdef::doctype-article[]
|
304
413
|
^Abstract$=sect-abstract
|
@@ -504,7 +613,7 @@ template::[header-declarations]
|
|
504
613
|
</book>
|
505
614
|
|
506
615
|
[preamble]
|
507
|
-
# Preamble is not allowed in DocBook book so wrap it in a preface.
|
616
|
+
# Preamble is not allowed in DocBook book so wrap it in a preface.
|
508
617
|
<preface{id? id="{id}"}>
|
509
618
|
<title>Preface</title>
|
510
619
|
|
|
@@ -567,7 +676,7 @@ outfilesuffix=.sgml
|
|
567
676
|
<!DOCTYPE {doctype-article?article}{doctype-book?book}{doctype-manpage?refentry} PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
|
568
677
|
|
569
678
|
[tabledef-default]
|
570
|
-
colspec=<colspec colwidth="{
|
679
|
+
colspec=<colspec colwidth="{colabswidth}{pageunits}" align="{colalign}">
|
571
680
|
|
572
681
|
[image-inlinemacro]
|
573
682
|
<inlinemediaobject>
|