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.
Files changed (136) hide show
  1. data/README.markdown +1 -1
  2. data/Rakefile +14 -2
  3. data/asciidoc/BUGS +11 -6
  4. data/asciidoc/BUGS.txt +7 -3
  5. data/asciidoc/CHANGELOG +313 -151
  6. data/asciidoc/CHANGELOG.txt +177 -12
  7. data/asciidoc/INSTALL +30 -36
  8. data/asciidoc/INSTALL.txt +20 -20
  9. data/asciidoc/Makefile.in +145 -0
  10. data/asciidoc/README +11 -11
  11. data/asciidoc/README.txt +9 -9
  12. data/asciidoc/a2x +40 -7
  13. data/asciidoc/asciidoc.conf +180 -126
  14. data/asciidoc/asciidoc.py +1667 -977
  15. data/asciidoc/common.aap +2 -2
  16. data/asciidoc/configure +2840 -0
  17. data/asciidoc/configure.ac +11 -0
  18. data/asciidoc/dblatex/asciidoc-dblatex.sty +2 -0
  19. data/asciidoc/dblatex/asciidoc-dblatex.xsl +15 -0
  20. data/asciidoc/dblatex/dblatex-readme.txt +19 -2
  21. data/asciidoc/doc/a2x.1 +77 -67
  22. data/asciidoc/doc/a2x.1.txt +11 -2
  23. data/asciidoc/doc/article.css-embedded.html +85 -63
  24. data/asciidoc/doc/article.html +644 -62
  25. data/asciidoc/doc/article.pdf +0 -0
  26. data/asciidoc/doc/article.txt +15 -17
  27. data/asciidoc/doc/asciidoc.1 +34 -40
  28. data/asciidoc/doc/asciidoc.1.css-embedded.html +67 -32
  29. data/asciidoc/doc/asciidoc.1.css.html +28 -28
  30. data/asciidoc/doc/asciidoc.1.html +33 -33
  31. data/asciidoc/doc/asciidoc.css-embedded.html +2234 -2348
  32. data/asciidoc/doc/asciidoc.css.html +2203 -2352
  33. data/asciidoc/doc/asciidoc.dict +52 -1
  34. data/asciidoc/doc/asciidoc.html +980 -1160
  35. data/asciidoc/doc/asciidoc.txt +941 -738
  36. data/asciidoc/doc/asciimathml.txt +63 -0
  37. data/asciidoc/doc/book-multi.html +26 -43
  38. data/asciidoc/doc/book-multi.txt +19 -23
  39. data/asciidoc/doc/book.css-embedded.html +92 -71
  40. data/asciidoc/doc/book.html +24 -41
  41. data/asciidoc/doc/book.txt +19 -21
  42. data/asciidoc/doc/docbook-xsl.css +1 -0
  43. data/asciidoc/doc/faq.txt +288 -60
  44. data/asciidoc/doc/images +1 -0
  45. data/asciidoc/doc/latex-backend.html +16 -123
  46. data/asciidoc/doc/latex-backend.txt +17 -19
  47. data/asciidoc/doc/latexmath.txt +233 -24
  48. data/asciidoc/doc/latexmathml.txt +41 -0
  49. data/asciidoc/doc/main.aap +9 -5
  50. data/asciidoc/doc/music-filter.pdf +0 -0
  51. data/asciidoc/doc/music-filter.txt +2 -2
  52. data/asciidoc/doc/source-highlight-filter.html +476 -105
  53. data/asciidoc/doc/source-highlight-filter.pdf +0 -0
  54. data/asciidoc/doc/source-highlight-filter.txt +39 -10
  55. data/asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt +1 -29
  56. data/asciidoc/docbook-xsl/fo.xsl +35 -3
  57. data/asciidoc/docbook-xsl/manpage.xsl +3 -0
  58. data/asciidoc/docbook-xsl/text.xsl +50 -0
  59. data/asciidoc/docbook.conf +182 -73
  60. data/asciidoc/examples/website/ASCIIMathML.js +1 -0
  61. data/asciidoc/examples/website/CHANGELOG.html +618 -182
  62. data/asciidoc/examples/website/CHANGELOG.txt +1 -0
  63. data/asciidoc/examples/website/INSTALL.html +34 -36
  64. data/asciidoc/examples/website/INSTALL.txt +1 -0
  65. data/asciidoc/examples/website/LaTeXMathML.js +1 -0
  66. data/asciidoc/examples/website/README-website.html +26 -37
  67. data/asciidoc/examples/website/README-website.txt +6 -6
  68. data/asciidoc/examples/website/README.html +15 -15
  69. data/asciidoc/examples/website/README.txt +1 -0
  70. data/asciidoc/examples/website/a2x.1.html +74 -50
  71. data/asciidoc/examples/website/a2x.1.txt +1 -0
  72. data/asciidoc/examples/website/asciidoc-docbook-xsl.html +13 -48
  73. data/asciidoc/examples/website/asciidoc-docbook-xsl.txt +1 -0
  74. data/asciidoc/examples/website/asciimathml.txt +1 -0
  75. data/asciidoc/examples/website/customers.csv +1 -0
  76. data/asciidoc/examples/website/downloads.html +69 -31
  77. data/asciidoc/examples/website/downloads.txt +28 -5
  78. data/asciidoc/examples/website/faq.html +370 -124
  79. data/asciidoc/examples/website/faq.txt +1 -0
  80. data/asciidoc/examples/website/images +1 -0
  81. data/asciidoc/examples/website/index.html +64 -64
  82. data/asciidoc/examples/website/index.txt +22 -15
  83. data/asciidoc/examples/website/latex-backend.html +152 -257
  84. data/asciidoc/examples/website/latex-backend.txt +1 -0
  85. data/asciidoc/examples/website/latexmathml.txt +1 -0
  86. data/asciidoc/examples/website/manpage.html +27 -27
  87. data/asciidoc/examples/website/manpage.txt +1 -0
  88. data/asciidoc/examples/website/music-filter.html +18 -18
  89. data/asciidoc/examples/website/music-filter.txt +1 -0
  90. data/asciidoc/examples/website/music1.abc +1 -1
  91. data/asciidoc/examples/website/music1.png +0 -0
  92. data/asciidoc/examples/website/music2.ly +1 -1
  93. data/asciidoc/examples/website/music2.png +0 -0
  94. data/asciidoc/examples/website/newlists.txt +40 -0
  95. data/asciidoc/examples/website/newtables.txt +397 -0
  96. data/asciidoc/examples/website/source-highlight-filter.html +67 -32
  97. data/asciidoc/examples/website/source-highlight-filter.txt +1 -0
  98. data/asciidoc/examples/website/support.html +4 -4
  99. data/asciidoc/examples/website/toc.js +1 -0
  100. data/asciidoc/examples/website/userguide.html +2190 -2339
  101. data/asciidoc/examples/website/userguide.txt +1 -0
  102. data/asciidoc/examples/website/version83.txt +37 -0
  103. data/asciidoc/examples/website/version9.html +13 -13
  104. data/asciidoc/examples/website/xhtml11-manpage.css +1 -0
  105. data/asciidoc/examples/website/xhtml11-quirks.css +1 -0
  106. data/asciidoc/examples/website/xhtml11.css +1 -0
  107. data/asciidoc/filters/code-filter-readme.txt +3 -3
  108. data/asciidoc/filters/code-filter-test.txt +6 -6
  109. data/asciidoc/filters/source-highlight-filter.conf +12 -5
  110. data/asciidoc/html4.conf +152 -58
  111. data/asciidoc/install-sh +201 -0
  112. data/asciidoc/latex.conf +41 -41
  113. data/asciidoc/stylesheets/docbook-xsl.css +1 -0
  114. data/asciidoc/stylesheets/xhtml11.css +39 -4
  115. data/asciidoc/text.conf +4 -4
  116. data/asciidoc/vim/syntax/asciidoc.vim +58 -32
  117. data/asciidoc/wordpress.conf +48 -0
  118. data/asciidoc/xhtml11-quirks.conf +1 -1
  119. data/asciidoc/xhtml11.conf +198 -70
  120. data/bin/mizuho +5 -2
  121. data/lib/mizuho/generator.rb +48 -19
  122. data/mizuho.gemspec +16 -6
  123. metadata +58 -15
  124. data/asciidoc/doc/asciimath.txt +0 -47
  125. data/asciidoc/docbook-xsl/shaded-literallayout.patch +0 -32
  126. data/asciidoc/examples/website/asciimath.html +0 -157
  127. data/asciidoc/examples/website/latexmath.html +0 -119
  128. data/asciidoc/filters/code-filter-test-c++.txt +0 -7
  129. data/asciidoc/install.sh +0 -55
  130. data/asciidoc/linuxdoc.conf +0 -285
  131. data/asciidoc/math.conf +0 -50
  132. data/asciidoc/stylesheets/xhtml-deprecated-manpage.css +0 -21
  133. data/asciidoc/stylesheets/xhtml-deprecated.css +0 -247
  134. data/asciidoc/t.conf +0 -20
  135. data/asciidoc/xhtml-deprecated-css.conf +0 -235
  136. data/asciidoc/xhtml-deprecated.conf +0 -351
@@ -83,8 +83,8 @@ def sub_word(mo):
83
83
  return word
84
84
  ---------------------------------------------------------------------
85
85
 
86
- Numbered source code listing
87
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
86
+ Numbered source code listing with callouts
87
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
88
88
  This source-highlight filtered block:
89
89
 
90
90
  ---------------------------------------------------------------------
@@ -108,19 +108,23 @@ This source-highlight filtered block:
108
108
 
109
109
  end
110
110
 
111
- if $0 == __FILE__
111
+ if $0 == __FILE__ \<1>
112
112
  # Array#cycle test
113
113
  # true => 0
114
114
  # false => 1
115
115
  # true => 2
116
116
  # false => 3
117
117
  # true => 4
118
- puts 'Array#cycle test'
118
+ puts 'Array#cycle test' \<2>
119
119
  [true, false].cycle([0, 1, 2, 3, 4]) do |a, b|
120
120
  puts "#{a.inspect} => #{b.inspect}"
121
121
  end
122
122
  end
123
123
  ---------------------------------------------------------------------
124
+
125
+ \<1> First callout.
126
+ \<2> Second callout.
127
+
124
128
  ---------------------------------------------------------------------
125
129
 
126
130
  Renders this highlighted source code:
@@ -145,29 +149,54 @@ class Array
145
149
 
146
150
  end
147
151
 
148
- if $0 == __FILE__
152
+ if $0 == __FILE__ <1>
149
153
  # Array#cycle test
150
154
  # true => 0
151
155
  # false => 1
152
156
  # true => 2
153
157
  # false => 3
154
158
  # true => 4
155
- puts 'Array#cycle test'
159
+ puts 'Array#cycle test' <2>
156
160
  [true, false].cycle([0, 1, 2, 3, 4]) do |a, b|
157
161
  puts "#{a.inspect} => #{b.inspect}"
158
162
  end
159
163
  end
160
164
  ---------------------------------------------------------------------
161
165
 
166
+ <1> First callout.
167
+ <2> Second callout.
168
+
162
169
 
163
170
  Installation
164
171
  ------------
165
- If you want to syntax highlight AsciiDoc HTML outputs you need to
172
+ HTML
173
+ ~~~~
174
+ If you want to syntax highlight AsciiDoc HTML outputs (`html4` and
175
+ `xhtml11` backends) you need to
166
176
  install http://www.gnu.org/software/src-highlite/[GNU
167
- source-highlight] (most distributions have this package). It's not
168
- required if you are generating DocBook output (DocBook syntax
169
- highlighting is handled by the DocBook toolchain).
177
+ source-highlight] (most distributions have this package).
178
+
179
+ DocBook
180
+ ~~~~~~~
181
+ AsciiDoc encloses the source code in a DocBook 'programlisting'
182
+ element and leaves source code highlighting to the DocBook toolchain
183
+ (dblatex has a particularly nice programlisting highlighter). The
184
+ DocBook programlisting element is assigned two attributes:
185
+
186
+ . The 'language' attribute is set to the AsciiDoc 'language'
187
+ attribute.
188
+ . The 'linenumbering' attribute is set to the AsciiDoc 'src_numbered'
189
+ attribute ('numbered' or 'unnumbered').
190
+
191
+ If you use `a2x(1)` to generate PDF you need to include the
192
+ `--no-xmllint` option to suppress `xmllint(1)` checking -- the
193
+ programlisting 'language' attribute (required by the dblatex source
194
+ highlighter) is not part of the DocBook 4 specification (but it is in
195
+ the newer DocBook 5 specification).
196
+
170
197
 
198
+ Testing
199
+ ~~~~~~~
171
200
  Test the filter by converting the test file to HTML with AsciiDoc:
172
201
 
173
202
  $ asciidoc -v ./filters/source-highlight-filter-test.txt
@@ -5,7 +5,7 @@ PDF generation from AsciiDoc generated DocBook using FOP plus DocBook XSL
5
5
  Stylesheets.
6
6
 
7
7
  - FOP 0.95beta.
8
- - DocBook XSL Stylesheets version 1.72.0.
8
+ - DocBook XSL Stylesheets version 1.74.0.
9
9
 
10
10
  Output file customisation is achieved by tweaking the DocBook XSL
11
11
  stylesheets. I've tried to keep customization to a minimum and
@@ -41,31 +41,3 @@ wait for the Debian `docbook-xsl` package:
41
41
  $ cd /etc/xml/
42
42
  $ sudo cp -p docbook-xsl.xml docbook-xsl.xml.ORIG
43
43
  $ sudo vi docbook-xsl.xml
44
-
45
- - Apply optional patches (see below).
46
-
47
-
48
- Patches to DocBook XSL Stylesheets
49
- ----------------------------------
50
- NOTE: You'll find the patch files in the AsciiDoc distribution archive
51
- `./docbook-xsl/` directory.
52
-
53
- Shade Literal Block Patch
54
- ~~~~~~~~~~~~~~~~~~~~~~~~~
55
- The processing expectation for AsciiDoc LiteralBlocks and
56
- LiteralParagraphs is that they are not shaded. The
57
- `shaded-literallayout.patch` was devised to allow AciiDoc Listing
58
- blocks to be shaded while leaving Literal paragraphs and Literal
59
- blocks unshaded (the default DocBook XSL Stylesheets behavior is to
60
- shade all verbatim elements).
61
-
62
- The patch implements a `shade.literallayout` XSL parameter so that
63
- shading in literal elements could be disabled while other verbatim
64
- elements are left shaded (by setting the XSL `shade.verbatim`
65
- parameter).
66
-
67
- The relevant patch file is `shaded-literallayout.patch` and it can be
68
- applied from the DocBook XSL Stylesheets directory:
69
-
70
- $ cd /usr/share/xml/docbook/stylesheet/docbook-xsl-1.72.0
71
- $ sudo patch -p0 < /tmp/shaded-literallayout.patch
@@ -10,7 +10,9 @@
10
10
  stylesheets. This means you don't need to edit the <xsl:import> elements on
11
11
  a machine by machine basis.
12
12
  -->
13
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
13
+ <xsl:stylesheet version="1.0"
14
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
15
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
14
16
  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
15
17
  <xsl:import href="common.xsl"/>
16
18
 
@@ -38,6 +40,23 @@
38
40
  <!-- Default fetches image from Internet (long timeouts) -->
39
41
  <xsl:param name="draft.watermark.image" select="''"/>
40
42
 
43
+ <!-- Line break -->
44
+ <xsl:template match="processing-instruction('asciidoc-br')">
45
+ <fo:block/>
46
+ </xsl:template>
47
+
48
+ <!-- Horizontal ruler -->
49
+ <xsl:template match="processing-instruction('asciidoc-hr')">
50
+ <fo:block space-after="1em">
51
+ <fo:leader leader-pattern="rule" rule-thickness="0.5pt" rule-style="solid" leader-length.minimum="100%"/>
52
+ </fo:block>
53
+ </xsl:template>
54
+
55
+ <!-- Hard page break -->
56
+ <xsl:template match="processing-instruction('asciidoc-pagebreak')">
57
+ <fo:block break-after='page'/>
58
+ </xsl:template>
59
+
41
60
  <!-- Sets title to body text indent -->
42
61
  <xsl:param name="body.start.indent">
43
62
  <xsl:choose>
@@ -108,10 +127,23 @@
108
127
 
109
128
  <xsl:param name="callout.graphics" select="'1'"/>
110
129
 
111
- <xsl:param name="shade.literallayout" select="0"/>
130
+ <!-- Only shade programlisting and screen verbatim elements -->
112
131
  <xsl:param name="shade.verbatim" select="1"/>
113
132
  <xsl:attribute-set name="shade.verbatim.style">
114
- <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
133
+ <xsl:attribute name="background-color">
134
+ <xsl:choose>
135
+ <xsl:when test="self::programlisting|self::screen">#E0E0E0</xsl:when>
136
+ <xsl:otherwise>inherit</xsl:otherwise>
137
+ </xsl:choose>
138
+ </xsl:attribute>
139
+ </xsl:attribute-set>
140
+
141
+ <!--
142
+ Force XSL Stylesheets 1.72 default table breaks to be the same as the current
143
+ version (1.74) default which (for tables) is keep-together="auto".
144
+ -->
145
+ <xsl:attribute-set name="table.properties">
146
+ <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
115
147
  </xsl:attribute-set>
116
148
 
117
149
  </xsl:stylesheet>
@@ -21,6 +21,9 @@
21
21
  </xsl:template>
22
22
 
23
23
  <!-- Don't automatically generate the REFERENCES section -->
24
+ <xsl:template name="endnotes.list">
25
+ </xsl:template>
26
+ <!-- Next entry for backward compatibility with old docbook-xsl versions -->
24
27
  <xsl:template name="format.links.list">
25
28
  </xsl:template>
26
29
 
@@ -0,0 +1,50 @@
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ docbook-xsl/text.xsl
4
+ Used by AsciiDoc a2x(1) for w3m(1) based text generation.
5
+ -->
6
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7
+ version="1.0">
8
+ <xsl:import
9
+ href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
10
+
11
+ <!-- parameters for optimal text output -->
12
+ <xsl:param name="callout.graphics" select="0"/>
13
+ <xsl:param name="callout.unicode" select="0"/>
14
+ <xsl:param name="section.autolabel" select="1"/>
15
+ <xsl:param name="section.label.includes.component.label" select="1"/>
16
+ <xsl:param name="generate.toc">
17
+ appendix title
18
+ article/appendix nop
19
+ article toc,title
20
+ book toc,title,figure,table,example,equation
21
+ chapter title
22
+ part toc,title
23
+ preface toc,title
24
+ qandadiv toc
25
+ qandaset toc
26
+ reference toc,title
27
+ section toc
28
+ set toc,title
29
+ </xsl:param>
30
+
31
+ <xsl:template match="book/bookinfo/title | article/articleinfo/title" mode="titlepage.mode">
32
+ <hr />
33
+ <xsl:apply-imports/>
34
+ <hr />
35
+ </xsl:template>
36
+
37
+ <xsl:template match="book/*/title | article/*/title" mode="titlepage.mode">
38
+ <br /><hr />
39
+ <xsl:apply-imports/>
40
+ <hr />
41
+ </xsl:template>
42
+
43
+ <xsl:template match="book/chapter/*/title | article/section/*/title" mode="titlepage.mode">
44
+ <br />
45
+ <xsl:apply-imports/>
46
+ <hr width="100" align="left" />
47
+ </xsl:template>
48
+
49
+
50
+ </xsl:stylesheet>
@@ -8,7 +8,7 @@
8
8
  [miscellaneous]
9
9
  outfilesuffix=.xml
10
10
  # Printable page width in pts.
11
- pagewidth=380
11
+ pagewidth=425
12
12
  pageunits=pt
13
13
 
14
14
  [attributes]
@@ -16,8 +16,8 @@ basebackend=docbook
16
16
  basebackend-docbook=
17
17
 
18
18
  [replacements]
19
- # Line break markup is dropped (there is no DocBook line break tag).
20
- (?m)^(.*)\s\+$=\1
19
+ # Line break markup. Custom processing instruction in fo.xsl.
20
+ (?m)^(.*)\s\+$=\1<?asciidoc-br?>
21
21
  ifdef::asciidoc7compatible[]
22
22
  # Superscripts.
23
23
  \^(.+?)\^=<superscript>\1</superscript>
@@ -26,7 +26,40 @@ ifdef::asciidoc7compatible[]
26
26
  endif::asciidoc7compatible[]
27
27
 
28
28
  [ruler-blockmacro]
29
- # Only applies to HTML so don't output anything.
29
+ # Uses a custom processing instruction in fo.xsl.
30
+ <?asciidoc-hr?>
31
+
32
+ [pagebreak-blockmacro]
33
+ # Uses a custom processing instruction in fo.xsl.
34
+ <?asciidoc-pagebreak?>
35
+
36
+ [blockdef-pass]
37
+ latexmath-style=template="latexmathblock",subs=[]
38
+
39
+ [macros]
40
+ # math macros.
41
+ (?su)[\\]?(?P<name>latexmath):(?P<subslist>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[]
42
+ (?u)^(?P<name>latexmath)::(?P<subslist>\S*?)(\[(?P<passtext>.*?)\])$=#[]
43
+
44
+ [latexmath-inlinemacro]
45
+ <inlineequation>
46
+ <alt><![CDATA[{passtext}]]></alt>
47
+ <inlinemediaobject><textobject><phrase></phrase></textobject></inlinemediaobject>
48
+ </inlineequation>
49
+
50
+ [latexmath-blockmacro]
51
+ <informalequation>
52
+ <alt><![CDATA[{passtext}]]></alt>
53
+ <mediaobject><textobject><phrase></phrase></textobject></mediaobject>
54
+ </informalequation>
55
+
56
+ [latexmathblock]
57
+ <equation{id? id="{id}"}><title>{title}</title>
58
+ {title%}<informalequation{id? id="{id}"}>
59
+ <alt><![CDATA[|]]></alt>
60
+ <mediaobject><textobject><phrase></phrase></textobject></mediaobject>
61
+ {title#}</equation>
62
+ {title%}</informalequation>
30
63
 
31
64
  [image-inlinemacro]
32
65
  <inlinemediaobject>
@@ -37,8 +70,8 @@ endif::asciidoc7compatible[]
37
70
  </inlinemediaobject>
38
71
 
39
72
  [image-blockmacro]
40
- <figure{id? id="{id}"}><title>{title}</title>
41
- {title%}<informalfigure{id? id="{id}"}>
73
+ <figure{id? id="{id}"}{pgwide-option? pgwide="1"}><title>{title}</title>
74
+ {title%}<informalfigure{id? id="{id}"}>{pgwide-option?<?dbfo pgwide="1"?>}
42
75
  <mediaobject>
43
76
  <imageobject>
44
77
  <imagedata fileref="{imagesdir=}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}{scaledwidth? width="{scaledwidth}" scalefit="1"}{align? align="{align}"}/>
@@ -49,7 +82,7 @@ endif::asciidoc7compatible[]
49
82
  {title%}</informalfigure>
50
83
 
51
84
  [indexterm-inlinemacro]
52
- # Inline index term.
85
+ # Index term.
53
86
  # Generate separate index entries for primary, secondary and tertiary
54
87
  # descriptions.
55
88
  # Primary only.
@@ -75,77 +108,95 @@ endif::asciidoc7compatible[]
75
108
  {3#}</indexterm>
76
109
 
77
110
  [indexterm2-inlinemacro]
78
- # Inline index term.
111
+ # Index term.
79
112
  # Single entry index term that is visible in the primary text flow.
80
- <indexterm>
81
- <primary>{1}</primary>
82
- </indexterm>
83
- {1}
113
+ <indexterm><primary>{1}</primary></indexterm>{1}
84
114
 
85
115
  [footnote-inlinemacro]
86
- # Inline footnote.
116
+ # Footnote.
87
117
  <footnote><simpara>{0}</simpara></footnote>
88
118
 
119
+ [footnoteref-inlinemacro]
120
+ # Footnote reference.
121
+ {2#}<footnote id="{1}"><simpara>{2}</simpara></footnote>
122
+ {2%}<footnoteref linkend="{1}" />
123
+
89
124
  [callout-inlinemacro]
90
- # Inline callout.
125
+ # Callout.
91
126
  <co id="{coid}"/>
92
127
 
93
- [tags]
94
- # Bulleted, numbered and labeled list tags.
95
- ilist=<itemizedlist{id? id="{id}"}>{title?<title>{title}</title>}|</itemizedlist>
96
- ilistitem=<listitem>|</listitem>
97
- ilisttext=<simpara>|</simpara>
98
- olist=<orderedlist{id? id="{id}"}>{title?<title>{title}</title>}|</orderedlist>
99
- olist2=<orderedlist{id? id="{id}"} numeration="loweralpha">|</orderedlist>
100
- olistitem=<listitem>|</listitem>
101
- olisttext=<simpara>|</simpara>
102
- vlist=<variablelist{id? id="{id}"}>{title?<title>{title}</title>}|</variablelist>
103
- vlistentry=<varlistentry>|</varlistentry>
104
- vlistterm=<term>|</term>
105
- vlisttext=<simpara>|</simpara>
106
- vlistitem=<listitem>|</listitem>
128
+ # List tags.
129
+ [listtags-bulleted]
130
+ list=<itemizedlist{id? id="{id}"}{compact-option? spacing="compact"}>{title?<title>{title}</title>}|</itemizedlist>
131
+ item=<listitem>|</listitem>
132
+ text=<simpara>|</simpara>
133
+
134
+ [listtags-numbered]
135
+ list=<orderedlist{id? id="{id}"}{compact-option? spacing="compact"}>{title?<title>{title}</title>}|</orderedlist>
136
+ item=<listitem>|</listitem>
137
+ text=<simpara>|</simpara>
138
+
139
+ [listtags-numbered2]
140
+ list=<orderedlist{id? id="{id}"} numeration="loweralpha"{compact-option? spacing="compact"}>|</orderedlist>
141
+ item=<listitem>|</listitem>
142
+ text=<simpara>|</simpara>
143
+
144
+ [listtags-labeled]
145
+ list=<variablelist{id? id="{id}"}>{title?<title>{title}</title>}|</variablelist>
146
+ entry=<varlistentry>|</varlistentry>
147
+ label=
148
+ term=<term>|</term>
149
+ item=<listitem>|</listitem>
150
+ text=<simpara>|</simpara>
151
+
152
+ [listtags-horizontal]
107
153
  # Horizontal labeled list (implemented with two column table).
108
154
  # Hardwired column widths to 30%,70% because the current crop of PDF
109
155
  # generators do not auto calculate column widths.
110
- hlist=<{title?table}{title!informaltable}{id? id="{id}"} tabstyle="{style=hlabeledlist}" pgwide="0" frame="none" colsep="0" rowsep="0">{title?<title>{title}</title>}<tgroup cols="2"><colspec colwidth="{1=3}*"/><colspec colwidth="{2=7}*"/><tbody valign="top">|</tbody></tgroup><{title?/table}{title!/informaltable}>
111
- hlistentry=<row>|</row>
112
- hlisttext=<simpara>|</simpara>
113
- hlistterm=<entry><simpara>|</simpara></entry>
114
- hlistitem=<entry>|</entry>
115
-
116
- # Question and Answer list.
117
- qlist=<qandaset{id? id="{id}"}>{title?<title>{title}</title>}|</qandaset>
118
- qlistentry=<qandaentry>|</qandaentry>
119
- qlistterm=<question><simpara>|</simpara></question>
120
- qlistitem=<answer>|</answer>
121
- qlisttext=<simpara>|</simpara>
122
- # Bibliography list.
123
- blist=|
124
- blistitem=<bibliomixed>|</bibliomixed>
125
- blisttext=<bibliomisc>|</bibliomisc>
126
- # Glossary list.
127
- glist=|
128
- glistentry=<glossentry>|</glossentry>
129
- glistterm=<glossterm>|</glossterm>
130
- glistitem=<glossdef>|</glossdef>
131
- glisttext=<simpara>|</simpara>
132
- # Callout list.
133
- colist=<calloutlist{id? id="{id}"}>{title?<title>{title}</title>}|</calloutlist>
134
- colistitem=<callout arearefs="{coids}">|</callout>
135
- colisttext=<simpara>|</simpara>
156
+ list=<{title?table}{title!informaltable}{id? id="{id}"}{style? tabstyle="{style}"}{pgwide-option? pgwide="1"} frame="none" colsep="0" rowsep="0">{title?<title>{title}</title>}<tgroup cols="2"><colspec colwidth="{labelwidth=15}*"/><colspec colwidth="{itemwidth=85}*"/><tbody valign="top">|</tbody></tgroup><{title?/table}{title!/informaltable}>
157
+ entry=<row>|</row>
158
+ label=<entry>|</entry>
159
+ term=<simpara>|</simpara>
160
+ item=<entry>|</entry>
161
+ text=<simpara>|</simpara>
162
+
163
+ [listtags-callout]
164
+ list=<calloutlist{id? id="{id}"}>{title?<title>{title}</title>}|</calloutlist>
165
+ item=<callout arearefs="{coids}">|</callout>
166
+ text=<simpara>|</simpara>
167
+
168
+ [listtags-qanda]
169
+ list=<qandaset{id? id="{id}"}>{title?<title>{title}</title>}|</qandaset>
170
+ entry=<qandaentry>|</qandaentry>
171
+ label=<question>|</question>
172
+ term=<simpara>|</simpara>
173
+ item=<answer>|</answer>
174
+ text=<simpara>|</simpara>
175
+
176
+ [listtags-bibliography]
177
+ list=
178
+ item=<bibliomixed>|</bibliomixed>
179
+ text=<bibliomisc>|</bibliomisc>
180
+
181
+ [listtags-glossary]
182
+ list=
183
+ entry=<glossentry>|</glossentry>
184
+ label=
185
+ term=<glossterm>|</glossterm>
186
+ item=<glossdef>|</glossdef>
187
+ text=<simpara>|</simpara>
136
188
 
189
+ [tags]
137
190
  # Quoted text
138
191
  emphasis=<emphasis>|</emphasis>
139
192
  strong=<emphasis role="strong">|</emphasis>
140
193
  monospaced=<literal>|</literal>
141
- quoted={amp}#8220;|{amp}#8221;
142
- unquoted=|
194
+ singlequoted={amp}#8216;|{amp}#8217;
195
+ doublequoted={amp}#8220;|{amp}#8221;
196
+ unquoted=
143
197
  subscript=<subscript>|</subscript>
144
198
  superscript=<superscript>|</superscript>
145
199
 
146
- # $$ inline passthrough.
147
- $$passthrough=|
148
-
149
200
  # Inline macros
150
201
  [http-inlinemacro]
151
202
  <ulink url="{name}:{target}">{0={name}:{target}}</ulink>
@@ -155,6 +206,8 @@ $$passthrough=|
155
206
  <ulink url="{name}:{target}">{0={name}:{target}}</ulink>
156
207
  [file-inlinemacro]
157
208
  <ulink url="{name}:{target}">{0={name}:{target}}</ulink>
209
+ [irc-inlinemacro]
210
+ <ulink url="{name}:{target}">{0={name}:{target}}</ulink>
158
211
  [mailto-inlinemacro]
159
212
  <ulink url="mailto:{target}">{0={target}}</ulink>
160
213
  [callto-inlinemacro]
@@ -190,8 +243,8 @@ $$passthrough=|
190
243
 
191
244
  # Paragraph substitution.
192
245
  [paragraph]
193
- <formalpara{id? id="{id}"}><title>{title}</title><para>
194
- {title%}<simpara{id? id="{id}"}>
246
+ <formalpara{style? role="{style}"}{id? id="{id}"}><title>{title}</title><para>
247
+ {title%}<simpara{style? role="{style}"}{id? id="{id}"}>
195
248
  |
196
249
  {title%}</simpara>
197
250
  {title#}</para></formalpara>
@@ -209,15 +262,17 @@ template::[verseblock]
209
262
 
210
263
  # Delimited blocks.
211
264
  [literalblock]
212
- <example><title>{title}</title>
213
- <literallayout{id? id="{id}"} class="{font=monospaced}">
265
+ <example{id? id="{id}"}><title>{title}</title>
266
+ {title#}<literallayout class="monospaced">
267
+ {title%}<literallayout{id? id="{id}"} class="monospaced">
214
268
  |
215
269
  </literallayout>
216
270
  {title#}</example>
217
271
 
218
272
  [listingblock]
219
- <example><title>{title}</title>
220
- <screen>
273
+ <example{id? id="{id}"}><title>{title}</title>
274
+ {title#}<screen>
275
+ {title%}<screen{id? id="{id}"}>
221
276
  |
222
277
  </screen>
223
278
  {title#}</example>
@@ -228,9 +283,6 @@ template::[verseblock]
228
283
  |
229
284
  </sidebar>
230
285
 
231
- [passthroughblock]
232
- |
233
-
234
286
  [quoteblock]
235
287
  <blockquote{id? id="{id}"}>
236
288
  <title>{title}</title>
@@ -272,13 +324,67 @@ template::[verseblock]
272
324
  </{name}>
273
325
 
274
326
  # Tables.
275
- [tabledef-default]
276
- template=table
277
- colspec=<colspec colwidth="{colwidth}{pageunits}" align="{colalign}"/>
327
+ [tabletags-default]
328
+ colspec=<colspec colwidth="{width!{colpcwidth}*}{width?{colabswidth}{pageunits}}" align="{colalign}"/>
278
329
  bodyrow=<row>|</row>
330
+ headdata=<entry>|</entry>
279
331
  bodydata=<entry>|</entry>
332
+ paragraph=<simpara>|</simpara>
333
+
334
+ [tabletags-emphasis]
335
+ paragraph=<simpara><emphasis>|</emphasis></simpara>
336
+
337
+ [tabletags-strong]
338
+ paragraph=<simpara><emphasis role="strong">|</emphasis></simpara>
339
+
340
+ [tabletags-monospaced]
341
+ paragraph=<simpara><literal>|</literal></simpara>
342
+
343
+ [tabletags-verse]
344
+ bodydata=<entry><literallayout>|</literallayout></entry>
345
+ paragraph=
346
+
347
+ [tabletags-literal]
348
+ bodydata=<entry><literallayout class="monospaced">|</literallayout></entry>
349
+ paragraph=
350
+
351
+ [tabletags-asciidoc]
352
+ paragraph=
280
353
 
281
354
  [table]
355
+ <{title?table}{title!informaltable}{id? id="{id}"}{pgwide-option? pgwide="1"}
356
+ frame="{frame=all}"
357
+ {grid%rowsep="1" colsep="1"}
358
+ rowsep="{grid@none|cols:0:1}" colsep="{grid@none|rows:0:1}"
359
+ >
360
+ <title>{title}</title>
361
+ <?dbfo keep-together="{breakable-option#auto}"?>
362
+ <?dbfo keep-together="{unbreakable-option#always}"?>
363
+ <tgroup cols="{colcount}">
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
+ </tgroup>
375
+ </{title?table}{title!informaltable}>
376
+
377
+ #--------------------------------------------------------------------
378
+ # Deprecated old table definitions.
379
+ #
380
+
381
+ [old_tabledef-default]
382
+ template=old_table
383
+ colspec=<colspec colwidth="{colwidth}{pageunits}" align="{colalign}"/>
384
+ bodyrow=<row>|</row>
385
+ bodydata=<entry>|</entry>
386
+
387
+ [old_table]
282
388
  <{title?table}{title!informaltable}{id? id="{id}"} pgwide="0"
283
389
  frame="{frame=topbot}"
284
390
  {grid%rowsep="0" colsep="0"}
@@ -299,6 +405,9 @@ rowsep="{grid@none|cols:0:1}" colsep="{grid@none|rows:0:1}"
299
405
  </tgroup>
300
406
  </{title?table}{title!informaltable}>
301
407
 
408
+ # End of deprecated old table definitions.
409
+ #--------------------------------------------------------------------
410
+
302
411
  [specialsections]
303
412
  ifdef::doctype-article[]
304
413
  ^Abstract$=sect-abstract
@@ -504,7 +613,7 @@ template::[header-declarations]
504
613
  </book>
505
614
 
506
615
  [preamble]
507
- # Preamble is not allowed in DocBook book so wrap it in a preface.
616
+ # Preamble is not allowed in DocBook book so wrap it in a preface.
508
617
  <preface{id? id="{id}"}>
509
618
  <title>Preface</title>
510
619
  |
@@ -567,7 +676,7 @@ outfilesuffix=.sgml
567
676
  <!DOCTYPE {doctype-article?article}{doctype-book?book}{doctype-manpage?refentry} PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
568
677
 
569
678
  [tabledef-default]
570
- colspec=<colspec colwidth="{colwidth}{pageunits}" align="{colalign}">
679
+ colspec=<colspec colwidth="{colabswidth}{pageunits}" align="{colalign}">
571
680
 
572
681
  [image-inlinemacro]
573
682
  <inlinemediaobject>