FooBarWidget-mizuho 0.9.3 → 0.9.4
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/asciidoc/BUGS +3 -3
- data/asciidoc/CHANGELOG +112 -63
- data/asciidoc/CHANGELOG.txt +50 -0
- data/asciidoc/INSTALL +6 -6
- data/asciidoc/Makefile.in +21 -5
- data/asciidoc/README +3 -3
- data/asciidoc/asciidoc.conf +9 -12
- data/asciidoc/asciidoc.py +204 -151
- data/asciidoc/common.aap +2 -2
- data/asciidoc/doc/a2x.1 +4 -3
- data/asciidoc/doc/a2x.1.txt +1 -1
- data/asciidoc/doc/article.css-embedded.html +13 -12
- data/asciidoc/doc/article.html +46 -644
- data/asciidoc/doc/article.pdf +0 -0
- data/asciidoc/doc/asciidoc.1 +2 -2
- data/asciidoc/doc/asciidoc.1.css-embedded.html +14 -13
- data/asciidoc/doc/asciidoc.1.css.html +3 -3
- data/asciidoc/doc/asciidoc.1.html +3 -3
- data/asciidoc/doc/asciidoc.css-embedded.html +238 -225
- data/asciidoc/doc/asciidoc.css.html +227 -215
- data/asciidoc/doc/asciidoc.dict +10 -1
- data/asciidoc/doc/asciidoc.html +181 -164
- data/asciidoc/doc/asciidoc.txt +167 -148
- data/asciidoc/doc/asciimathml.txt +5 -4
- data/asciidoc/doc/book.css-embedded.html +13 -12
- data/asciidoc/doc/faq.txt +60 -3
- data/asciidoc/doc/music-filter.html +94 -41
- data/asciidoc/doc/music-filter.pdf +0 -0
- data/asciidoc/doc/source-highlight-filter.html +125 -465
- data/asciidoc/doc/source-highlight-filter.pdf +0 -0
- data/asciidoc/docbook.conf +8 -2
- data/asciidoc/examples/website/CHANGELOG.html +129 -4
- data/asciidoc/examples/website/INSTALL.html +6 -6
- data/asciidoc/examples/website/README-website.html +3 -3
- data/asciidoc/examples/website/README.html +3 -3
- data/asciidoc/examples/website/a2x.1.html +4 -4
- data/asciidoc/examples/website/asciidoc-docbook-xsl.html +3 -3
- data/asciidoc/examples/website/asciidoc-graphviz-sample.txt +1 -0
- data/asciidoc/examples/website/downloads.html +7 -7
- data/asciidoc/examples/website/faq.html +95 -40
- data/asciidoc/examples/website/index.html +34 -13
- data/asciidoc/examples/website/index.txt +25 -9
- data/asciidoc/examples/website/latex-backend.html +4 -4
- data/asciidoc/examples/website/manpage.html +3 -3
- data/asciidoc/examples/website/music-filter.html +3 -3
- data/asciidoc/examples/website/sample1.png +0 -0
- data/asciidoc/examples/website/sample3.png +0 -0
- data/asciidoc/examples/website/sample4.png +0 -0
- data/asciidoc/examples/website/source-highlight-filter.html +5 -5
- data/asciidoc/examples/website/support.html +3 -3
- data/asciidoc/examples/website/userguide.html +227 -215
- data/asciidoc/examples/website/version9.html +3 -3
- data/asciidoc/filters/{code-filter-readme.txt → code/code-filter-readme.txt} +0 -0
- data/asciidoc/filters/{code-filter-test.txt → code/code-filter-test.txt} +0 -0
- data/asciidoc/filters/{code-filter.conf → code/code-filter.conf} +1 -1
- data/asciidoc/filters/{code-filter.py → code/code-filter.py} +0 -0
- data/asciidoc/filters/graphviz/asciidoc-graphviz-sample.txt +130 -0
- data/asciidoc/filters/graphviz/graphviz-filter.conf +39 -0
- data/asciidoc/filters/graphviz/graphviz2png.py +154 -0
- data/asciidoc/filters/{music-filter-test.txt → music/music-filter-test.txt} +0 -0
- data/asciidoc/filters/{music-filter.conf → music/music-filter.conf} +0 -0
- data/asciidoc/filters/{music2png.py → music/music2png.py} +0 -0
- data/asciidoc/filters/{source-highlight-filter-test.txt → source/source-highlight-filter-test.txt} +0 -0
- data/asciidoc/filters/{source-highlight-filter.conf → source/source-highlight-filter.conf} +2 -1
- data/asciidoc/html4.conf +5 -2
- data/asciidoc/stylesheets/xhtml11-quirks.css +0 -8
- data/asciidoc/stylesheets/xhtml11.css +11 -2
- data/asciidoc/vim/syntax/asciidoc.vim +1 -1
- data/asciidoc/xhtml11.conf +5 -2
- data/lib/mizuho/parser.rb +5 -1
- data/mizuho.gemspec +5 -16
- data/test/parser_spec.rb +49 -0
- metadata +22 -10
@@ -3,7 +3,7 @@
|
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
-
<meta name="generator" content="AsciiDoc 8.3.
|
6
|
+
<meta name="generator" content="AsciiDoc 8.3.3" />
|
7
7
|
<meta name="description" content="Text based document generation" />
|
8
8
|
<meta name="keywords" content="text to HTML, text to DocBook, text to XML, AsciiDoc" />
|
9
9
|
<link rel="stylesheet" href="./xhtml11.css" type="text/css" />
|
@@ -51,16 +51,29 @@ window.onload = function(){generateToc(1)}
|
|
51
51
|
<div class="sectionbody">
|
52
52
|
<div class="sidebarblock">
|
53
53
|
<div class="sidebar-content">
|
54
|
-
<div class="sidebar-title">
|
55
|
-
<div class="paragraph"><p>
|
56
|
-
<
|
57
|
-
|
58
|
-
|
59
|
-
<a href="
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
54
|
+
<div class="sidebar-title">2 January 2009: AsciiDoc 8.3.3 Released</div>
|
55
|
+
<div class="paragraph"><p>Two significant changes in this release:</p></div>
|
56
|
+
<div class="ulist"><ul>
|
57
|
+
<li>
|
58
|
+
<p>
|
59
|
+
Included Gouichi Iisaka’s <a href="#X4">Graphviz filter</a> in the <em>AsciiDoc</em>
|
60
|
+
distribution.
|
61
|
+
</p>
|
62
|
+
</li>
|
63
|
+
<li>
|
64
|
+
<p>
|
65
|
+
You can now set the numbered list number style (<em>arabic</em>,
|
66
|
+
<em>loweralpha</em>, <em>upperalpha</em>, <em>lowerroman</em>, <em>upperroman</em>) or let
|
67
|
+
<em>AsciiDoc</em> guess the style of the first numbered item.
|
68
|
+
</p>
|
69
|
+
</li>
|
70
|
+
</ul></div>
|
71
|
+
<div class="paragraph"><p>Plus a number of smaller additions along with the usual documentation
|
72
|
+
polishing. Read the <a href="CHANGELOG.html">CHANGELOG</a> for a full list of
|
73
|
+
all additions and changes.</p></div>
|
74
|
+
<div class="paragraph"><p>One final note: if you are upgrading from version 8.2.7 or less please
|
75
|
+
read about possible <a href="CHANGELOG.html#X1">compatibility issues</a>
|
76
|
+
first.</p></div>
|
64
77
|
<div class="paragraph"><p><a href="mailto:srackham@gmail.com"><em>Stuart Rackham</em></a></p></div>
|
65
78
|
</div></div>
|
66
79
|
</div>
|
@@ -183,6 +196,14 @@ notation to standard classical notation</p></div>
|
|
183
196
|
<div class="paragraph"><p>A <a href="source-highlight-filter.html">source code highlight filter</a> is
|
184
197
|
included in the distribution <tt>./filters/</tt> directory.</p></div>
|
185
198
|
</div>
|
199
|
+
<h2 id="X4">Graphviz Filter</h2>
|
200
|
+
<div class="sectionbody">
|
201
|
+
<div class="paragraph"><p>Gouichi Iisaka has written a <a href="http://www.graphviz.org/">Graphviz</a> filter
|
202
|
+
for <em>AsciiDoc</em>. Graphviz generates diagrams from a textual
|
203
|
+
specification. Gouichi Iisaka’s Graphviz filter is included in the
|
204
|
+
<em>AsciiDoc</em> distribution. Here are some
|
205
|
+
<a href="asciidoc-graphviz-sample.html"><em>AsciiDoc</em> Graphviz examples</a>.</p></div>
|
206
|
+
</div>
|
186
207
|
<h2 id="X3">Mathematical Formulae</h2>
|
187
208
|
<div class="sectionbody">
|
188
209
|
<div class="paragraph"><p>You can include mathematical formulae in <em>AsciiDoc</em> XHTML documents using
|
@@ -369,8 +390,8 @@ The <a href="http://www.wesnoth.org/">Battle for Wesnoth</a> project uses
|
|
369
390
|
</div>
|
370
391
|
<div id="footer">
|
371
392
|
<div id="footer-text">
|
372
|
-
Version 8.3.
|
373
|
-
Last updated
|
393
|
+
Version 8.3.3<br />
|
394
|
+
Last updated 2009-01-02 13:10:49 NZDT
|
374
395
|
</div>
|
375
396
|
<div id="footer-badges">
|
376
397
|
<a href="http://validator.w3.org/check?uri=referer">
|
@@ -3,15 +3,21 @@ AsciiDoc Home Page
|
|
3
3
|
|
4
4
|
.{date}: AsciiDoc {revision} Released
|
5
5
|
************************************************************************
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
additions
|
6
|
+
Two significant changes in this release:
|
7
|
+
|
8
|
+
- Included Gouichi Iisaka's <<X4,Graphviz filter>> in the AsciiDoc
|
9
|
+
distribution.
|
10
|
+
- You can now set the numbered list number style ('arabic',
|
11
|
+
'loweralpha', 'upperalpha', 'lowerroman', 'upperroman') or let
|
12
|
+
AsciiDoc guess the style of the first numbered item.
|
13
|
+
|
14
|
+
Plus a number of smaller additions along with the usual documentation
|
15
|
+
polishing. Read the link:CHANGELOG.html[CHANGELOG] for a full list of
|
16
|
+
all additions and changes.
|
17
|
+
|
18
|
+
One final note: if you are upgrading from version 8.2.7 or less please
|
19
|
+
read about possible link:CHANGELOG.html#X1[compatibility issues]
|
20
|
+
first.
|
15
21
|
|
16
22
|
mailto:srackham@gmail.com['Stuart Rackham']
|
17
23
|
************************************************************************
|
@@ -113,6 +119,16 @@ A link:source-highlight-filter.html[source code highlight filter] is
|
|
113
119
|
included in the distribution `./filters/` directory.
|
114
120
|
|
115
121
|
|
122
|
+
[[X4]]
|
123
|
+
Graphviz Filter
|
124
|
+
---------------
|
125
|
+
Gouichi Iisaka has written a http://www.graphviz.org/[Graphviz] filter
|
126
|
+
for AsciiDoc. Graphviz generates diagrams from a textual
|
127
|
+
specification. Gouichi Iisaka's Graphviz filter is included in the
|
128
|
+
AsciiDoc distribution. Here are some
|
129
|
+
link:asciidoc-graphviz-sample.html[AsciiDoc Graphviz examples].
|
130
|
+
|
131
|
+
|
116
132
|
[[X3]]
|
117
133
|
Mathematical Formulae
|
118
134
|
---------------------
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
-
<meta name="generator" content="AsciiDoc 8.3.
|
6
|
+
<meta name="generator" content="AsciiDoc 8.3.3" />
|
7
7
|
<link rel="stylesheet" href="./xhtml11.css" type="text/css" />
|
8
8
|
<link rel="stylesheet" href="./xhtml11-quirks.css" type="text/css" />
|
9
9
|
<link rel="stylesheet" href="./layout1.css" type="text/css" />
|
@@ -46,7 +46,7 @@ June 2006
|
|
46
46
|
<h2 id="_tutorial">Tutorial</h2>
|
47
47
|
<div class="sectionbody">
|
48
48
|
<div class="paragraph"><p>Getting a ready-to-print document from an Asciidoc document using the LaTeX backend involves at least two steps:</p></div>
|
49
|
-
<div class="olist"><ol>
|
49
|
+
<div class="olist arabic"><ol class="arabic">
|
50
50
|
<li>
|
51
51
|
<p>
|
52
52
|
Conversion of the Asciidoc document into a LaTeX document (this is done by Asciidoc using the LaTeX backend)
|
@@ -59,7 +59,7 @@ Conversion of the LaTeX document into a PDF document (this is done by the TeX sy
|
|
59
59
|
</li>
|
60
60
|
</ol></div>
|
61
61
|
<div class="paragraph"><p>Try to create a PDF document from the Asciidoc document <tt>article.txt</tt> which resides in the <tt>doc</tt> directory of Asciidoc:</p></div>
|
62
|
-
<div class="olist2"><ol>
|
62
|
+
<div class="olist2 loweralpha"><ol class="loweralpha">
|
63
63
|
<li>
|
64
64
|
<p>
|
65
65
|
Make a copy of <tt>article.txt</tt> in a directory of your choice, let’s call it <tt>latex-test</tt>.
|
@@ -507,7 +507,7 @@ Option for switching titlepage on and off
|
|
507
507
|
<div id="footer">
|
508
508
|
<div id="footer-text">
|
509
509
|
Version 1.0<br />
|
510
|
-
Last updated
|
510
|
+
Last updated 2009-01-02 11:18:51 NZDT
|
511
511
|
</div>
|
512
512
|
<div id="footer-badges">
|
513
513
|
<a href="http://validator.w3.org/check?uri=referer">
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
-
<meta name="generator" content="AsciiDoc 8.3.
|
6
|
+
<meta name="generator" content="AsciiDoc 8.3.3" />
|
7
7
|
<link rel="stylesheet" href="./xhtml11.css" type="text/css" />
|
8
8
|
<link rel="stylesheet" href="./xhtml11-manpage.css" type="text/css" />
|
9
9
|
<link rel="stylesheet" href="./xhtml11-quirks.css" type="text/css" />
|
@@ -237,8 +237,8 @@ granted under the terms of the GNU General Public License (GPL).</p></div>
|
|
237
237
|
</div>
|
238
238
|
<div id="footer">
|
239
239
|
<div id="footer-text">
|
240
|
-
Version 8.3.
|
241
|
-
Last updated
|
240
|
+
Version 8.3.3<br />
|
241
|
+
Last updated 2009-01-02 11:18:52 NZDT
|
242
242
|
</div>
|
243
243
|
<div id="footer-badges">
|
244
244
|
<a href="http://validator.w3.org/check?uri=referer">
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
-
<meta name="generator" content="AsciiDoc 8.3.
|
6
|
+
<meta name="generator" content="AsciiDoc 8.3.3" />
|
7
7
|
<link rel="stylesheet" href="./xhtml11.css" type="text/css" />
|
8
8
|
<link rel="stylesheet" href="./xhtml11-quirks.css" type="text/css" />
|
9
9
|
<link rel="stylesheet" href="./layout1.css" type="text/css" />
|
@@ -213,8 +213,8 @@ a problem).</td>
|
|
213
213
|
</div>
|
214
214
|
<div id="footer">
|
215
215
|
<div id="footer-text">
|
216
|
-
Version 8.3.
|
217
|
-
Last updated
|
216
|
+
Version 8.3.3<br />
|
217
|
+
Last updated 2009-01-02 11:18:53 NZDT
|
218
218
|
</div>
|
219
219
|
<div id="footer-badges">
|
220
220
|
<a href="http://validator.w3.org/check?uri=referer">
|
Binary file
|
Binary file
|
Binary file
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
-
<meta name="generator" content="AsciiDoc 8.3.
|
6
|
+
<meta name="generator" content="AsciiDoc 8.3.3" />
|
7
7
|
<link rel="stylesheet" href="./xhtml11.css" type="text/css" />
|
8
8
|
<link rel="stylesheet" href="./xhtml11-quirks.css" type="text/css" />
|
9
9
|
<link rel="stylesheet" href="./layout1.css" type="text/css" />
|
@@ -203,7 +203,7 @@ http://www.gnu.org/software/src-highlite -->
|
|
203
203
|
<span style="color: #000000">00028:</span> puts <span style="color: #FF0000">"#{a.inspect} => #{b.inspect}"</span>
|
204
204
|
<span style="color: #000000">00029:</span> <span style="font-weight: bold"><span style="color: #0000FF">end</span></span>
|
205
205
|
<span style="color: #000000">00030:</span> <span style="font-weight: bold"><span style="color: #0000FF">end</span></span></tt></pre></div></div>
|
206
|
-
<div class="colist"><ol>
|
206
|
+
<div class="colist arabic"><ol>
|
207
207
|
<li>
|
208
208
|
<p>
|
209
209
|
First callout.
|
@@ -228,7 +228,7 @@ source-highlight</a> (most distributions have this package).</p></div>
|
|
228
228
|
element and leaves source code highlighting to the DocBook toolchain
|
229
229
|
(dblatex has a particularly nice programlisting highlighter). The
|
230
230
|
DocBook programlisting element is assigned two attributes:</p></div>
|
231
|
-
<div class="olist"><ol>
|
231
|
+
<div class="olist arabic"><ol class="arabic">
|
232
232
|
<li>
|
233
233
|
<p>
|
234
234
|
The <em>language</em> attribute is set to the <em>AsciiDoc</em> <em>language</em>
|
@@ -257,8 +257,8 @@ $ firefox ./filters/source-highlight-filter-test.html &</tt></pre>
|
|
257
257
|
</div>
|
258
258
|
<div id="footer">
|
259
259
|
<div id="footer-text">
|
260
|
-
Version 8.3.
|
261
|
-
Last updated
|
260
|
+
Version 8.3.3<br />
|
261
|
+
Last updated 2009-01-02 11:18:54 NZDT
|
262
262
|
</div>
|
263
263
|
<div id="footer-badges">
|
264
264
|
<a href="http://validator.w3.org/check?uri=referer">
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
-
<meta name="generator" content="AsciiDoc 8.3.
|
6
|
+
<meta name="generator" content="AsciiDoc 8.3.3" />
|
7
7
|
<link rel="stylesheet" href="./xhtml11.css" type="text/css" />
|
8
8
|
<link rel="stylesheet" href="./xhtml11-quirks.css" type="text/css" />
|
9
9
|
<link rel="stylesheet" href="./layout1.css" type="text/css" />
|
@@ -49,8 +49,8 @@ Terrence Brannon has set up the
|
|
49
49
|
</div>
|
50
50
|
<div id="footer">
|
51
51
|
<div id="footer-text">
|
52
|
-
Version 8.3.
|
53
|
-
Last updated
|
52
|
+
Version 8.3.3<br />
|
53
|
+
Last updated 2009-01-02 11:18:55 NZDT
|
54
54
|
</div>
|
55
55
|
<div id="footer-badges">
|
56
56
|
<a href="http://validator.w3.org/check?uri=referer">
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
-
<meta name="generator" content="AsciiDoc 8.3.
|
6
|
+
<meta name="generator" content="AsciiDoc 8.3.3" />
|
7
7
|
<link rel="stylesheet" href="./xhtml11.css" type="text/css" />
|
8
8
|
<link rel="stylesheet" href="./xhtml11-quirks.css" type="text/css" />
|
9
9
|
<link rel="stylesheet" href="./layout1.css" type="text/css" />
|
@@ -42,8 +42,8 @@ window.onload = function(){generateToc(2)}
|
|
42
42
|
<h1>AsciiDoc User Guide</h1>
|
43
43
|
<span id="author">Stuart Rackham</span><br />
|
44
44
|
<span id="email"><tt><<a href="mailto:srackham@gmail.com">srackham@gmail.com</a>></tt></span><br />
|
45
|
-
<span id="revision">version 8.3.
|
46
|
-
|
45
|
+
<span id="revision">version 8.3.3,</span>
|
46
|
+
2 January 2009
|
47
47
|
</div>
|
48
48
|
<div id="toc">
|
49
49
|
<div id="toctitle">Table of Contents</div>
|
@@ -340,8 +340,6 @@ stylesheet
|
|
340
340
|
specified by the <em>stylesdir</em> attribute.
|
341
341
|
</p>
|
342
342
|
</dd>
|
343
|
-
</dl></div>
|
344
|
-
<div class="dlist" id="X45"><dl>
|
345
343
|
<dt class="hdlist1">
|
346
344
|
icons
|
347
345
|
</dt>
|
@@ -352,8 +350,6 @@ icons
|
|
352
350
|
icon images.
|
353
351
|
</p>
|
354
352
|
</dd>
|
355
|
-
</dl></div>
|
356
|
-
<div class="dlist" id="X44"><dl>
|
357
353
|
<dt class="hdlist1">
|
358
354
|
iconsdir
|
359
355
|
</dt>
|
@@ -390,7 +386,7 @@ badges
|
|
390
386
|
</p>
|
391
387
|
</dd>
|
392
388
|
</dl></div>
|
393
|
-
<div class="admonitionblock">
|
389
|
+
<div class="admonitionblock" id="X44">
|
394
390
|
<table><tr>
|
395
391
|
<td class="icon">
|
396
392
|
<img src="./images/icons/note.png" alt="Note" />
|
@@ -601,7 +597,7 @@ address comes last and must be enclosed in angle <> brackets. Author
|
|
601
597
|
names cannot contain angle <> bracket characters.</p></div>
|
602
598
|
<div class="paragraph"><p>The optional document header revision line should immediately follow
|
603
599
|
the author line. The revision line can be one of two formats:</p></div>
|
604
|
-
<div class="olist"><ol>
|
600
|
+
<div class="olist arabic"><ol class="arabic">
|
605
601
|
<li>
|
606
602
|
<p>
|
607
603
|
An alphanumeric document revision number followed by a date:
|
@@ -810,7 +806,7 @@ Inline Macros
|
|
810
806
|
<h2 id="_document_processing">6. Document Processing</h2>
|
811
807
|
<div class="sectionbody">
|
812
808
|
<div class="paragraph"><p>The <em>AsciiDoc</em> source document is read and processed as follows:</p></div>
|
813
|
-
<div class="olist"><ol>
|
809
|
+
<div class="olist arabic"><ol class="arabic">
|
814
810
|
<li>
|
815
811
|
<p>
|
816
812
|
The document <em>Header</em> is parsed, header parameter values are
|
@@ -841,7 +837,7 @@ to be checked.</p></div>
|
|
841
837
|
and block syntax rules.</p></div>
|
842
838
|
<div class="paragraph"><p>Inline substitutions within block elements are performed in the
|
843
839
|
following default order:</p></div>
|
844
|
-
<div class="olist"><ol>
|
840
|
+
<div class="olist arabic"><ol class="arabic">
|
845
841
|
<li>
|
846
842
|
<p>
|
847
843
|
Special characters
|
@@ -1040,7 +1036,7 @@ constrained quotes) — here’s how to escape the previous
|
|
1040
1036
|
following line:</p></div>
|
1041
1037
|
<div class="literalblock">
|
1042
1038
|
<div class="content">
|
1043
|
-
<pre><tt>e
|
1039
|
+
<pre><tt>e^&#960;i^+1 = 0. H~2~O and x^10^. Some ^super text^
|
1044
1040
|
and ~some sub text~</tt></pre>
|
1045
1041
|
</div></div>
|
1046
1042
|
<div class="paragraph"><p>Is rendered like:</p></div>
|
@@ -1462,14 +1458,14 @@ often used for code and file listings.</p></div>
|
|
1462
1458
|
<div class="paragraph"><p>Here’s an example:</p></div>
|
1463
1459
|
<div class="listingblock">
|
1464
1460
|
<div class="content">
|
1465
|
-
<pre><tt
|
1466
|
-
|
1461
|
+
<pre><tt>--------------------------------------
|
1462
|
+
#include <stdio.h>
|
1467
1463
|
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1464
|
+
int main() {
|
1465
|
+
printf("Hello World!\n");
|
1466
|
+
exit(0);
|
1467
|
+
}
|
1468
|
+
--------------------------------------</tt></pre>
|
1473
1469
|
</div></div>
|
1474
1470
|
<div class="paragraph"><p>Which will be rendered like:</p></div>
|
1475
1471
|
<div class="listingblock">
|
@@ -1521,6 +1517,14 @@ SidebarBlocks) can be placed inside a sidebar.
|
|
1521
1517
|
<div class="paragraph"><p>Any <em>AsciiDoc</em> SectionBody element (apart from
|
1522
1518
|
SidebarBlocks) can be placed inside a sidebar.</p></div>
|
1523
1519
|
</div></div>
|
1520
|
+
<div class="paragraph"><p>Apply the <em>abstract</em> style to generate an abstract, for example:</p></div>
|
1521
|
+
<div class="listingblock">
|
1522
|
+
<div class="content">
|
1523
|
+
<pre><tt>[abstract]
|
1524
|
+
************************************************
|
1525
|
+
In this paper we will attempt to...
|
1526
|
+
************************************************</tt></pre>
|
1527
|
+
</div></div>
|
1524
1528
|
<h3 id="X26">12.5. Comment Blocks</h3><div style="clear:left"></div>
|
1525
1529
|
<div class="paragraph"><p>The contents of CommentBlocks are not processed; they are useful for
|
1526
1530
|
annotations and for excluding new or outdated content that you don’t
|
@@ -1533,6 +1537,14 @@ asciidoc(1).
|
|
1533
1537
|
//////////////////////////////////////////</tt></pre>
|
1534
1538
|
</div></div>
|
1535
1539
|
<div class="paragraph"><p>See also <a href="#X25">Comment Lines</a>.</p></div>
|
1540
|
+
<div class="admonitionblock">
|
1541
|
+
<table><tr>
|
1542
|
+
<td class="icon">
|
1543
|
+
<img src="./images/icons/note.png" alt="Note" />
|
1544
|
+
</td>
|
1545
|
+
<td class="content">System macros are executed inside comment blocks.</td>
|
1546
|
+
</tr></table>
|
1547
|
+
</div>
|
1536
1548
|
<h3 id="X76">12.6. Passthrough Blocks</h3><div style="clear:left"></div>
|
1537
1549
|
<div class="paragraph"><p>By default the block contents is subject to attribute and macro
|
1538
1550
|
substitution, no other markup is generated. PassthroughBlock content
|
@@ -1680,7 +1692,7 @@ adolescens.
|
|
1680
1692
|
<div class="title">A NOTE block</div>
|
1681
1693
|
<div class="paragraph"><p>Qui in magna commodo, est labitur dolorum an. Est ne magna primis
|
1682
1694
|
adolescens.</p></div>
|
1683
|
-
<div class="olist"><ol>
|
1695
|
+
<div class="olist arabic"><ol class="arabic">
|
1684
1696
|
<li>
|
1685
1697
|
<p>
|
1686
1698
|
Fusce euismod commodo velit.
|
@@ -1690,7 +1702,7 @@ Fusce euismod commodo velit.
|
|
1690
1702
|
<p>
|
1691
1703
|
Vivamus fringilla mi eu lacus.
|
1692
1704
|
</p>
|
1693
|
-
<div class="olist2"><ol>
|
1705
|
+
<div class="olist2 loweralpha"><ol class="loweralpha">
|
1694
1706
|
<li>
|
1695
1707
|
<p>
|
1696
1708
|
Fusce euismod commodo velit.
|
@@ -1793,17 +1805,52 @@ space or tab character. Bulleted list syntaxes are:</p></div>
|
|
1793
1805
|
<pre><tt>- List item.
|
1794
1806
|
* List item.</tt></pre>
|
1795
1807
|
</div></div>
|
1796
|
-
<div class="paragraph"><p>
|
1797
|
-
|
1798
|
-
|
1799
|
-
<
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
1806
|
-
<
|
1808
|
+
<div class="paragraph"><p>There are two numbered list item syntaxes:</p></div>
|
1809
|
+
<div class="olist arabic"><ol class="arabic">
|
1810
|
+
<li>
|
1811
|
+
<p>
|
1812
|
+
List items beginning with a single period followed by a space. The
|
1813
|
+
period can be preceded by an optional decimal number. The default
|
1814
|
+
numbering style is arabic (decimal).
|
1815
|
+
</p>
|
1816
|
+
</li>
|
1817
|
+
<li>
|
1818
|
+
<p>
|
1819
|
+
List items beginning with two periods followed by a space. An alpha
|
1820
|
+
character or a roman number (upper or lower case) can optionally be
|
1821
|
+
used in place of the first period:
|
1822
|
+
</p>
|
1823
|
+
<div class="ulist"><ul>
|
1824
|
+
<li>
|
1825
|
+
<p>
|
1826
|
+
An attempt is made to set the number style based on number style
|
1827
|
+
of the first list item.
|
1828
|
+
</p>
|
1829
|
+
</li>
|
1830
|
+
<li>
|
1831
|
+
<p>
|
1832
|
+
The default numbering style is lowercase alpha.
|
1833
|
+
</p>
|
1834
|
+
</li>
|
1835
|
+
</ul></div>
|
1836
|
+
</li>
|
1837
|
+
</ol></div>
|
1838
|
+
<div class="paragraph"><p>You can use the <em>style</em> attribute to specify an alternative numbering
|
1839
|
+
style. The numbered list style can be set to one of the following
|
1840
|
+
values: <em>arabic</em>, <em>loweralpha</em>, <em>upperalpha</em>, <em>lowerroman</em>,
|
1841
|
+
<em>upperroman</em>.</p></div>
|
1842
|
+
<div class="paragraph"><p>Examples of numbered list items:</p></div>
|
1843
|
+
<div class="literalblock">
|
1844
|
+
<div class="content">
|
1845
|
+
<pre><tt>. Arabic (decimal) numbered list item.
|
1846
|
+
1. Arabic (decimal) numbered list item.
|
1847
|
+
.. Lower case letter numbered list item.
|
1848
|
+
a. Lower case letter numbered list item.
|
1849
|
+
A. Upper case letter numbered list item.
|
1850
|
+
iii. Lower case roman numbered list item.
|
1851
|
+
IX. Upper case roman numbered list item.</tt></pre>
|
1852
|
+
</div></div>
|
1853
|
+
<div class="paragraph"><p>Here are some examples of bulleted and numbered lists:</p></div>
|
1807
1854
|
<div class="listingblock">
|
1808
1855
|
<div class="content">
|
1809
1856
|
<pre><tt>- Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
|
@@ -1816,6 +1863,7 @@ a. Lowercase letter numbered list item with optional numbering.</tt></pre>
|
|
1816
1863
|
- Nulla porttitor vulputate libero.
|
1817
1864
|
. Fusce euismod commodo velit.
|
1818
1865
|
. Vivamus fringilla mi eu lacus.
|
1866
|
+
[upperroman]
|
1819
1867
|
.. Fusce euismod commodo velit.
|
1820
1868
|
.. Vivamus fringilla mi eu lacus.
|
1821
1869
|
. Donec eget arcu bibendum nunc consequat lobortis.
|
@@ -1825,6 +1873,8 @@ a. Lowercase letter numbered list item with optional numbering.</tt></pre>
|
|
1825
1873
|
b. Vivamus fringilla mi eu lacus.
|
1826
1874
|
c. Donec eget arcu bibendum nunc consequat lobortis.
|
1827
1875
|
2. Vivamus fringilla mi eu lacus.
|
1876
|
+
.. Fusce euismod commodo velit.
|
1877
|
+
.. Vivamus fringilla mi eu lacus.
|
1828
1878
|
3. Donec eget arcu bibendum nunc consequat lobortis.
|
1829
1879
|
4. Nam fermentum mattis ante.</tt></pre>
|
1830
1880
|
</div></div>
|
@@ -1863,7 +1913,7 @@ Donec eget arcu bibendum nunc consequat lobortis.
|
|
1863
1913
|
<p>
|
1864
1914
|
Nulla porttitor vulputate libero.
|
1865
1915
|
</p>
|
1866
|
-
<div class="olist"><ol>
|
1916
|
+
<div class="olist arabic"><ol class="arabic">
|
1867
1917
|
<li>
|
1868
1918
|
<p>
|
1869
1919
|
Fusce euismod commodo velit.
|
@@ -1873,7 +1923,7 @@ Fusce euismod commodo velit.
|
|
1873
1923
|
<p>
|
1874
1924
|
Vivamus fringilla mi eu lacus.
|
1875
1925
|
</p>
|
1876
|
-
<div class="olist2"><ol>
|
1926
|
+
<div class="olist2 upperroman"><ol class="upperroman">
|
1877
1927
|
<li>
|
1878
1928
|
<p>
|
1879
1929
|
Fusce euismod commodo velit.
|
@@ -1897,12 +1947,12 @@ Donec eget arcu bibendum nunc consequat lobortis.
|
|
1897
1947
|
<p>
|
1898
1948
|
Praesent eget purus quis magna eleifend eleifend.
|
1899
1949
|
</p>
|
1900
|
-
<div class="olist"><ol>
|
1950
|
+
<div class="olist arabic"><ol class="arabic">
|
1901
1951
|
<li>
|
1902
1952
|
<p>
|
1903
1953
|
Fusce euismod commodo velit.
|
1904
1954
|
</p>
|
1905
|
-
<div class="olist2"><ol>
|
1955
|
+
<div class="olist2 loweralpha"><ol class="loweralpha">
|
1906
1956
|
<li>
|
1907
1957
|
<p>
|
1908
1958
|
Fusce euismod commodo velit.
|
@@ -1924,6 +1974,18 @@ Donec eget arcu bibendum nunc consequat lobortis.
|
|
1924
1974
|
<p>
|
1925
1975
|
Vivamus fringilla mi eu lacus.
|
1926
1976
|
</p>
|
1977
|
+
<div class="olist2 loweralpha"><ol class="loweralpha">
|
1978
|
+
<li>
|
1979
|
+
<p>
|
1980
|
+
Fusce euismod commodo velit.
|
1981
|
+
</p>
|
1982
|
+
</li>
|
1983
|
+
<li>
|
1984
|
+
<p>
|
1985
|
+
Vivamus fringilla mi eu lacus.
|
1986
|
+
</p>
|
1987
|
+
</li>
|
1988
|
+
</ol></div>
|
1927
1989
|
</li>
|
1928
1990
|
<li>
|
1929
1991
|
<p>
|
@@ -2292,7 +2354,7 @@ Nested list appended list item one paragraph
|
|
2292
2354
|
- Nested list item two.</tt></pre>
|
2293
2355
|
</div></div>
|
2294
2356
|
<div class="paragraph"><p>Renders:</p></div>
|
2295
|
-
<div class="olist"><ol>
|
2357
|
+
<div class="olist arabic"><ol class="arabic">
|
2296
2358
|
<li>
|
2297
2359
|
<p>
|
2298
2360
|
List item one.
|
@@ -2356,7 +2418,7 @@ Any block title or attributes are passed to the first element inside
|
|
2356
2418
|
</li>
|
2357
2419
|
</ul></div>
|
2358
2420
|
<div class="paragraph"><p>The List Block is useful for:</p></div>
|
2359
|
-
<div class="olist"><ol>
|
2421
|
+
<div class="olist arabic"><ol class="arabic">
|
2360
2422
|
<li>
|
2361
2423
|
<p>
|
2362
2424
|
Lists with long multi-element list items.
|
@@ -2392,13 +2454,13 @@ This paragraph belongs to item 1.
|
|
2392
2454
|
2. Item 2 of the outer list.</tt></pre>
|
2393
2455
|
</div></div>
|
2394
2456
|
<div class="paragraph"><p>Renders:</p></div>
|
2395
|
-
<div class="olist"><div class="title">Nested List Block</div><ol>
|
2457
|
+
<div class="olist arabic"><div class="title">Nested List Block</div><ol class="arabic">
|
2396
2458
|
<li>
|
2397
2459
|
<p>
|
2398
2460
|
List item one.
|
2399
2461
|
</p>
|
2400
2462
|
<div class="paragraph"><p>This paragraph is part of the preceding list item</p></div>
|
2401
|
-
<div class="olist2"><ol>
|
2463
|
+
<div class="olist2 loweralpha"><ol class="loweralpha">
|
2402
2464
|
<li>
|
2403
2465
|
<p>
|
2404
2466
|
This list is nested and does not require explicit item continuation.
|
@@ -2552,7 +2614,7 @@ example:</p></div>
|
|
2552
2614
|
11/16/97 17:17 61,865,984 pagefile.sys
|
2553
2615
|
2/13/94 6:21 9,349 WINA20.386 <b><3></b></tt></pre>
|
2554
2616
|
</div></div>
|
2555
|
-
<div class="colist"><ol>
|
2617
|
+
<div class="colist arabic"><ol>
|
2556
2618
|
<li>
|
2557
2619
|
<p>
|
2558
2620
|
This directory holds MS-DOS.
|
@@ -2655,12 +2717,12 @@ the <tt>test.py</tt> source file (containing a single callout) using the
|
|
2655
2717
|
<div class="listingblock">
|
2656
2718
|
<div class="title">AsciiDoc source</div>
|
2657
2719
|
<div class="content">
|
2658
|
-
<pre><tt>
|
2659
|
-
|
2660
|
-
|
2661
|
-
|
2720
|
+
<pre><tt>[source,python]
|
2721
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2722
|
+
include::test.py[]
|
2723
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2662
2724
|
|
2663
|
-
|
2725
|
+
<1> Print statement.</tt></pre>
|
2664
2726
|
</div></div>
|
2665
2727
|
<div class="listingblock">
|
2666
2728
|
<div class="title">Included <tt>test.py</tt> source</div>
|
@@ -3046,12 +3108,12 @@ paragraphs or delimited blocks. Example comment line:</p></div>
|
|
3046
3108
|
</div></div>
|
3047
3109
|
<div class="paragraph"><p>See also <a href="#X26">Comment Blocks</a>.</p></div>
|
3048
3110
|
<h3 id="_system_macros">17.3. System Macros</h3><div style="clear:left"></div>
|
3049
|
-
<div class="paragraph"><p>System macros are block macros that perform a predefined task
|
3111
|
+
<div class="paragraph"><p>System macros are block macros that perform a predefined task and are
|
3050
3112
|
hardwired into the <tt>asciidoc(1)</tt> program.</p></div>
|
3051
3113
|
<div class="ulist"><ul>
|
3052
3114
|
<li>
|
3053
3115
|
<p>
|
3054
|
-
You can
|
3116
|
+
You can escape system macros with a leading backslash character
|
3055
3117
|
(as you can with other macros).
|
3056
3118
|
</p>
|
3057
3119
|
</li>
|
@@ -3076,7 +3138,7 @@ verbatim embedded CSS or scripts into configuration file headers.
|
|
3076
3138
|
Example:</p></div>
|
3077
3139
|
<div class="listingblock">
|
3078
3140
|
<div class="content">
|
3079
|
-
<pre><tt>
|
3141
|
+
<pre><tt>include::chapter1.txt[tabsize=4]</tt></pre>
|
3080
3142
|
</div></div>
|
3081
3143
|
<div class="ulist"><div class="title">Include macro behavior</div><ul>
|
3082
3144
|
<li>
|
@@ -3335,7 +3397,7 @@ a markup template. If <tt><name></tt> is omitted then it is the value of t
|
|
3335
3397
|
regular expression match group named <em>name</em>. The optional
|
3336
3398
|
<tt>[<subslist]</tt> is a comma-separated list of substitution names enclosed
|
3337
3399
|
in <tt>[]</tt> brackets, it sets the default substitutions for passthrough
|
3338
|
-
text.</p></div>
|
3400
|
+
text, if omitted then no passthrough substitutions are performed.</p></div>
|
3339
3401
|
<div class="paragraph"><div class="title">Pattern named groups</div><p>The following named groups can be used in macro <tt><pattern></tt> regular
|
3340
3402
|
expressions and are available as markup template attributes:</p></div>
|
3341
3403
|
<div class="dlist"><dl>
|
@@ -3436,8 +3498,8 @@ There is no provision for cells to span multiple columns.
|
|
3436
3498
|
<div class="sidebar-title">Use tables sparingly</div>
|
3437
3499
|
<div class="paragraph"><p>When technical users first start creating documents, tables (complete
|
3438
3500
|
with column spanning and table nesting) are often considered very
|
3439
|
-
important.
|
3440
|
-
|
3501
|
+
important. The reality is that tables are seldom used, even in
|
3502
|
+
technical documentation.</p></div>
|
3441
3503
|
<div class="paragraph"><p>Try this exercise: thumb through your library of technical books,
|
3442
3504
|
you’ll be surprised just how seldom tables are actually used, even
|
3443
3505
|
less seldom are tables containing block elements such as paragraphs or
|
@@ -3713,11 +3775,11 @@ Buenos Aires</p></td>
|
|
3713
3775
|
<div class="paragraph"><p><em>AsciiDoc</em> source:</p></div>
|
3714
3776
|
<div class="listingblock">
|
3715
3777
|
<div class="content">
|
3716
|
-
<pre><tt>
|
3717
|
-
|
3718
|
-
|
3719
|
-
|
3720
|
-
|
3778
|
+
<pre><tt>[format="csv",cols="^1,4*2",options="header"]
|
3779
|
+
|===================================================
|
3780
|
+
ID,Customer Name,Contact Name,Customer Address,Phone
|
3781
|
+
include::customers.csv[]
|
3782
|
+
|===================================================</tt></pre>
|
3721
3783
|
</div></div>
|
3722
3784
|
<h3 id="X68">18.2. Table input data formats</h3><div style="clear:left"></div>
|
3723
3785
|
<div class="paragraph"><p><em>AsciiDoc</em> table data can be <em>psv</em>, <em>dsv</em> or <em>csv</em> formatted. The
|
@@ -4829,7 +4891,7 @@ explicitly (using the <tt>asciidoc(1)</tt> <tt>-f</tt> (<tt>--conf-file</tt>) co
|
|
4829
4891
|
option).</p></div>
|
4830
4892
|
<div class="paragraph"><p>Implicit configuration files are loaded from the following directories
|
4831
4893
|
in the following order:</p></div>
|
4832
|
-
<div class="olist"><ol>
|
4894
|
+
<div class="olist arabic"><ol class="arabic">
|
4833
4895
|
<li>
|
4834
4896
|
<p>
|
4835
4897
|
The global configuration directory (normally <tt>/etc/asciidoc</tt> or
|
@@ -4854,7 +4916,7 @@ The directory containing the <em>AsciiDoc</em> source file.
|
|
4854
4916
|
</ol></div>
|
4855
4917
|
<div class="paragraph"><p>The following implicit configuration files from each of the above
|
4856
4918
|
locations are loaded in the following order:</p></div>
|
4857
|
-
<div class="olist"><ol>
|
4919
|
+
<div class="olist arabic"><ol class="arabic">
|
4858
4920
|
<li>
|
4859
4921
|
<p>
|
4860
4922
|
<tt>asciidoc.conf</tt>
|
@@ -4898,7 +4960,7 @@ files will be processed in the order they appear on the command-line.</p></div>
|
|
4898
4960
|
</div></div>
|
4899
4961
|
<div class="paragraph"><p>Configuration files (if they exist) will be processed in the following
|
4900
4962
|
order:</p></div>
|
4901
|
-
<div class="olist"><ol>
|
4963
|
+
<div class="olist arabic"><ol class="arabic">
|
4902
4964
|
<li>
|
4903
4965
|
<p>
|
4904
4966
|
First default global configuration files from the asciidoc program
|
@@ -5239,7 +5301,8 @@ List attributes can only be referenced in configuration file markup
|
|
5239
5301
|
</li>
|
5240
5302
|
<li>
|
5241
5303
|
<p>
|
5242
|
-
Attribute references are allowed inside attribute lists
|
5304
|
+
Attribute references are allowed inside attribute lists — this is
|
5305
|
+
the only substitution performed on attribute lists.
|
5243
5306
|
</p>
|
5244
5307
|
</li>
|
5245
5308
|
<li>
|
@@ -5302,7 +5365,8 @@ attribute values to macro markup templates.</p></div>
|
|
5302
5365
|
<div class="paragraph"><p>An <a href="#X21">attribute list</a> on a line by itself constitutes an
|
5303
5366
|
<em>AttributeList</em> block element, its attributes apply to the following
|
5304
5367
|
block element. The list attributes are passed to the next block
|
5305
|
-
element for markup template substitution
|
5368
|
+
element for markup template substitution. Often the first list
|
5369
|
+
parameter is used to specify the element’s <a href="#X23">style</a>.</p></div>
|
5306
5370
|
</div>
|
5307
5371
|
<h2 id="_attribute_references">25. Attribute References</h2>
|
5308
5372
|
<div class="sectionbody">
|
@@ -5606,7 +5670,7 @@ predefined intrinsic attributes:</p></div>
|
|
5606
5670
|
{user-dir} the ~/.asciidoc directory (if it exists)
|
5607
5671
|
{verbose} defined as '' if --verbose command option specified</tt></pre>
|
5608
5672
|
</div></div>
|
5609
|
-
<div class="olist"><div class="title">NOTES</div><ol>
|
5673
|
+
<div class="olist arabic"><div class="title">NOTES</div><ol class="arabic">
|
5610
5674
|
<li>
|
5611
5675
|
<p>
|
5612
5676
|
Intrinsic attributes are global so avoid defining custom attributes
|
@@ -5849,7 +5913,7 @@ delimiter=(?P<text>\S.*)
|
|
5849
5913
|
template=paragraph</tt></pre>
|
5850
5914
|
</div></div>
|
5851
5915
|
<div class="paragraph"><p>The Default paragraph definition has a couple of special properties:</p></div>
|
5852
|
-
<div class="olist"><ol>
|
5916
|
+
<div class="olist arabic"><ol class="arabic">
|
5853
5917
|
<li>
|
5854
5918
|
<p>
|
5855
5919
|
It must exist and be defined in a configuration file section named
|
@@ -5887,7 +5951,7 @@ options
|
|
5887
5951
|
</p>
|
5888
5952
|
</dd>
|
5889
5953
|
</dl></div>
|
5890
|
-
<div class="olist"><div class="title">Paragraph processing proceeds as follows:</div><ol>
|
5954
|
+
<div class="olist arabic"><div class="title">Paragraph processing proceeds as follows:</div><ol class="arabic">
|
5891
5955
|
<li>
|
5892
5956
|
<p>
|
5893
5957
|
The paragraph text is aligned to the left margin.
|
@@ -5935,7 +5999,7 @@ skip
|
|
5935
5999
|
</dt>
|
5936
6000
|
<dd>
|
5937
6001
|
<p>
|
5938
|
-
The block is treated as a comment (see CommentBlocks).
|
6002
|
+
The block is treated as a comment (see <a href="#X26">CommentBlocks</a>).
|
5939
6003
|
</p>
|
5940
6004
|
</dd>
|
5941
6005
|
<dt class="hdlist1">
|
@@ -5950,7 +6014,7 @@ list
|
|
5950
6014
|
<div class="paragraph"><p><em>presubs</em>, <em>postsubs</em> and <em>filter</em> entries are meaningless when
|
5951
6015
|
<em>sectionbody</em>, <em>skip</em> or <em>list</em> options are set.</p></div>
|
5952
6016
|
<div class="paragraph"><p>DelimitedBlock processing proceeds as follows:</p></div>
|
5953
|
-
<div class="olist"><ol>
|
6017
|
+
<div class="olist arabic"><ol class="arabic">
|
5954
6018
|
<li>
|
5955
6019
|
<p>
|
5956
6020
|
Optional <em>presubs</em> substitutions are performed on the block
|
@@ -6163,32 +6227,28 @@ Finally it relies on the executing shell to search the environment
|
|
6163
6227
|
</p>
|
6164
6228
|
</li>
|
6165
6229
|
</ul></div>
|
6230
|
+
<div class="paragraph"><p>Sub-directories are also included in the searches — standard practice
|
6231
|
+
is to install each filter in it’s own sub-directory with the same name
|
6232
|
+
as the filter’s style definition. For example the music filter’s style
|
6233
|
+
name is <em>music</em> so it’s configuration and filter files are stored in
|
6234
|
+
the <tt>filters/music</tt> directory.</p></div>
|
6166
6235
|
<h3 id="_filter_configuration_files">28.2. Filter Configuration Files</h3><div style="clear:left"></div>
|
6167
6236
|
<div class="paragraph"><p>Filters are normally accompanied by a configuration file containing a
|
6168
6237
|
Paragraph or DelimitedBlock definition along with corresponding markup
|
6169
6238
|
templates.</p></div>
|
6170
|
-
<div class="paragraph"><p>
|
6171
|
-
|
6172
|
-
<
|
6173
|
-
<
|
6174
|
-
|
6175
|
-
|
6176
|
-
|
6177
|
-
<li>
|
6178
|
-
<p>
|
6179
|
-
By styling an existing Paragraph or DelimitedBlock using a <em>style</em>
|
6180
|
-
configuration entry — the <em>source highlight</em> and <em>music</em> filters
|
6181
|
-
use this technique to customize the ListingBlock. By convention the
|
6182
|
-
style is given the same name as the filter.
|
6183
|
-
</p>
|
6184
|
-
</li>
|
6185
|
-
</ul></div>
|
6239
|
+
<div class="paragraph"><p>While it is possible to create new Paragraph or DelimitedBlock
|
6240
|
+
definitions the preferred way to implement a filter is to add a
|
6241
|
+
<a href="#X23">style</a> to an existing Paragraph or DelimitedBlock definition
|
6242
|
+
(all filters shipped with <em>AsciiDoc</em> use this technique). The filter is
|
6243
|
+
applied to the paragraph or delimited block by preceding it with an
|
6244
|
+
attribute list: the first positional attribute is the style name,
|
6245
|
+
remaining attributes are normally filter specific parameters.</p></div>
|
6186
6246
|
<div class="paragraph"><p><tt>asciidoc(1)</tt> auto-loads all <tt>.conf</tt> files found in the filter search
|
6187
6247
|
paths (see previous section).</p></div>
|
6188
6248
|
<h3 id="X56">28.3. Code Filter</h3><div style="clear:left"></div>
|
6189
|
-
<div class="paragraph"><p><em>AsciiDoc</em> comes with a
|
6190
|
-
|
6191
|
-
|
6249
|
+
<div class="paragraph"><p><em>AsciiDoc</em> comes with a toy filter for highlighting source code keywords
|
6250
|
+
and comments. See also the <tt>./filters/code/code-filter-readme.txt</tt>
|
6251
|
+
file.</p></div>
|
6192
6252
|
<div class="admonitionblock">
|
6193
6253
|
<table><tr>
|
6194
6254
|
<td class="icon">
|
@@ -6203,7 +6263,7 @@ If you want a full featured multi-language highlighter use the
|
|
6203
6263
|
<div class="content">
|
6204
6264
|
<pre><tt>.Code filter example
|
6205
6265
|
[code,python]
|
6206
|
-
|
6266
|
+
----------------------------------------------
|
6207
6267
|
''' A multi-line
|
6208
6268
|
comment.'''
|
6209
6269
|
def sub_word(mo):
|
@@ -6213,7 +6273,7 @@ def sub_word(mo):
|
|
6213
6273
|
return quote + word + quote
|
6214
6274
|
else:
|
6215
6275
|
return word
|
6216
|
-
|
6276
|
+
----------------------------------------------</tt></pre>
|
6217
6277
|
</div></div>
|
6218
6278
|
<div class="paragraph"><p>Outputs:</p></div>
|
6219
6279
|
<div class="listingblock">
|
@@ -6349,7 +6409,7 @@ suitable DocBook toolchain (see the
|
|
6349
6409
|
</li>
|
6350
6410
|
</ul></div>
|
6351
6411
|
<h3 id="_html_help_generation">29.4. HTML Help generation</h3><div style="clear:left"></div>
|
6352
|
-
<div class="olist"><ol>
|
6412
|
+
<div class="olist arabic"><ol class="arabic">
|
6353
6413
|
<li>
|
6354
6414
|
<p>
|
6355
6415
|
Convert DocBook XML documents to HTML Help compiler source files
|
@@ -6373,8 +6433,6 @@ Convert the HTML Help source (<tt>.hhp</tt> and <tt>.html</tt>) files to HTML He
|
|
6373
6433
|
Converts <em>AsciiDoc</em> (<tt>.txt</tt>) files to DocBook XML (<tt>.xml</tt>) files.
|
6374
6434
|
</p>
|
6375
6435
|
</dd>
|
6376
|
-
</dl></div>
|
6377
|
-
<div class="dlist" id="X13"><dl>
|
6378
6436
|
<dt class="hdlist1">
|
6379
6437
|
<a href="http://docbook.sourceforge.net/projects/xsl/">DocBook XSL Stylesheets</a>
|
6380
6438
|
</dt>
|
@@ -6386,8 +6444,6 @@ Convert the HTML Help source (<tt>.hhp</tt> and <tt>.html</tt>) files to HTML He
|
|
6386
6444
|
<a href="#X40">xsltproc(1)</a>.
|
6387
6445
|
</p>
|
6388
6446
|
</dd>
|
6389
|
-
</dl></div>
|
6390
|
-
<div class="dlist" id="X40"><dl>
|
6391
6447
|
<dt class="hdlist1">
|
6392
6448
|
<a href="http://www.xmlsoft.org">xsltproc</a>
|
6393
6449
|
</dt>
|
@@ -6397,8 +6453,6 @@ Convert the HTML Help source (<tt>.hhp</tt> and <tt>.html</tt>) files to HTML He
|
|
6397
6453
|
<a href="#X13">DocBook XSL Stylesheets</a>) to XML documents.
|
6398
6454
|
</p>
|
6399
6455
|
</dd>
|
6400
|
-
</dl></div>
|
6401
|
-
<div class="dlist" id="X31"><dl>
|
6402
6456
|
<dt class="hdlist1">
|
6403
6457
|
<a href="http://dblatex.sourceforge.net/">dblatex</a>
|
6404
6458
|
</dt>
|
@@ -6409,8 +6463,6 @@ Convert the HTML Help source (<tt>.hhp</tt> and <tt>.html</tt>) files to HTML He
|
|
6409
6463
|
<tt>latex(1)</tt>.
|
6410
6464
|
</p>
|
6411
6465
|
</dd>
|
6412
|
-
</dl></div>
|
6413
|
-
<div class="dlist" id="X14"><dl>
|
6414
6466
|
<dt class="hdlist1">
|
6415
6467
|
<a href="http://xml.apache.org/fop/">FOP</a>
|
6416
6468
|
</dt>
|
@@ -6422,8 +6474,6 @@ Convert the HTML Help source (<tt>.hhp</tt> and <tt>.html</tt>) files to HTML He
|
|
6422
6474
|
<a href="#X40">xsltproc(1)</a>.
|
6423
6475
|
</p>
|
6424
6476
|
</dd>
|
6425
|
-
</dl></div>
|
6426
|
-
<div class="dlist" id="X67"><dl>
|
6427
6477
|
<dt class="hdlist1">
|
6428
6478
|
Microsoft Help Compiler
|
6429
6479
|
</dt>
|
@@ -6436,7 +6486,7 @@ Microsoft Help Compiler
|
|
6436
6486
|
</p>
|
6437
6487
|
</dd>
|
6438
6488
|
</dl></div>
|
6439
|
-
<h3 id="
|
6489
|
+
<h3 id="X67">29.6. AsciiDoc dblatex configuration files</h3><div style="clear:left"></div>
|
6440
6490
|
<div class="paragraph"><p>The <em>AsciiDoc</em> distribution <tt>./dblatex</tt> directory contains
|
6441
6491
|
<tt>asciidoc-dblatex.xsl</tt> (customized XSL parameter settings) and
|
6442
6492
|
<tt>asciidoc-dblatex.sty</tt> (customized LaTeX settings). These are examples
|
@@ -6631,7 +6681,7 @@ follow.</p></div>
|
|
6631
6681
|
<pre><tt>:set textwidth=70</tt></pre>
|
6632
6682
|
</div></div>
|
6633
6683
|
<div class="paragraph"><p>To reformat a paragraph:</p></div>
|
6634
|
-
<div class="olist"><ol>
|
6684
|
+
<div class="olist arabic"><ol class="arabic">
|
6635
6685
|
<li>
|
6636
6686
|
<p>
|
6637
6687
|
Position the cursor at the start of the paragraph.
|
@@ -6681,7 +6731,7 @@ callout lists. First you need to set the <tt>comments</tt>, <tt>formatoptions</t
|
|
6681
6731
|
and <tt>formatlistpat</tt> (see the <a href="#X61">Example <tt>~/.vimrc</tt> file</a>).</p></div>
|
6682
6732
|
<div class="paragraph"><p>Now you can format simple lists that use dash, asterisk, period and
|
6683
6733
|
plus bullets along with numbered ordered lists:</p></div>
|
6684
|
-
<div class="olist"><ol>
|
6734
|
+
<div class="olist arabic"><ol class="arabic">
|
6685
6735
|
<li>
|
6686
6736
|
<p>
|
6687
6737
|
Position the cursor at the start of the list.
|
@@ -6709,17 +6759,16 @@ highlight clear Search
|
|
6709
6759
|
" Don't move to matched text while search pattern is being entered.
|
6710
6760
|
set noincsearch
|
6711
6761
|
|
6712
|
-
"
|
6713
|
-
nnoremap
|
6762
|
+
" Reformat paragraphs and list.
|
6763
|
+
nnoremap R gq}
|
6714
6764
|
|
6715
|
-
"
|
6716
|
-
|
6717
|
-
nnoremap W :%s/[\r \t]\+$//<CR>:set et<CR>:retab!<CR>
|
6765
|
+
" Delete trailing white space and Dos-returns and to expand tabs to spaces.
|
6766
|
+
nnoremap S :set et<CR>:retab!<CR>:%s/[\r \t]\+$//<CR>
|
6718
6767
|
|
6719
6768
|
autocmd BufRead,BufNewFile *.txt,README,TODO,CHANGELOG,NOTES
|
6720
|
-
\ setlocal autoindent expandtab tabstop=8 softtabstop=2 shiftwidth=2
|
6769
|
+
\ setlocal autoindent expandtab tabstop=8 softtabstop=2 shiftwidth=2 filetype=asciidoc
|
6721
6770
|
\ textwidth=70 wrap formatoptions=tcqn
|
6722
|
-
\ formatlistpat=^\\s*<
|
6771
|
+
\ formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\\|^\\s*<\\d\\+>\\s\\+\\\\|^\\s*[a-zA-Z.]\\.\\s\\+\\\\|^\\s*[ivxIVX]\\+\\.\\s\\+
|
6723
6772
|
\ comments=s1:/*,ex:*/,://,b:#,:%,:XCOMM,fb:-,fb:*,fb:+,fb:.,fb:></tt></pre>
|
6724
6773
|
</div></div>
|
6725
6774
|
<h3 id="_troubleshooting">33.3. Troubleshooting</h3><div style="clear:left"></div>
|
@@ -6840,70 +6889,31 @@ Macro attribute lists
|
|
6840
6889
|
</div></div>
|
6841
6890
|
</dd>
|
6842
6891
|
</dl></div>
|
6843
|
-
<h3 id="_combining_separate_documents">33.5. Combining
|
6892
|
+
<h3 id="_combining_separate_documents">33.5. Combining separate documents</h3><div style="clear:left"></div>
|
6844
6893
|
<div class="paragraph"><p>You have a number of stand-alone <em>AsciiDoc</em> documents that you want to
|
6845
6894
|
process as a single document. Simply processing them with a series of
|
6846
|
-
<tt>include</tt> macros won’t work
|
6847
|
-
|
6848
|
-
document
|
6849
|
-
<div
|
6850
|
-
section titles are pushed down one level.</p></div>
|
6851
|
-
<div class="olist"><ol>
|
6852
|
-
<li>
|
6853
|
-
<p>
|
6854
|
-
Push the standard title underlines down one level by defining a new
|
6855
|
-
level 0 underline in a custom configuration file. For example
|
6856
|
-
<tt>combined.conf</tt>:
|
6857
|
-
</p>
|
6858
|
-
<div class="literalblock">
|
6859
|
-
<div class="content">
|
6860
|
-
<pre><tt>[titles]
|
6861
|
-
underlines="__","==","--","~~","^^"</tt></pre>
|
6862
|
-
</div></div>
|
6863
|
-
</li>
|
6864
|
-
<li>
|
6865
|
-
<p>
|
6866
|
-
If you use single line titles you’ll need to make corresponding
|
6867
|
-
adjustments to the <tt>[titles]</tt> section <tt>sect0</tt>…<tt>sect4</tt> entries.
|
6868
|
-
</p>
|
6869
|
-
</li>
|
6870
|
-
<li>
|
6871
|
-
<p>
|
6872
|
-
Create a top level wrapper document. For example <tt>combined.txt</tt>:
|
6873
|
-
</p>
|
6895
|
+
<tt>include</tt> macros won’t work because the documents contain (level 0)
|
6896
|
+
document titles. The solution is to create a top level wrapper
|
6897
|
+
document that redefines the document underlines, pushing them down one
|
6898
|
+
level. For example <tt>combined.txt</tt>:</p></div>
|
6874
6899
|
<div class="listingblock">
|
6875
6900
|
<div class="content">
|
6876
|
-
<pre><tt
|
6877
|
-
_______________________
|
6901
|
+
<pre><tt>:titles.underlines: "__","==","--","~~","^^"
|
6878
6902
|
|
6879
|
-
|
6903
|
+
Combined Document Title
|
6904
|
+
_______________________
|
6880
6905
|
|
6881
|
-
|
6906
|
+
include::document1.txt[]
|
6882
6907
|
|
6883
|
-
|
6884
|
-
|
6885
|
-
</
|
6886
|
-
<li>
|
6887
|
-
<p>
|
6888
|
-
Process the wrapper document. For example:
|
6889
|
-
</p>
|
6890
|
-
<div class="literalblock">
|
6891
|
-
<div class="content">
|
6892
|
-
<pre><tt>$ asciidoc --conf-file=combined.conf combined.txt</tt></pre>
|
6908
|
+
include::document2.txt[]
|
6909
|
+
|
6910
|
+
include::document3.txt[]</tt></pre>
|
6893
6911
|
</div></div>
|
6894
|
-
|
6895
|
-
|
6896
|
-
<div class="paragraph"><p>Actually the <tt>--conf-file</tt> option is unnecessary as <tt>asciidoc(1)</tt>
|
6897
|
-
automatically looks for a same-named <tt>.conf</tt> file.</p></div>
|
6912
|
+
<div class="paragraph"><p>The document titles in the included documents will now be processed as
|
6913
|
+
level 1 section titles.</p></div>
|
6898
6914
|
<div class="ulist"><ul>
|
6899
6915
|
<li>
|
6900
6916
|
<p>
|
6901
|
-
The combined document title uses the newly defined level 0 underline
|
6902
|
-
(underscore characters).
|
6903
|
-
</p>
|
6904
|
-
</li>
|
6905
|
-
<li>
|
6906
|
-
<p>
|
6907
6917
|
Put a blank line between the <tt>include</tt> macro lines to ensure the
|
6908
6918
|
title of the included document is not seen as part of the last
|
6909
6919
|
paragraph of the previous document.
|
@@ -6917,56 +6927,50 @@ You won’t want document Headers (Author and Revision lines) in the
|
|
6917
6927
|
</p>
|
6918
6928
|
</li>
|
6919
6929
|
</ul></div>
|
6920
|
-
<h3 id="_processing_document_sections_separately">33.6. Processing
|
6921
|
-
<div class="paragraph"><p>You have divided your <em>AsciiDoc</em> document into separate files (one per
|
6922
|
-
section) which are combined and processed with the following
|
6923
|
-
document:</p></div>
|
6930
|
+
<h3 id="_processing_document_sections_separately">33.6. Processing document sections separately</h3><div style="clear:left"></div>
|
6931
|
+
<div class="paragraph"><p>You have divided your <em>AsciiDoc</em> document into separate files (one per
|
6932
|
+
top level section) which are combined and processed with the following
|
6933
|
+
top level document:</p></div>
|
6924
6934
|
<div class="listingblock">
|
6925
6935
|
<div class="content">
|
6926
|
-
<pre><tt>
|
6927
|
-
|
6928
|
-
|
6929
|
-
|
6936
|
+
<pre><tt>Combined Document Title
|
6937
|
+
=======================
|
6938
|
+
Joe Bloggs
|
6939
|
+
v1.0, 12-Aug-03
|
6930
6940
|
|
6931
|
-
|
6941
|
+
include::section1.txt[]
|
6932
6942
|
|
6933
|
-
|
6943
|
+
include::section2.txt[]
|
6934
6944
|
|
6935
|
-
|
6945
|
+
include::section3.txt[]</tt></pre>
|
6936
6946
|
</div></div>
|
6937
6947
|
<div class="paragraph"><p>You also want to process the section files as separate documents.
|
6938
6948
|
This is easy because <tt>asciidoc(1)</tt> will quite happily process
|
6939
|
-
<tt>section1.txt</tt>, <tt>section2.txt</tt> and <tt>section3.txt</tt> separately
|
6940
|
-
|
6941
|
-
|
6942
|
-
|
6949
|
+
<tt>section1.txt</tt>, <tt>section2.txt</tt> and <tt>section3.txt</tt> separately — the
|
6950
|
+
resulting output documents contain the section but have no document
|
6951
|
+
title.</p></div>
|
6952
|
+
<div class="paragraph"><p>Use the <tt>-s</tt> (<tt>--no-header-footer</tt>) command-line option to suppress
|
6953
|
+
header and footer output, this is useful if the processed output is to
|
6954
|
+
be included in another file. For example:</p></div>
|
6943
6955
|
<div class="literalblock">
|
6944
6956
|
<div class="content">
|
6945
|
-
<pre><tt>
|
6946
|
-
underlines="--","~~","^^","++","__"</tt></pre>
|
6957
|
+
<pre><tt>$ asciidoc -s -b docbook section1.txt</tt></pre>
|
6947
6958
|
</div></div>
|
6948
|
-
<
|
6949
|
-
is necessary to legitimize the underline definition.</p></div>
|
6950
|
-
<div class="paragraph"><p>This is just the reverse of the technique used for combining separate
|
6951
|
-
documents explained in the previous section.</p></div>
|
6952
|
-
<h3 id="_processing_document_chunks">33.7. Processing Document Chunks</h3><div style="clear:left"></div>
|
6959
|
+
<h3 id="_processing_document_snippets">33.7. Processing document snippets</h3><div style="clear:left"></div>
|
6953
6960
|
<div class="paragraph"><p><tt>asciidoc(1)</tt> can be used as a filter, so you can pipe chunks of text
|
6954
6961
|
through it. For example:</p></div>
|
6955
6962
|
<div class="literalblock">
|
6956
6963
|
<div class="content">
|
6957
6964
|
<pre><tt>$ echo 'Hello *World!*' | asciidoc -s -
|
6958
|
-
<div class="
|
6965
|
+
<div class="paragraph"><p>Hello <strong>World!</strong></p></div></tt></pre>
|
6959
6966
|
</div></div>
|
6960
|
-
<
|
6961
|
-
and footer output and is useful if the processed output is to be
|
6962
|
-
included in another file.</p></div>
|
6963
|
-
<h3 id="_badges_in_html_page_footers">33.8. Badges in HTML Page Footers</h3><div style="clear:left"></div>
|
6967
|
+
<h3 id="_badges_in_html_page_footers">33.8. Badges in HTML page footers</h3><div style="clear:left"></div>
|
6964
6968
|
<div class="paragraph"><p>See the <tt>[footer]</tt> section in the <em>AsciiDoc</em> distribution <tt>xhtml11.conf</tt>
|
6965
6969
|
configuration file.</p></div>
|
6966
|
-
<h3 id="_pretty_printing_asciidoc_output">33.9. Pretty
|
6970
|
+
<h3 id="_pretty_printing_asciidoc_output">33.9. Pretty printing AsciiDoc output</h3><div style="clear:left"></div>
|
6967
6971
|
<div class="paragraph"><p>If the indentation and layout of the <tt>asciidoc(1)</tt> output is not to your
|
6968
6972
|
liking you can:</p></div>
|
6969
|
-
<div class="olist"><ol>
|
6973
|
+
<div class="olist arabic"><ol class="arabic">
|
6970
6974
|
<li>
|
6971
6975
|
<p>
|
6972
6976
|
Change the indentation and layout of configuration file markup
|
@@ -6976,22 +6980,30 @@ Change the indentation and layout of configuration file markup
|
|
6976
6980
|
</li>
|
6977
6981
|
<li>
|
6978
6982
|
<p>
|
6979
|
-
|
6980
|
-
<tt>asciidoc(1)</tt> output. Example:
|
6983
|
+
Use Dave Raggett’s <a href="http://tidy.sourceforge.net/">HTML Tidy</a> program
|
6984
|
+
to tidy <tt>asciidoc(1)</tt> output. Example:
|
6981
6985
|
</p>
|
6982
6986
|
<div class="literalblock">
|
6983
6987
|
<div class="content">
|
6984
6988
|
<pre><tt>$ asciidoc -b docbook -o - mydoc.txt | tidy -indent -xml >mydoc.xml</tt></pre>
|
6985
6989
|
</div></div>
|
6986
6990
|
</li>
|
6991
|
+
<li>
|
6992
|
+
<p>
|
6993
|
+
Use the <tt>xmllint(1)</tt> format option. Example:
|
6994
|
+
</p>
|
6995
|
+
<div class="literalblock">
|
6996
|
+
<div class="content">
|
6997
|
+
<pre><tt>$ xmllint --format mydoc.xml</tt></pre>
|
6998
|
+
</div></div>
|
6999
|
+
</li>
|
6987
7000
|
</ol></div>
|
6988
|
-
<
|
6989
|
-
<h3 id="_supporting_minor_docbook_dtd_variations">33.10. Supporting Minor DocBook DTD Variations</h3><div style="clear:left"></div>
|
7001
|
+
<h3 id="_supporting_minor_docbook_dtd_variations">33.10. Supporting minor DocBook DTD variations</h3><div style="clear:left"></div>
|
6990
7002
|
<div class="paragraph"><p>The conditional inclusion of DocBook SGML markup at the end of the
|
6991
7003
|
distribution <tt>docbook.conf</tt> file illustrates how to support minor DTD
|
6992
7004
|
variations. The included sections override corresponding entries from
|
6993
7005
|
preceding sections.</p></div>
|
6994
|
-
<h3 id="_shipping_stand_alone_asciidoc_source">33.11. Shipping
|
7006
|
+
<h3 id="_shipping_stand_alone_asciidoc_source">33.11. Shipping stand-alone AsciiDoc source</h3><div style="clear:left"></div>
|
6995
7007
|
<div class="paragraph"><p>Reproducing presentation documents from someone else’s source has one
|
6996
7008
|
major problem: unless your configuration files are the same as the
|
6997
7009
|
creator’s you won’t get the same output.</p></div>
|
@@ -7016,12 +7028,12 @@ regenerate the HMTL output:</p></div>
|
|
7016
7028
|
<div class="paragraph"><p>The <tt>-e</tt> (<tt>--no-conf</tt>) option excludes the use of implicit
|
7017
7029
|
configuration files, ensuring that only entries from the
|
7018
7030
|
<tt>mydoc-html.conf</tt> configuration are used.</p></div>
|
7019
|
-
<h3 id="_inserting_blank_space">33.12. Inserting
|
7031
|
+
<h3 id="_inserting_blank_space">33.12. Inserting blank space</h3><div style="clear:left"></div>
|
7020
7032
|
<div class="paragraph"><p>Adjust your style sheets to add the correct separation between block
|
7021
7033
|
elements. Inserting blank paragraphs containing a single non-breaking
|
7022
7034
|
space character <tt>{nbsp}</tt> works but is an ad hoc solution compared
|
7023
7035
|
to using style sheets.</p></div>
|
7024
|
-
<h3 id="_closing_open_sections">33.13. Closing
|
7036
|
+
<h3 id="_closing_open_sections">33.13. Closing open sections</h3><div style="clear:left"></div>
|
7025
7037
|
<div class="paragraph"><p>You can close off section tags up to level <tt>N</tt> by calling the
|
7026
7038
|
<tt>eval::[Section.setlevel(N)]</tt> system macro. This is useful if you
|
7027
7039
|
want to include a section composed of raw markup. The following
|
@@ -7029,21 +7041,21 @@ example includes a DocBook glossary division at the top section level
|
|
7029
7041
|
(level 0):</p></div>
|
7030
7042
|
<div class="listingblock">
|
7031
7043
|
<div class="content">
|
7032
|
-
<pre><tt>
|
7044
|
+
<pre><tt>ifdef::backend-docbook[]
|
7033
7045
|
|
7034
|
-
|
7046
|
+
eval::[Section.setlevel(0)]
|
7035
7047
|
|
7036
|
-
|
7037
|
-
|
7038
|
-
|
7039
|
-
|
7040
|
-
|
7041
|
-
|
7042
|
-
|
7043
|
-
|
7044
|
-
|
7045
|
-
</div></div>
|
7046
|
-
<h3 id="_validating_output_files">33.14. Validating
|
7048
|
+
+++++++++++++++++++++++++++++++
|
7049
|
+
<glossary>
|
7050
|
+
<title>Glossary</title>
|
7051
|
+
<glossdiv>
|
7052
|
+
...
|
7053
|
+
</glossdiv>
|
7054
|
+
</glossary>
|
7055
|
+
+++++++++++++++++++++++++++++++
|
7056
|
+
endif::backend-docbook[]</tt></pre>
|
7057
|
+
</div></div>
|
7058
|
+
<h3 id="_validating_output_files">33.14. Validating output files</h3><div style="clear:left"></div>
|
7047
7059
|
<div class="paragraph"><p>Use <tt>xmllint(1)</tt> to check the <em>AsciiDoc</em> generated markup is both well
|
7048
7060
|
formed and valid. Here are some examples:</p></div>
|
7049
7061
|
<div class="literalblock">
|
@@ -7164,7 +7176,7 @@ inclusion of arbitrary files.</p></div>
|
|
7164
7176
|
</li>
|
7165
7177
|
<li>
|
7166
7178
|
<p>
|
7167
|
-
<tt
|
7179
|
+
<tt>include::<filename>[]</tt> and <tt>\include1::<filename>[]</tt> block macro
|
7168
7180
|
files must reside inside the parent file’s directory.
|
7169
7181
|
</p>
|
7170
7182
|
</li>
|
@@ -7188,7 +7200,7 @@ Passthrough Blocks are dropped.
|
|
7188
7200
|
<td class="content">
|
7189
7201
|
<div class="paragraph"><p>The safe mode is not designed to protect against unsafe <em>AsciiDoc</em>
|
7190
7202
|
configuration files. Be especially careful when:</p></div>
|
7191
|
-
<div class="olist"><ol>
|
7203
|
+
<div class="olist arabic"><ol class="arabic">
|
7192
7204
|
<li>
|
7193
7205
|
<p>
|
7194
7206
|
Implementing filters.
|
@@ -7419,8 +7431,8 @@ width of the page irrespective of the current indentation.</p></td>
|
|
7419
7431
|
</div>
|
7420
7432
|
<div id="footer">
|
7421
7433
|
<div id="footer-text">
|
7422
|
-
Version 8.3.
|
7423
|
-
Last updated
|
7434
|
+
Version 8.3.3<br />
|
7435
|
+
Last updated 2009-01-02 13:16:12 NZDT
|
7424
7436
|
</div>
|
7425
7437
|
<div id="footer-badges">
|
7426
7438
|
<a href="http://validator.w3.org/check?uri=referer">
|