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,455 +1,610 @@
1
- #
2
- # asciidoc.conf
3
- #
4
- # Asciidoc global configuration file.
5
- # Contains backend independent configuration settings that are applied to all
6
- # AsciiDoc documents.
7
- #
8
-
9
- [miscellaneous]
10
- tabsize=8
11
- textwidth=70
12
- newline=\r\n
13
-
14
- [attributes]
15
- sectids=
16
- iconsdir=./images/icons
17
- encoding=UTF-8
18
- quirks=
19
- empty=
20
- # Attribute and AttributeList element patterns.
21
- attributeentry-pattern=^:(?P<attrname>\w[^.]*?)(\.(?P<attrname2>.*?))?:(\s+(?P<attrvalue>.*))?$
22
- attributelist-pattern=(?u)(^\[\[(?P<id>[\w\-_]+)\]\]$)|(^\[(?P<attrlist>.*)\]$)
23
- # Substitution attributes for escaping AsciiDoc processing.
24
- amp=&
25
- lt=<
26
- gt=>
27
- brvbar=|
28
- nbsp=&#160;
29
- wj=&#8288;
30
- deg=&#176;
31
- backslash=\
32
- two_colons=::
33
- two_semicolons=;;
34
- # Captions, used by XHTML backends.
35
- # The reason these language specific attributes are not in a lang-en.conf
36
- # file is so that the output will fall back to English if the specified
37
- # language file is missing.
38
- caution_caption=Caution
39
- important_caption=Important
40
- note_caption=Note
41
- tip_caption=Tip
42
- warning_caption=Warning
43
- figure_caption=
44
- table_caption=
45
- toc_title=Table of Contents
46
-
47
- [titles]
48
- subs=specialcharacters,quotes,replacements,macros,attributes
49
- # Double-line title pattern and underlines.
50
- sectiontitle=^(?P<title>.*?)$
51
- underlines="==","--","~~","^^","++"
52
- # Single-line title patterns.
53
- sect0=^= +(?P<title>[\S].*?)( +=)?$
54
- sect1=^== +(?P<title>[\S].*?)( +==)?$
55
- sect2=^=== +(?P<title>[\S].*?)( +===)?$
56
- sect3=^==== +(?P<title>[\S].*?)( +====)?$
57
- sect4=^===== +(?P<title>[\S].*?)( +=====)?$
58
- blocktitle=^\.(?P<title>([^.\s].*)|(\.[^.\s].*))$
59
-
60
- [specialcharacters]
61
- &=&amp;
62
- <=&lt;
63
- >=&gt;
64
-
65
- [quotes]
66
- # The order is important, quotes are processed in conf file order.
67
- **=#strong
68
- *=strong
69
- ``|''=doublequoted
70
- '=emphasis
71
- `|'=singlequoted
72
- `=monospaced
73
- # +++ and $$ quoting is applied to the +++ and $$ inline passthrough
74
- # macros to allow quoted attributes to be used.
75
- # This trick only works with inline passthrough macros.
76
- +++=#unquoted
77
- $$=#unquoted
78
- ++=#monospaced
79
- +=monospaced
80
- __=#emphasis
81
- _=emphasis
82
- \##=#unquoted
83
- \#=unquoted
84
- ^=#superscript
85
- ~=#subscript
86
-
87
- [specialwords]
88
- emphasizedwords=
89
- strongwords=
90
- monospacedwords=
91
-
92
- [replacements]
93
- # Replacements performed in order of configuration file entry. The first entry
94
- # of each replacement pair performs the (non-escaped) replacement, the second
95
- # strips the backslash from the escaped replacement.
96
-
97
- # (C) Copyright (entity reference &copy;)
98
- (?<!\\)\(C\)=&#169;
99
- \\\(C\)=(C)
100
-
101
- # (R) registered trade mark (entity reference &reg;
102
- (?<!\\)\(R\)=&#174;
103
- \\\(R\)=(R)
104
-
105
- # (TM) Trademark (entity reference &trade;)
106
- (?<!\\)\(TM\)=&#8482;
107
- \\\(TM\)=(TM)
108
-
109
- # -- Spaced and unspaced em dashes (entity reference &mdash;).
110
- # Space on both sides is translated to thin space characters.
111
- (\n-- )|( -- )|( --\n)=&#8201;&#8212;&#8201;
112
- (\w)--(\w)=\1&#8212;\2
113
- \\--(?!-)=--
114
-
115
- # Replace vertical typewriter apostrophe with punctuation apostrophe.
116
- (\w)'(\w)=\1&#8217;\2
117
-
118
- # ... Ellipsis (entity reference &hellip;)
119
- (?<!\\)\.\.\.=&#8230;
120
- \\\.\.\.=...
121
-
122
- # Arrows from the Arrows block of Unicode.
123
- # -> right arrow
124
- (?<!\\)-&gt;=&#8594;
125
- \\-&gt;=-&gt;
126
- # => right double arrow
127
- (?<!\\)\=&gt;=&#8658;
128
- \\\=&gt;==&gt;
129
- # <- left arrow
130
- (?<!\\)&lt;-=&#8592;
131
- \\&lt;-=&lt;-
132
- # <= left double arrow
133
- (?<!\\)&lt;\==&#8656;
134
- \\&lt;\==&lt;=
135
-
136
- # Arbitrary entity references.
137
- (?<!\\)&amp;([:_#a-zA-Z][:_.\-\w]*?;)=&\1
138
- \\(&amp;[:_#a-zA-Z][:_.\-\w]*?;)=\1
139
-
140
- #-----------
141
- # Paragraphs
142
- #-----------
143
- [paradef-default]
144
- delimiter=(?s)(?P<text>\S.*)
145
- template=paragraph
146
- posattrs=style
147
- verse-style=template="verseparagraph"
148
- NOTE-style=template="admonitionparagraph",name="note",caption="{note_caption}"
149
- TIP-style=template="admonitionparagraph",name="tip",caption="{tip_caption}"
150
- IMPORTANT-style=template="admonitionparagraph",name="important",caption="{important_caption}"
151
- WARNING-style=template="admonitionparagraph",name="warning",caption="{warning_caption}"
152
- CAUTION-style=template="admonitionparagraph",name="caution",caption="{caution_caption}"
153
-
154
- [paradef-literal]
155
- delimiter=(?s)(?P<text>\s+.*)
156
- options=listelement
157
- template=literalparagraph
158
- subs=verbatim
159
-
160
- [paradef-admonition]
161
- delimiter=(?s)^\s*(?P<style>NOTE|TIP|IMPORTANT|WARNING|CAUTION):\s+(?P<text>.+)
162
- NOTE-style=template="admonitionparagraph",name="note",caption="{note_caption}"
163
- TIP-style=template="admonitionparagraph",name="tip",caption="{tip_caption}"
164
- IMPORTANT-style=template="admonitionparagraph",name="important",caption="{important_caption}"
165
- WARNING-style=template="admonitionparagraph",name="warning",caption="{warning_caption}"
166
- CAUTION-style=template="admonitionparagraph",name="caution",caption="{caution_caption}"
167
-
168
- [macros]
169
- #--------------
170
- # Inline macros
171
- #--------------
172
- # Backslash prefix required for escape processing.
173
- # (?s) re flag for line spanning.
174
-
175
- # Macros using default syntax.
176
- (?su)[\\]?(?P<name>http|https|ftp|file|irc|mailto|callto|image|link|anchor|xref|footnote|footnoteref|indexterm):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
177
-
178
- # These URL types don't require any special attribute list formatting.
179
- (?su)(?<!\S)[\\]?(?P<name>http|https|ftp|file|irc):(?P<target>//[^\s<>]*[\w/])=
180
- # Allow a leading parenthesis.
181
- (?su)(?<\=\()[\\]?(?P<name>http|https|ftp|file|irc):(?P<target>//[^\s<>]*[\w/])=
182
- # Allow <> brackets.
183
- (?su)[\\]?&lt;(?P<name>http|https|ftp|file|irc):(?P<target>//[^\s<>]*[\w/])&gt;=
184
-
185
- # Email addresses don't require special attribute list formatting.
186
- # The before ">: and after "< character exclusions stop multiple substitution.
187
- (?su)(?<![">:\w])[\\]?(?P<target>\w[\w._-]*@[\w._-]*\w)(?!["<\w.])=mailto
188
-
189
- # Anchor: [[[id]]]. Bibliographic anchor.
190
- (?su)[\\]?\[\[\[(?P<attrlist>[\w][\w-]*?)\]\]\]=anchor3
191
- # Anchor: [[id,xreflabel]]
192
- (?su)[\\]?\[\[(?P<attrlist>[\w"].*?)\]\]=anchor2
193
- # Link: <<id,text>>
194
- (?su)[\\]?&lt;&lt;(?P<attrlist>[\w"].*?)&gt;&gt;=xref2
195
-
196
- ifdef::asciidoc7compatible[]
197
- # Index term: ++primary,secondary,tertiary++
198
- (?su)(?<!\S)[\\]?\+\+(?P<attrlist>[^+].*?)\+\+(?!\+)=indexterm
199
- # Index term: +primary+
200
- # Follows ++...++ macro otherwise it will match them.
201
- (?<!\S)[\\]?\+(?P<attrlist>[^\s\+][^+].*?)\+(?!\+)=indexterm2
202
- endif::asciidoc7compatible[]
203
-
204
- ifndef::asciidoc7compatible[]
205
- # Index term: (((primary,secondary,tertiary)))
206
- (?su)(?<!\()[\\]?\(\(\((?P<attrlist>[^(].*?)\)\)\)(?!\))=indexterm
207
- # Index term: ((primary))
208
- # Follows (((...))) macro otherwise it will match them.
209
- (?<!\()[\\]?\(\((?P<attrlist>[^\s\(][^(].*?)\)\)(?!\))=indexterm2
210
- endif::asciidoc7compatible[]
211
-
212
- # Callout
213
- [\\]?&lt;(?P<index>\d+)&gt;=callout
214
-
215
- # Passthrough macros.
216
- (?su)[\\]?(?P<name>pass):(?P<subslist>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[]
217
-
218
- # Triple-plus and double-dollar inline passthroughs.
219
- (?su)[\\]?\+\+\+(?P<passtext>.*?)\+\+\+=pass[]
220
- (?su)[\\]?\$\$(?P<passtext>.*?)\$\$=pass[specialcharacters]
221
-
222
- # Default (catchall) inline macro is not implemented so there is no ambiguity
223
- # with previous definition that could result in double substitution of escaped
224
- # references.
225
- #(?su)[\\]?(?P<name>\w(\w|-)*?):(?P<target>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=
226
-
227
- #-------------
228
- # Block macros
229
- #-------------
230
- # Macros using default syntax.
231
- (?u)^(?P<name>image)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=#
232
-
233
- # Passthrough macros.
234
- (?u)^(?P<name>pass)::(?P<subslist>\S*?)(\[(?P<passtext>.*?)\])$=#
235
-
236
- ^'{3,}$=#ruler
237
- ^<{3,}$=#pagebreak
238
- ^//(?P<passtext>[^/].*|)$=#comment
239
-
240
- #-----------------
241
- # Delimited blocks
242
- #-----------------
243
- [blockdef-comment]
244
- delimiter=^/{4,}
245
- options=skip
246
-
247
- [comment-blockmacro]
248
- # Outputs nothing.
249
-
250
- [blockdef-sidebar]
251
- delimiter=^\*{4,}$
252
- template=sidebarblock
253
- options=sectionbody
254
- posattrs=style
255
- abstract-style=template="abstractblock"
256
-
257
- [blockdef-list]
258
- delimiter=^--$
259
- template=listblock
260
- options=list
261
-
262
- [listblock]
263
- |
264
-
265
- [blockdef-pass]
266
- delimiter=^\+{4,}$
267
- template=passblock
268
- # Default subs choosen for backward compatibility.
269
- subs=attributes,macros
270
- posattrs=style
271
- pass-style=template="passblock",subs=[]
272
-
273
- [blockdef-listing]
274
- delimiter=^-{4,}$
275
- template=listingblock
276
- subs=verbatim
277
- posattrs=style
278
-
279
- [blockdef-literal]
280
- delimiter=^\.{4,}$
281
- template=literalblock
282
- subs=verbatim
283
- posattrs=style
284
- listing-style=template="listingblock"
285
- # DEPRECATED: Use verse style on quote blocks instead.
286
- verse-style=template="verseblock",subs="normal"
287
-
288
- [blockdef-quote]
289
- delimiter=^_{4,}$
290
- subs=normal
291
- style=quote
292
- posattrs=style,attribution,citetitle
293
- quote-style=template="quoteblock",options=("sectionbody",)
294
- verse-style=template="verseblock"
295
-
296
- [blockdef-example]
297
- delimiter=^={4,}$
298
- template=exampleblock
299
- options=sectionbody
300
- posattrs=style
301
- NOTE-style=template="admonitionblock",name="note",caption="{note_caption}"
302
- TIP-style=template="admonitionblock",name="tip",caption="{tip_caption}"
303
- IMPORTANT-style=template="admonitionblock",name="important",caption="{important_caption}"
304
- WARNING-style=template="admonitionblock",name="warning",caption="{warning_caption}"
305
- CAUTION-style=template="admonitionblock",name="caution",caption="{caution_caption}"
306
-
307
- # For use by custom filters.
308
- # NOTE: No longer used, a styled listing block (blockdef-listing) is preferable.
309
- [blockdef-filter]
310
- delimiter=^~{4,}$
311
- template=listingblock
312
- subs=none
313
- posattrs=style
314
-
315
- #-------
316
- # Lists
317
- #-------
318
- [listdef-bulleted]
319
- delimiter=^\s*- +(?P<text>.+)$
320
- posattrs=style
321
- type=bulleted
322
- tags=bulleted
323
- callout-style=tags="callout"
324
- bibliography-style=tags="bibliography"
325
-
326
- [listdef-bulleted2]
327
- delimiter=^\s*\* +(?P<text>.+)$
328
- posattrs=style
329
- type=bulleted
330
- tags=bulleted
331
- callout-style=tags="callout"
332
- bibliography-style=tags="bibliography"
333
-
334
- [listdef-numbered]
335
- delimiter=^\s*(?P<index>\d*)\. +(?P<text>.+)$
336
- posattrs=style
337
- type=numbered
338
- tags=numbered
339
- style=arabic
340
-
341
- [listdef-numbered2]
342
- delimiter=^\s*(?P<index>[.a-zA-Z]|[ivxIVX]+)\. +(?P<text>.+)$
343
- posattrs=style
344
- type=numbered
345
- tags=numbered2
346
- style=loweralpha
347
-
348
- [listdef-labeled]
349
- delimiter=^\s*(?P<label>.*\S)::(\s+(?P<text>.+))?$
350
- posattrs=style
351
- type=labeled
352
- tags=labeled
353
- vertical-style=tags="labeled"
354
- horizontal-style=tags="horizontal"
355
- glossary-style=tags="glossary"
356
- qanda-style=tags="qanda"
357
-
358
- [listdef-labeled2]
359
- delimiter=^\s*(?P<label>.*\S);;(\s+(?P<text>.+))?$
360
- posattrs=style
361
- type=labeled
362
- tags=labeled
363
- vertical-style=tags="labeled"
364
- horizontal-style=tags="horizontal"
365
-
366
- [listdef-callout]
367
- posattrs=style
368
- delimiter=^<?(?P<index>\d*)> +(?P<text>.+)$
369
- type=callout
370
- tags=callout
371
-
372
- # DEPRECATED: Old list syntax.
373
- [listdef-qanda]
374
- posattrs=style
375
- delimiter=^\s*(?P<label>.*\S)\?\?$
376
- type=labeled
377
- tags=qanda
378
-
379
- # DEPRECATED: Old list syntax.
380
- [listdef-bibliography]
381
- posattrs=style
382
- delimiter=^\+ +(?P<text>.+)$
383
- type=bulleted
384
- tags=bibliography
385
-
386
- # DEPRECATED: Old list syntax.
387
- [listdef-glossary]
388
- delimiter=^(?P<label>.*\S):-$
389
- posattrs=style
390
- type=labeled
391
- tags=glossary
392
-
393
- #-------
394
- # Tables
395
- #-------
396
- [tabledef-default]
397
- delimiter=^\|={3,}$
398
- # Like normal subs but quotes are substituted a second time after attributes so
399
- # {include:} contents are marked up (maybe this should be the system wide
400
- # asciidoc.py SUBS_NORMAL).
401
- subs=specialcharacters,quotes,attributes,quotes,specialwords,replacements,macros
402
- posattrs=style
403
- template=table
404
- default-style=tags="default"
405
- verse-style=tags="verse"
406
- literal-style=tags="literal",subs=["specialcharacters"]
407
- emphasis-style=tags="emphasis"
408
- strong-style=tags="strong"
409
- monospaced-style=tags="monospaced"
410
- asciidoc-style=tags="asciidoc",subs=[],filter='python "{asciidoc-file}" -b {backend} -s -'
411
-
412
- [tabledef-nested]
413
- # Same as [tabledef-default] but with different delimiter and separator.
414
- delimiter=^!={3,}$
415
- separator=((?P<cellcount>\d+)\*)?!
416
- subs=specialcharacters,quotes,attributes,quotes,specialwords,replacements,macros
417
- posattrs=style
418
- template=table
419
- verse-style=tags="verse"
420
- literal-style=tags="literal",subs=["specialcharacters"]
421
- emphasis-style=tags="emphasis"
422
- strong-style=tags="strong"
423
- monospaced-style=tags="monospaced"
424
- asciidoc-style=tags="asciidoc",subs=[],filter='python "{asciidoc-file}" -b {backend} -s -'
425
-
426
- #----------------------------------------
427
- # Common block and macro markup templates
428
- #----------------------------------------
429
- [pass-blockmacro]
430
- {passtext}
431
-
432
- [pass-inlinemacro]
433
- template::[pass-blockmacro]
434
-
435
- [passblock]
436
- |
437
-
438
- #--------------------------------------------------------------------
439
- # Deprecated old table definitions.
440
- #
441
-
442
- [old_tabledef-default]
443
- fillchar=-
444
- format=fixed
445
-
446
- [old_tabledef-csv]
447
- fillchar=~
448
- format=csv
449
-
450
- [old_tabledef-dsv]
451
- fillchar=_
452
- format=dsv
453
-
454
- # End of deprecated old table definitions.
455
- #--------------------------------------------------------------------
1
+ #
2
+ # asciidoc.conf
3
+ #
4
+ # Asciidoc global configuration file.
5
+ # Contains backend independent configuration settings that are applied to all
6
+ # AsciiDoc documents.
7
+ #
8
+
9
+ [miscellaneous]
10
+ tabsize=8
11
+ textwidth=70
12
+ newline=\r\n
13
+
14
+ [attributes]
15
+ backend-alias-html=xhtml11
16
+ backend-alias-docbook=docbook45
17
+ toclevels=2
18
+ sectids=
19
+ iconsdir=./images/icons
20
+ encoding=UTF-8
21
+ # Uncomment to use xhtml11 quirks mode CSS.
22
+ #quirks=
23
+ # Uncomment to use the Pygments source highlighter instead of GNU highlighter.
24
+ #pygments=
25
+ # Uncomment to use deprecated quote attributes.
26
+ #deprecated-quotes=
27
+ empty=
28
+ # Attribute and AttributeList element patterns.
29
+ attributeentry-pattern=^:(?P<attrname>\w[^.]*?)(\.(?P<attrname2>.*?))?:(\s+(?P<attrvalue>.*))?$
30
+ attributelist-pattern=(?u)(^\[\[(?P<id>[\w_:][\w_:.-]*)(,(?P<reftext>.*?))?\]\]$)|(^\[(?P<attrlist>.*)\]$)
31
+ # Substitution attributes for escaping AsciiDoc processing.
32
+ amp=&
33
+ lt=<
34
+ gt=>
35
+ brvbar=|
36
+ nbsp=&#160;
37
+ zwsp=&#8203;
38
+ wj=&#8288;
39
+ deg=&#176;
40
+ backslash=\
41
+ two-colons=::
42
+ two-semicolons=;;
43
+ # DEPRECATED: underscore attribute names.
44
+ two_colons=::
45
+ two_semicolons=;;
46
+ # Left and right single and double quote characters.
47
+ # See http://en.wikipedia.org/wiki/Non-English_usage_of_quotation_marks
48
+ lsquo=&#8216;
49
+ rsquo=&#8217;
50
+ ldquo=&#8220;
51
+ rdquo=&#8221;
52
+
53
+ [titles]
54
+ subs=specialcharacters,quotes,replacements,macros,attributes,replacements2
55
+ # Double-line title pattern and underlines.
56
+ sectiontitle=^(?P<title>.*?)$
57
+ underlines="==","--","~~","^^","++"
58
+ # Single-line title patterns.
59
+ sect0=^= +(?P<title>[\S].*?)( +=)?$
60
+ sect1=^== +(?P<title>[\S].*?)( +==)?$
61
+ sect2=^=== +(?P<title>[\S].*?)( +===)?$
62
+ sect3=^==== +(?P<title>[\S].*?)( +====)?$
63
+ sect4=^===== +(?P<title>[\S].*?)( +=====)?$
64
+ blocktitle=^\.(?P<title>([^.\s].*)|(\.[^.\s].*))$
65
+
66
+ [specialcharacters]
67
+ &=&amp;
68
+ <=&lt;
69
+ >=&gt;
70
+
71
+ [quotes]
72
+ # The order is important, quotes are processed in conf file order.
73
+ **=#strong
74
+ *=strong
75
+ ``|''=doublequoted
76
+ '=emphasis
77
+ `|'=singlequoted
78
+ ifdef::no-inline-literal[]
79
+ `=monospaced
80
+ endif::no-inline-literal[]
81
+ # +++ and $$ quoting is applied to the +++ and $$ inline passthrough
82
+ # macros to allow quoted attributes to be used.
83
+ # This trick only works with inline passthrough macros.
84
+ +++=#unquoted
85
+ $$=#unquoted
86
+ ++=#monospaced
87
+ +=monospaced
88
+ __=#emphasis
89
+ _=emphasis
90
+ \##=#unquoted
91
+ \#=unquoted
92
+ ^=#superscript
93
+ ~=#subscript
94
+
95
+ [specialwords]
96
+ emphasizedwords=
97
+ strongwords=
98
+ monospacedwords=
99
+
100
+ [replacements]
101
+ # Replacements performed in order of configuration file entry. The first entry
102
+ # of each replacement pair performs the (non-escaped) replacement, the second
103
+ # strips the backslash from the escaped replacement.
104
+
105
+ # (C) Copyright (entity reference &copy;)
106
+ (?<!\\)\(C\)=&#169;
107
+ \\\(C\)=(C)
108
+
109
+ # (R) registered trade mark (entity reference &reg;
110
+ (?<!\\)\(R\)=&#174;
111
+ \\\(R\)=(R)
112
+
113
+ # (TM) Trademark (entity reference &trade;)
114
+ (?<!\\)\(TM\)=&#8482;
115
+ \\\(TM\)=(TM)
116
+
117
+ # -- Spaced and unspaced em dashes (entity reference &mdash;).
118
+ # Space on both sides is translated to thin space characters.
119
+ (^-- )=&#8212;&#8201;
120
+ (\n-- )|( -- )|( --\n)=&#8201;&#8212;&#8201;
121
+ (\w)--(\w)=\1&#8212;\2
122
+ \\--(?!-)=--
123
+
124
+ # Replace vertical typewriter apostrophe with punctuation apostrophe.
125
+ (\w)'(\w)=\1&#8217;\2
126
+ (\w)\\'(\w)=\1'\2
127
+
128
+ # ... Ellipsis (entity reference &hellip;)
129
+ (?<!\\)\.\.\.=&#8230;
130
+ \\\.\.\.=...
131
+
132
+ # Arrows from the Arrows block of Unicode.
133
+ # -> right arrow
134
+ (?<!\\)-&gt;=&#8594;
135
+ \\-&gt;=-&gt;
136
+ # => right double arrow
137
+ (?<!\\)\=&gt;=&#8658;
138
+ \\\=&gt;==&gt;
139
+ # <- left arrow
140
+ (?<!\\)&lt;-=&#8592;
141
+ \\&lt;-=&lt;-
142
+ # <= left double arrow
143
+ (?<!\\)&lt;\==&#8656;
144
+ \\&lt;\==&lt;=
145
+
146
+ # Arbitrary entity references.
147
+ (?<!\\)&amp;([:_#a-zA-Z][:_.\-\w]*?;)=&\1
148
+ \\(&amp;[:_#a-zA-Z][:_.\-\w]*?;)=\1
149
+
150
+ #-----------
151
+ # Paragraphs
152
+ #-----------
153
+ [paradef-default]
154
+ delimiter=(?s)(?P<text>\S.*)
155
+ posattrs=style
156
+ style=normal
157
+ template::[paragraph-styles]
158
+
159
+ [paradef-literal]
160
+ delimiter=(?s)(?P<text>\s+.*)
161
+ options=listelement
162
+ posattrs=style
163
+ style=literal
164
+ template::[paragraph-styles]
165
+
166
+ [paradef-admonition]
167
+ delimiter=(?s)^\s*(?P<style>NOTE|TIP|IMPORTANT|WARNING|CAUTION):\s+(?P<text>.+)
168
+ template::[paragraph-styles]
169
+
170
+ [paragraph-styles]
171
+ normal-style=template="paragraph"
172
+ verse-style=template="verseparagraph",posattrs=["style","attribution","citetitle"]
173
+ quote-style=template="quoteparagraph",posattrs=["style","attribution","citetitle"]
174
+ literal-style=template="literalparagraph",subs=["verbatim"]
175
+ listing-style=template="listingparagraph",subs=["verbatim"]
176
+ NOTE-style=template="admonitionparagraph",name="note",caption="{note-caption}"
177
+ TIP-style=template="admonitionparagraph",name="tip",caption="{tip-caption}"
178
+ IMPORTANT-style=template="admonitionparagraph",name="important",caption="{important-caption}"
179
+ WARNING-style=template="admonitionparagraph",name="warning",caption="{warning-caption}"
180
+ CAUTION-style=template="admonitionparagraph",name="caution",caption="{caution-caption}"
181
+
182
+ [literalparagraph]
183
+ template::[literalblock]
184
+
185
+ [verseparagraph]
186
+ template::[verseblock]
187
+
188
+ [quoteparagraph]
189
+ template::[quoteblock]
190
+
191
+ [listingparagraph]
192
+ template::[listingblock]
193
+
194
+ [macros]
195
+ #--------------
196
+ # Inline macros
197
+ #--------------
198
+ # Backslash prefix required for escape processing.
199
+ # (?s) re flag for line spanning.
200
+
201
+ # Macros using default syntax.
202
+ (?su)(?<!\w)[\\]?(?P<name>http|https|ftp|file|irc|mailto|callto|image|link|anchor|xref|indexterm):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
203
+
204
+ # These URL types don't require any special attribute list formatting.
205
+ (?su)(?<!\S)[\\]?(?P<name>http|https|ftp|file|irc):(?P<target>//[^\s<>]*[\w/])=
206
+ # Allow a leading parenthesis and square bracket.
207
+ (?su)(?<\=[([])[\\]?(?P<name>http|https|ftp|file|irc):(?P<target>//[^\s<>]*[\w/])=
208
+ # Allow <> brackets.
209
+ (?su)[\\]?&lt;(?P<name>http|https|ftp|file|irc):(?P<target>//[^\s<>]*[\w/])&gt;=
210
+
211
+ # Email addresses don't require special attribute list formatting.
212
+ # The before ">: and after "< character exclusions stop multiple substitution.
213
+ (?su)(?<![">:\w._/-])[\\]?(?P<target>\w[\w._-]*@[\w._-]*\w)(?!["<\w_-])=mailto
214
+
215
+ # Allow footnote macros hard up against the preceding word so the footnote mark
216
+ # can be placed against the noted text without an intervening space
217
+ # (http://groups.google.com/group/asciidoc/browse_frm/thread/e1dcb7ee0efc17b5).
218
+ (?su)[\\]?(?P<name>footnote|footnoteref):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
219
+
220
+ # Anchor: [[[id]]]. Bibliographic anchor.
221
+ (?su)[\\]?\[\[\[(?P<attrlist>[\w_:][\w_:.-]*?)\]\]\]=anchor3
222
+ # Anchor: [[id,xreflabel]]
223
+ (?su)[\\]?\[\[(?P<attrlist>[\w"_:].*?)\]\]=anchor2
224
+ # Link: <<id,text>>
225
+ (?su)[\\]?&lt;&lt;(?P<attrlist>[\w"_:].*?)&gt;&gt;=xref2
226
+
227
+ ifdef::asciidoc7compatible[]
228
+ # Index term: ++primary,secondary,tertiary++
229
+ (?su)(?<!\S)[\\]?\+\+(?P<attrlist>[^+].*?)\+\+(?!\+)=indexterm
230
+ # Index term: +primary+
231
+ # Follows ++...++ macro otherwise it will match them.
232
+ (?<!\S)[\\]?\+(?P<attrlist>[^\s\+][^+].*?)\+(?!\+)=indexterm2
233
+ endif::asciidoc7compatible[]
234
+
235
+ ifndef::asciidoc7compatible[]
236
+ # Index term: (((primary,secondary,tertiary)))
237
+ (?su)(?<!\()[\\]?\(\(\((?P<attrlist>[^(].*?)\)\)\)(?!\))=indexterm
238
+ # Index term: ((primary))
239
+ # Follows (((...))) macro otherwise it will match them.
240
+ (?<!\()[\\]?\(\((?P<attrlist>[^\s\(][^(].*?)\)\)(?!\))=indexterm2
241
+ endif::asciidoc7compatible[]
242
+
243
+ # Callout
244
+ [\\]?&lt;(?P<index>\d+)&gt;=callout
245
+
246
+ # Passthrough macros.
247
+ (?su)[\\]?(?P<name>pass):(?P<subslist>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[]
248
+
249
+ # Triple-plus and double-dollar inline passthroughs.
250
+ (?su)[\\]?\+\+\+(?P<passtext>.*?)\+\+\+=pass[]
251
+ (?su)[\\]?\$\$(?P<passtext>.*?)\$\$=pass[specialcharacters]
252
+
253
+ # Inline literal.
254
+ ifndef::no-inline-literal[]
255
+ (?su)(?<![`\w])([\\]?`(?P<passtext>[^`\s]|[^`\s].*?\S)`)(?![`\w])=literal[specialcharacters]
256
+ endif::no-inline-literal[]
257
+
258
+ # Inline comment.
259
+ (?mu)^[\\]?//(?P<passtext>[^/].*|)$=comment[specialcharacters]
260
+
261
+ # Default (catchall) inline macro is not implemented so there is no ambiguity
262
+ # with previous definition that could result in double substitution of escaped
263
+ # references.
264
+ #(?su)[\\]?(?P<name>\w(\w|-)*?):(?P<target>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=
265
+
266
+ #-------------
267
+ # Block macros
268
+ #-------------
269
+ # Macros using default syntax.
270
+ (?u)^(?P<name>image|unfloat)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=#
271
+
272
+ # Passthrough macros.
273
+ (?u)^(?P<name>pass)::(?P<subslist>\S*?)(\[(?P<passtext>.*?)\])$=#
274
+
275
+ ^'{3,}$=#ruler
276
+ ^<{3,}$=#pagebreak
277
+ ^//(?P<passtext>[^/].*|)$=#comment[specialcharacters]
278
+
279
+ [unfloat-blockmacro]
280
+ # Implemented in HTML backends.
281
+
282
+ #-----------------
283
+ # Delimited blocks
284
+ #-----------------
285
+ [blockdef-comment]
286
+ delimiter=^/{4,}$
287
+ options=skip
288
+
289
+ [blockdef-sidebar]
290
+ delimiter=^\*{4,}$
291
+ template=sidebarblock
292
+ options=sectionbody
293
+ posattrs=style
294
+ # DEPRECATED: Use Openblock instead.
295
+ abstract-style=template="abstractblock"
296
+
297
+ [blockdef-open]
298
+ # A block without opening or closing tags.
299
+ delimiter=^--$
300
+ template=openblock
301
+ options=sectionbody
302
+ posattrs=style
303
+ abstract-style=template="abstractblock"
304
+ partintro-style=template="partintroblock"
305
+
306
+ [blockdef-pass]
307
+ delimiter=^\+{4,}$
308
+ template=passblock
309
+ # Default subs choosen for backward compatibility.
310
+ subs=attributes,macros
311
+ posattrs=style
312
+ pass-style=template="passblock",subs=[]
313
+
314
+ [blockdef-listing]
315
+ delimiter=^-{4,}$
316
+ template=listingblock
317
+ subs=verbatim
318
+ posattrs=style
319
+
320
+ [blockdef-literal]
321
+ delimiter=^\.{4,}$
322
+ template=literalblock
323
+ subs=verbatim
324
+ posattrs=style
325
+ listing-style=template="listingblock"
326
+ # DEPRECATED: Use verse style on quote blocks instead.
327
+ verse-style=template="verseblock",subs="normal"
328
+
329
+ [blockdef-quote]
330
+ delimiter=^_{4,}$
331
+ subs=normal
332
+ style=quote
333
+ posattrs=style,attribution,citetitle
334
+ quote-style=template="quoteblock",options=("sectionbody",)
335
+ verse-style=template="verseblock"
336
+
337
+ [blockdef-example]
338
+ delimiter=^={4,}$
339
+ template=exampleblock
340
+ options=sectionbody
341
+ posattrs=style
342
+ NOTE-style=template="admonitionblock",name="note",caption="{note-caption}"
343
+ TIP-style=template="admonitionblock",name="tip",caption="{tip-caption}"
344
+ IMPORTANT-style=template="admonitionblock",name="important",caption="{important-caption}"
345
+ WARNING-style=template="admonitionblock",name="warning",caption="{warning-caption}"
346
+ CAUTION-style=template="admonitionblock",name="caution",caption="{caution-caption}"
347
+
348
+ # For use by custom filters.
349
+ # DEPRECATED: No longer used, a styled listing block (blockdef-listing) is preferable.
350
+ [blockdef-filter]
351
+ delimiter=^~{4,}$
352
+ template=listingblock
353
+ subs=none
354
+ posattrs=style
355
+
356
+ #-------
357
+ # Lists
358
+ #-------
359
+ [listdef-bulleted]
360
+ # - bullets.
361
+ delimiter=^\s*- +(?P<text>.+)$
362
+ posattrs=style
363
+ type=bulleted
364
+ tags=bulleted
365
+ callout-style=tags="callout"
366
+ bibliography-style=tags="bibliography"
367
+
368
+ [listdef-bulleted1]
369
+ # * bullets.
370
+ template::[listdef-bulleted]
371
+ delimiter=^\s*\* +(?P<text>.+)$
372
+
373
+ [listdef-bulleted2]
374
+ # ** bullets.
375
+ template::[listdef-bulleted]
376
+ delimiter=^\s*\*{2} +(?P<text>.+)$
377
+
378
+ [listdef-bulleted3]
379
+ # *** bullets.
380
+ template::[listdef-bulleted]
381
+ delimiter=^\s*\*{3} +(?P<text>.+)$
382
+
383
+ [listdef-bulleted4]
384
+ # **** bullets.
385
+ template::[listdef-bulleted]
386
+ delimiter=^\s*\*{4} +(?P<text>.+)$
387
+
388
+ [listdef-bulleted5]
389
+ # ***** bullets.
390
+ template::[listdef-bulleted]
391
+ delimiter=^\s*\*{5} +(?P<text>.+)$
392
+
393
+ [listdef-arabic]
394
+ # Arabic numbering.
395
+ delimiter=^\s*(?P<index>\d+\.) +(?P<text>.+)$
396
+ posattrs=style
397
+ type=numbered
398
+ tags=numbered
399
+ style=arabic
400
+
401
+ [listdef-loweralpha]
402
+ # Lower alpha numbering.
403
+ template::[listdef-arabic]
404
+ delimiter=^\s*(?P<index>[a-z]\.) +(?P<text>.+)$
405
+ style=loweralpha
406
+
407
+ [listdef-upperalpha]
408
+ # Upper alpha numbering.
409
+ template::[listdef-arabic]
410
+ delimiter=^\s*(?P<index>[A-Z]\.) +(?P<text>.+)$
411
+ style=upperalpha
412
+
413
+ [listdef-lowerroman]
414
+ # Lower roman numbering.
415
+ template::[listdef-arabic]
416
+ delimiter=^\s*(?P<index>[ivx]+\)) +(?P<text>.+)$
417
+ style=lowerroman
418
+
419
+ [listdef-upperroman]
420
+ # Upper roman numbering.
421
+ template::[listdef-arabic]
422
+ delimiter=^\s*(?P<index>[IVX]+\)) +(?P<text>.+)$
423
+ style=upperroman
424
+
425
+ [listdef-numbered1]
426
+ # . numbering.
427
+ template::[listdef-arabic]
428
+ delimiter=^\s*\. +(?P<text>.+)$
429
+
430
+ [listdef-numbered2]
431
+ # .. numbering.
432
+ template::[listdef-loweralpha]
433
+ delimiter=^\s*\.{2} +(?P<text>.+)$
434
+
435
+ [listdef-numbered3]
436
+ # ... numbering.
437
+ template::[listdef-lowerroman]
438
+ delimiter=^\s*\.{3} +(?P<text>.+)$
439
+
440
+ [listdef-numbered4]
441
+ # .... numbering.
442
+ template::[listdef-upperalpha]
443
+ delimiter=^\s*\.{4} +(?P<text>.+)$
444
+
445
+ [listdef-numbered5]
446
+ # ..... numbering.
447
+ template::[listdef-upperroman]
448
+ delimiter=^\s*\.{5} +(?P<text>.+)$
449
+
450
+ [listdef-labeled]
451
+ # label:: item.
452
+ delimiter=^\s*(?P<label>.*[^:])::(\s+(?P<text>.+))?$
453
+ posattrs=style
454
+ type=labeled
455
+ tags=labeled
456
+ vertical-style=tags="labeled"
457
+ horizontal-style=tags="horizontal"
458
+ glossary-style=tags="glossary"
459
+ qanda-style=tags="qanda"
460
+
461
+ [listdef-labeled2]
462
+ # label;; item.
463
+ template::[listdef-labeled]
464
+ delimiter=^\s*(?P<label>.*[^;]);;(\s+(?P<text>.+))?$
465
+
466
+ [listdef-labeled3]
467
+ # label::: item.
468
+ template::[listdef-labeled]
469
+ delimiter=^\s*(?P<label>.*[^:]):{3}(\s+(?P<text>.+))?$
470
+
471
+ [listdef-labeled4]
472
+ # label:::: item.
473
+ template::[listdef-labeled]
474
+ delimiter=^\s*(?P<label>.*[^:]):{4}(\s+(?P<text>.+))?$
475
+
476
+ [listdef-callout]
477
+ posattrs=style
478
+ delimiter=^<?(?P<index>\d*>) +(?P<text>.+)$
479
+ type=callout
480
+ tags=callout
481
+ style=arabic
482
+
483
+ # DEPRECATED: Old list syntax.
484
+ [listdef-qanda]
485
+ posattrs=style
486
+ delimiter=^\s*(?P<label>.*\S)\?\?$
487
+ type=labeled
488
+ tags=qanda
489
+
490
+ # DEPRECATED: Old list syntax.
491
+ [listdef-bibliography]
492
+ posattrs=style
493
+ delimiter=^\+ +(?P<text>.+)$
494
+ type=bulleted
495
+ tags=bibliography
496
+
497
+ # DEPRECATED: Old list syntax.
498
+ [listdef-glossary]
499
+ delimiter=^(?P<label>.*\S):-$
500
+ posattrs=style
501
+ type=labeled
502
+ tags=glossary
503
+
504
+ #-------
505
+ # Tables
506
+ #-------
507
+ [tabledef-default]
508
+ delimiter=^\|={3,}$
509
+ posattrs=style
510
+ template=table
511
+ default-style=tags="default"
512
+ verse-style=tags="verse"
513
+ literal-style=tags="literal",subs=["specialcharacters"]
514
+ emphasis-style=tags="emphasis"
515
+ strong-style=tags="strong"
516
+ monospaced-style=tags="monospaced"
517
+ header-style=tags="header"
518
+ asciidoc-style=tags="asciidoc",subs=[],filter='python "{asciidoc-file}" -b {backend} {asciidoc-args}{lang? -a "lang={lang}@"}{icons? -a icons -a "iconsdir={iconsdir}"}{imagesdir? -a "imagesdir={imagesdir}"}{data-uri? -a data-uri} -a "indir={indir}"{trace? -a "trace={trace}"} -s -'
519
+
520
+ [tabledef-nested]
521
+ # Same as [tabledef-default] but with different delimiter and separator.
522
+ delimiter=^!={3,}$
523
+ separator=((?<!\S)((?P<span>[\d.]+)(?P<op>[*+]))?(?P<align>[<\^>.]{,3})?(?P<style>[a-z])?)?!
524
+ posattrs=style
525
+ template=table
526
+ verse-style=tags="verse"
527
+ literal-style=tags="literal",subs=["specialcharacters"]
528
+ emphasis-style=tags="emphasis"
529
+ strong-style=tags="strong"
530
+ monospaced-style=tags="monospaced"
531
+ header-style=tags="header"
532
+ asciidoc-style=tags="asciidoc",subs=[],filter='python "{asciidoc-file}" -b {backend} {asciidoc-args}{lang? -a "lang={lang}@"} -s -'
533
+
534
+ #----------------------------------------
535
+ # Common block and macro markup templates
536
+ #----------------------------------------
537
+ [comment-inlinemacro]
538
+ # Outputs nothing.
539
+
540
+ [comment-blockmacro]
541
+ # Outputs nothing.
542
+
543
+ [pass-blockmacro]
544
+ {passtext}
545
+
546
+ [pass-inlinemacro]
547
+ template::[pass-blockmacro]
548
+
549
+ [passblock]
550
+ |
551
+
552
+ [filter-image-blockmacro]
553
+ # Synthesize missing target attribute for filter generated file names.
554
+ # The tag split | ensures missing target file names are auto-generated
555
+ # before the filter is executed, the remainder (the [image-blockmacro])
556
+ # is excuted after the filter to ensure data URI encoding comes after
557
+ # the image is created.
558
+ {target%}{counter2:target-number}
559
+ {target%}{set2:target:{docname}__{target-number}.png}
560
+ |
561
+ template::[image-blockmacro]
562
+
563
+ #----------------------------------
564
+ # Default special section templates
565
+ #----------------------------------
566
+ [abstract]
567
+ template::[sect1]
568
+
569
+ [colophon]
570
+ template::[sect1]
571
+
572
+ [dedication]
573
+ template::[sect1]
574
+
575
+ [preface]
576
+ template::[sect1]
577
+
578
+ [appendix]
579
+ template::[sect1]
580
+
581
+ [glossary]
582
+ template::[sect1]
583
+
584
+ [bibliography]
585
+ template::[sect1]
586
+
587
+ [index]
588
+ template::[sect1]
589
+
590
+ [synopsis]
591
+ template::[sect1]
592
+
593
+ #--------------------------------------------------------------------
594
+ # Deprecated old table definitions.
595
+ #
596
+
597
+ [old_tabledef-default]
598
+ fillchar=-
599
+ format=fixed
600
+
601
+ [old_tabledef-csv]
602
+ fillchar=~
603
+ format=csv
604
+
605
+ [old_tabledef-dsv]
606
+ fillchar=_
607
+ format=dsv
608
+
609
+ # End of deprecated old table definitions.
610
+ #--------------------------------------------------------------------