mizuho 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +20 -0
- data/README.markdown +61 -0
- data/Rakefile +41 -0
- data/asciidoc/BUGS +39 -0
- data/asciidoc/BUGS.txt +32 -0
- data/asciidoc/CHANGELOG +1796 -0
- data/asciidoc/CHANGELOG.txt +1810 -0
- data/asciidoc/COPYING +339 -0
- data/asciidoc/COPYRIGHT +18 -0
- data/asciidoc/INSTALL +76 -0
- data/asciidoc/INSTALL.txt +71 -0
- data/asciidoc/Makefile.in +161 -0
- data/asciidoc/README +46 -0
- data/asciidoc/README.txt +36 -0
- data/asciidoc/a2x +674 -0
- data/asciidoc/asciidoc.conf +455 -0
- data/asciidoc/asciidoc.py +4998 -0
- data/asciidoc/common.aap +9 -0
- data/asciidoc/configure +2840 -0
- data/asciidoc/configure.ac +11 -0
- data/asciidoc/dblatex/asciidoc-dblatex.sty +20 -0
- data/asciidoc/dblatex/asciidoc-dblatex.xsl +32 -0
- data/asciidoc/dblatex/dblatex-readme.txt +39 -0
- data/asciidoc/doc/a2x.1 +257 -0
- data/asciidoc/doc/a2x.1.txt +204 -0
- data/asciidoc/doc/article.css-embedded.html +602 -0
- data/asciidoc/doc/article.html +46 -0
- data/asciidoc/doc/article.pdf +0 -0
- data/asciidoc/doc/article.txt +122 -0
- data/asciidoc/doc/asciidoc-revhistory.xml +27 -0
- data/asciidoc/doc/asciidoc.1 +155 -0
- data/asciidoc/doc/asciidoc.1.css-embedded.html +598 -0
- data/asciidoc/doc/asciidoc.1.css.html +212 -0
- data/asciidoc/doc/asciidoc.1.html +190 -0
- data/asciidoc/doc/asciidoc.1.txt +118 -0
- data/asciidoc/doc/asciidoc.conf +8 -0
- data/asciidoc/doc/asciidoc.css-embedded.html +7853 -0
- data/asciidoc/doc/asciidoc.css.html +7416 -0
- data/asciidoc/doc/asciidoc.dict +733 -0
- data/asciidoc/doc/asciidoc.html +3339 -0
- data/asciidoc/doc/asciidoc.txt +4979 -0
- data/asciidoc/doc/asciimathml.txt +64 -0
- data/asciidoc/doc/book-multi.css-embedded.html +575 -0
- data/asciidoc/doc/book-multi.html +55 -0
- data/asciidoc/doc/book-multi.txt +155 -0
- data/asciidoc/doc/book.css-embedded.html +607 -0
- data/asciidoc/doc/book.html +43 -0
- data/asciidoc/doc/book.txt +131 -0
- data/asciidoc/doc/customers.csv +18 -0
- data/asciidoc/doc/docbook-xsl.css +272 -0
- data/asciidoc/doc/faq.txt +547 -0
- data/asciidoc/doc/latex-backend.html +117 -0
- data/asciidoc/doc/latex-backend.txt +191 -0
- data/asciidoc/doc/latexmath.txt +244 -0
- data/asciidoc/doc/latexmathml.txt +41 -0
- data/asciidoc/doc/main.aap +297 -0
- data/asciidoc/doc/music-filter.html +566 -0
- data/asciidoc/doc/music-filter.pdf +0 -0
- data/asciidoc/doc/music-filter.txt +158 -0
- data/asciidoc/doc/source-highlight-filter.html +214 -0
- data/asciidoc/doc/source-highlight-filter.pdf +0 -0
- data/asciidoc/doc/source-highlight-filter.txt +203 -0
- data/asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt +43 -0
- data/asciidoc/docbook-xsl/chunked.xsl +19 -0
- data/asciidoc/docbook-xsl/common.xsl +67 -0
- data/asciidoc/docbook-xsl/fo.xsl +149 -0
- data/asciidoc/docbook-xsl/htmlhelp.xsl +17 -0
- data/asciidoc/docbook-xsl/manpage.xsl +31 -0
- data/asciidoc/docbook-xsl/text.xsl +50 -0
- data/asciidoc/docbook-xsl/xhtml.xsl +14 -0
- data/asciidoc/docbook.conf +721 -0
- data/asciidoc/examples/website/ASCIIMathML.js +938 -0
- data/asciidoc/examples/website/CHANGELOG.html +4389 -0
- data/asciidoc/examples/website/CHANGELOG.txt +1810 -0
- data/asciidoc/examples/website/INSTALL.html +161 -0
- data/asciidoc/examples/website/INSTALL.txt +71 -0
- data/asciidoc/examples/website/LaTeXMathML.js +1223 -0
- data/asciidoc/examples/website/README-website.html +118 -0
- data/asciidoc/examples/website/README-website.txt +29 -0
- data/asciidoc/examples/website/README.html +125 -0
- data/asciidoc/examples/website/README.txt +36 -0
- data/asciidoc/examples/website/a2x.1.html +419 -0
- data/asciidoc/examples/website/a2x.1.txt +204 -0
- data/asciidoc/examples/website/asciidoc-docbook-xsl.html +130 -0
- data/asciidoc/examples/website/asciidoc-docbook-xsl.txt +43 -0
- data/asciidoc/examples/website/asciidoc-graphviz-sample.txt +130 -0
- data/asciidoc/examples/website/asciimathml.txt +64 -0
- data/asciidoc/examples/website/build-website.sh +25 -0
- data/asciidoc/examples/website/customers.csv +18 -0
- data/asciidoc/examples/website/downloads.html +257 -0
- data/asciidoc/examples/website/downloads.txt +121 -0
- data/asciidoc/examples/website/faq.html +673 -0
- data/asciidoc/examples/website/faq.txt +547 -0
- data/asciidoc/examples/website/index.html +419 -0
- data/asciidoc/examples/website/index.txt +245 -0
- data/asciidoc/examples/website/latex-backend.html +535 -0
- data/asciidoc/examples/website/latex-backend.txt +191 -0
- data/asciidoc/examples/website/latexmathml.txt +41 -0
- data/asciidoc/examples/website/layout1.conf +161 -0
- data/asciidoc/examples/website/layout1.css +65 -0
- data/asciidoc/examples/website/layout2.conf +158 -0
- data/asciidoc/examples/website/layout2.css +93 -0
- data/asciidoc/examples/website/manpage.html +266 -0
- data/asciidoc/examples/website/manpage.txt +118 -0
- data/asciidoc/examples/website/music-filter.html +242 -0
- data/asciidoc/examples/website/music-filter.txt +158 -0
- data/asciidoc/examples/website/music1.abc +12 -0
- data/asciidoc/examples/website/music1.png +0 -0
- data/asciidoc/examples/website/music2.ly +9 -0
- data/asciidoc/examples/website/music2.png +0 -0
- data/asciidoc/examples/website/newlists.txt +40 -0
- data/asciidoc/examples/website/newtables.txt +397 -0
- data/asciidoc/examples/website/sample1.png +0 -0
- data/asciidoc/examples/website/sample3.png +0 -0
- data/asciidoc/examples/website/sample4.png +0 -0
- data/asciidoc/examples/website/source-highlight-filter.html +286 -0
- data/asciidoc/examples/website/source-highlight-filter.txt +203 -0
- data/asciidoc/examples/website/support.html +78 -0
- data/asciidoc/examples/website/support.txt +5 -0
- data/asciidoc/examples/website/toc.js +69 -0
- data/asciidoc/examples/website/userguide.html +7460 -0
- data/asciidoc/examples/website/userguide.txt +4979 -0
- data/asciidoc/examples/website/version83.txt +37 -0
- data/asciidoc/examples/website/version9.html +143 -0
- data/asciidoc/examples/website/version9.txt +48 -0
- data/asciidoc/examples/website/xhtml11-manpage.css +18 -0
- data/asciidoc/examples/website/xhtml11-quirks.css +41 -0
- data/asciidoc/examples/website/xhtml11.css +328 -0
- data/asciidoc/filters/code/code-filter-readme.txt +37 -0
- data/asciidoc/filters/code/code-filter-test.txt +15 -0
- data/asciidoc/filters/code/code-filter.conf +8 -0
- data/asciidoc/filters/code/code-filter.py +239 -0
- data/asciidoc/filters/graphviz/asciidoc-graphviz-sample.txt +130 -0
- data/asciidoc/filters/graphviz/graphviz-filter.conf +39 -0
- data/asciidoc/filters/graphviz/graphviz2png.py +154 -0
- data/asciidoc/filters/music/music-filter-test.txt +40 -0
- data/asciidoc/filters/music/music-filter.conf +40 -0
- data/asciidoc/filters/music/music2png.py +189 -0
- data/asciidoc/filters/source/source-highlight-filter-test.txt +19 -0
- data/asciidoc/filters/source/source-highlight-filter.conf +108 -0
- data/asciidoc/help.conf +213 -0
- data/asciidoc/html4.conf +460 -0
- data/asciidoc/images/highlighter.png +0 -0
- data/asciidoc/images/icons/README +5 -0
- data/asciidoc/images/icons/callouts/1.png +0 -0
- data/asciidoc/images/icons/callouts/10.png +0 -0
- data/asciidoc/images/icons/callouts/11.png +0 -0
- data/asciidoc/images/icons/callouts/12.png +0 -0
- data/asciidoc/images/icons/callouts/13.png +0 -0
- data/asciidoc/images/icons/callouts/14.png +0 -0
- data/asciidoc/images/icons/callouts/15.png +0 -0
- data/asciidoc/images/icons/callouts/2.png +0 -0
- data/asciidoc/images/icons/callouts/3.png +0 -0
- data/asciidoc/images/icons/callouts/4.png +0 -0
- data/asciidoc/images/icons/callouts/5.png +0 -0
- data/asciidoc/images/icons/callouts/6.png +0 -0
- data/asciidoc/images/icons/callouts/7.png +0 -0
- data/asciidoc/images/icons/callouts/8.png +0 -0
- data/asciidoc/images/icons/callouts/9.png +0 -0
- data/asciidoc/images/icons/caution.png +0 -0
- data/asciidoc/images/icons/example.png +0 -0
- data/asciidoc/images/icons/home.png +0 -0
- data/asciidoc/images/icons/important.png +0 -0
- data/asciidoc/images/icons/next.png +0 -0
- data/asciidoc/images/icons/note.png +0 -0
- data/asciidoc/images/icons/prev.png +0 -0
- data/asciidoc/images/icons/tip.png +0 -0
- data/asciidoc/images/icons/up.png +0 -0
- data/asciidoc/images/icons/warning.png +0 -0
- data/asciidoc/images/smallnew.png +0 -0
- data/asciidoc/images/tiger.png +0 -0
- data/asciidoc/install-sh +201 -0
- data/asciidoc/javascripts/ASCIIMathML.js +938 -0
- data/asciidoc/javascripts/LaTeXMathML.js +1223 -0
- data/asciidoc/javascripts/toc.js +69 -0
- data/asciidoc/lang-es.conf +15 -0
- data/asciidoc/latex.conf +663 -0
- data/asciidoc/stylesheets/docbook-xsl.css +272 -0
- data/asciidoc/stylesheets/xhtml11-manpage.css +18 -0
- data/asciidoc/stylesheets/xhtml11-quirks.css +41 -0
- data/asciidoc/stylesheets/xhtml11.css +328 -0
- data/asciidoc/text.conf +16 -0
- data/asciidoc/vim/ftdetect/asciidoc_filetype.vim +53 -0
- data/asciidoc/vim/syntax/asciidoc.vim +165 -0
- data/asciidoc/wordpress.conf +48 -0
- data/asciidoc/xhtml11-quirks.conf +57 -0
- data/asciidoc/xhtml11.conf +645 -0
- data/bin/mizuho +47 -0
- data/bin/mizuho-asciidoc +4 -0
- data/lib/mizuho.rb +10 -0
- data/lib/mizuho/chapter.rb +54 -0
- data/lib/mizuho/generator.rb +134 -0
- data/lib/mizuho/heading.rb +46 -0
- data/lib/mizuho/parser.rb +103 -0
- data/lib/mizuho/source_highlight.rb +2 -0
- data/lib/mizuho/template.rb +50 -0
- data/source-highlight/ada.lang +38 -0
- data/source-highlight/bib.lang +6 -0
- data/source-highlight/bison.lang +3 -0
- data/source-highlight/c.lang +41 -0
- data/source-highlight/c_comment.lang +27 -0
- data/source-highlight/c_string.lang +9 -0
- data/source-highlight/caml.lang +16 -0
- data/source-highlight/changelog.lang +8 -0
- data/source-highlight/clike_vardeclaration.lang +4 -0
- data/source-highlight/cpp.lang +15 -0
- data/source-highlight/csharp.lang +36 -0
- data/source-highlight/css.lang +14 -0
- data/source-highlight/css_common.outlang +26 -0
- data/source-highlight/darwin/source-highlight +0 -0
- data/source-highlight/default.css +51 -0
- data/source-highlight/default.lang +8 -0
- data/source-highlight/default.style +57 -0
- data/source-highlight/desktop.lang +7 -0
- data/source-highlight/diff.lang +32 -0
- data/source-highlight/docbook.outlang +36 -0
- data/source-highlight/esc.outlang +46 -0
- data/source-highlight/esc.style +35 -0
- data/source-highlight/extreme_comment.lang +5 -0
- data/source-highlight/extreme_comment2.lang +5 -0
- data/source-highlight/extreme_comment3.lang +15 -0
- data/source-highlight/fixed-fortran.lang +5 -0
- data/source-highlight/flex.lang +37 -0
- data/source-highlight/fortran.lang +57 -0
- data/source-highlight/function.lang +2 -0
- data/source-highlight/glsl.lang +86 -0
- data/source-highlight/haxe.lang +7 -0
- data/source-highlight/html.lang +7 -0
- data/source-highlight/html.outlang +25 -0
- data/source-highlight/html_common.outlang +35 -0
- data/source-highlight/html_notfixed.outlang +22 -0
- data/source-highlight/html_ref.outlang +6 -0
- data/source-highlight/htmlcss.outlang +28 -0
- data/source-highlight/htmltable.outlang +14 -0
- data/source-highlight/htmltablelinenum.outlang +26 -0
- data/source-highlight/java.lang +26 -0
- data/source-highlight/javadoc.outlang +24 -0
- data/source-highlight/javascript.lang +27 -0
- data/source-highlight/key_string.lang +4 -0
- data/source-highlight/lang.map +108 -0
- data/source-highlight/langdef.lang +21 -0
- data/source-highlight/latex.lang +52 -0
- data/source-highlight/latex.outlang +59 -0
- data/source-highlight/latexcolor.outlang +44 -0
- data/source-highlight/ldap.lang +10 -0
- data/source-highlight/log.lang +53 -0
- data/source-highlight/logtalk.lang +85 -0
- data/source-highlight/lsm.lang +7 -0
- data/source-highlight/lua.lang +27 -0
- data/source-highlight/m4.lang +27 -0
- data/source-highlight/makefile.lang +42 -0
- data/source-highlight/nohilite.lang +2 -0
- data/source-highlight/number.lang +3 -0
- data/source-highlight/outlang.lang +16 -0
- data/source-highlight/outlang.map +12 -0
- data/source-highlight/pascal.lang +20 -0
- data/source-highlight/perl.lang +134 -0
- data/source-highlight/php.lang +25 -0
- data/source-highlight/postscript.lang +42 -0
- data/source-highlight/prolog.lang +37 -0
- data/source-highlight/properties.lang +7 -0
- data/source-highlight/python.lang +26 -0
- data/source-highlight/ruby.lang +32 -0
- data/source-highlight/scala.lang +31 -0
- data/source-highlight/script_comment.lang +3 -0
- data/source-highlight/sh.lang +38 -0
- data/source-highlight/slang.lang +25 -0
- data/source-highlight/sml.lang +5 -0
- data/source-highlight/source-highlight +24 -0
- data/source-highlight/spec.lang +12 -0
- data/source-highlight/sql.lang +46 -0
- data/source-highlight/style.defaults +15 -0
- data/source-highlight/style.lang +16 -0
- data/source-highlight/style2.style +10 -0
- data/source-highlight/style3.style +10 -0
- data/source-highlight/symbols.lang +2 -0
- data/source-highlight/tcl.lang +35 -0
- data/source-highlight/texinfo.outlang +34 -0
- data/source-highlight/texinfo.style +20 -0
- data/source-highlight/url.lang +3 -0
- data/source-highlight/xhtml.outlang +25 -0
- data/source-highlight/xhtml_common.outlang +8 -0
- data/source-highlight/xhtml_notfixed.outlang +16 -0
- data/source-highlight/xhtmlcss.outlang +19 -0
- data/source-highlight/xhtmltable.outlang +7 -0
- data/source-highlight/xml.lang +17 -0
- data/source-highlight/xorg.lang +10 -0
- data/templates/asciidoc.css +358 -0
- data/templates/asciidoc.html.erb +86 -0
- data/templates/manualsonrails.css +165 -0
- data/templates/manualsonrails.html.erb +97 -0
- data/test/generator_spec.rb +60 -0
- data/test/parser_spec.rb +239 -0
- data/test/spec_helper.rb +51 -0
- metadata +358 -0
@@ -0,0 +1,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
|
+
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= 
|
29
|
+
wj=⁠
|
30
|
+
deg=°
|
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
|
+
&=&
|
62
|
+
<=<
|
63
|
+
>=>
|
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 ©)
|
98
|
+
(?<!\\)\(C\)=©
|
99
|
+
\\\(C\)=(C)
|
100
|
+
|
101
|
+
# (R) registered trade mark (entity reference ®
|
102
|
+
(?<!\\)\(R\)=®
|
103
|
+
\\\(R\)=(R)
|
104
|
+
|
105
|
+
# (TM) Trademark (entity reference ™)
|
106
|
+
(?<!\\)\(TM\)=™
|
107
|
+
\\\(TM\)=(TM)
|
108
|
+
|
109
|
+
# -- Spaced and unspaced em dashes (entity reference —).
|
110
|
+
# Space on both sides is translated to thin space characters.
|
111
|
+
(\n-- )|( -- )|( --\n)= — 
|
112
|
+
(\w)--(\w)=\1—\2
|
113
|
+
\\--(?!-)=--
|
114
|
+
|
115
|
+
# Replace vertical typewriter apostrophe with punctuation apostrophe.
|
116
|
+
(\w)'(\w)=\1’\2
|
117
|
+
|
118
|
+
# ... Ellipsis (entity reference …)
|
119
|
+
(?<!\\)\.\.\.=…
|
120
|
+
\\\.\.\.=...
|
121
|
+
|
122
|
+
# Arrows from the Arrows block of Unicode.
|
123
|
+
# -> right arrow
|
124
|
+
(?<!\\)->=→
|
125
|
+
\\->=->
|
126
|
+
# => right double arrow
|
127
|
+
(?<!\\)\=>=⇒
|
128
|
+
\\\=>==>
|
129
|
+
# <- left arrow
|
130
|
+
(?<!\\)<-=←
|
131
|
+
\\<-=<-
|
132
|
+
# <= left double arrow
|
133
|
+
(?<!\\)<\==⇐
|
134
|
+
\\<\==<=
|
135
|
+
|
136
|
+
# Arbitrary entity references.
|
137
|
+
(?<!\\)&([:_#a-zA-Z][:_.\-\w]*?;)=&\1
|
138
|
+
\\(&[:_#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)[\\]?<(?P<name>http|https|ftp|file|irc):(?P<target>//[^\s<>]*[\w/])>=
|
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)[\\]?<<(?P<attrlist>[\w"].*?)>>=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
|
+
[\\]?<(?P<index>\d+)>=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
|
+
#--------------------------------------------------------------------
|