mizuho 0.9.6 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (222) hide show
  1. data/README.markdown +4 -2
  2. data/Rakefile +0 -37
  3. data/asciidoc/BUGS +9 -18
  4. data/asciidoc/BUGS.txt +5 -14
  5. data/asciidoc/CHANGELOG +1433 -266
  6. data/asciidoc/CHANGELOG.txt +2821 -1810
  7. data/asciidoc/COPYING +339 -339
  8. data/asciidoc/COPYRIGHT +18 -18
  9. data/asciidoc/INSTALL +189 -30
  10. data/asciidoc/INSTALL.txt +175 -19
  11. data/asciidoc/MANIFEST +88 -0
  12. data/asciidoc/Makefile.in +29 -13
  13. data/asciidoc/README +16 -17
  14. data/asciidoc/README.txt +35 -36
  15. data/asciidoc/a2x.py +902 -0
  16. data/asciidoc/asciidoc.conf +610 -455
  17. data/asciidoc/asciidoc.py +1965 -1061
  18. data/asciidoc/asciidocapi.py +257 -0
  19. data/asciidoc/common.aap +2 -2
  20. data/asciidoc/configure +1170 -1023
  21. data/asciidoc/configure.ac +1 -1
  22. data/asciidoc/dblatex/asciidoc-dblatex.xsl +42 -0
  23. data/asciidoc/doc/a2x.1 +559 -102
  24. data/asciidoc/doc/a2x.1.txt +233 -91
  25. data/asciidoc/doc/article-docinfo.xml +87 -0
  26. data/asciidoc/doc/article.pdf +0 -0
  27. data/asciidoc/doc/article.txt +139 -122
  28. data/asciidoc/doc/asciidoc.1 +157 -46
  29. data/asciidoc/doc/asciidoc.1.txt +171 -118
  30. data/asciidoc/doc/asciidoc.conf +7 -8
  31. data/asciidoc/doc/asciidoc.dict +960 -635
  32. data/asciidoc/doc/asciidoc.txt +2335 -1464
  33. data/asciidoc/doc/asciidocapi.txt +189 -0
  34. data/asciidoc/doc/asciimathml.txt +14 -17
  35. data/asciidoc/doc/book-multi.txt +181 -155
  36. data/asciidoc/doc/book.epub +0 -0
  37. data/asciidoc/doc/book.txt +156 -131
  38. data/asciidoc/doc/customers.csv +18 -18
  39. data/asciidoc/doc/epub-notes.txt +210 -0
  40. data/asciidoc/doc/faq.txt +1122 -547
  41. data/asciidoc/doc/latex-backend.txt +192 -191
  42. data/asciidoc/doc/latex-bugs.txt +134 -0
  43. data/asciidoc/doc/latex-filter.pdf +0 -0
  44. data/asciidoc/doc/latex-filter.txt +196 -0
  45. data/asciidoc/doc/latexmath.txt +13 -136
  46. data/asciidoc/doc/latexmathml.txt +2 -2
  47. data/asciidoc/doc/main.aap +233 -297
  48. data/asciidoc/doc/music-filter.pdf +0 -0
  49. data/asciidoc/doc/music-filter.txt +55 -65
  50. data/asciidoc/doc/publishing-ebooks-with-asciidoc.txt +398 -0
  51. data/asciidoc/doc/slidy-example.txt +167 -0
  52. data/asciidoc/doc/slidy.txt +113 -0
  53. data/asciidoc/doc/source-highlight-filter.pdf +0 -0
  54. data/asciidoc/doc/source-highlight-filter.txt +45 -20
  55. data/asciidoc/doc/testasciidoc.txt +231 -0
  56. data/asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt +30 -8
  57. data/asciidoc/docbook-xsl/chunked.xsl +17 -19
  58. data/asciidoc/docbook-xsl/common.xsl +106 -67
  59. data/asciidoc/docbook-xsl/epub.xsl +35 -0
  60. data/asciidoc/docbook-xsl/fo.xsl +3 -0
  61. data/asciidoc/docbook-xsl/htmlhelp.xsl +16 -17
  62. data/asciidoc/docbook-xsl/manpage.xsl +31 -31
  63. data/asciidoc/docbook-xsl/text.xsl +6 -1
  64. data/asciidoc/docbook-xsl/xhtml.xsl +14 -14
  65. data/asciidoc/docbook45.conf +759 -0
  66. data/asciidoc/filters/code/code-filter-readme.txt +37 -37
  67. data/asciidoc/filters/code/code-filter-test.txt +15 -15
  68. data/asciidoc/filters/code/code-filter.conf +8 -8
  69. data/asciidoc/filters/graphviz/asciidoc-graphviz-sample.txt +104 -64
  70. data/asciidoc/filters/graphviz/graphviz-filter.conf +20 -16
  71. data/asciidoc/filters/graphviz/graphviz2png.py +54 -39
  72. data/asciidoc/filters/latex/latex-filter.conf +18 -0
  73. data/asciidoc/filters/latex/latex2png.py +216 -0
  74. data/asciidoc/filters/music/music-filter.conf +8 -17
  75. data/asciidoc/filters/music/music2png.py +40 -32
  76. data/asciidoc/filters/source/source-highlight-filter.conf +40 -34
  77. data/asciidoc/help.conf +261 -96
  78. data/asciidoc/html4.conf +505 -460
  79. data/asciidoc/html5.conf +686 -0
  80. data/asciidoc/images/highlighter.png +0 -0
  81. data/asciidoc/images/icons/caution.png +0 -0
  82. data/asciidoc/images/icons/example.png +0 -0
  83. data/asciidoc/images/icons/important.png +0 -0
  84. data/asciidoc/images/icons/note.png +0 -0
  85. data/asciidoc/images/icons/tip.png +0 -0
  86. data/asciidoc/images/icons/warning.png +0 -0
  87. data/asciidoc/images/smallnew.png +0 -0
  88. data/asciidoc/javascripts/asciidoc.js +189 -0
  89. data/asciidoc/javascripts/slidy.js +2845 -0
  90. data/asciidoc/javascripts/toc.js +8 -0
  91. data/asciidoc/lang-de.conf +57 -0
  92. data/asciidoc/lang-en.conf +54 -0
  93. data/asciidoc/lang-es.conf +49 -9
  94. data/asciidoc/lang-fr.conf +59 -0
  95. data/asciidoc/lang-hu.conf +55 -0
  96. data/asciidoc/lang-it.conf +55 -0
  97. data/asciidoc/lang-nl.conf +57 -0
  98. data/asciidoc/lang-pt-BR.conf +56 -0
  99. data/asciidoc/lang-ru.conf +60 -0
  100. data/asciidoc/lang-uk.conf +60 -0
  101. data/asciidoc/latex.conf +700 -663
  102. data/asciidoc/main.aap +77 -0
  103. data/asciidoc/slidy.conf +136 -0
  104. data/asciidoc/{examples/website/xhtml11-manpage.css → stylesheets/asciidoc-manpage.css} +1 -1
  105. data/asciidoc/stylesheets/asciidoc.css +508 -0
  106. data/asciidoc/stylesheets/docbook-xsl.css +322 -272
  107. data/asciidoc/stylesheets/flask-manpage.css +1 -0
  108. data/asciidoc/stylesheets/flask.css +584 -0
  109. data/asciidoc/stylesheets/pygments.css +66 -0
  110. data/asciidoc/stylesheets/slidy.css +445 -0
  111. data/asciidoc/stylesheets/toc2.css +33 -0
  112. data/asciidoc/stylesheets/volnitsky-manpage.css +1 -0
  113. data/asciidoc/stylesheets/volnitsky.css +435 -0
  114. data/asciidoc/stylesheets/xhtml11-quirks.css +5 -3
  115. data/asciidoc/tests/asciidocapi.py +257 -0
  116. data/asciidoc/tests/data/deprecated-quotes.txt +12 -0
  117. data/asciidoc/tests/data/filters-test.txt +90 -0
  118. data/asciidoc/tests/data/lang-de-test.txt +106 -0
  119. data/asciidoc/tests/data/lang-en-test.txt +114 -0
  120. data/asciidoc/tests/data/lang-es-test.txt +106 -0
  121. data/asciidoc/tests/data/lang-fr-test.txt +106 -0
  122. data/asciidoc/tests/data/lang-hu-test.txt +106 -0
  123. data/asciidoc/tests/data/lang-nl-test.txt +94 -0
  124. data/asciidoc/tests/data/lang-pt-BR-test.txt +106 -0
  125. data/asciidoc/tests/data/lang-ru-test.txt +106 -0
  126. data/asciidoc/tests/data/lang-uk-test.txt +106 -0
  127. data/asciidoc/tests/data/oldtables.txt +64 -0
  128. data/asciidoc/tests/data/rcs-id-marker-test.txt +6 -0
  129. data/asciidoc/tests/data/testcases.conf +2 -0
  130. data/asciidoc/tests/data/testcases.txt +740 -0
  131. data/asciidoc/tests/data/utf8-bom-test.txt +9 -0
  132. data/asciidoc/tests/data/utf8-examples.txt +217 -0
  133. data/asciidoc/tests/testasciidoc.conf +520 -0
  134. data/asciidoc/tests/testasciidoc.py +411 -0
  135. data/asciidoc/text.conf +16 -16
  136. data/asciidoc/vim/syntax/asciidoc.vim +99 -91
  137. data/asciidoc/wordpress.conf +43 -3
  138. data/asciidoc/xhtml11-quirks.conf +61 -57
  139. data/asciidoc/xhtml11.conf +684 -645
  140. data/lib/mizuho.rb +2 -0
  141. data/lib/mizuho/generator.rb +2 -2
  142. data/test/generator_spec.rb +1 -1
  143. data/test/parser_spec.rb +1 -1
  144. data/test/spec_helper.rb +3 -4
  145. metadata +87 -88
  146. data/asciidoc/a2x +0 -674
  147. data/asciidoc/doc/article.css-embedded.html +0 -602
  148. data/asciidoc/doc/article.html +0 -46
  149. data/asciidoc/doc/asciidoc-revhistory.xml +0 -27
  150. data/asciidoc/doc/asciidoc.1.css-embedded.html +0 -598
  151. data/asciidoc/doc/asciidoc.1.css.html +0 -212
  152. data/asciidoc/doc/asciidoc.1.html +0 -190
  153. data/asciidoc/doc/asciidoc.css-embedded.html +0 -7853
  154. data/asciidoc/doc/asciidoc.css.html +0 -7416
  155. data/asciidoc/doc/asciidoc.html +0 -3339
  156. data/asciidoc/doc/book-multi.css-embedded.html +0 -575
  157. data/asciidoc/doc/book-multi.html +0 -55
  158. data/asciidoc/doc/book.css-embedded.html +0 -607
  159. data/asciidoc/doc/book.html +0 -43
  160. data/asciidoc/doc/docbook-xsl.css +0 -272
  161. data/asciidoc/doc/latex-backend.html +0 -117
  162. data/asciidoc/doc/music-filter.html +0 -566
  163. data/asciidoc/doc/source-highlight-filter.html +0 -214
  164. data/asciidoc/docbook.conf +0 -721
  165. data/asciidoc/examples/website/ASCIIMathML.js +0 -938
  166. data/asciidoc/examples/website/CHANGELOG.html +0 -4389
  167. data/asciidoc/examples/website/CHANGELOG.txt +0 -1810
  168. data/asciidoc/examples/website/INSTALL.html +0 -161
  169. data/asciidoc/examples/website/INSTALL.txt +0 -71
  170. data/asciidoc/examples/website/LaTeXMathML.js +0 -1223
  171. data/asciidoc/examples/website/README-website.html +0 -118
  172. data/asciidoc/examples/website/README-website.txt +0 -29
  173. data/asciidoc/examples/website/README.html +0 -125
  174. data/asciidoc/examples/website/README.txt +0 -36
  175. data/asciidoc/examples/website/a2x.1.html +0 -419
  176. data/asciidoc/examples/website/a2x.1.txt +0 -204
  177. data/asciidoc/examples/website/asciidoc-docbook-xsl.html +0 -130
  178. data/asciidoc/examples/website/asciidoc-docbook-xsl.txt +0 -43
  179. data/asciidoc/examples/website/asciidoc-graphviz-sample.txt +0 -130
  180. data/asciidoc/examples/website/asciimathml.txt +0 -64
  181. data/asciidoc/examples/website/build-website.sh +0 -25
  182. data/asciidoc/examples/website/customers.csv +0 -18
  183. data/asciidoc/examples/website/downloads.html +0 -257
  184. data/asciidoc/examples/website/downloads.txt +0 -121
  185. data/asciidoc/examples/website/faq.html +0 -673
  186. data/asciidoc/examples/website/faq.txt +0 -547
  187. data/asciidoc/examples/website/index.html +0 -419
  188. data/asciidoc/examples/website/index.txt +0 -245
  189. data/asciidoc/examples/website/latex-backend.html +0 -535
  190. data/asciidoc/examples/website/latex-backend.txt +0 -191
  191. data/asciidoc/examples/website/latexmathml.txt +0 -41
  192. data/asciidoc/examples/website/layout1.conf +0 -161
  193. data/asciidoc/examples/website/layout1.css +0 -65
  194. data/asciidoc/examples/website/layout2.conf +0 -158
  195. data/asciidoc/examples/website/layout2.css +0 -93
  196. data/asciidoc/examples/website/manpage.html +0 -266
  197. data/asciidoc/examples/website/manpage.txt +0 -118
  198. data/asciidoc/examples/website/music-filter.html +0 -242
  199. data/asciidoc/examples/website/music-filter.txt +0 -158
  200. data/asciidoc/examples/website/music1.abc +0 -12
  201. data/asciidoc/examples/website/music1.png +0 -0
  202. data/asciidoc/examples/website/music2.ly +0 -9
  203. data/asciidoc/examples/website/music2.png +0 -0
  204. data/asciidoc/examples/website/newlists.txt +0 -40
  205. data/asciidoc/examples/website/newtables.txt +0 -397
  206. data/asciidoc/examples/website/sample1.png +0 -0
  207. data/asciidoc/examples/website/sample3.png +0 -0
  208. data/asciidoc/examples/website/sample4.png +0 -0
  209. data/asciidoc/examples/website/source-highlight-filter.html +0 -286
  210. data/asciidoc/examples/website/source-highlight-filter.txt +0 -203
  211. data/asciidoc/examples/website/support.html +0 -78
  212. data/asciidoc/examples/website/support.txt +0 -5
  213. data/asciidoc/examples/website/toc.js +0 -69
  214. data/asciidoc/examples/website/userguide.html +0 -7460
  215. data/asciidoc/examples/website/userguide.txt +0 -4979
  216. data/asciidoc/examples/website/version83.txt +0 -37
  217. data/asciidoc/examples/website/version9.html +0 -143
  218. data/asciidoc/examples/website/version9.txt +0 -48
  219. data/asciidoc/examples/website/xhtml11-quirks.css +0 -41
  220. data/asciidoc/examples/website/xhtml11.css +0 -328
  221. data/asciidoc/stylesheets/xhtml11-manpage.css +0 -18
  222. data/asciidoc/stylesheets/xhtml11.css +0 -328
@@ -1,214 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <meta name="generator" content="AsciiDoc 8.3.2">
6
- <title>Source Code Highlight Filter</title>
7
- </head>
8
- <body>
9
- <h1>Source Code Highlight Filter</h1>
10
- <p>
11
- </p>
12
- <p>The <em>AsciiDoc</em> distribution includes a source code syntax highlight
13
- filter (<tt>source-highlight-filter.conf</tt>). It uses
14
- <a href="http://www.gnu.org/software/src-highlite/">GNU source-highlight</a> to
15
- highlight HTML outputs; DocBook outputs are highlighted by toolchains
16
- that have <tt>programlisting</tt> element highlight support, for example
17
- <em>dblatex</em>.</p>
18
- <p><b>Tip:</b> If the source <em>language</em> attribute has been set (using an
19
- <em>AttributeEntry</em> or from the command-line) you don&#8217;t have to specify
20
- it in each source code block.</p>
21
- <hr />
22
- <h2><a name="_examples"></a>Examples</h2>
23
- <h3><a name="_source_code_paragraphs"></a>Source code paragraphs</h3>
24
- <p>The <tt>source</tt> paragraph style will highlight a paragraph of source
25
- code. These three code paragraphs:</p>
26
- <table border="0" bgcolor="#e8e8e8" width="100%" cellpadding="10"><tr><td>
27
- <pre>[source,python]
28
- if n &lt; 0: print 'Hello World!'
29
-
30
- :language: python
31
-
32
- [source]
33
- if n &lt; 0: print 'Hello World!'
34
-
35
- [source,ruby,numbered]
36
- [true, false].cycle([0, 1, 2, 3, 4]) do |a, b|
37
- puts "#{a.inspect} =&gt; #{b.inspect}"</pre>
38
- </td></tr></table>
39
- <p>Render this highlighted source code:</p>
40
- <!-- Generator: GNU source-highlight 2.4
41
- by Lorenzo Bettini
42
- http://www.lorenzobettini.it
43
- http://www.gnu.org/software/src-highlite -->
44
- <pre><tt><b><font color="#0000FF">if</font></b> n <font color="#990000">&lt;</font> <font color="#993399">0</font><font color="#990000">:</font> <b><font color="#0000FF">print</font></b> <font color="#FF0000">'Hello World!'</font></tt></pre>
45
- <!-- Generator: GNU source-highlight 2.4
46
- by Lorenzo Bettini
47
- http://www.lorenzobettini.it
48
- http://www.gnu.org/software/src-highlite -->
49
- <pre><tt><b><font color="#0000FF">if</font></b> n <font color="#990000">&lt;</font> <font color="#993399">0</font><font color="#990000">:</font> <b><font color="#0000FF">print</font></b> <font color="#FF0000">'Hello World!'</font></tt></pre>
50
- <!-- Generator: GNU source-highlight 2.4
51
- by Lorenzo Bettini
52
- http://www.lorenzobettini.it
53
- http://www.gnu.org/software/src-highlite -->
54
- <pre><tt><font color="#000000">00001:</font> <font color="#990000">[</font><b><font color="#0000FF">true</font></b><font color="#990000">,</font> <b><font color="#0000FF">false</font></b><font color="#990000">].</font><b><font color="#000000">cycle</font></b><font color="#990000">([</font><font color="#993399">0</font><font color="#990000">,</font> <font color="#993399">1</font><font color="#990000">,</font> <font color="#993399">2</font><font color="#990000">,</font> <font color="#993399">3</font><font color="#990000">,</font> <font color="#993399">4</font><font color="#990000">])</font> <b><font color="#0000FF">do</font></b> <font color="#990000">|</font>a<font color="#990000">,</font> b<font color="#990000">|</font>
55
- <font color="#000000">00002:</font> puts <font color="#FF0000">"#{a.inspect} =&gt; #{b.inspect}"</font></tt></pre>
56
- <h3><a name="_unnumbered_source_code_listing"></a>Unnumbered source code listing</h3>
57
- <p>This source-highlight filtered block:</p>
58
- <table border="0" bgcolor="#e8e8e8" width="100%" cellpadding="10"><tr><td>
59
- <pre> [source,python]
60
- ---------------------------------------------------------------------
61
- ''' A multi-line
62
- comment.'''
63
- def sub_word(mo):
64
- ''' Single line comment.'''
65
- word = mo.group('word') # Inline comment
66
- if word in keywords[language]:
67
- return quote + word + quote
68
- else:
69
- return word
70
- ---------------------------------------------------------------------</pre>
71
- </td></tr></table>
72
- <p>Renders this highlighted source code:</p>
73
- <table border="0" bgcolor="#e8e8e8" width="100%" cellpadding="10"><tr><td><!-- Generator: GNU source-highlight 2.4
74
- by Lorenzo Bettini
75
- http://www.lorenzobettini.it
76
- http://www.gnu.org/software/src-highlite -->
77
- <pre><tt><i><font color="#9A1900">''' A multi-line</font></i>
78
- <i><font color="#9A1900"> comment.'''</font></i>
79
- <b><font color="#0000FF">def</font></b> <b><font color="#000000">sub_word</font></b><font color="#990000">(</font>mo<font color="#990000">):</font>
80
- <i><font color="#9A1900"> ''' Single line comment.'''</font></i>
81
- word <font color="#990000">=</font> mo<font color="#990000">.</font><b><font color="#000000">group</font></b><font color="#990000">(</font><font color="#FF0000">'word'</font><font color="#990000">)</font> <i><font color="#9A1900"># Inline comment</font></i>
82
- <b><font color="#0000FF">if</font></b> word <b><font color="#0000FF">in</font></b> keywords<font color="#990000">[</font>language<font color="#990000">]:</font>
83
- <b><font color="#0000FF">return</font></b> quote <font color="#990000">+</font> word <font color="#990000">+</font> quote
84
- <b><font color="#0000FF">else</font></b><font color="#990000">:</font>
85
- <b><font color="#0000FF">return</font></b> word</tt></pre></td></tr></table>
86
- <h3><a name="_numbered_source_code_listing_with_callouts"></a>Numbered source code listing with callouts</h3>
87
- <p>This source-highlight filtered block:</p>
88
- <table border="0" bgcolor="#e8e8e8" width="100%" cellpadding="10"><tr><td>
89
- <pre> [source,ruby,numbered]
90
- ---------------------------------------------------------------------
91
- #
92
- # Useful Ruby base class extensions.
93
- #
94
-
95
- class Array
96
-
97
- # Execute a block passing it corresponding items in
98
- # +self+ and +other_array+.
99
- # If self has less items than other_array it is repeated.
100
-
101
- def cycle(other_array) # :yields: item, other_item
102
- other_array.each_with_index do |item, index|
103
- yield(self[index % self.length], item)
104
- end
105
- end
106
-
107
- end
108
-
109
- if $0 == __FILE__ &lt;1&gt;
110
- # Array#cycle test
111
- # true =&gt; 0
112
- # false =&gt; 1
113
- # true =&gt; 2
114
- # false =&gt; 3
115
- # true =&gt; 4
116
- puts 'Array#cycle test' &lt;2&gt;
117
- [true, false].cycle([0, 1, 2, 3, 4]) do |a, b|
118
- puts "#{a.inspect} =&gt; #{b.inspect}"
119
- end
120
- end
121
- ---------------------------------------------------------------------
122
-
123
- &lt;1&gt; First callout.
124
- &lt;2&gt; Second callout.</pre>
125
- </td></tr></table>
126
- <p>Renders this highlighted source code:</p>
127
- <table border="0" bgcolor="#e8e8e8" width="100%" cellpadding="10"><tr><td><!-- Generator: GNU source-highlight 2.4
128
- by Lorenzo Bettini
129
- http://www.lorenzobettini.it
130
- http://www.gnu.org/software/src-highlite -->
131
- <pre><tt><font color="#000000">00001:</font> <i><font color="#9A1900">#</font></i>
132
- <font color="#000000">00002:</font> <i><font color="#9A1900"># Useful Ruby base class extensions.</font></i>
133
- <font color="#000000">00003:</font> <i><font color="#9A1900">#</font></i>
134
- <font color="#000000">00004:</font>
135
- <font color="#000000">00005:</font> <b><font color="#0000FF">class</font></b> Array
136
- <font color="#000000">00006:</font>
137
- <font color="#000000">00007:</font> <i><font color="#9A1900"># Execute a block passing it corresponding items in</font></i>
138
- <font color="#000000">00008:</font> <i><font color="#9A1900"># +self+ and +other_array+.</font></i>
139
- <font color="#000000">00009:</font> <i><font color="#9A1900"># If self has less items than other_array it is repeated.</font></i>
140
- <font color="#000000">00010:</font>
141
- <font color="#000000">00011:</font> <b><font color="#0000FF">def</font></b> <b><font color="#000000">cycle</font></b><font color="#990000">(</font>other_array<font color="#990000">)</font> <i><font color="#9A1900"># :yields: item, other_item</font></i>
142
- <font color="#000000">00012:</font> other_array<font color="#990000">.</font>each_with_index <b><font color="#0000FF">do</font></b> <font color="#990000">|</font>item<font color="#990000">,</font> index<font color="#990000">|</font>
143
- <font color="#000000">00013:</font> <b><font color="#0000FF">yield</font></b><font color="#990000">(</font><b><font color="#0000FF">self</font></b><font color="#990000">[</font>index <font color="#990000">%</font> <b><font color="#0000FF">self</font></b><font color="#990000">.</font>length<font color="#990000">],</font> item<font color="#990000">)</font>
144
- <font color="#000000">00014:</font> <b><font color="#0000FF">end</font></b>
145
- <font color="#000000">00015:</font> <b><font color="#0000FF">end</font></b>
146
- <font color="#000000">00016:</font>
147
- <font color="#000000">00017:</font> <b><font color="#0000FF">end</font></b>
148
- <font color="#000000">00018:</font>
149
- <font color="#000000">00019:</font> <b><font color="#0000FF">if</font></b> <font color="#009900">$0</font> <font color="#990000">==</font> <b><font color="#0000FF">__FILE__</font></b> <font color="#FF0000"><b>&lt;1&gt;</b></font>
150
- <font color="#000000">00020:</font> <i><font color="#9A1900"># Array#cycle test</font></i>
151
- <font color="#000000">00021:</font> <i><font color="#9A1900"># true =&gt; 0</font></i>
152
- <font color="#000000">00022:</font> <i><font color="#9A1900"># false =&gt; 1</font></i>
153
- <font color="#000000">00023:</font> <i><font color="#9A1900"># true =&gt; 2</font></i>
154
- <font color="#000000">00024:</font> <i><font color="#9A1900"># false =&gt; 3</font></i>
155
- <font color="#000000">00025:</font> <i><font color="#9A1900"># true =&gt; 4</font></i>
156
- <font color="#000000">00026:</font> puts <font color="#FF0000">'Array#cycle test'</font> <font color="#FF0000"><b>&lt;2&gt;</b></font>
157
- <font color="#000000">00027:</font> <font color="#990000">[</font><b><font color="#0000FF">true</font></b><font color="#990000">,</font> <b><font color="#0000FF">false</font></b><font color="#990000">].</font><b><font color="#000000">cycle</font></b><font color="#990000">([</font><font color="#993399">0</font><font color="#990000">,</font> <font color="#993399">1</font><font color="#990000">,</font> <font color="#993399">2</font><font color="#990000">,</font> <font color="#993399">3</font><font color="#990000">,</font> <font color="#993399">4</font><font color="#990000">])</font> <b><font color="#0000FF">do</font></b> <font color="#990000">|</font>a<font color="#990000">,</font> b<font color="#990000">|</font>
158
- <font color="#000000">00028:</font> puts <font color="#FF0000">"#{a.inspect} =&gt; #{b.inspect}"</font>
159
- <font color="#000000">00029:</font> <b><font color="#0000FF">end</font></b>
160
- <font color="#000000">00030:</font> <b><font color="#0000FF">end</font></b></tt></pre></td></tr></table>
161
- <ol>
162
- <li>
163
- <p>
164
- First callout.
165
- </p>
166
- </li>
167
- <li>
168
- <p>
169
- Second callout.
170
- </p>
171
- </li>
172
- </ol>
173
- <hr />
174
- <h2><a name="_installation"></a>Installation</h2>
175
- <h3><a name="_html"></a>HTML</h3>
176
- <p>If you want to syntax highlight <em>AsciiDoc</em> HTML outputs (<tt>html4</tt> and
177
- <tt>xhtml11</tt> backends) you need to
178
- install <a href="http://www.gnu.org/software/src-highlite/">GNU
179
- source-highlight</a> (most distributions have this package).</p>
180
- <h3><a name="_docbook"></a>DocBook</h3>
181
- <p><em>AsciiDoc</em> encloses the source code in a DocBook <em>programlisting</em>
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:</p>
185
- <ol type="1">
186
- <li>
187
- <p>
188
- The <em>language</em> attribute is set to the <em>AsciiDoc</em> <em>language</em>
189
- attribute.
190
- </p>
191
- </li>
192
- <li>
193
- <p>
194
- The <em>linenumbering</em> attribute is set to the <em>AsciiDoc</em> <em>src_numbered</em>
195
- attribute (<em>numbered</em> or <em>unnumbered</em>).
196
- </p>
197
- </li>
198
- </ol>
199
- <p>If you use <tt><tt>a2x(1)</tt></tt> to generate PDF you need to include the
200
- <tt>--no-xmllint</tt> option to suppress <tt>xmllint(1)</tt> checking&#8201;&#8212;&#8201;the
201
- programlisting <em>language</em> attribute (required by the dblatex source
202
- highlighter) is not part of the DocBook 4 specification (but it is in
203
- the newer DocBook 5 specification).</p>
204
- <h3><a name="_testing"></a>Testing</h3>
205
- <p>Test the filter by converting the test file to HTML with <em>AsciiDoc</em>:</p>
206
- <pre>$ asciidoc -v ./filters/source-highlight-filter-test.txt
207
- $ firefox ./filters/source-highlight-filter-test.html &amp;</pre>
208
- <p></p>
209
- <p></p>
210
- <hr /><p><small>
211
- Last updated 2009-01-01 12:22:58 NZDT
212
- </small></p>
213
- </body>
214
- </html>
@@ -1,721 +0,0 @@
1
- #
2
- # docbook.conf
3
- #
4
- # Asciidoc configuration file.
5
- # Default docbook backend.
6
- #
7
-
8
- [miscellaneous]
9
- outfilesuffix=.xml
10
- # Printable page width in pts.
11
- pagewidth=425
12
- pageunits=pt
13
-
14
- [attributes]
15
- basebackend=docbook
16
- basebackend-docbook=
17
-
18
- [replacements]
19
- # Line break markup. Custom processing instruction in fo.xsl.
20
- (?m)^(.*)\s\+$=\1<?asciidoc-br?>
21
- ifdef::asciidoc7compatible[]
22
- # Superscripts.
23
- \^(.+?)\^=<superscript>\1</superscript>
24
- # Subscripts.
25
- ~(.+?)~=<subscript>\1</subscript>
26
- endif::asciidoc7compatible[]
27
-
28
- [ruler-blockmacro]
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>
63
-
64
- [image-inlinemacro]
65
- <inlinemediaobject>
66
- <imageobject>
67
- <imagedata fileref="{imagesdir=}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}/>
68
- </imageobject>
69
- <textobject><phrase>{1={target}}</phrase></textobject>
70
- </inlinemediaobject>
71
-
72
- [image-blockmacro]
73
- <figure{id? id="{id}"}{pgwide-option? pgwide="1"}><title>{title}</title>
74
- {title%}<informalfigure{id? id="{id}"}>{pgwide-option?<?dbfo pgwide="1"?>}
75
- <mediaobject>
76
- <imageobject>
77
- <imagedata fileref="{imagesdir=}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}{scaledwidth? width="{scaledwidth}" scalefit="1"}{align? align="{align}"}/>
78
- </imageobject>
79
- <textobject><phrase>{1={target}}</phrase></textobject>
80
- </mediaobject>
81
- {title#}</figure>
82
- {title%}</informalfigure>
83
-
84
- [indexterm-inlinemacro]
85
- # Index term.
86
- # Generate separate index entries for primary, secondary and tertiary
87
- # descriptions.
88
- # Primary only.
89
- {2%}<indexterm>
90
- {2%} <primary>{1}</primary>
91
- {2%}</indexterm>
92
- # Primary and secondary.
93
- {2#}{3%}<indexterm>
94
- {2#}{3%} <primary>{1}</primary><secondary>{2}</secondary>
95
- {2#}{3%}</indexterm>
96
- {2#}{3%}<indexterm>
97
- {2#}{3%} <primary>{2}</primary>
98
- {2#}{3%}</indexterm>
99
- # Primary, secondary and tertiary.
100
- {3#}<indexterm>
101
- <primary>{1}</primary><secondary>{2}</secondary><tertiary>{3}</tertiary>
102
- {3#}</indexterm>
103
- {3#}<indexterm>
104
- <primary>{2}</primary><secondary>{3}</secondary>
105
- {3#}</indexterm>
106
- {3#}<indexterm>
107
- <primary>{3}</primary>
108
- {3#}</indexterm>
109
-
110
- [indexterm2-inlinemacro]
111
- # Index term.
112
- # Single entry index term that is visible in the primary text flow.
113
- <indexterm><primary>{1}</primary></indexterm>{1}
114
-
115
- [footnote-inlinemacro]
116
- # Footnote.
117
- <footnote><simpara>{0}</simpara></footnote>
118
-
119
- [footnoteref-inlinemacro]
120
- # Footnote reference.
121
- {2#}<footnote id="{1}"><simpara>{2}</simpara></footnote>
122
- {2%}<footnoteref linkend="{1}" />
123
-
124
- [callout-inlinemacro]
125
- # Callout.
126
- <co id="{coid}"/>
127
-
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}"} numeration="{style}"{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="{style}"{compact-option? spacing="compact"}>{title?<title>{title}</title>}|</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]
153
- # Horizontal labeled list (implemented with two column table).
154
- # Hardwired column widths to 30%,70% because the current crop of PDF
155
- # generators do not auto calculate column widths.
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>
188
-
189
- [tags]
190
- # Quoted text
191
- emphasis=<emphasis>|</emphasis>
192
- strong=<emphasis role="strong">|</emphasis>
193
- monospaced=<literal>|</literal>
194
- singlequoted={amp}#8216;|{amp}#8217;
195
- doublequoted={amp}#8220;|{amp}#8221;
196
- unquoted=
197
- subscript=<subscript>|</subscript>
198
- superscript=<superscript>|</superscript>
199
-
200
- # Inline macros
201
- [http-inlinemacro]
202
- <ulink url="{name}:{target}">{0={name}:{target}}</ulink>
203
- [https-inlinemacro]
204
- <ulink url="{name}:{target}">{0={name}:{target}}</ulink>
205
- [ftp-inlinemacro]
206
- <ulink url="{name}:{target}">{0={name}:{target}}</ulink>
207
- [file-inlinemacro]
208
- <ulink url="{name}:{target}">{0={name}:{target}}</ulink>
209
- [irc-inlinemacro]
210
- <ulink url="{name}:{target}">{0={name}:{target}}</ulink>
211
- [mailto-inlinemacro]
212
- <ulink url="mailto:{target}">{0={target}}</ulink>
213
- [callto-inlinemacro]
214
- <ulink url="{name}:{target}">{0={target}}</ulink>
215
- [link-inlinemacro]
216
- <ulink url="{target}">{0={target}}</ulink>
217
- # anchor:id[text]
218
- [anchor-inlinemacro]
219
- <anchor id="{target}" xreflabel="{0=[{target}]}"/>
220
- # [[id,text]]
221
- [anchor2-inlinemacro]
222
- <anchor id="{1}" xreflabel="{2=[{1}]}"/>
223
- # [[[id]]]
224
- [anchor3-inlinemacro]
225
- <anchor id="{1}" xreflabel="[{1}]"/>[{1}]
226
- # xref:id[text]
227
- [xref-inlinemacro]
228
- <link linkend="{target}">{0}</link>
229
- {2%}<xref linkend="{target}"/>
230
- # <<id,text>>
231
- [xref2-inlinemacro]
232
- <link linkend="{1}">{2}</link>
233
- {2%}<xref linkend="{1}"/>
234
-
235
-
236
- # Special word macros
237
- [emphasizedwords]
238
- <emphasis>{words}</emphasis>
239
- [monospacedwords]
240
- <literal>{words}</literal>
241
- [strongwords]
242
- <emphasis role="strong">{words}</emphasis>
243
-
244
- # Paragraph substitution.
245
- [paragraph]
246
- <formalpara{style? role="{style}"}{id? id="{id}"}><title>{title}</title><para>
247
- {title%}<simpara{style? role="{style}"}{id? id="{id}"}>
248
- |
249
- {title%}</simpara>
250
- {title#}</para></formalpara>
251
- {empty}
252
-
253
- [admonitionparagraph]
254
- <{name}{id? id="{id}"}><simpara>|</simpara></{name}>
255
-
256
- [literalparagraph]
257
- # The literal block employs the same markup.
258
- template::[literalblock]
259
-
260
- [verseparagraph]
261
- template::[verseblock]
262
-
263
- # Delimited blocks.
264
- [literalblock]
265
- <example{id? id="{id}"}><title>{title}</title>
266
- {title#}<literallayout class="monospaced">
267
- {title%}<literallayout{id? id="{id}"} class="monospaced">
268
- |
269
- </literallayout>
270
- {title#}</example>
271
-
272
- [listingblock]
273
- <example{id? id="{id}"}><title>{title}</title>
274
- {title#}<screen>
275
- {title%}<screen{id? id="{id}"}>
276
- |
277
- </screen>
278
- {title#}</example>
279
-
280
- [sidebarblock]
281
- <sidebar{id? id="{id}"}>
282
- <title>{title}</title>
283
- |
284
- </sidebar>
285
-
286
- [abstractblock]
287
- <abstract{id? id="{id}"}>
288
- <title>{title}</title>
289
- |
290
- </abstract>
291
-
292
- [quoteblock]
293
- <blockquote{id? id="{id}"}>
294
- <title>{title}</title>
295
- # Include attribution only if either {attribution} or {citetitle} are defined.
296
- {attribution#}<attribution>
297
- {attribution%}{citetitle#}<attribution>
298
- {attribution}
299
- <citetitle>{citetitle}</citetitle>
300
- {attribution#}</attribution>
301
- {attribution%}{citetitle#}</attribution>
302
- |
303
- </blockquote>
304
-
305
- [verseblock]
306
- <blockquote{id? id="{id}"}>
307
- <title>{title}</title>
308
- # Include attribution only if either {attribution} or {citetitle} are defined.
309
- {attribution#}<attribution>
310
- {attribution%}{citetitle#}<attribution>
311
- {attribution}
312
- <citetitle>{citetitle}</citetitle>
313
- {attribution#}</attribution>
314
- {attribution%}{citetitle#}</attribution>
315
- <literallayout>
316
- |
317
- </literallayout>
318
- </blockquote>
319
-
320
- [exampleblock]
321
- <{title?example}{title!informalexample}{id? id="{id}"}>
322
- <title>{title}</title>
323
- |
324
- </{title?example}{title!informalexample}>
325
-
326
- [admonitionblock]
327
- <{name}{id? id="{id}"}>
328
- <title>{title}</title>
329
- |
330
- </{name}>
331
-
332
- # Tables.
333
- [tabletags-default]
334
- colspec=<colspec colwidth="{width!{colpcwidth}*}{width?{colabswidth}{pageunits}}" align="{colalign}"/>
335
- bodyrow=<row>|</row>
336
- headdata=<entry>|</entry>
337
- bodydata=<entry>|</entry>
338
- paragraph=<simpara>|</simpara>
339
-
340
- [tabletags-emphasis]
341
- paragraph=<simpara><emphasis>|</emphasis></simpara>
342
-
343
- [tabletags-strong]
344
- paragraph=<simpara><emphasis role="strong">|</emphasis></simpara>
345
-
346
- [tabletags-monospaced]
347
- paragraph=<simpara><literal>|</literal></simpara>
348
-
349
- [tabletags-verse]
350
- bodydata=<entry><literallayout>|</literallayout></entry>
351
- paragraph=
352
-
353
- [tabletags-literal]
354
- bodydata=<entry><literallayout class="monospaced">|</literallayout></entry>
355
- paragraph=
356
-
357
- [tabletags-asciidoc]
358
- paragraph=
359
-
360
- [table]
361
- <{title?table}{title!informaltable}{id? id="{id}"}{pgwide-option? pgwide="1"}
362
- frame="{frame=all}"
363
- {grid%rowsep="1" colsep="1"}
364
- rowsep="{grid@none|cols:0:1}" colsep="{grid@none|rows:0:1}"
365
- >
366
- <title>{title}</title>
367
- <?dbfo keep-together="{breakable-option#auto}"?>
368
- <?dbfo keep-together="{unbreakable-option#always}"?>
369
- <tgroup cols="{colcount}">
370
- {colspecs}
371
- {headrows#}<thead valign="{valign=top}">
372
- {headrows}
373
- {headrows#}</thead>
374
- {footrows#}<tfoot valign="{valign=top}">
375
- {footrows}
376
- {footrows#}</tfoot>
377
- <tbody valign="{valign=top}">
378
- {bodyrows}
379
- </tbody>
380
- </tgroup>
381
- </{title?table}{title!informaltable}>
382
-
383
- #--------------------------------------------------------------------
384
- # Deprecated old table definitions.
385
- #
386
-
387
- [old_tabledef-default]
388
- template=old_table
389
- colspec=<colspec colwidth="{colwidth}{pageunits}" align="{colalign}"/>
390
- bodyrow=<row>|</row>
391
- bodydata=<entry>|</entry>
392
-
393
- [old_table]
394
- <{title?table}{title!informaltable}{id? id="{id}"} pgwide="0"
395
- frame="{frame=topbot}"
396
- {grid%rowsep="0" colsep="0"}
397
- rowsep="{grid@none|cols:0:1}" colsep="{grid@none|rows:0:1}"
398
- >
399
- <title>{title}</title>
400
- <tgroup cols="{cols}">
401
- {colspecs}
402
- {headrows#}<thead>
403
- {headrows}
404
- {headrows#}</thead>
405
- {footrows#}<tfoot>
406
- {footrows}
407
- {footrows#}</tfoot>
408
- <tbody>
409
- {bodyrows}
410
- </tbody>
411
- </tgroup>
412
- </{title?table}{title!informaltable}>
413
-
414
- # End of deprecated old table definitions.
415
- #--------------------------------------------------------------------
416
-
417
- [specialsections]
418
- ifdef::doctype-article[]
419
- ^Abstract$=sect-abstract
420
- endif::doctype-article[]
421
-
422
- ifdef::doctype-book[]
423
- ^Colophon$=sect-colophon
424
- ^Dedication$=sect-dedication
425
- ^Preface$=sect-preface
426
- endif::doctype-book[]
427
-
428
- ^Index$=sect-index
429
- ^(Bibliography|References)$=sect-bibliography
430
- ^Glossary$=sect-glossary
431
- ^Appendix [A-Z][:.](?P<title>.*)$=sect-appendix
432
-
433
- # Special sections.
434
- [sect-preface]
435
- <preface{id? id="{id}"}>
436
- <title>{title}</title>
437
- |
438
- </preface>
439
-
440
- [sect-index]
441
- <index{id? id="{id}"}>
442
- <title>{title}</title>
443
- |
444
- </index>
445
-
446
- [sect-bibliography]
447
- <bibliography{id? id="{id}"}>
448
- <title>{title}</title>
449
- |
450
- </bibliography>
451
-
452
- [sect-glossary]
453
- <glossary{id? id="{id}"}>
454
- <title>{title}</title>
455
- |
456
- </glossary>
457
-
458
- [sect-appendix]
459
- <appendix{id? id="{id}"}>
460
- <title>{title}</title>
461
- |
462
- </appendix>
463
-
464
-
465
- [header-declarations]
466
- <?xml version="1.0" encoding="{encoding}"?>
467
- <!DOCTYPE {doctype-article?article}{doctype-book?book}{doctype-manpage?refentry} PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
468
-
469
- #-------------------------
470
- # article document type
471
- #-------------------------
472
- ifdef::doctype-article[]
473
-
474
- [header]
475
- template::[header-declarations]
476
-
477
- <article lang="{lang=en}">
478
- {doctitle#}<articleinfo>
479
- <title>{doctitle}</title>
480
- <date>{date}</date>
481
- {authored#}<author>
482
- <firstname>{firstname}</firstname>
483
- <othername>{middlename}</othername>
484
- <surname>{lastname}</surname>
485
- <affiliation><address><email>{email}</email></address></affiliation>
486
- {authored#}</author>
487
- <authorinitials>{authorinitials}</authorinitials>
488
-
489
- # If file named like source document with -revhistory.xml suffix exists
490
- # include it as the document history, otherwise use current revision.
491
- {revisionhistory#}{include:{docdir}/{docname}-revhistory.xml}
492
- {revisionhistory%}<revhistory><revision><revnumber>{revision}</revnumber><date>{date}</date>{authorinitials?<authorinitials>{authorinitials}</authorinitials>}{revremark?<revremark>{revremark}</revremark>}</revision></revhistory>
493
-
494
- <corpname>{companyname}</corpname>
495
- {doctitle#}</articleinfo>
496
-
497
- [footer]
498
- </article>
499
-
500
- [preamble]
501
- # Untitled elements between header and first section title.
502
- |
503
-
504
- [sect-abstract]
505
- <abstract{id? id="{id}"}>
506
- |
507
- </abstract>
508
-
509
- [sect1]
510
- <section{id? id="{id}"}>
511
- <title>{title}</title>
512
- |
513
- </section>
514
-
515
- [sect2]
516
- <section{id? id="{id}"}>
517
- <title>{title}</title>
518
- |
519
- </section>
520
-
521
- [sect3]
522
- <section{id? id="{id}"}>
523
- <title>{title}</title>
524
- |
525
- </section>
526
-
527
- [sect4]
528
- <section{id? id="{id}"}>
529
- <title>{title}</title>
530
- |
531
- </section>
532
-
533
- endif::doctype-article[]
534
-
535
- #-------------------------
536
- # manpage document type
537
- #-------------------------
538
- ifdef::doctype-manpage[]
539
-
540
- [replacements]
541
- # The roff format does not substitute special characters so just print them as
542
- # text.
543
- \(C\)=(C)
544
- \(TM\)=(TM)
545
-
546
- [header]
547
- template::[header-declarations]
548
- <refentry lang="{lang=en}">
549
- <refmeta>
550
- <refentrytitle>{mantitle}</refentrytitle>
551
- <manvolnum>{manvolnum}</manvolnum>
552
- <refmiscinfo class="source">{mansource}</refmiscinfo>
553
- <refmiscinfo class="version">{manversion}</refmiscinfo>
554
- <refmiscinfo class="manual">{manmanual}</refmiscinfo>
555
- </refmeta>
556
- <refnamediv>
557
- <refname>{manname}</refname>
558
- <refpurpose>{manpurpose}</refpurpose>
559
- </refnamediv>
560
-
561
- [footer]
562
- </refentry>
563
-
564
- # Section macros
565
- [sect-synopsis]
566
- <refsynopsisdiv{id? id="{id}"}>
567
- |
568
- </refsynopsisdiv>
569
-
570
- [sect1]
571
- <refsect1{id? id="{id}"}>
572
- <title>{title}</title>
573
- |
574
- </refsect1>
575
-
576
- [sect2]
577
- <refsect2{id? id="{id}"}>
578
- <title>{title}</title>
579
- |
580
- </refsect2>
581
-
582
- [sect3]
583
- <refsect3{id? id="{id}"}>
584
- <title>{title}</title>
585
- |
586
- </refsect3>
587
-
588
- endif::doctype-manpage[]
589
-
590
- #-------------------------
591
- # book document type
592
- #-------------------------
593
- ifdef::doctype-book[]
594
-
595
- [header]
596
- template::[header-declarations]
597
-
598
- <book lang="{lang=en}">
599
- {doctitle#}<bookinfo>
600
- <title>{doctitle}</title>
601
- <date>{date}</date>
602
- {authored#}<author>
603
- <firstname>{firstname}</firstname>
604
- <othername>{middlename}</othername>
605
- <surname>{lastname}</surname>
606
- <affiliation><address><email>{email}</email></address></affiliation>
607
- {authored#}</author>
608
- <authorinitials>{authorinitials}</authorinitials>
609
-
610
- # If file named like source document with -revhistory.xml suffix exists
611
- # include it as the document history, otherwise use current revision.
612
- {revisionhistory#}{include:{docdir}/{docname}-revhistory.xml}
613
- {revisionhistory%}<revhistory><revision><revnumber>{revision}</revnumber><date>{date}</date>{authorinitials?<authorinitials>{authorinitials}</authorinitials>}{revremark?<revremark>{revremark}</revremark>}</revision></revhistory>
614
-
615
- <corpname>{companyname}</corpname>
616
- {doctitle#}</bookinfo>
617
-
618
- [footer]
619
- </book>
620
-
621
- [preamble]
622
- # Preamble is not allowed in DocBook book so wrap it in a preface.
623
- <preface{id? id="{id}"}>
624
- <title>Preface</title>
625
- |
626
- </preface>
627
-
628
- [sect-dedication]
629
- <dedication{id? id="{id}"}>
630
- |
631
- </dedication>
632
-
633
- [sect-colophon]
634
- <colophon{id? id="{id}"}>
635
- |
636
- </colophon>
637
-
638
- [sect0]
639
- <part{id? id="{id}"}>
640
- <title>{title}</title>
641
- |
642
- </part>
643
-
644
- [sect1]
645
- <chapter{id? id="{id}"}>
646
- <title>{title}</title>
647
- |
648
- </chapter>
649
-
650
- [sect2]
651
- <section{id? id="{id}"}>
652
- <title>{title}</title>
653
- |
654
- </section>
655
-
656
- [sect3]
657
- <section{id? id="{id}"}>
658
- <title>{title}</title>
659
- |
660
- </section>
661
-
662
- [sect4]
663
- <section{id? id="{id}"}>
664
- <title>{title}</title>
665
- |
666
- </section>
667
-
668
- endif::doctype-book[]
669
-
670
- ifdef::sgml[]
671
- #
672
- # Optional DocBook SGML.
673
- #
674
- # Most of the differences between DocBook XML and DocBook SGML boils
675
- # down to the empty element syntax: SGML does not like the XML empty
676
- # element <.../> syntax, use <...> instead.
677
- #
678
- [miscellaneous]
679
- outfilesuffix=.sgml
680
-
681
- [header-declarations]
682
- <!DOCTYPE {doctype-article?article}{doctype-book?book}{doctype-manpage?refentry} PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
683
-
684
- [tabledef-default]
685
- colspec=<colspec colwidth="{colabswidth}{pageunits}" align="{colalign}">
686
-
687
- [image-inlinemacro]
688
- <inlinemediaobject>
689
- <imageobject>
690
- <imagedata fileref="{imagesdir=}{target}"{width? width="{width}"}{height? depth="{height}"}>
691
- </imageobject>
692
- <textobject><phrase>{1={target}}</phrase></textobject>
693
- </inlinemediaobject>
694
-
695
- [image-blockmacro]
696
- <figure><title>{title}</title>
697
- {title%}<informalfigure>
698
- <mediaobject>
699
- <imageobject>
700
- <imagedata fileref="{imagesdir=}{target}"{width? width="{width}"}{height? depth="{height}"}>
701
- </imageobject>
702
- <textobject><phrase>{1={target}}</phrase></textobject>
703
- </mediaobject>
704
- {title#}</figure>
705
- {title%}</informalfigure>
706
-
707
- # Inline macros
708
- [xref-inlinemacro]
709
- <link linkend="{target}">{0}</link>
710
- {2%}<xref linkend="{target}">
711
- [xref2-inlinemacro]
712
- # <<id,text>>
713
- <link linkend="{1}">{2}</link>
714
- {2%}<xref linkend="{1}">
715
- [anchor-inlinemacro]
716
- <anchor id="{target}" xreflabel="{0=[{target}]}">
717
- [anchor2-inlinemacro]
718
- # [[id,text]]
719
- <anchor id="{1}" xreflabel="{2=[{1}]}">
720
-
721
- endif::sgml[]