FooBarWidget-mizuho 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -1
- data/Rakefile +14 -2
- data/asciidoc/BUGS +11 -6
- data/asciidoc/BUGS.txt +7 -3
- data/asciidoc/CHANGELOG +313 -151
- data/asciidoc/CHANGELOG.txt +177 -12
- data/asciidoc/INSTALL +30 -36
- data/asciidoc/INSTALL.txt +20 -20
- data/asciidoc/Makefile.in +145 -0
- data/asciidoc/README +11 -11
- data/asciidoc/README.txt +9 -9
- data/asciidoc/a2x +40 -7
- data/asciidoc/asciidoc.conf +180 -126
- data/asciidoc/asciidoc.py +1667 -977
- data/asciidoc/common.aap +2 -2
- data/asciidoc/configure +2840 -0
- data/asciidoc/configure.ac +11 -0
- data/asciidoc/dblatex/asciidoc-dblatex.sty +2 -0
- data/asciidoc/dblatex/asciidoc-dblatex.xsl +15 -0
- data/asciidoc/dblatex/dblatex-readme.txt +19 -2
- data/asciidoc/doc/a2x.1 +77 -67
- data/asciidoc/doc/a2x.1.txt +11 -2
- data/asciidoc/doc/article.css-embedded.html +85 -63
- data/asciidoc/doc/article.html +644 -62
- data/asciidoc/doc/article.pdf +0 -0
- data/asciidoc/doc/article.txt +15 -17
- data/asciidoc/doc/asciidoc.1 +34 -40
- data/asciidoc/doc/asciidoc.1.css-embedded.html +67 -32
- data/asciidoc/doc/asciidoc.1.css.html +28 -28
- data/asciidoc/doc/asciidoc.1.html +33 -33
- data/asciidoc/doc/asciidoc.css-embedded.html +2234 -2348
- data/asciidoc/doc/asciidoc.css.html +2203 -2352
- data/asciidoc/doc/asciidoc.dict +52 -1
- data/asciidoc/doc/asciidoc.html +980 -1160
- data/asciidoc/doc/asciidoc.txt +941 -738
- data/asciidoc/doc/asciimathml.txt +63 -0
- data/asciidoc/doc/book-multi.html +26 -43
- data/asciidoc/doc/book-multi.txt +19 -23
- data/asciidoc/doc/book.css-embedded.html +92 -71
- data/asciidoc/doc/book.html +24 -41
- data/asciidoc/doc/book.txt +19 -21
- data/asciidoc/doc/docbook-xsl.css +1 -0
- data/asciidoc/doc/faq.txt +288 -60
- data/asciidoc/doc/images +1 -0
- data/asciidoc/doc/latex-backend.html +16 -123
- data/asciidoc/doc/latex-backend.txt +17 -19
- data/asciidoc/doc/latexmath.txt +233 -24
- data/asciidoc/doc/latexmathml.txt +41 -0
- data/asciidoc/doc/main.aap +9 -5
- data/asciidoc/doc/music-filter.pdf +0 -0
- data/asciidoc/doc/music-filter.txt +2 -2
- data/asciidoc/doc/source-highlight-filter.html +476 -105
- data/asciidoc/doc/source-highlight-filter.pdf +0 -0
- data/asciidoc/doc/source-highlight-filter.txt +39 -10
- data/asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt +1 -29
- data/asciidoc/docbook-xsl/fo.xsl +35 -3
- data/asciidoc/docbook-xsl/manpage.xsl +3 -0
- data/asciidoc/docbook-xsl/text.xsl +50 -0
- data/asciidoc/docbook.conf +182 -73
- data/asciidoc/examples/website/ASCIIMathML.js +1 -0
- data/asciidoc/examples/website/CHANGELOG.html +618 -182
- data/asciidoc/examples/website/CHANGELOG.txt +1 -0
- data/asciidoc/examples/website/INSTALL.html +34 -36
- data/asciidoc/examples/website/INSTALL.txt +1 -0
- data/asciidoc/examples/website/LaTeXMathML.js +1 -0
- data/asciidoc/examples/website/README-website.html +26 -37
- data/asciidoc/examples/website/README-website.txt +6 -6
- data/asciidoc/examples/website/README.html +15 -15
- data/asciidoc/examples/website/README.txt +1 -0
- data/asciidoc/examples/website/a2x.1.html +74 -50
- data/asciidoc/examples/website/a2x.1.txt +1 -0
- data/asciidoc/examples/website/asciidoc-docbook-xsl.html +13 -48
- data/asciidoc/examples/website/asciidoc-docbook-xsl.txt +1 -0
- data/asciidoc/examples/website/asciimathml.txt +1 -0
- data/asciidoc/examples/website/customers.csv +1 -0
- data/asciidoc/examples/website/downloads.html +69 -31
- data/asciidoc/examples/website/downloads.txt +28 -5
- data/asciidoc/examples/website/faq.html +370 -124
- data/asciidoc/examples/website/faq.txt +1 -0
- data/asciidoc/examples/website/images +1 -0
- data/asciidoc/examples/website/index.html +64 -64
- data/asciidoc/examples/website/index.txt +22 -15
- data/asciidoc/examples/website/latex-backend.html +152 -257
- data/asciidoc/examples/website/latex-backend.txt +1 -0
- data/asciidoc/examples/website/latexmathml.txt +1 -0
- data/asciidoc/examples/website/manpage.html +27 -27
- data/asciidoc/examples/website/manpage.txt +1 -0
- data/asciidoc/examples/website/music-filter.html +18 -18
- data/asciidoc/examples/website/music-filter.txt +1 -0
- data/asciidoc/examples/website/music1.abc +1 -1
- data/asciidoc/examples/website/music1.png +0 -0
- data/asciidoc/examples/website/music2.ly +1 -1
- 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/source-highlight-filter.html +67 -32
- data/asciidoc/examples/website/source-highlight-filter.txt +1 -0
- data/asciidoc/examples/website/support.html +4 -4
- data/asciidoc/examples/website/toc.js +1 -0
- data/asciidoc/examples/website/userguide.html +2190 -2339
- data/asciidoc/examples/website/userguide.txt +1 -0
- data/asciidoc/examples/website/version83.txt +37 -0
- data/asciidoc/examples/website/version9.html +13 -13
- data/asciidoc/examples/website/xhtml11-manpage.css +1 -0
- data/asciidoc/examples/website/xhtml11-quirks.css +1 -0
- data/asciidoc/examples/website/xhtml11.css +1 -0
- data/asciidoc/filters/code-filter-readme.txt +3 -3
- data/asciidoc/filters/code-filter-test.txt +6 -6
- data/asciidoc/filters/source-highlight-filter.conf +12 -5
- data/asciidoc/html4.conf +152 -58
- data/asciidoc/install-sh +201 -0
- data/asciidoc/latex.conf +41 -41
- data/asciidoc/stylesheets/docbook-xsl.css +1 -0
- data/asciidoc/stylesheets/xhtml11.css +39 -4
- data/asciidoc/text.conf +4 -4
- data/asciidoc/vim/syntax/asciidoc.vim +58 -32
- data/asciidoc/wordpress.conf +48 -0
- data/asciidoc/xhtml11-quirks.conf +1 -1
- data/asciidoc/xhtml11.conf +198 -70
- data/bin/mizuho +5 -2
- data/lib/mizuho/generator.rb +48 -19
- data/mizuho.gemspec +16 -6
- metadata +58 -15
- data/asciidoc/doc/asciimath.txt +0 -47
- data/asciidoc/docbook-xsl/shaded-literallayout.patch +0 -32
- data/asciidoc/examples/website/asciimath.html +0 -157
- data/asciidoc/examples/website/latexmath.html +0 -119
- data/asciidoc/filters/code-filter-test-c++.txt +0 -7
- data/asciidoc/install.sh +0 -55
- data/asciidoc/linuxdoc.conf +0 -285
- data/asciidoc/math.conf +0 -50
- data/asciidoc/stylesheets/xhtml-deprecated-manpage.css +0 -21
- data/asciidoc/stylesheets/xhtml-deprecated.css +0 -247
- data/asciidoc/t.conf +0 -20
- data/asciidoc/xhtml-deprecated-css.conf +0 -235
- data/asciidoc/xhtml-deprecated.conf +0 -351
data/asciidoc/README
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
AsciiDoc README File
|
2
2
|
|
3
|
-
version 8.
|
3
|
+
version 8.3.1, 14 December 2008
|
4
4
|
__________________________________________________________________
|
5
5
|
|
6
6
|
1. Prerequisites
|
@@ -20,14 +20,14 @@
|
|
20
20
|
|
21
21
|
3. Tools
|
22
22
|
|
23
|
-
Current AsciiDoc version tested on Xubuntu Linux
|
24
|
-
* Python 2.5.
|
25
|
-
* bash 3.2.
|
26
|
-
* DocBook XSL Stylesheets 1.
|
27
|
-
* xsltproc (libxml
|
28
|
-
*
|
29
|
-
* dblatex 0.2.
|
30
|
-
* FOP 0.
|
23
|
+
Current AsciiDoc version tested on Xubuntu Linux 8.04 with:
|
24
|
+
* Python 2.5.2
|
25
|
+
* bash 3.2.39
|
26
|
+
* DocBook XSL Stylesheets 1.73.2
|
27
|
+
* xsltproc (libxml 20631, libxslt 10122 and libexslt 813).
|
28
|
+
* w3m 0.5.1
|
29
|
+
* dblatex 0.2.9
|
30
|
+
* FOP 0.95
|
31
31
|
__________________________________________________________________
|
32
32
|
|
33
33
|
4. COPYING
|
@@ -36,8 +36,8 @@
|
|
36
36
|
granted under the terms of the GNU General Public License (GPL).
|
37
37
|
__________________________________________________________________
|
38
38
|
|
39
|
-
Version 8.
|
40
|
-
Last updated 2008-
|
39
|
+
Version 8.3.1
|
40
|
+
Last updated 2008-12-13 09:58:33 NZDT
|
41
41
|
|
42
42
|
References
|
43
43
|
|
data/asciidoc/README.txt
CHANGED
@@ -18,15 +18,15 @@ http://sourceforge.net/projects/asciidoc/.
|
|
18
18
|
|
19
19
|
Tools
|
20
20
|
-----
|
21
|
-
Current AsciiDoc version tested on Xubuntu Linux
|
22
|
-
|
23
|
-
- Python 2.5.
|
24
|
-
- bash 3.2.
|
25
|
-
- DocBook XSL Stylesheets 1.
|
26
|
-
- xsltproc (libxml
|
27
|
-
-
|
28
|
-
- dblatex 0.2.
|
29
|
-
- FOP 0.
|
21
|
+
Current AsciiDoc version tested on Xubuntu Linux 8.04 with:
|
22
|
+
|
23
|
+
- Python 2.5.2
|
24
|
+
- bash 3.2.39
|
25
|
+
- DocBook XSL Stylesheets 1.73.2
|
26
|
+
- xsltproc (libxml 20631, libxslt 10122 and libexslt 813).
|
27
|
+
- w3m 0.5.1
|
28
|
+
- dblatex 0.2.9
|
29
|
+
- FOP 0.95
|
30
30
|
|
31
31
|
|
32
32
|
COPYING
|
data/asciidoc/a2x
CHANGED
@@ -41,6 +41,7 @@ XSLTPROC_OPTS=
|
|
41
41
|
DBLATEX_OPTS=
|
42
42
|
FOP_OPTS=
|
43
43
|
FOP=no
|
44
|
+
XMLLINT=yes
|
44
45
|
|
45
46
|
#--------------------------------------------------------------------
|
46
47
|
# General purpose functions
|
@@ -203,12 +204,14 @@ options:
|
|
203
204
|
-h, --help print command syntax summary
|
204
205
|
--icons use admonition, callout and navigation icons
|
205
206
|
--icons-dir=PATH admonition and navigation icon directory
|
207
|
+
-L, --no-xmllint don't check asciidoc output with xmllint(1)
|
206
208
|
-n, --dry-run don't do anything just print the commands
|
207
209
|
-s, --skip-asciidoc skip asciidoc execution
|
208
210
|
--stylesheet=PATH target HTML CSS stylesheet file name
|
209
211
|
--version print program version to stdout
|
210
212
|
-v, --verbose print operational details to stderr
|
211
213
|
--dblatex-opts=DBLATEX_OPTS dblatex options
|
214
|
+
--fop use FOP to generate PDF files
|
212
215
|
--fop-opts=FOP_OPTS options for FOP pdf generation
|
213
216
|
--xsltproc-opts=XSLTPROC_OPTS xsltproc options
|
214
217
|
EOF
|
@@ -241,8 +244,8 @@ function parse_options()
|
|
241
244
|
if [ $? -ne 4 ]; then
|
242
245
|
quit "enhanced getopt(1) required"
|
243
246
|
fi
|
244
|
-
short_opts="a:d:D:f:
|
245
|
-
long_opts="attribute:,asciidoc-opts:,destination-dir:,doctype:,help,icons-dir:,dry-run,format:,copy,icons,skip-asciidoc,stylesheet:,version,verbose,xsltproc-opts:,dblatex-opts:,fop-opts
|
247
|
+
short_opts="a:d:D:f:hLnsv"
|
248
|
+
long_opts="attribute:,asciidoc-opts:,destination-dir:,doctype:,help,icons-dir:,dry-run,format:,copy,icons,skip-asciidoc,stylesheet:,version,verbose,xsltproc-opts:,dblatex-opts:,fop,fop-opts:,no-xmllint"
|
246
249
|
args=$(getopt -o $short_opts -l $long_opts -n $BASENAME -- "$@" 2>/dev/null)
|
247
250
|
if [ $? -ne 0 ]; then
|
248
251
|
quit "invalid command options, run: a2x --help"
|
@@ -294,9 +297,15 @@ function parse_options()
|
|
294
297
|
VERBOSE=yes
|
295
298
|
fi
|
296
299
|
shift ;;
|
300
|
+
-L|--no-xmllint)
|
301
|
+
XMLLINT=no;
|
302
|
+
shift ;;
|
297
303
|
--xsltproc-opts)
|
298
304
|
XSLTPROC_OPTS="$XSLTPROC_OPTS $2"
|
299
305
|
shift 2 ;;
|
306
|
+
--fop)
|
307
|
+
FOP=yes;
|
308
|
+
shift ;;
|
300
309
|
--fop-opts)
|
301
310
|
FOP_OPTS="$FOP_OPTS $2"
|
302
311
|
FOP=yes
|
@@ -435,6 +444,18 @@ function copy_icons()
|
|
435
444
|
execute_command_2 "cp -rfu \"$src/\"* \"$dst\""
|
436
445
|
}
|
437
446
|
|
447
|
+
# Run xmllint(1) checking of $1 file if xmllint checking is enabled.
|
448
|
+
function execute_xmllint()
|
449
|
+
{
|
450
|
+
if isyes "$XMLLINT"; then
|
451
|
+
if ! is_executable "xmllint"; then
|
452
|
+
console_msg "xmllint not found: skipping validity checking"
|
453
|
+
else
|
454
|
+
execute_command_2 "xmllint --nonet --noout --valid \"$1\""
|
455
|
+
fi
|
456
|
+
fi
|
457
|
+
}
|
458
|
+
|
438
459
|
#--------------------------------------------------------------------
|
439
460
|
# Format conversion functions.
|
440
461
|
#--------------------------------------------------------------------
|
@@ -453,6 +474,7 @@ function to_docbook()
|
|
453
474
|
fi
|
454
475
|
require "asciidoc"
|
455
476
|
execute_command_2 "asciidoc $ASCIIDOC_OPTS $1 -b docbook \"$SRC_FILE\""
|
477
|
+
execute_xmllint "$xml"
|
456
478
|
}
|
457
479
|
|
458
480
|
function to_xhtml()
|
@@ -534,7 +556,7 @@ function run_dblatex()
|
|
534
556
|
xml="$SRC_DIR/$SRC_NAME.xml"
|
535
557
|
xsl=$(conf_file dblatex/asciidoc-dblatex.xsl)
|
536
558
|
sty=$(conf_file dblatex/asciidoc-dblatex.sty)
|
537
|
-
execute_command_2 "dblatex
|
559
|
+
execute_command_2 "dblatex -t $FORMAT -p \"$xsl\" -s \"$sty\" $DBLATEX_OPTS \"$xml\""
|
538
560
|
}
|
539
561
|
|
540
562
|
function run_fop()
|
@@ -581,13 +603,24 @@ function to_odt()
|
|
581
603
|
function to_text()
|
582
604
|
{
|
583
605
|
require "asciidoc"
|
584
|
-
|
585
|
-
local html text conf
|
606
|
+
local html text conf xsl
|
586
607
|
html="$SRC_DIR/$SRC_NAME.html"
|
587
608
|
text="$DESTINATION_DIR/$SRC_NAME.text"
|
588
609
|
conf=$(conf_file text.conf)
|
589
|
-
|
590
|
-
|
610
|
+
# Use lynx if there is no w3m.
|
611
|
+
if ! is_executable w3m && is_executable lynx; then
|
612
|
+
execute_command_2 "asciidoc $ASCIIDOC_OPTS -f "$conf" -b html4 \
|
613
|
+
-o - \"$SRC_FILE\" | lynx -dump -stdin >\"$text\""
|
614
|
+
else
|
615
|
+
require "w3m"
|
616
|
+
require "xsltproc"
|
617
|
+
xsl=$(conf_file docbook-xsl/text.xsl)
|
618
|
+
execute_command_2 "asciidoc $ASCIIDOC_OPTS -f \"$conf\" -b docbook \
|
619
|
+
-o - \"$SRC_FILE\" \
|
620
|
+
| xsltproc --nonet --xinclude \"$xsl\" - \
|
621
|
+
| w3m -cols 70 -dump -T text/html -no-graph >\"$text\""
|
622
|
+
|
623
|
+
fi
|
591
624
|
}
|
592
625
|
|
593
626
|
#--------------------------------------------------------------------
|
data/asciidoc/asciidoc.conf
CHANGED
@@ -18,7 +18,7 @@ encoding=UTF-8
|
|
18
18
|
quirks=
|
19
19
|
empty=
|
20
20
|
# Attribute and AttributeList element patterns.
|
21
|
-
attributeentry-pattern=^:(?P<attrname
|
21
|
+
attributeentry-pattern=^:(?P<attrname>\w[^.]*?)(\.(?P<attrname2>.*?))?:(\s+(?P<attrvalue>.*))?$
|
22
22
|
attributelist-pattern=(?u)(^\[\[(?P<id>[\w\-_]+)\]\]$)|(^\[(?P<attrlist>.*)\]$)
|
23
23
|
# Substitution attributes for escaping AsciiDoc processing.
|
24
24
|
amp=&
|
@@ -26,6 +26,8 @@ lt=<
|
|
26
26
|
gt=>
|
27
27
|
brvbar=|
|
28
28
|
nbsp= 
|
29
|
+
wj=⁠
|
30
|
+
deg=°
|
29
31
|
backslash=\
|
30
32
|
two_colons=::
|
31
33
|
two_semicolons=;;
|
@@ -38,8 +40,8 @@ important_caption=Important
|
|
38
40
|
note_caption=Note
|
39
41
|
tip_caption=Tip
|
40
42
|
warning_caption=Warning
|
41
|
-
figure_caption=
|
42
|
-
table_caption=
|
43
|
+
figure_caption=
|
44
|
+
table_caption=
|
43
45
|
toc_title=Table of Contents
|
44
46
|
|
45
47
|
[titles]
|
@@ -61,40 +63,36 @@ blocktitle=^\.(?P<title>([^.\s].*)|(\.[^.\s].*))$
|
|
61
63
|
>=>
|
62
64
|
|
63
65
|
[quotes]
|
64
|
-
#
|
66
|
+
# The order is important, quotes are processed in conf file order.
|
67
|
+
**=#strong
|
65
68
|
*=strong
|
69
|
+
``|''=doublequoted
|
66
70
|
'=emphasis
|
71
|
+
`|'=singlequoted
|
67
72
|
`=monospaced
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
_=emphasis
|
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
|
75
79
|
+=monospaced
|
76
|
-
# Unconstrained quotes.
|
77
|
-
**=#strong
|
78
80
|
__=#emphasis
|
79
|
-
|
81
|
+
_=emphasis
|
80
82
|
\##=#unquoted
|
83
|
+
\#=unquoted
|
81
84
|
^=#superscript
|
82
85
|
~=#subscript
|
83
|
-
endif::asciidoc7compatible[]
|
84
86
|
|
85
87
|
[specialwords]
|
86
88
|
emphasizedwords=
|
87
89
|
strongwords=
|
88
90
|
monospacedwords=
|
89
91
|
|
90
|
-
[tags]
|
91
|
-
# $$ inline passthrough.
|
92
|
-
passthrough=|
|
93
|
-
|
94
92
|
[replacements]
|
95
93
|
# Replacements performed in order of configuration file entry. The first entry
|
96
94
|
# of each replacement pair performs the (non-escaped) replacement, the second
|
97
|
-
# strips the backslash from the
|
95
|
+
# strips the backslash from the escaped replacement.
|
98
96
|
|
99
97
|
# (C) Copyright (entity reference ©)
|
100
98
|
(?<!\\)\(C\)=©
|
@@ -108,17 +106,15 @@ passthrough=|
|
|
108
106
|
(?<!\\)\(TM\)=™
|
109
107
|
\\\(TM\)=(TM)
|
110
108
|
|
111
|
-
# -- Spaced and unspaced em dashes (entity reference —)
|
112
|
-
#
|
113
|
-
|
114
|
-
|
115
|
-
(^|[^-\\])--($|[^-])=\1—\2
|
116
|
-
endif::doctype-manpage[]
|
117
|
-
ifdef::doctype-manpage[]
|
118
|
-
(^|\s*[^\S\\])--($|\s+)=\1—\2
|
119
|
-
endif::doctype-manpage[]
|
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
|
120
113
|
\\--(?!-)=--
|
121
114
|
|
115
|
+
# Replace vertical typewriter apostrophe with punctuation apostrophe.
|
116
|
+
(\w)'(\w)=\1’\2
|
117
|
+
|
122
118
|
# ... Ellipsis (entity reference …)
|
123
119
|
(?<!\\)\.\.\.=…
|
124
120
|
\\\.\.\.=...
|
@@ -137,8 +133,13 @@ endif::doctype-manpage[]
|
|
137
133
|
(?<!\\)<\==⇐
|
138
134
|
\\<\==<=
|
139
135
|
|
136
|
+
# Arbitrary entity references.
|
137
|
+
(?<!\\)&([:_#a-zA-Z][:_.\-\w]*?;)=&\1
|
138
|
+
\\(&[:_#a-zA-Z][:_.\-\w]*?;)=\1
|
140
139
|
|
141
|
-
|
140
|
+
#-----------
|
141
|
+
# Paragraphs
|
142
|
+
#-----------
|
142
143
|
[paradef-default]
|
143
144
|
delimiter=(?s)(?P<text>\S.*)
|
144
145
|
template=paragraph
|
@@ -165,19 +166,21 @@ WARNING-style=template="admonitionparagraph",name="warning",caption="{warning_ca
|
|
165
166
|
CAUTION-style=template="admonitionparagraph",name="caution",caption="{caution_caption}"
|
166
167
|
|
167
168
|
[macros]
|
168
|
-
|
169
|
+
#--------------
|
170
|
+
# Inline macros
|
171
|
+
#--------------
|
169
172
|
# Backslash prefix required for escape processing.
|
170
173
|
# (?s) re flag for line spanning.
|
171
174
|
|
172
|
-
#
|
173
|
-
(?su)[\\]?(?P<name>http|https|ftp|file|mailto|callto|image|link):(?P<target>\S*?)
|
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>.*?)\]=
|
174
177
|
|
175
178
|
# These URL types don't require any special attribute list formatting.
|
176
|
-
(?su)(?<!\S)[\\]?(?P<name>http|https|ftp|file):(?P<target
|
179
|
+
(?su)(?<!\S)[\\]?(?P<name>http|https|ftp|file|irc):(?P<target>//[^\s<>]*[\w/])=
|
177
180
|
# Allow a leading parenthesis.
|
178
|
-
(?su)(?<\=\()[\\]?(?P<name>http|https|ftp|file):(?P<target
|
181
|
+
(?su)(?<\=\()[\\]?(?P<name>http|https|ftp|file|irc):(?P<target>//[^\s<>]*[\w/])=
|
179
182
|
# Allow <> brackets.
|
180
|
-
(?su)[\\]?<(?P<name>http|https|ftp|file):(?P<target
|
183
|
+
(?su)[\\]?<(?P<name>http|https|ftp|file|irc):(?P<target>//[^\s<>]*[\w/])>=
|
181
184
|
|
182
185
|
# Email addresses don't require special attribute list formatting.
|
183
186
|
# The before ">: and after "< character exclusions stop multiple substitution.
|
@@ -209,19 +212,43 @@ endif::asciidoc7compatible[]
|
|
209
212
|
# Callout
|
210
213
|
[\\]?<(?P<index>\d+)>=callout
|
211
214
|
|
212
|
-
#
|
213
|
-
(?su)[\\]?(?P<name
|
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>.*?)(?<!\\)\]=
|
214
226
|
|
215
|
-
|
216
|
-
|
217
|
-
|
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
|
218
238
|
^//([^/].*|)$=#comment
|
219
239
|
|
220
|
-
#
|
240
|
+
# Default block macro (listed last as a catchall)).
|
241
|
+
#(?u)^(?P<name>\w(\w|-)*?)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=#
|
242
|
+
|
243
|
+
#--------------
|
244
|
+
# System macros
|
245
|
+
#--------------
|
221
246
|
# This default system macro is hardwired into asciidoc.
|
222
247
|
#(?u)^(?P<name>\w(\w|-)*?)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=+
|
223
248
|
|
224
|
-
|
249
|
+
#-----------------
|
250
|
+
# Delimited blocks
|
251
|
+
#-----------------
|
225
252
|
[blockdef-comment]
|
226
253
|
delimiter=^/{4,}
|
227
254
|
options=skip
|
@@ -242,10 +269,13 @@ options=list
|
|
242
269
|
[listblock]
|
243
270
|
|
|
244
271
|
|
245
|
-
[blockdef-
|
272
|
+
[blockdef-pass]
|
246
273
|
delimiter=^\+{4,}$
|
247
|
-
template=
|
274
|
+
template=passblock
|
275
|
+
# Default subs choosen for backward compatibility.
|
248
276
|
subs=attributes,macros
|
277
|
+
posattrs=style
|
278
|
+
pass-style=template="passblock",subs=[]
|
249
279
|
|
250
280
|
[blockdef-listing]
|
251
281
|
delimiter=^-{4,}$
|
@@ -287,118 +317,142 @@ template=listingblock
|
|
287
317
|
subs=none
|
288
318
|
posattrs=style
|
289
319
|
|
290
|
-
|
291
|
-
# Lists
|
320
|
+
#-------
|
321
|
+
# Lists
|
322
|
+
#-------
|
292
323
|
[listdef-bulleted]
|
293
|
-
type=bulleted
|
294
324
|
delimiter=^\s*- +(?P<text>.+)$
|
295
|
-
|
296
|
-
|
297
|
-
|
325
|
+
posattrs=style
|
326
|
+
type=bulleted
|
327
|
+
tags=bulleted
|
328
|
+
callout-style=tags="callout"
|
329
|
+
bibliography-style=tags="bibliography"
|
298
330
|
|
299
331
|
[listdef-bulleted2]
|
300
|
-
type=bulleted
|
301
332
|
delimiter=^\s*\* +(?P<text>.+)$
|
302
|
-
|
303
|
-
|
304
|
-
|
333
|
+
posattrs=style
|
334
|
+
type=bulleted
|
335
|
+
tags=bulleted
|
336
|
+
callout-style=tags="callout"
|
337
|
+
bibliography-style=tags="bibliography"
|
305
338
|
|
306
339
|
[listdef-numbered]
|
307
|
-
type=numbered
|
308
340
|
delimiter=^\s*(?P<index>\d*)\. +(?P<text>.+)$
|
309
|
-
|
310
|
-
|
311
|
-
|
341
|
+
posattrs=style
|
342
|
+
type=numbered
|
343
|
+
tags=numbered
|
312
344
|
|
313
345
|
[listdef-numbered2]
|
314
|
-
type=numbered
|
315
346
|
delimiter=^\s*(?P<index>[.a-z])\. +(?P<text>.+)$
|
316
|
-
|
317
|
-
|
318
|
-
|
347
|
+
posattrs=style
|
348
|
+
type=numbered
|
349
|
+
tags=numbered2
|
319
350
|
|
320
|
-
[listdef-
|
321
|
-
|
322
|
-
|
323
|
-
listtag=vlist
|
324
|
-
itemtag=vlistitem
|
325
|
-
texttag=vlisttext
|
326
|
-
entrytag=vlistentry
|
327
|
-
labeltag=vlistterm
|
328
|
-
|
329
|
-
[listdef-vlabeled2]
|
330
|
-
type=labeled
|
331
|
-
delimiter=^\s*(?P<label>.*\S);;$
|
332
|
-
listtag=vlist
|
333
|
-
itemtag=vlistitem
|
334
|
-
texttag=vlisttext
|
335
|
-
entrytag=vlistentry
|
336
|
-
labeltag=vlistterm
|
337
|
-
|
338
|
-
[listdef-hlabeled]
|
351
|
+
[listdef-labeled]
|
352
|
+
delimiter=^\s*(?P<label>.*\S)::(\s+(?P<text>.+))?$
|
353
|
+
posattrs=style
|
339
354
|
type=labeled
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
355
|
+
tags=labeled
|
356
|
+
vertical-style=tags="labeled"
|
357
|
+
horizontal-style=tags="horizontal"
|
358
|
+
glossary-style=tags="glossary"
|
359
|
+
qanda-style=tags="qanda"
|
360
|
+
|
361
|
+
[listdef-labeled2]
|
362
|
+
delimiter=^\s*(?P<label>.*\S);;(\s+(?P<text>.+))?$
|
363
|
+
posattrs=style
|
348
364
|
type=labeled
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
texttag=hlisttext
|
353
|
-
entrytag=hlistentry
|
354
|
-
labeltag=hlistterm
|
365
|
+
tags=labeled
|
366
|
+
vertical-style=tags="labeled"
|
367
|
+
horizontal-style=tags="horizontal"
|
355
368
|
|
369
|
+
[listdef-callout]
|
370
|
+
posattrs=style
|
371
|
+
delimiter=^<?(?P<index>\d*)> +(?P<text>.+)$
|
372
|
+
type=callout
|
373
|
+
tags=callout
|
356
374
|
|
357
|
-
#
|
375
|
+
# DEPRECATED: Old list syntax.
|
358
376
|
[listdef-qanda]
|
359
|
-
|
377
|
+
posattrs=style
|
360
378
|
delimiter=^\s*(?P<label>.*\S)\?\?$
|
361
|
-
|
362
|
-
|
363
|
-
texttag=qlisttext
|
364
|
-
entrytag=qlistentry
|
365
|
-
labeltag=qlistterm
|
379
|
+
type=labeled
|
380
|
+
tags=qanda
|
366
381
|
|
367
|
-
#
|
382
|
+
# DEPRECATED: Old list syntax.
|
368
383
|
[listdef-bibliography]
|
369
|
-
|
384
|
+
posattrs=style
|
370
385
|
delimiter=^\+ +(?P<text>.+)$
|
371
|
-
|
372
|
-
|
373
|
-
texttag=blisttext
|
386
|
+
type=bulleted
|
387
|
+
tags=bibliography
|
374
388
|
|
375
|
-
#
|
389
|
+
# DEPRECATED: Old list syntax.
|
376
390
|
[listdef-glossary]
|
377
|
-
type=labeled
|
378
391
|
delimiter=^(?P<label>.*\S):-$
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
entrytag=glistentry
|
383
|
-
labeltag=glistterm
|
384
|
-
|
385
|
-
# Callout list.
|
386
|
-
[listdef-callout]
|
387
|
-
type=callout
|
388
|
-
delimiter=^<?(?P<index>\d*)> +(?P<text>.+)$
|
389
|
-
listtag=colist
|
390
|
-
itemtag=colistitem
|
391
|
-
texttag=colisttext
|
392
|
+
posattrs=style
|
393
|
+
type=labeled
|
394
|
+
tags=glossary
|
392
395
|
|
393
|
-
|
396
|
+
#-------
|
397
|
+
# Tables
|
398
|
+
#-------
|
394
399
|
[tabledef-default]
|
400
|
+
delimiter=^\|={3,}$
|
401
|
+
# Like normal subs but quotes are substituted a second time after attributes so
|
402
|
+
# {include:} contents are marked up (maybe this should be the system wide
|
403
|
+
# asciidoc.py SUBS_NORMAL).
|
404
|
+
subs=specialcharacters,quotes,attributes,quotes,specialwords,replacements,macros
|
405
|
+
posattrs=style
|
406
|
+
template=table
|
407
|
+
default-style=tags="default"
|
408
|
+
verse-style=tags="verse"
|
409
|
+
literal-style=tags="literal",subs=["specialcharacters"]
|
410
|
+
emphasis-style=tags="emphasis"
|
411
|
+
strong-style=tags="strong"
|
412
|
+
monospaced-style=tags="monospaced"
|
413
|
+
asciidoc-style=tags="asciidoc",subs=[],filter='python "{asciidoc-file}" -b {backend} -s -'
|
414
|
+
|
415
|
+
[tabledef-nested]
|
416
|
+
# Same as [tabledef-default] but with different delimiter and separator.
|
417
|
+
delimiter=^!={3,}$
|
418
|
+
separator=((?P<cellcount>\d+)\*)?!
|
419
|
+
subs=specialcharacters,quotes,attributes,quotes,specialwords,replacements,macros
|
420
|
+
posattrs=style
|
421
|
+
template=table
|
422
|
+
verse-style=tags="verse"
|
423
|
+
literal-style=tags="literal",subs=["specialcharacters"]
|
424
|
+
emphasis-style=tags="emphasis"
|
425
|
+
strong-style=tags="strong"
|
426
|
+
monospaced-style=tags="monospaced"
|
427
|
+
asciidoc-style=tags="asciidoc",subs=[],filter='python "{asciidoc-file}" -b {backend} -s -'
|
428
|
+
|
429
|
+
#----------------------------------------
|
430
|
+
# Common block and macro markup templates
|
431
|
+
#----------------------------------------
|
432
|
+
[pass-blockmacro]
|
433
|
+
{passtext}
|
434
|
+
|
435
|
+
[pass-inlinemacro]
|
436
|
+
template::[pass-blockmacro]
|
437
|
+
|
438
|
+
[passblock]
|
439
|
+
|
|
440
|
+
|
441
|
+
#--------------------------------------------------------------------
|
442
|
+
# Deprecated old table definitions.
|
443
|
+
#
|
444
|
+
|
445
|
+
[old_tabledef-default]
|
395
446
|
fillchar=-
|
396
447
|
format=fixed
|
397
448
|
|
398
|
-
[
|
449
|
+
[old_tabledef-csv]
|
399
450
|
fillchar=~
|
400
451
|
format=csv
|
401
452
|
|
402
|
-
[
|
453
|
+
[old_tabledef-dsv]
|
403
454
|
fillchar=_
|
404
455
|
format=dsv
|
456
|
+
|
457
|
+
# End of deprecated old table definitions.
|
458
|
+
#--------------------------------------------------------------------
|