mizuho 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (295) hide show
  1. data/LICENSE.txt +20 -0
  2. data/README.markdown +61 -0
  3. data/Rakefile +41 -0
  4. data/asciidoc/BUGS +39 -0
  5. data/asciidoc/BUGS.txt +32 -0
  6. data/asciidoc/CHANGELOG +1796 -0
  7. data/asciidoc/CHANGELOG.txt +1810 -0
  8. data/asciidoc/COPYING +339 -0
  9. data/asciidoc/COPYRIGHT +18 -0
  10. data/asciidoc/INSTALL +76 -0
  11. data/asciidoc/INSTALL.txt +71 -0
  12. data/asciidoc/Makefile.in +161 -0
  13. data/asciidoc/README +46 -0
  14. data/asciidoc/README.txt +36 -0
  15. data/asciidoc/a2x +674 -0
  16. data/asciidoc/asciidoc.conf +455 -0
  17. data/asciidoc/asciidoc.py +4998 -0
  18. data/asciidoc/common.aap +9 -0
  19. data/asciidoc/configure +2840 -0
  20. data/asciidoc/configure.ac +11 -0
  21. data/asciidoc/dblatex/asciidoc-dblatex.sty +20 -0
  22. data/asciidoc/dblatex/asciidoc-dblatex.xsl +32 -0
  23. data/asciidoc/dblatex/dblatex-readme.txt +39 -0
  24. data/asciidoc/doc/a2x.1 +257 -0
  25. data/asciidoc/doc/a2x.1.txt +204 -0
  26. data/asciidoc/doc/article.css-embedded.html +602 -0
  27. data/asciidoc/doc/article.html +46 -0
  28. data/asciidoc/doc/article.pdf +0 -0
  29. data/asciidoc/doc/article.txt +122 -0
  30. data/asciidoc/doc/asciidoc-revhistory.xml +27 -0
  31. data/asciidoc/doc/asciidoc.1 +155 -0
  32. data/asciidoc/doc/asciidoc.1.css-embedded.html +598 -0
  33. data/asciidoc/doc/asciidoc.1.css.html +212 -0
  34. data/asciidoc/doc/asciidoc.1.html +190 -0
  35. data/asciidoc/doc/asciidoc.1.txt +118 -0
  36. data/asciidoc/doc/asciidoc.conf +8 -0
  37. data/asciidoc/doc/asciidoc.css-embedded.html +7853 -0
  38. data/asciidoc/doc/asciidoc.css.html +7416 -0
  39. data/asciidoc/doc/asciidoc.dict +733 -0
  40. data/asciidoc/doc/asciidoc.html +3339 -0
  41. data/asciidoc/doc/asciidoc.txt +4979 -0
  42. data/asciidoc/doc/asciimathml.txt +64 -0
  43. data/asciidoc/doc/book-multi.css-embedded.html +575 -0
  44. data/asciidoc/doc/book-multi.html +55 -0
  45. data/asciidoc/doc/book-multi.txt +155 -0
  46. data/asciidoc/doc/book.css-embedded.html +607 -0
  47. data/asciidoc/doc/book.html +43 -0
  48. data/asciidoc/doc/book.txt +131 -0
  49. data/asciidoc/doc/customers.csv +18 -0
  50. data/asciidoc/doc/docbook-xsl.css +272 -0
  51. data/asciidoc/doc/faq.txt +547 -0
  52. data/asciidoc/doc/latex-backend.html +117 -0
  53. data/asciidoc/doc/latex-backend.txt +191 -0
  54. data/asciidoc/doc/latexmath.txt +244 -0
  55. data/asciidoc/doc/latexmathml.txt +41 -0
  56. data/asciidoc/doc/main.aap +297 -0
  57. data/asciidoc/doc/music-filter.html +566 -0
  58. data/asciidoc/doc/music-filter.pdf +0 -0
  59. data/asciidoc/doc/music-filter.txt +158 -0
  60. data/asciidoc/doc/source-highlight-filter.html +214 -0
  61. data/asciidoc/doc/source-highlight-filter.pdf +0 -0
  62. data/asciidoc/doc/source-highlight-filter.txt +203 -0
  63. data/asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt +43 -0
  64. data/asciidoc/docbook-xsl/chunked.xsl +19 -0
  65. data/asciidoc/docbook-xsl/common.xsl +67 -0
  66. data/asciidoc/docbook-xsl/fo.xsl +149 -0
  67. data/asciidoc/docbook-xsl/htmlhelp.xsl +17 -0
  68. data/asciidoc/docbook-xsl/manpage.xsl +31 -0
  69. data/asciidoc/docbook-xsl/text.xsl +50 -0
  70. data/asciidoc/docbook-xsl/xhtml.xsl +14 -0
  71. data/asciidoc/docbook.conf +721 -0
  72. data/asciidoc/examples/website/ASCIIMathML.js +938 -0
  73. data/asciidoc/examples/website/CHANGELOG.html +4389 -0
  74. data/asciidoc/examples/website/CHANGELOG.txt +1810 -0
  75. data/asciidoc/examples/website/INSTALL.html +161 -0
  76. data/asciidoc/examples/website/INSTALL.txt +71 -0
  77. data/asciidoc/examples/website/LaTeXMathML.js +1223 -0
  78. data/asciidoc/examples/website/README-website.html +118 -0
  79. data/asciidoc/examples/website/README-website.txt +29 -0
  80. data/asciidoc/examples/website/README.html +125 -0
  81. data/asciidoc/examples/website/README.txt +36 -0
  82. data/asciidoc/examples/website/a2x.1.html +419 -0
  83. data/asciidoc/examples/website/a2x.1.txt +204 -0
  84. data/asciidoc/examples/website/asciidoc-docbook-xsl.html +130 -0
  85. data/asciidoc/examples/website/asciidoc-docbook-xsl.txt +43 -0
  86. data/asciidoc/examples/website/asciidoc-graphviz-sample.txt +130 -0
  87. data/asciidoc/examples/website/asciimathml.txt +64 -0
  88. data/asciidoc/examples/website/build-website.sh +25 -0
  89. data/asciidoc/examples/website/customers.csv +18 -0
  90. data/asciidoc/examples/website/downloads.html +257 -0
  91. data/asciidoc/examples/website/downloads.txt +121 -0
  92. data/asciidoc/examples/website/faq.html +673 -0
  93. data/asciidoc/examples/website/faq.txt +547 -0
  94. data/asciidoc/examples/website/index.html +419 -0
  95. data/asciidoc/examples/website/index.txt +245 -0
  96. data/asciidoc/examples/website/latex-backend.html +535 -0
  97. data/asciidoc/examples/website/latex-backend.txt +191 -0
  98. data/asciidoc/examples/website/latexmathml.txt +41 -0
  99. data/asciidoc/examples/website/layout1.conf +161 -0
  100. data/asciidoc/examples/website/layout1.css +65 -0
  101. data/asciidoc/examples/website/layout2.conf +158 -0
  102. data/asciidoc/examples/website/layout2.css +93 -0
  103. data/asciidoc/examples/website/manpage.html +266 -0
  104. data/asciidoc/examples/website/manpage.txt +118 -0
  105. data/asciidoc/examples/website/music-filter.html +242 -0
  106. data/asciidoc/examples/website/music-filter.txt +158 -0
  107. data/asciidoc/examples/website/music1.abc +12 -0
  108. data/asciidoc/examples/website/music1.png +0 -0
  109. data/asciidoc/examples/website/music2.ly +9 -0
  110. data/asciidoc/examples/website/music2.png +0 -0
  111. data/asciidoc/examples/website/newlists.txt +40 -0
  112. data/asciidoc/examples/website/newtables.txt +397 -0
  113. data/asciidoc/examples/website/sample1.png +0 -0
  114. data/asciidoc/examples/website/sample3.png +0 -0
  115. data/asciidoc/examples/website/sample4.png +0 -0
  116. data/asciidoc/examples/website/source-highlight-filter.html +286 -0
  117. data/asciidoc/examples/website/source-highlight-filter.txt +203 -0
  118. data/asciidoc/examples/website/support.html +78 -0
  119. data/asciidoc/examples/website/support.txt +5 -0
  120. data/asciidoc/examples/website/toc.js +69 -0
  121. data/asciidoc/examples/website/userguide.html +7460 -0
  122. data/asciidoc/examples/website/userguide.txt +4979 -0
  123. data/asciidoc/examples/website/version83.txt +37 -0
  124. data/asciidoc/examples/website/version9.html +143 -0
  125. data/asciidoc/examples/website/version9.txt +48 -0
  126. data/asciidoc/examples/website/xhtml11-manpage.css +18 -0
  127. data/asciidoc/examples/website/xhtml11-quirks.css +41 -0
  128. data/asciidoc/examples/website/xhtml11.css +328 -0
  129. data/asciidoc/filters/code/code-filter-readme.txt +37 -0
  130. data/asciidoc/filters/code/code-filter-test.txt +15 -0
  131. data/asciidoc/filters/code/code-filter.conf +8 -0
  132. data/asciidoc/filters/code/code-filter.py +239 -0
  133. data/asciidoc/filters/graphviz/asciidoc-graphviz-sample.txt +130 -0
  134. data/asciidoc/filters/graphviz/graphviz-filter.conf +39 -0
  135. data/asciidoc/filters/graphviz/graphviz2png.py +154 -0
  136. data/asciidoc/filters/music/music-filter-test.txt +40 -0
  137. data/asciidoc/filters/music/music-filter.conf +40 -0
  138. data/asciidoc/filters/music/music2png.py +189 -0
  139. data/asciidoc/filters/source/source-highlight-filter-test.txt +19 -0
  140. data/asciidoc/filters/source/source-highlight-filter.conf +108 -0
  141. data/asciidoc/help.conf +213 -0
  142. data/asciidoc/html4.conf +460 -0
  143. data/asciidoc/images/highlighter.png +0 -0
  144. data/asciidoc/images/icons/README +5 -0
  145. data/asciidoc/images/icons/callouts/1.png +0 -0
  146. data/asciidoc/images/icons/callouts/10.png +0 -0
  147. data/asciidoc/images/icons/callouts/11.png +0 -0
  148. data/asciidoc/images/icons/callouts/12.png +0 -0
  149. data/asciidoc/images/icons/callouts/13.png +0 -0
  150. data/asciidoc/images/icons/callouts/14.png +0 -0
  151. data/asciidoc/images/icons/callouts/15.png +0 -0
  152. data/asciidoc/images/icons/callouts/2.png +0 -0
  153. data/asciidoc/images/icons/callouts/3.png +0 -0
  154. data/asciidoc/images/icons/callouts/4.png +0 -0
  155. data/asciidoc/images/icons/callouts/5.png +0 -0
  156. data/asciidoc/images/icons/callouts/6.png +0 -0
  157. data/asciidoc/images/icons/callouts/7.png +0 -0
  158. data/asciidoc/images/icons/callouts/8.png +0 -0
  159. data/asciidoc/images/icons/callouts/9.png +0 -0
  160. data/asciidoc/images/icons/caution.png +0 -0
  161. data/asciidoc/images/icons/example.png +0 -0
  162. data/asciidoc/images/icons/home.png +0 -0
  163. data/asciidoc/images/icons/important.png +0 -0
  164. data/asciidoc/images/icons/next.png +0 -0
  165. data/asciidoc/images/icons/note.png +0 -0
  166. data/asciidoc/images/icons/prev.png +0 -0
  167. data/asciidoc/images/icons/tip.png +0 -0
  168. data/asciidoc/images/icons/up.png +0 -0
  169. data/asciidoc/images/icons/warning.png +0 -0
  170. data/asciidoc/images/smallnew.png +0 -0
  171. data/asciidoc/images/tiger.png +0 -0
  172. data/asciidoc/install-sh +201 -0
  173. data/asciidoc/javascripts/ASCIIMathML.js +938 -0
  174. data/asciidoc/javascripts/LaTeXMathML.js +1223 -0
  175. data/asciidoc/javascripts/toc.js +69 -0
  176. data/asciidoc/lang-es.conf +15 -0
  177. data/asciidoc/latex.conf +663 -0
  178. data/asciidoc/stylesheets/docbook-xsl.css +272 -0
  179. data/asciidoc/stylesheets/xhtml11-manpage.css +18 -0
  180. data/asciidoc/stylesheets/xhtml11-quirks.css +41 -0
  181. data/asciidoc/stylesheets/xhtml11.css +328 -0
  182. data/asciidoc/text.conf +16 -0
  183. data/asciidoc/vim/ftdetect/asciidoc_filetype.vim +53 -0
  184. data/asciidoc/vim/syntax/asciidoc.vim +165 -0
  185. data/asciidoc/wordpress.conf +48 -0
  186. data/asciidoc/xhtml11-quirks.conf +57 -0
  187. data/asciidoc/xhtml11.conf +645 -0
  188. data/bin/mizuho +47 -0
  189. data/bin/mizuho-asciidoc +4 -0
  190. data/lib/mizuho.rb +10 -0
  191. data/lib/mizuho/chapter.rb +54 -0
  192. data/lib/mizuho/generator.rb +134 -0
  193. data/lib/mizuho/heading.rb +46 -0
  194. data/lib/mizuho/parser.rb +103 -0
  195. data/lib/mizuho/source_highlight.rb +2 -0
  196. data/lib/mizuho/template.rb +50 -0
  197. data/source-highlight/ada.lang +38 -0
  198. data/source-highlight/bib.lang +6 -0
  199. data/source-highlight/bison.lang +3 -0
  200. data/source-highlight/c.lang +41 -0
  201. data/source-highlight/c_comment.lang +27 -0
  202. data/source-highlight/c_string.lang +9 -0
  203. data/source-highlight/caml.lang +16 -0
  204. data/source-highlight/changelog.lang +8 -0
  205. data/source-highlight/clike_vardeclaration.lang +4 -0
  206. data/source-highlight/cpp.lang +15 -0
  207. data/source-highlight/csharp.lang +36 -0
  208. data/source-highlight/css.lang +14 -0
  209. data/source-highlight/css_common.outlang +26 -0
  210. data/source-highlight/darwin/source-highlight +0 -0
  211. data/source-highlight/default.css +51 -0
  212. data/source-highlight/default.lang +8 -0
  213. data/source-highlight/default.style +57 -0
  214. data/source-highlight/desktop.lang +7 -0
  215. data/source-highlight/diff.lang +32 -0
  216. data/source-highlight/docbook.outlang +36 -0
  217. data/source-highlight/esc.outlang +46 -0
  218. data/source-highlight/esc.style +35 -0
  219. data/source-highlight/extreme_comment.lang +5 -0
  220. data/source-highlight/extreme_comment2.lang +5 -0
  221. data/source-highlight/extreme_comment3.lang +15 -0
  222. data/source-highlight/fixed-fortran.lang +5 -0
  223. data/source-highlight/flex.lang +37 -0
  224. data/source-highlight/fortran.lang +57 -0
  225. data/source-highlight/function.lang +2 -0
  226. data/source-highlight/glsl.lang +86 -0
  227. data/source-highlight/haxe.lang +7 -0
  228. data/source-highlight/html.lang +7 -0
  229. data/source-highlight/html.outlang +25 -0
  230. data/source-highlight/html_common.outlang +35 -0
  231. data/source-highlight/html_notfixed.outlang +22 -0
  232. data/source-highlight/html_ref.outlang +6 -0
  233. data/source-highlight/htmlcss.outlang +28 -0
  234. data/source-highlight/htmltable.outlang +14 -0
  235. data/source-highlight/htmltablelinenum.outlang +26 -0
  236. data/source-highlight/java.lang +26 -0
  237. data/source-highlight/javadoc.outlang +24 -0
  238. data/source-highlight/javascript.lang +27 -0
  239. data/source-highlight/key_string.lang +4 -0
  240. data/source-highlight/lang.map +108 -0
  241. data/source-highlight/langdef.lang +21 -0
  242. data/source-highlight/latex.lang +52 -0
  243. data/source-highlight/latex.outlang +59 -0
  244. data/source-highlight/latexcolor.outlang +44 -0
  245. data/source-highlight/ldap.lang +10 -0
  246. data/source-highlight/log.lang +53 -0
  247. data/source-highlight/logtalk.lang +85 -0
  248. data/source-highlight/lsm.lang +7 -0
  249. data/source-highlight/lua.lang +27 -0
  250. data/source-highlight/m4.lang +27 -0
  251. data/source-highlight/makefile.lang +42 -0
  252. data/source-highlight/nohilite.lang +2 -0
  253. data/source-highlight/number.lang +3 -0
  254. data/source-highlight/outlang.lang +16 -0
  255. data/source-highlight/outlang.map +12 -0
  256. data/source-highlight/pascal.lang +20 -0
  257. data/source-highlight/perl.lang +134 -0
  258. data/source-highlight/php.lang +25 -0
  259. data/source-highlight/postscript.lang +42 -0
  260. data/source-highlight/prolog.lang +37 -0
  261. data/source-highlight/properties.lang +7 -0
  262. data/source-highlight/python.lang +26 -0
  263. data/source-highlight/ruby.lang +32 -0
  264. data/source-highlight/scala.lang +31 -0
  265. data/source-highlight/script_comment.lang +3 -0
  266. data/source-highlight/sh.lang +38 -0
  267. data/source-highlight/slang.lang +25 -0
  268. data/source-highlight/sml.lang +5 -0
  269. data/source-highlight/source-highlight +24 -0
  270. data/source-highlight/spec.lang +12 -0
  271. data/source-highlight/sql.lang +46 -0
  272. data/source-highlight/style.defaults +15 -0
  273. data/source-highlight/style.lang +16 -0
  274. data/source-highlight/style2.style +10 -0
  275. data/source-highlight/style3.style +10 -0
  276. data/source-highlight/symbols.lang +2 -0
  277. data/source-highlight/tcl.lang +35 -0
  278. data/source-highlight/texinfo.outlang +34 -0
  279. data/source-highlight/texinfo.style +20 -0
  280. data/source-highlight/url.lang +3 -0
  281. data/source-highlight/xhtml.outlang +25 -0
  282. data/source-highlight/xhtml_common.outlang +8 -0
  283. data/source-highlight/xhtml_notfixed.outlang +16 -0
  284. data/source-highlight/xhtmlcss.outlang +19 -0
  285. data/source-highlight/xhtmltable.outlang +7 -0
  286. data/source-highlight/xml.lang +17 -0
  287. data/source-highlight/xorg.lang +10 -0
  288. data/templates/asciidoc.css +358 -0
  289. data/templates/asciidoc.html.erb +86 -0
  290. data/templates/manualsonrails.css +165 -0
  291. data/templates/manualsonrails.html.erb +97 -0
  292. data/test/generator_spec.rb +60 -0
  293. data/test/parser_spec.rb +239 -0
  294. data/test/spec_helper.rb +51 -0
  295. metadata +358 -0
@@ -0,0 +1,16 @@
1
+ # text.conf
2
+ # Used by the AsciiDoc a2x(1) toolchain wrapper utility.
3
+ # Filters to add leading blank line and margin indent to verbatim
4
+ # block elements so lynx(1) generated text output looks nicer.
5
+
6
+ [paradef-default]
7
+ verse-style=template="verseparagraph",filter="echo; echo; sed 's/^/ /'"
8
+
9
+ [paradef-literal]
10
+ filter=echo; echo; sed 's/^/ /'
11
+
12
+ [blockdef-listing]
13
+ filter=echo; sed 's/^/ /'
14
+
15
+ [blockdef-literal]
16
+ filter=echo; sed 's/^/ /'
@@ -0,0 +1,53 @@
1
+ " Vim filetype detection file
2
+ " Language: AsciiDoc
3
+ " Author: Stuart Rackham <srackham@gmail.com>
4
+ " Last Change: AsciiDoc 8.2.0
5
+ " URL: http://www.methods.co.nz/asciidoc/
6
+ " Licence: GPL (http://www.gnu.org)
7
+ " Remarks: Vim 6 or greater
8
+
9
+ " COMMENT OUT ONE OF THE TWO FOLLOWING COMMANDS
10
+ " The first sets asciidoc syntax highlighting on all .txt files, the second
11
+ " only existing files *.txt that appear to be AsciiDoc files.
12
+
13
+ au BufNewFile,BufRead *.txt,README,TODO,CHANGELOG,NOTES setfiletype asciidoc
14
+ "au BufRead *.txt,README,TODO,CHANGELOG,NOTES call s:FTasciidoc()
15
+
16
+ " This function checks for a valid AsciiDoc document title after first
17
+ " skipping any leading comments.
18
+ function! s:FTasciidoc()
19
+ let in_comment_block = 0
20
+ let n = 1
21
+ while n < 50
22
+ let line = getline(n)
23
+ let n = n + 1
24
+ if line =~ '^/\{4,}$'
25
+ if ! in_comment_block
26
+ let in_comment_block = 1
27
+ else
28
+ let in_comment_block = 0
29
+ endif
30
+ continue
31
+ endif
32
+ if in_comment_block
33
+ continue
34
+ endif
35
+ if line !~ '\(^//\)\|\(^\s*$\)'
36
+ break
37
+ endif
38
+ endwhile
39
+ if line !~ '.\{3,}'
40
+ return
41
+ endif
42
+ let len = len(line)
43
+ let line = getline(n)
44
+ if line !~ '[-=]\{3,}'
45
+ return
46
+ endif
47
+ if len < len(line) - 3 || len > len(line) + 3
48
+ return
49
+ endif
50
+ setfiletype asciidoc
51
+ endfunction
52
+
53
+ " vim: et sw=2 ts=2 sts=2:
@@ -0,0 +1,165 @@
1
+ " Vim syntax file
2
+ " Language: AsciiDoc
3
+ " Author: Stuart Rackham <srackham@gmail.com> (inspired by Felix
4
+ " Obenhuber's original asciidoc.vim script).
5
+ " URL: http://www.methods.co.nz/asciidoc/
6
+ " Licence: GPL (http://www.gnu.org)
7
+ " Remarks: Vim 6 or greater
8
+ " Limitations: See 'Appendix J: Vim Syntax Highlighter' in the AsciiDoc 'User
9
+ " Guide'.
10
+
11
+ if exists("b:current_syntax")
12
+ finish
13
+ endif
14
+
15
+ syn clear
16
+ syn sync fromstart
17
+ syn sync linebreaks=1
18
+
19
+ " Run :help syn-priority to review syntax matching priority.
20
+ syn keyword asciidocToDo TODO FIXME XXX ZZZ
21
+ syn match asciidocBackslash /\\/
22
+ syn region asciidocIdMarker start=/^\$Id:\s/ end=/\s\$$/
23
+ syn match asciidocCallout /\\\@<!<\d\{1,2}>/
24
+ syn match asciidocListBlockDelimiter /^--$/
25
+ syn match asciidocLineBreak /[ \t]+$/
26
+ syn match asciidocRuler /^'\{3,}$/
27
+ syn match asciidocPagebreak /^<\{3,}$/
28
+ syn match asciidocEntityRef /\\\@<!&[#a-zA-Z]\S\{-};/
29
+ " The tricky part is not triggering on indented list items that are also
30
+ " preceeded by blank line, handles only bulleted items (see 'Limitations' above
31
+ " for workarounds).
32
+ syn region asciidocLiteralParagraph start=/^\n[ \t]\+\(\([^-*. \t] \)\|\(\S\S\)\)/ end=/\(^+\?\s*$\)\@=/
33
+ syn match asciidocListBullet /^\s*\zs[-*]\ze\s/
34
+ syn match asciidocListNumber /^\s*\zs\(\(\d\+\.\)\|\.\{1,2}\|\(\a\.\)\|\([ivxIVX]\+\.\)\)\ze\s\+/
35
+ syn match asciidocURL /\\\@<!\<\(http\|https\|ftp\|file\|irc\):\/\/[^| \t]*\(\w\|\/\)/
36
+ syn match asciidocEmail /\\\@<!\(\<\|<\)\w\(\w\|[.-]\)*@\(\w\|[.-]\)*\w>\?[0-9A-Za-z_.]\@!/
37
+ syn match asciidocAttributeRef /\\\@<!{\w\(\w\|-\)*\([=!@#$%?:].*\)\?}/
38
+ syn match asciidocAdmonition /^\u\{3,15}:\(\s\+.*\)\@=/
39
+
40
+ " As a damage control measure quoted patterns always terminate at a blank
41
+ " line (see 'Limitations' above).
42
+ syn match asciidocQuotedSubscript /\\\@<!\~\S\_.\{-}\(\~\|\n\s*\n\)/
43
+ syn match asciidocQuotedSuperscript /\\\@<!\^\S\_.\{-}\(\^\|\n\s*\n\)/
44
+ syn match asciidocQuotedMonospaced /\(^\|[| \t([.,=]\)\@<=+\([ )\n]\)\@!\_.\{-}\S\(+\([| \t)[\],.?!;:=]\|$\)\@=\|\n\s*\n\)/
45
+ syn match asciidocQuotedMonospaced2 /\(^\|[| \t([.,=]\)\@<=`\([ )\n]\)\@!\_.\{-}\S\(`\([| \t)[\],.?!;:=]\|$\)\@=\|\n\s*\n\)/
46
+ syn match asciidocQuotedUnconstrainedMonospaced /\\\@<!++\S\_.\{-}\(++\|\n\s*\n\)/
47
+ syn match asciidocQuotedEmphasized /\(^\|[| \t([.,=]\)\@<=_\([ )\n]\)\@!\_.\{-}\S\(_\([| \t)[\],.?!;:=]\|$\)\@=\|\n\s*\n\)/
48
+ syn match asciidocQuotedEmphasized2 /\(^\|[| \t([.,=]\)\@<='\([ )\n]\)\@!\_.\{-}\S\('\([| \t)[\],.?!;:=]\|$\)\@=\|\n\s*\n\)/
49
+ syn match asciidocQuotedUnconstrainedEmphasized /\\\@<!__\S\_.\{-}\(__\|\n\s*\n\)/
50
+ syn match asciidocQuotedBold /\(^\|[| \t([.,=]\)\@<=\*\([ )\n]\)\@!\_.\{-}\S\(\*\([| \t)[\],.?!;:=]\|$\)\@=\|\n\s*\n\)/
51
+ syn match asciidocQuotedUnconstrainedBold /\\\@<!\*\*\S\_.\{-}\(\*\*\|\n\s*\n\)/
52
+ "syn match asciidocQuotedSingleQuoted /\(^\|[| \t([.,=]\)\@<=`\([ )\n]\)\@!\_.\{-}\S\('\([| \t)[\],.?!;:=]\|$\)\@=\|\n\s*\n\)/
53
+ " Don't allow ` in single quoted (a kludge to stop confusion with `monospaced`).
54
+ syn match asciidocQuotedSingleQuoted /\(^\|[| \t([.,=]\)\@<=`\([ )\n]\)\@!\([^`]\|\n\)\{-}[^`\s]\('\([| \t)[\],.?!;:=]\|$\)\@=\|\n\s*\n\)/
55
+ syn match asciidocQuotedDoubleQuoted /\(^\|[| \t([.,=]\)\@<=``\([ )\n]\)\@!\_.\{-}\S\(''\([| \t)[\],.?!;:=]\|$\)\@=\|\n\s*\n\)/
56
+
57
+ syn match asciidocDoubleDollarPassthrough /\\\@<!\(^\|[^0-9a-zA-Z$]\)\@<=\$\$..\{-}\(\$\$\([^0-9a-zA-Z$]\|$\)\@=\|^$\)/
58
+ syn match asciidocTriplePlusPassthrough /\\\@<!\(^\|[^0-9a-zA-Z$]\)\@<=+++..\{-}\(+++\([^0-9a-zA-Z$]\|$\)\@=\|^$\)/
59
+
60
+ syn region asciidocTable_OLD start=/^\([`.']\d*[-~_]*\)\+[-~_]\+\d*$/ end=/^$/
61
+ syn match asciidocBlockTitle /^\.[^. \t].*[^-~_]$/ contains=asciidocQuoted.*,asciidocAttributeRef
62
+ syn match asciidocOneLineTitle /^=\{1,5}\s\+\S.*$/ contains=asciidocQuoted.*,asciidocAttributeRef
63
+
64
+ syn match asciidocTitleUnderline /[-=~^+]\{2,}$/ transparent contained contains=NONE
65
+ syn match asciidocTwoLineTitle /^[^. +/].*[^.:]\n[-=~^+]\{2,}$/ contains=asciidocQuoted.*,asciidocAttributeRef,asciidocTitleUnderline
66
+
67
+ syn match asciidocAttributeList /^\[[^[ \t].*\]$/
68
+ syn match asciidocQuoteBlockDelimiter /^_\{4,}$/
69
+ syn match asciidocExampleBlockDelimiter /^=\{4,}$/
70
+ syn match asciidocSidebarDelimiter /^*\{4,}$/
71
+
72
+ "See http://vimdoc.sourceforge.net/htmldoc/usr_44.html for excluding region
73
+ "contents from highlighting.
74
+ syn match asciidocTablePrefix /\(\d\+\*\)\?|/ containedin=asciidocTableBlock contained
75
+ syn region asciidocTableBlock matchgroup=asciidocTableDelimiter start=/^|=\{3,}$/ end=/^|=\{3,}$/ keepend contains=ALL
76
+ syn match asciidocTablePrefix2 /\(\d\+\*\)\?!/ containedin=asciidocTableBlock2 contained
77
+ syn region asciidocTableBlock2 matchgroup=asciidocTableDelimiter2 start=/^!=\{3,}$/ end=/^!=\{3,}$/ keepend contains=ALL
78
+
79
+ syn match asciidocListContinuation /^+$/
80
+ syn region asciidocLiteralBlock start=/^\.\{4,}$/ end=/^\.\{4,}$/ contains=asciidocCallout keepend
81
+ syn region asciidocListingBlock start=/^-\{4,}$/ end=/^-\{4,}$/ contains=asciidocCallout keepend
82
+ syn region asciidocCommentBlock start="^/\{4,}$" end="^/\{4,}$" contains=asciidocToDo
83
+ syn region asciidocPassthroughBlock start="^+\{4,}$" end="^+\{4,}$"
84
+ " Allowing leading \w characters in the filter delimiter is to accomodate
85
+ " the pre version 8.2.7 syntax and may be removed in future releases.
86
+ syn region asciidocFilterBlock start=/^\w*\~\{4,}$/ end=/^\w*\~\{4,}$/
87
+
88
+ syn region asciidocMacroAttributes matchgroup=asciidocRefMacro start=/\\\@<!<<"\{-}\w\(\w\|-\)*"\?,\?/ end=/\(>>\)\|^$/ contains=asciidocQuoted.* keepend
89
+ syn region asciidocMacroAttributes matchgroup=asciidocAnchorMacro start=/\\\@<!\[\{2}\(\w\|-\)\+,\?/ end=/\]\{2}/ keepend
90
+ syn region asciidocMacroAttributes matchgroup=asciidocAnchorMacro start=/\\\@<!\[\{3}\(\w\|-\)\+/ end=/\]\{3}/ keepend
91
+ syn region asciidocMacroAttributes matchgroup=asciidocMacro start=/[\\0-9a-zA-Z]\@<!\w\(\w\|-\)*:\S\{-}\[/ skip=/\\\]/ end=/\]\|^$/ contains=asciidocQuoted.* keepend
92
+ syn region asciidocMacroAttributes matchgroup=asciidocIndexTerm start=/\\\@<!(\{2,3}/ end=/)\{2,3}/ contains=asciidocQuoted.* keepend
93
+ syn region asciidocMacroAttributes matchgroup=asciidocAttributeMacro start=/\({\(\w\|-\)\+}\)\@<=\[/ skip=/\\\]/ end=/\]/ keepend
94
+
95
+ syn match asciidocCommentLine "^//\([^/].*\|\)$" contains=asciidocToDo
96
+
97
+ syn region asciidocVLabel start=/^\s*/ end=/\(::\|;;\)$/ oneline contains=asciidocQuoted.*,asciidocMacroAttributes keepend
98
+ syn region asciidocHLabel start=/^\s*/ end=/\(::\|;;\)\(\s\+\|\\$\)/ oneline contains=asciidocQuoted.*,asciidocMacroAttributes keepend
99
+
100
+ syn region asciidocAttributeEntry start=/^:\w/ end=/:\(\s\|$\)/ oneline
101
+
102
+ highlight link asciidocMacroAttributes Label
103
+ highlight link asciidocIdMarker Special
104
+ highlight link asciidocDoubleDollarPassthrough Special
105
+ highlight link asciidocTriplePlusPassthrough Special
106
+ highlight link asciidocQuotedSubscript Type
107
+ highlight link asciidocQuotedSuperscript Type
108
+ highlight link asciidocOneLineTitle Title
109
+ highlight link asciidocTwoLineTitle Title
110
+ highlight link asciidocBlockTitle Title
111
+ highlight link asciidocRefMacro Macro
112
+ highlight link asciidocIndexTerm Macro
113
+ highlight link asciidocMacro Macro
114
+ highlight link asciidocAttributeMacro Macro
115
+ highlight link asciidocAnchorMacro Macro
116
+ highlight link asciidocEmail Macro
117
+ highlight link asciidocListBullet Label
118
+ highlight link asciidocListNumber Label
119
+ highlight link asciidocVLabel Label
120
+ highlight link asciidocHLabel Label
121
+ highlight link asciidocTable_OLD Type
122
+ highlight link asciidocTableDelimiter Label
123
+ highlight link asciidocTableBlock NONE
124
+ highlight link asciidocTablePrefix Label
125
+ highlight link asciidocTableDelimiter2 Label
126
+ highlight link asciidocTableBlock2 NONE
127
+ highlight link asciidocTablePrefix2 Label
128
+ highlight link asciidocListBlockDelimiter Label
129
+ highlight link asciidocListContinuation Label
130
+ highlight link asciidocLiteralParagraph Identifier
131
+ highlight link asciidocQuoteBlockDelimiter Type
132
+ highlight link asciidocExampleBlockDelimiter Type
133
+ highlight link asciidocSidebarDelimiter Type
134
+ highlight link asciidocLiteralBlock Identifier
135
+ highlight link asciidocListingBlock Identifier
136
+ highlight link asciidocPassthroughBlock Identifier
137
+ highlight link asciidocCommentBlock Comment
138
+ highlight link asciidocFilterBlock Type
139
+ highlight link asciidocQuotedBold Special
140
+ highlight link asciidocQuotedUnconstrainedBold Special
141
+ highlight link asciidocQuotedEmphasized Type
142
+ highlight link asciidocQuotedEmphasized2 Type
143
+ highlight link asciidocQuotedUnconstrainedEmphasized Type
144
+ highlight link asciidocQuotedMonospaced Identifier
145
+ highlight link asciidocQuotedMonospaced2 Identifier
146
+ highlight link asciidocQuotedUnconstrainedMonospaced Identifier
147
+ highlight link asciidocQuotedSingleQuoted Label
148
+ highlight link asciidocQuotedDoubleQuoted Label
149
+ highlight link asciidocToDo Todo
150
+ highlight link asciidocCommentLine Comment
151
+ highlight link asciidocAdmonition Special
152
+ highlight link asciidocAttributeRef Special
153
+ highlight link asciidocAttributeList Special
154
+ highlight link asciidocAttributeEntry Special
155
+ highlight link asciidocBackslash Special
156
+ highlight link asciidocEntityRef Special
157
+ highlight link asciidocCallout Label
158
+ highlight link asciidocLineBreak Special
159
+ highlight link asciidocRuler Type
160
+ highlight link asciidocPagebreak Type
161
+ highlight link asciidocURL Macro
162
+
163
+ let b:current_syntax = "asciidoc"
164
+
165
+ " vim: wrap et sw=2 sts=2:
@@ -0,0 +1,48 @@
1
+ # AsciiDoc configuration file for Wordpress HTML generation.
2
+ # Resides in AsciiDoc global conf directory or $HOME/.asciidoc directory.
3
+ # Generates HTML which plays nicely with Wordpress.
4
+ # (the generated HTML is still valid HTML 4.01 Transitional though).
5
+ #
6
+ # NOTE: The resulting HTML needs to be further massaged with blogpost.py.
7
+ # http://srackham.wordpress.com/blogpost-readme/
8
+
9
+ include::html4.conf[]
10
+
11
+ # Override various tags.
12
+ [listtags-bulleted]
13
+ text=
14
+
15
+ [listtags-numbered]
16
+ text=
17
+
18
+ [listtags-numbered2]
19
+ text=
20
+
21
+ [listtags-labeled]
22
+ text=
23
+
24
+ [listtags-callout]
25
+ text=
26
+
27
+ [listtags-qanda]
28
+ term=<em>|</em>
29
+ text=
30
+
31
+ [listtags-glossary]
32
+ text=
33
+
34
+ [listtags-bibliography]
35
+ text=
36
+
37
+ [tabletags-default]
38
+ paragraph=<div>|</div>
39
+
40
+ [tabletags-emphasis]
41
+ paragraph=<div><em>|</em></div>
42
+
43
+ [tabletags-strong]
44
+ paragraph=<div><strong>|</strong></div>
45
+
46
+ [tabletags-monospaced]
47
+ paragraph=<div><tt>|</tt></div>
48
+
@@ -0,0 +1,57 @@
1
+ #
2
+ # xhtml11-quirks.conf
3
+ #
4
+ # Workarounds for IE6's broken # and incomplete CSS2.
5
+ #
6
+
7
+ [image-blockmacro]
8
+ <div class="imageblock"{id? id="{id}"}>
9
+ <div class="content">
10
+ <a class="image" href="{link}">
11
+ <img src="{imagesdir=}{target}" alt="{1={target}}"{1? title="{1}"}{width? width="{width}"}{height? height="{height}"}/>
12
+ {link#}</a>
13
+ </div>
14
+ <div class="image-title">{caption={figure_caption}}{title}</div>
15
+ </div>
16
+
17
+ [sidebarblock]
18
+ <div class="sidebarblock"{id? id="{id}"}>
19
+ <div class="sidebar-content">
20
+ <div class="sidebar-title">{title}</div>
21
+ |
22
+ </div></div>
23
+
24
+ [quoteblock]
25
+ <div class="quoteblock"{id? id="{id}"}>
26
+ <div class="title">{title}</div>
27
+ <div class="quoteblock-content">
28
+ |
29
+ </div>
30
+ <div class="quoteblock-attribution">
31
+ <em>{citetitle}</em><br />
32
+ &#8212; {attribution}
33
+ </div></div>
34
+
35
+ [verseblock]
36
+ <div class="verseblock"{id? id="{id}"}>
37
+ <div class="title">{title}</div>
38
+ <div class="verseblock-content">
39
+ |
40
+ </div>
41
+ <div class="verseblock-attribution">
42
+ <em>{citetitle}</em><br />
43
+ &#8212; {attribution}
44
+ </div></div>
45
+
46
+ [exampleblock]
47
+ <div class="exampleblock"{id? id="{id}"}>
48
+ <div class="title">{caption=}{title}</div>
49
+ <div class="exampleblock-content">
50
+ |
51
+ </div></div>
52
+
53
+ [sect2]
54
+ # The <div> is because the IE6 adjacent-sibling CSS selector is broken.
55
+ <h3{id? id="{id}"}>{numbered?{sectnum} }{title}</h3><div style="clear:left"></div>
56
+ |
57
+
@@ -0,0 +1,645 @@
1
+ #
2
+ # xhtml11.conf
3
+ #
4
+ # Asciidoc configuration file.
5
+ # xhtml11 backend, generates XHTML 1.1 conformant markup.
6
+ #
7
+
8
+ [miscellaneous]
9
+ outfilesuffix=.html
10
+
11
+ [attributes]
12
+ basebackend=html
13
+ basebackend-html=
14
+
15
+ [replacements]
16
+ # Line break.
17
+ (?m)^(.*)\s\+$=\1<br />
18
+
19
+ # Escape ASCIIMathML delimiters.
20
+ ifdef::asciimath[]
21
+ \$=\$
22
+ `=\`
23
+ endif::asciimath[]
24
+ # Escape LaTeXMathML delimiter.
25
+ ifdef::latexmath[]
26
+ \$=\$
27
+ endif::latexmath[]
28
+
29
+ ifdef::asciidoc7compatible[]
30
+ # Superscripts.
31
+ \^(.+?)\^=<sup>\1</sup>
32
+ # Subscripts.
33
+ ~(.+?)~=<sub>\1</sub>
34
+ endif::asciidoc7compatible[]
35
+
36
+ [ruler-blockmacro]
37
+ <hr />
38
+
39
+ [pagebreak-blockmacro]
40
+ <div style="page-break-after:always"></div>
41
+
42
+ [blockdef-pass]
43
+ asciimath-style=template="asciimathblock",subs=[]
44
+ latexmath-style=template="latexmathblock",subs=[]
45
+
46
+ [macros]
47
+ # math macros.
48
+ # Special characters are escaped in HTML math markup.
49
+ (?su)[\\]?(?P<name>asciimath|latexmath):(?P<subslist>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[specialcharacters]
50
+ (?u)^(?P<name>asciimath|latexmath)::(?P<subslist>\S*?)(\[(?P<passtext>.*?)\])$=#[specialcharacters]
51
+
52
+ [asciimath-inlinemacro]
53
+ `{passtext}`
54
+
55
+ [asciimath-blockmacro]
56
+ <div class="mathblock"{id? id="{id}"}>
57
+ <div class="content">
58
+ <div class="title">{title}</div>
59
+ `{passtext}`
60
+ </div></div>
61
+
62
+ [asciimathblock]
63
+ <div class="mathblock"{id? id="{id}"}>
64
+ <div class="content">
65
+ <div class="title">{title}</div>
66
+ `|`
67
+ </div></div>
68
+
69
+ [latexmath-inlinemacro]
70
+ {passtext}
71
+
72
+ [latexmath-blockmacro]
73
+ <div class="mathblock"{id? id="{id}"}>
74
+ <div class="content">
75
+ <div class="title">{title}</div>
76
+ {passtext}
77
+ </div></div>
78
+
79
+ [latexmathblock]
80
+ <div class="mathblock"{id? id="{id}"}>
81
+ <div class="content">
82
+ <div class="title">{title}</div>
83
+ |
84
+ </div></div>
85
+
86
+ [image-inlinemacro]
87
+ <span class="image">
88
+ <a class="image" href="{link}">
89
+ <img src="{imagesdir=}{target}" alt="{1={target}}"{1? title="{1}"}{width? width="{width}"}{height? height="{height}"} />
90
+ {link#}</a>
91
+ </span>
92
+
93
+ [image-blockmacro]
94
+ <div class="imageblock"{id? id="{id}"}>
95
+ <div class="content">
96
+ <a class="image" href="{link}">
97
+ <img src="{imagesdir=}{target}" alt="{1={target}}"{1? title="{1}"}{width? width="{width}"}{height? height="{height}"} />
98
+ {link#}</a>
99
+ </div>
100
+ <div class="title">{caption={figure_caption}}{title}</div>
101
+ </div>
102
+
103
+ [indexterm-inlinemacro]
104
+ # Index term.
105
+ {empty}
106
+
107
+ [indexterm2-inlinemacro]
108
+ # Index term.
109
+ # Single entry index term that is visible in the primary text flow.
110
+ {1}
111
+
112
+ [footnote-inlinemacro]
113
+ # Footnote.
114
+ <br />[{0}]<br />
115
+
116
+ [footnoteref-inlinemacro]
117
+ # Footnote reference.
118
+ {2#}<br />Footnote {1} [{2}]<br />
119
+ {2%}<br />[See footnote {1}]<br />
120
+
121
+ [callout-inlinemacro]
122
+ # Callout.
123
+ <b>&lt;{index}&gt;</b>
124
+
125
+ # List tags.
126
+ [listtags-bulleted]
127
+ list=<div class="ulist{style? {style}}{compact-option? compact}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ul>|</ul></div>
128
+ item=<li>|</li>
129
+ text=<p>|</p>
130
+
131
+ [listtags-numbered]
132
+ list=<div class="olist{style? {style}}{compact-option? compact}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol class="{style}">|</ol></div>
133
+ item=<li>|</li>
134
+ text=<p>|</p>
135
+
136
+ [listtags-numbered2]
137
+ list=<div class="olist2{style? {style}}{compact-option? compact}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol class="{style}">|</ol></div>
138
+ item=<li>|</li>
139
+ text=<p>|</p>
140
+
141
+ [listtags-labeled]
142
+ list=<div class="dlist{compact-option? compact}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div>
143
+ entry=
144
+ label=
145
+ term=<dt class="hdlist1{strong-option? strong}">|</dt>
146
+ item=<dd>|</dd>
147
+ text=<p>|</p>
148
+
149
+ [listtags-horizontal]
150
+ list=<div class="hdlist{compact-option? compact}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<table>{labelwidth?<col width="{labelwidth}%" />}{itemwidth?<col width="{itemwidth}%" />}|</table></div>
151
+ label=<td class="hdlist1{strong-option? strong}">|</td>
152
+ term=|<br />
153
+ entry=<tr>|</tr>
154
+ item=<td class="hdlist2">|</td>
155
+ text=<p style="margin-top: 0;">|</p>
156
+
157
+ [listtags-qanda]
158
+ list=<div class="qlist{style? {style}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div>
159
+ entry=<li>|</li>
160
+ label=
161
+ term=<p><em>|</em></p>
162
+ item=
163
+ text=<p>|</p>
164
+
165
+ [listtags-callout]
166
+ list=<div class="colist{style? {style}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div>
167
+ item=<li>|</li>
168
+ text=<p>|</p>
169
+
170
+ [listtags-glossary]
171
+ list=<div class="dlist{style? {style}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div>
172
+ label=
173
+ entry=
174
+ term=<dt>|</dt>
175
+ item=<dd>|</dd>
176
+ text=<p>|</p>
177
+
178
+ [listtags-bibliography]
179
+ list=<div class="ulist{style? {style}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ul>|</ul></div>
180
+ item=<li>|</li>
181
+ text=<p>|</p>
182
+
183
+ [tags]
184
+ # Quoted text.
185
+ emphasis=<em{0? style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?"}>|</em>
186
+ strong=<strong{0? style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?"}>|</strong>
187
+ monospaced=<tt{0? style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?"}>|</tt>
188
+ singlequoted={0?<span style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?">}{amp}#8216;|{amp}#8217;{0?</span>}
189
+ doublequoted={0?<span style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?">}{amp}#8220;|{amp}#8221;{0?</span>}
190
+ unquoted={0?<span style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?">}|{0?</span>}
191
+ superscript=<sup{0? style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?"}>|</sup>
192
+ subscript=<sub{0? style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?"}>|</sub>
193
+
194
+ # Inline macros
195
+ [http-inlinemacro]
196
+ <a href="{name}:{target}">{0={name}:{target}}</a>
197
+ [https-inlinemacro]
198
+ <a href="{name}:{target}">{0={name}:{target}}</a>
199
+ [ftp-inlinemacro]
200
+ <a href="{name}:{target}">{0={name}:{target}}</a>
201
+ [file-inlinemacro]
202
+ <a href="{name}:{target}">{0={name}:{target}}</a>
203
+ [irc-inlinemacro]
204
+ <a href="{name}:{target}">{0={name}:{target}}</a>
205
+ [mailto-inlinemacro]
206
+ <a href="mailto:{target}">{0={target}}</a>
207
+ [link-inlinemacro]
208
+ <a href="{target}">{0={target}}</a>
209
+ [callto-inlinemacro]
210
+ <a href="{name}:{target}">{0={target}}</a>
211
+ # anchor:id[text]
212
+ [anchor-inlinemacro]
213
+ <a id="{target}"></a>
214
+ # [[id,text]]
215
+ [anchor2-inlinemacro]
216
+ <a id="{1}"></a>
217
+ # [[[id]]]
218
+ [anchor3-inlinemacro]
219
+ <a id="{1}"></a>[{1}]
220
+ # xref:id[text]
221
+ [xref-inlinemacro]
222
+ <a href="#{target}">{0=[{target}]}</a>
223
+ # <<id,text>>
224
+ [xref2-inlinemacro]
225
+ <a href="#{1}">{2=[{1}]}</a>
226
+
227
+ # Special word substitution.
228
+ [emphasizedwords]
229
+ <em>{words}</em>
230
+ [monospacedwords]
231
+ <tt>{words}</tt>
232
+ [strongwords]
233
+ <strong>{words}</strong>
234
+
235
+ # Paragraph substitution.
236
+ [paragraph]
237
+ <div class="paragraph{style? {style}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<p>
238
+ |
239
+ </p></div>
240
+
241
+ [literalparagraph]
242
+ # The literal block employs the same markup.
243
+ template::[literalblock]
244
+
245
+ [verseparagraph]
246
+ # The verse block employs the same markup.
247
+ template::[verseblock]
248
+
249
+ [admonitionparagraph]
250
+ # The admonition block employs the same markup.
251
+ template::[admonitionblock]
252
+
253
+ # Delimited blocks.
254
+ [listingblock]
255
+ <div class="listingblock"{id? id="{id}"}>
256
+ <div class="title">{caption=}{title}</div>
257
+ <div class="content">
258
+ <pre><tt>
259
+ |
260
+ </tt></pre>
261
+ </div></div>
262
+
263
+ [literalblock]
264
+ <div class="literalblock"{id? id="{id}"}>
265
+ <div class="title">{title}</div>
266
+ <div class="content">
267
+ {style#}<pre class="{style}"><span>
268
+ {style%}<pre><tt>
269
+ |
270
+ </tt></pre>
271
+ </div></div>
272
+
273
+ [sidebarblock]
274
+ <div class="sidebarblock"{id? id="{id}"}>
275
+ <div class="content">
276
+ <div class="title">{title}</div>
277
+ |
278
+ </div></div>
279
+
280
+ [abstractblock]
281
+ template::[quoteblock]
282
+
283
+ [quoteblock]
284
+ <div class="quoteblock"{id? id="{id}"}>
285
+ <div class="title">{title}</div>
286
+ <div class="content">
287
+ |
288
+ </div>
289
+ <div class="attribution">
290
+ <em>{citetitle}</em><br />
291
+ &#8212; {attribution}
292
+ </div></div>
293
+
294
+ [verseblock]
295
+ <div class="verseblock"{id? id="{id}"}>
296
+ <div class="title">{title}</div>
297
+ <div class="content">
298
+ |
299
+ </div>
300
+ <div class="attribution">
301
+ <em>{citetitle}</em><br />
302
+ &#8212; {attribution}
303
+ </div></div>
304
+
305
+ [exampleblock]
306
+ <div class="exampleblock"{id? id="{id}"}>
307
+ <div class="title">{caption=}{title}</div>
308
+ <div class="content">
309
+ |
310
+ </div></div>
311
+
312
+ [admonitionblock]
313
+ <div class="admonitionblock"{id? id="{id}"}>
314
+ <table><tr>
315
+ <td class="icon">
316
+ {icons#}<img src="{icon={iconsdir}/{name}.png}" alt="{caption}" />
317
+ {icons%}<div class="title">{caption}</div>
318
+ </td>
319
+ <td class="content">
320
+ <div class="title">{title}</div>
321
+ |
322
+ </td>
323
+ </tr></table>
324
+ </div>
325
+
326
+ # Tables.
327
+ [tabletags-default]
328
+ # {colalign} should be in <col> but Firefox 2 & 3 require it in <td>.
329
+ colspec=<col width="{colpcwidth}%" />
330
+ bodyrow=<tr>|</tr>
331
+ headdata=<th align="{colalign}">|</th>
332
+ bodydata=<td align="{colalign}">|</td>
333
+ paragraph=<p class="table">|</p>
334
+
335
+ [tabletags-emphasis]
336
+ paragraph=<p class="table"><em>|</em></p>
337
+
338
+ [tabletags-strong]
339
+ paragraph=<p class="table"><strong>|</strong></p>
340
+
341
+ [tabletags-monospaced]
342
+ paragraph=<p class="table"><tt>|</tt></p>
343
+
344
+ [tabletags-verse]
345
+ bodydata=<td align="{colalign}"><div class="verse">|</div></td>
346
+ paragraph=
347
+
348
+ [tabletags-literal]
349
+ bodydata=<td align="{colalign}"><div class="literal"><pre><tt>|</tt></pre></div></td>
350
+ paragraph=
351
+
352
+ [tabletags-asciidoc]
353
+ bodydata=<td align="{colalign}"><div>|</div></td>
354
+ paragraph=
355
+
356
+ [table]
357
+ <div class="tableblock"{id? id="{id}"}>
358
+ <table rules="{grid=all}"
359
+ width="{tablepcwidth}%"
360
+ frame="{frame%border}"
361
+ frame="{frame@topbot:hsides}{frame@all:border}{frame@none:void}{frame@sides:vsides}"
362
+ cellspacing="0" cellpadding="4">
363
+ <caption class="title">{caption={table_caption}}{title}</caption>
364
+ {colspecs}
365
+ {headrows#}<thead valign="{valign=top}">
366
+ {headrows}
367
+ {headrows#}</thead>
368
+ {footrows#}<tfoot valign="{valign=top}">
369
+ {footrows}
370
+ {footrows#}</tfoot>
371
+ <tbody valign="{valign=top}">
372
+ {bodyrows}
373
+ </tbody>
374
+ </table>
375
+ </div>
376
+
377
+ #--------------------------------------------------------------------
378
+ # Deprecated old table definitions.
379
+ #
380
+
381
+ [miscellaneous]
382
+ # Screen width in pixels.
383
+ pagewidth=800
384
+ pageunits=
385
+
386
+ [old_tabledef-default]
387
+ template=old_table
388
+ colspec=<col width="{colwidth}{pageunits}" />
389
+ bodyrow=<tr>|</tr>
390
+ headdata=<th align="{colalign}">|</th>
391
+ footdata=<td align="{colalign}">|</td>
392
+ bodydata=<td align="{colalign}">|</td>
393
+
394
+ [old_table]
395
+ <div class="tableblock"{id? id="{id}"}>
396
+ <table rules="{grid=none}"
397
+ frame="{frame%hsides}"
398
+ frame="{frame@topbot:hsides}{frame@all:border}{frame@none:void}{frame@sides:vsides}"
399
+ cellspacing="0" cellpadding="4">
400
+ <caption class="title">{caption={table_caption}}{title}</caption>
401
+ {colspecs}
402
+ {headrows#}<thead>
403
+ {headrows}
404
+ {headrows#}</thead>
405
+ {footrows#}<tfoot>
406
+ {footrows}
407
+ {footrows#}</tfoot>
408
+ <tbody valign="top">
409
+ {bodyrows}
410
+ </tbody>
411
+ </table>
412
+ </div>
413
+
414
+ # End of deprecated old table definitions.
415
+ #--------------------------------------------------------------------
416
+
417
+ [preamble]
418
+ # Untitled elements between header and first section title.
419
+ <div id="preamble"{id? id="{id}"}>
420
+ <div class="sectionbody">
421
+ |
422
+ </div>
423
+ </div>
424
+
425
+ # Document sections.
426
+ [sect0]
427
+ <h1{id? id="{id}"}>{title}</h1>
428
+ |
429
+
430
+ [sect1]
431
+ <h2{id? id="{id}"}>{numbered?{sectnum} }{title}</h2>
432
+ <div class="sectionbody">
433
+ |
434
+ </div>
435
+
436
+ [sect2]
437
+ <h3{id? id="{id}"}>{numbered?{sectnum} }{title}</h3>
438
+ |
439
+
440
+ [sect3]
441
+ <h4{id? id="{id}"}>{numbered?{sectnum} }{title}</h4>
442
+ |
443
+
444
+ [sect4]
445
+ <h5{id? id="{id}"}>{title}</h5>
446
+ |
447
+
448
+ [header]
449
+ # IE6 enters quirks mode if the following XML directive is present.
450
+ #<?xml version="1.0" encoding="UTF-8"?>
451
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
452
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
453
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang=en}">
454
+ <head>
455
+ <meta http-equiv="Content-Type" content="{quirks=application/xhtml+xml}{quirks?text/html}; charset={encoding}" />
456
+ <meta name="generator" content="AsciiDoc {asciidoc-version}" />
457
+ <title>{doctitle=}</title>
458
+ ifdef::linkcss[]
459
+ <link rel="stylesheet" href="{stylesdir=.}/{theme={backend}}.css" type="text/css" />
460
+ {doctype-manpage}<link rel="stylesheet" href="{stylesdir=.}/{theme={backend}}-manpage.css" type="text/css" />
461
+ ifdef::quirks[]
462
+ <link rel="stylesheet" href="{stylesdir=.}/{theme={backend}}-quirks.css" type="text/css" />
463
+ endif::quirks[]
464
+ <link rel="stylesheet" href="{stylesdir=.}/{stylesheet}" type="text/css" />
465
+ endif::linkcss[]
466
+ ifndef::linkcss[]
467
+ <style type="text/css">
468
+ include1::{stylesdir=./stylesheets}/{theme={backend}}.css[]
469
+ ifdef::doctype-manpage[]
470
+ include1::{stylesdir=./stylesheets}/{theme={backend}}-manpage.css[]
471
+ endif::doctype-manpage[]
472
+ ifdef::quirks[]
473
+ include1::{stylesdir=./stylesheets}/{theme={backend}}-quirks.css[]
474
+ endif::quirks[]
475
+ include1::{stylesheet}[]
476
+ </style>
477
+ endif::linkcss[]
478
+ ifdef::toc[]
479
+ ifdef::linkcss[]
480
+ <script type="text/javascript">
481
+ # Escape as CDATA to pass validators.
482
+ /*<![CDATA[*/
483
+ window.onload = function()\{generateToc({toclevels=2})\}
484
+ /*]]>*/
485
+ </script>
486
+ <script type="text/javascript" src="{scriptsdir=.}/toc.js"></script>
487
+ endif::linkcss[]
488
+ ifndef::linkcss[]
489
+ <script type="text/javascript">
490
+ # Escape as CDATA to pass validators.
491
+ /*<![CDATA[*/
492
+ window.onload = function()\{generateToc({toclevels=2})\}
493
+ include1::{scriptsdir=./javascripts}/toc.js[]
494
+ /*]]>*/
495
+ </script>
496
+ endif::linkcss[]
497
+ endif::toc[]
498
+ ifdef::asciimath[]
499
+ ifdef::linkcss[]
500
+ <script type="text/javascript" src="{scriptsdir=.}/ASCIIMathML.js"></script>
501
+ endif::linkcss[]
502
+ ifndef::linkcss[]
503
+ <script type="text/javascript">
504
+ # Escape as CDATA to pass validators.
505
+ /*<![CDATA[*/
506
+ include1::{scriptsdir=./javascripts}/ASCIIMathML.js[]
507
+ /*]]>*/
508
+ </script>
509
+ endif::linkcss[]
510
+ endif::asciimath[]
511
+ ifdef::latexmath[]
512
+ ifdef::linkcss[]
513
+ <script type="text/javascript" src="{scriptsdir=.}/LaTeXMathML.js"></script>
514
+ endif::linkcss[]
515
+ ifndef::linkcss[]
516
+ <script type="text/javascript">
517
+ # Escape as CDATA to pass validators.
518
+ /*<![CDATA[*/
519
+ include1::{scriptsdir=./javascripts}/LaTeXMathML.js[]
520
+ /*]]>*/
521
+ </script>
522
+ endif::linkcss[]
523
+ endif::latexmath[]
524
+ </head>
525
+ <body>
526
+ # Article, book header.
527
+ ifndef::doctype-manpage[]
528
+ <div id="header">
529
+ <h1>{doctitle}</h1>
530
+ <span id="author">{author}</span><br />
531
+ <span id="email"><tt>&lt;<a href="mailto:{email}">{email}</a>&gt;</tt></span><br />
532
+ <span id="revision">version {revision}{date?,}</span>
533
+ {date}
534
+ ifdef::toc[]
535
+ <div id="toc">
536
+ <div id="toctitle">{toc_title}</div>
537
+ <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
538
+ </div>
539
+ endif::toc[]
540
+ </div>
541
+ endif::doctype-manpage[]
542
+ # Man page header.
543
+ ifdef::doctype-manpage[]
544
+ <div id="header">
545
+ <h1>
546
+ {doctitle} Manual Page
547
+ </h1>
548
+ ifdef::toc[]
549
+ <div id="toc">
550
+ <div id="toctitle">{toc_title}</div>
551
+ <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
552
+ </div>
553
+ endif::toc[]
554
+ <h2>NAME</h2>
555
+ <div class="sectionbody">
556
+ <p>{manname} -
557
+ {manpurpose}
558
+ </p>
559
+ </div>
560
+ </div>
561
+ endif::doctype-manpage[]
562
+
563
+ [footer]
564
+ <div id="footer">
565
+ <div id="footer-text">
566
+ Version {revision}<br />
567
+ Last updated {localdate} {localtime}
568
+ </div>
569
+ ifdef::badges[]
570
+ <div id="footer-badges">
571
+ ifndef::icons[]
572
+ Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a>
573
+ and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
574
+ endif::icons[]
575
+ ifdef::icons[]
576
+ <a href="http://validator.w3.org/check?uri=referer">
577
+ <img style="border:none; width:88px; height:31px;"
578
+ src="http://www.w3.org/Icons/valid-xhtml11"
579
+ alt="Valid XHTML 1.1!" />
580
+ </a>
581
+ <a href="http://jigsaw.w3.org/css-validator/check/referer">
582
+ <img style="border:none; width:88px; height:31px;"
583
+ src="http://jigsaw.w3.org/css-validator/images/vcss"
584
+ alt="Valid CSS!" />
585
+ </a>
586
+ <a href="http://www.mozilla.org/products/firefox/">
587
+ <img style="border:none; width:110px; height:32px;"
588
+ src="http://www.spreadfirefox.com/community/images/affiliates/Buttons/110x32/safer.gif"
589
+ alt="Get Firefox!" />
590
+ </a>
591
+ endif::icons[]
592
+ </div>
593
+ endif::badges[]
594
+ </div>
595
+ </body>
596
+ </html>
597
+
598
+ ifdef::doctype-manpage[]
599
+ [sect-synopsis]
600
+ template::[sect1]
601
+ endif::doctype-manpage[]
602
+
603
+ ifdef::quirks[]
604
+ include::{backend}-quirks.conf[]
605
+ endif::quirks[]
606
+
607
+ # If data-uri attribute is defined then embed images in HTML pages using the
608
+ # data: URI scheme (http://en.wikipedia.org/wiki/Data:_URI_scheme).
609
+ ifdef::data-uri[]
610
+
611
+ [image-inlinemacro]
612
+ <span class="image">
613
+ <a class="image" href="{link}">
614
+ <img alt="{1={target}}"{1? title="{1}"}{width? width="{width}"}{height? height="{height}"} src="data:image/{eval:os.path.splitext('{target}')[1][1:]};base64,
615
+ {sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{imagesdir=}{target}"}" />
616
+ {link#}</a>
617
+ </span>
618
+
619
+ [image-blockmacro]
620
+ <div class="imageblock"{id? id="{id}"}>
621
+ <div class="content">
622
+ <a class="image" href="{link}">
623
+ <img alt="{1={target}}"{1? title="{1}"}{width? width="{width}"}{height? height="{height}"} src="data:image/{eval:os.path.splitext('{target}')[1][1:]};base64,
624
+ {sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{imagesdir=}{target}"}" />
625
+ {link#}</a>
626
+ </div>
627
+ <div class="title">{caption={figure_caption}}{title}</div>
628
+ </div>
629
+
630
+ [admonitionblock]
631
+ <div class="admonitionblock"{id? id="{id}"}>
632
+ <table><tr>
633
+ <td class="icon">
634
+ {icons%}<div class="title">{caption}</div>
635
+ {icons#}<img alt="{caption}" src="data:image/png;base64,
636
+ {icons#}{sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{icon={iconsdir}/{name}.png}"}" />
637
+ </td>
638
+ <td class="content">
639
+ <div class="title">{title}</div>
640
+ |
641
+ </td>
642
+ </tr></table>
643
+ </div>
644
+
645
+ endif::data-uri[]