#
# html4.conf
#
# Asciidoc HTML 4.01 configuration file.
#

[miscellaneous]
outfilesuffix=.html

[attributes]
basebackend=html
basebackend-html=

[replacements2]
# Line break.
(?m)^(.*)\s\+$=\1<br>

[replacements]
ifdef::asciidoc7compatible[]
# Superscripts.
\^(.+?)\^=<sup>\1</sup>
# Subscripts.
~(.+?)~=<sub>\1</sub>
endif::asciidoc7compatible[]

[ruler-blockmacro]
<hr>

[pagebreak-blockmacro]
<div style="page-break-after:always"></div>

[pi-blockmacro]
<?{target}{0? {0}}?>

[pi-inlinemacro]
template::[pi-blockmacro]

[image-inlinemacro]
<a href="{link}">
<img style="border-width: 0;" src="{imagesdir=}{imagesdir?/}{target}" alt="{target}"{width? width="{width}"}{height? height="{height}"}>
{link#}</a>

[image-blockmacro]
<a name="{id}"></a>
<a href="{link}">
<img style="border-width: 0;" src="{imagesdir=}{imagesdir?/}{target}" alt="{target}"{width? width="{width}"}{height? height="{height}"}>
{link#}</a>
<p><b>{caption={figure_caption}}{title}</b></p>

[indexterm-inlinemacro]
# Index term.
{empty}

[indexterm2-inlinemacro]
# Index term.
# Single entry index term that is visible in the primary text flow.
{1}

[footnote-inlinemacro]
# Footnote.
<br>[{0}]<br>

[footnoteref-inlinemacro]
# Footnote reference.
{2#}<br>Footnote {1} [{2}]<br>
{2%}<br>[See footnote {1}]<br>

[callout-inlinemacro]
# Callout.
<b>&lt;{index}&gt;</b>

# Comment line macros.
[comment-inlinemacro]
{showcomments#}<br><span style="background:yellow;">{passtext}</span><br>

[comment-blockmacro]
{showcomments#}<p><span style="background:yellow;">{passtext}</span></p>

[literal-inlinemacro]
# Inline literal.
<tt>{passtext}</tt>

# List tags.
[listtags-bulleted]
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<ul>|</ul>
item=<li>|</li>
text=<p>|</p>

[listtags-numbered]
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<ol type="{style@arabic:1}{style@loweralpha:a}{style@upperalpha:A}{style@lowerroman:i}{style@upperroman:I}">|</ol>
item=<li>|</li>
text=<p>|</p>

[listtags-labeled]
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<dl>|</dl>
entry=
label=
term=<dt>{strong-option?<strong>}|{strong-option?</strong>}</dt>
item=<dd>|</dd>
text=<p>|</p>

[listtags-horizontal]
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<table cellpadding="4">|</table>
entry=<tr valign="top">|</tr>
label=<td{labelwidth? width="{labelwidth}%"}>{strong-option?<strong>}|{strong-option?</strong>}</td>
term=|<br>
item=<td{itemwidth? width="{itemwidth}%"}>|</td>
text=<p>|</p>

[listtags-callout]
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<ol>|</ol>
item=<li>|</li>
text=<p>|</p>

[listtags-qanda]
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<ol>|</ol>
entry=<li>|</li>
label=
term=<p><em>|</em></p>
item=
text=<p>|</p>

[listtags-glossary]
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<dl>|</dl>
entry=
label=
term=<dt>|</dt>
item=<dd>|</dd>
text=<p>|</p>

[listtags-bibliography]
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<ul>|</ul>
item=<li>|</li>
text=<p>|</p>

[tags]
# Quoted text.
emphasis=<em{0? style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?"}>|</em>
strong=<strong{0? style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?"}>|</strong>
monospaced=<tt{0? style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?"}>|</tt>
singlequoted={0?<span style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?">}{amp}#8216;|{amp}#8217;{0?</span>}
doublequoted={0?<span style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?">}{amp}#8220;|{amp}#8221;{0?</span>}
unquoted={0?<span style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?">}|{0?</span>}
superscript=<sup{0? style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?"}>|</sup>
subscript=<sub{0? style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?"}>|</sub>

# $$ inline passthrough.
passthrough=<span{0? style="}{1?color: {1};}{2?background-color: {2};}{3?font-size: {3}em;}{0?"}>|</span>

# Inline macros
[http-inlinemacro]
<a href="{name}:{target}">{0={name}:{target}}</a>
[https-inlinemacro]
<a href="{name}:{target}">{0={name}:{target}}</a>
[ftp-inlinemacro]
<a href="{name}:{target}">{0={name}:{target}}</a>
[file-inlinemacro]
<a href="{name}:{target}">{0={name}:{target}}</a>
[irc-inlinemacro]
<a href="{name}:{target}">{0={name}:{target}}</a>
[mailto-inlinemacro]
<a href="mailto:{target}">{0={target}}</a>
[callto-inlinemacro]
<a href="{name}:{target}">{0={target}}</a>
[link-inlinemacro]
<a href="{target}">{0={target}}</a>
# anchor:id[text]
[anchor-inlinemacro]
<a name="{target}"></a>
# [[id,text]]
[anchor2-inlinemacro]
<a name="{1}"></a>
# [[[id]]]
[anchor3-inlinemacro]
<a name="{1}"></a>[{1}]
# xref:id[text]
[xref-inlinemacro]
<a href="#{target}">{0=[{target}]}</a>
# <<id,text>>
[xref2-inlinemacro]
<a href="#{1}">{2=[{1}]}</a>

# Special word substitution.
[emphasizedwords]
<em>{words}</em>
[monospacedwords]
<tt>{words}</tt>
[strongwords]
<strong>{words}</strong>

# Paragraph substitution.
[paragraph]
<p>{id?<a name="{id}"></a>}{title?<b>{title}</b><br>}
|
</p>

[literalparagraph]
# The literal block employs the same markup.
template::[literalblock]

[verseparagraph]
# The verse block employs the same markup.
template::[verseblock]

[admonitionparagraph]
# The admonition block employs the same markup.
template::[admonitionblock]

# Delimited blocks.
[passthroughblock]
|

[listingblock]
<a name="{id}"></a>
<p><b>{title}</b></p>
<table border="0" bgcolor="#e8e8e8" width="100%" cellpadding="10"><tr><td>
<pre>
|
</pre>
</td></tr></table>

[literalblock]
<a name="{id}"></a>
<p><b>{title}</b></p>
<pre>
|
</pre>

[sidebarblock]
<a name="{id}"></a>
<table frame="border" bgcolor="#ffffee" width="100%" cellpadding="15">
<tr><td>
<p><em>{title}</em></p>
|
</td></tr></table>

[abstractblock]
template::[quoteblock]

[quoteblock]
<a name="{id}"></a>
<blockquote>
<p><b>{title}</b></p>
|
<p align="right">
<em>{citetitle}</em>{attribution?<br>}
&#8212; {attribution}
</p>
</blockquote>

[verseblock]
<a name="{id}"></a>
<blockquote>
<p><b>{title}</b></p>
# Font inheritance broken in IE6.
<pre style="font-family: inherit;">
|
</pre>
<p align="left">
<em>{citetitle}</em>{attribution?<br>}
&#8212; {attribution}
</p>
</blockquote>

[exampleblock]
<a name="{id}"></a>
<p><b>{caption=}{title}</b></p>
<table frame="border" width="100%" cellpadding="15">
<tr><td style="border-left: 2px solid silver;">
|
</td></tr></table>

[admonitionblock]
<a name="{id}"></a>
<table frame="void" cellpadding="8">
<tr valign="top"><td><p><b><u>{caption}</u></b></p></td>
<td style="border-left: 1px solid silver;">
<p><b>{title}</b></p>
|
</td></tr></table>

[mathblock]
# Here to suppress missing block warning (html4 does not include math
# JavaScripts).
<a name="{id}"></a>
<p><b>{title}</b></p>
<div>
|
</div>

# Tables.
[tabletags-default]
bodyrow=<tr>|</tr>
headdata=<th {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{align}"{autowidth-option! width="{colpcwidth}%"} valign="{valign}">|</th>
footdata=<td {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{align}"{autowidth-option! width="{colpcwidth}%"} style="font-weight:bold" valign="{valign}">|</td>
bodydata=<td {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{align}"{autowidth-option! width="{colpcwidth}%"} valign="{valign}">|</td>
paragraph=<p>|</p>

[tabletags-emphasis]
paragraph=<p><em>|</em></p>

[tabletags-strong]
paragraph=<p><strong>|</strong></p>

[tabletags-monospaced]
paragraph=<p><tt>|</tt></p>

[tabletags-verse]
bodydata=<td {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{align}"{autowidth-option! width="{colpcwidth}%"} valign="{valign}"><pre style="font-family: inherit;">|</pre></td>
paragraph=

[tabletags-literal]
bodydata=<td {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{align}"{autowidth-option! width="{colpcwidth}%"} valign="{valign}"><pre><tt>|</tt></pre></td>
paragraph=

[tabletags-asciidoc]
bodydata=<td {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{align}"{autowidth-option! width="{colpcwidth}%"} valign="{valign}"><div>|</div></td>
paragraph=

[table]
<p><b>{caption={table_caption}}</b>{title}</p>
<a name="{id}"></a>
<table rules="{grid=all}"
{autowidth-option%}width="{tablepcwidth}%"
{autowidth-option#}{width#width="{tablepcwidth}%"}
frame="{frame%border}"
frame="{frame@topbot:hsides}{frame@all:border}{frame@none:void}{frame@sides:vsides}"
cellspacing="0" cellpadding="4">
{headrows#}<thead>
{headrows}
{headrows#}</thead>
{footrows#}<tfoot>
{footrows}
{footrows#}</tfoot>
<tbody>
{bodyrows}
</tbody>
</table>

#--------------------------------------------------------------------
# Deprecated old table definitions.
#

[miscellaneous]
# Screen width in pixels.
pagewidth=800
pageunits=

[old_tabledef-default]
template=old_table
bodyrow=<tr>|</tr>
headdata=<th align="{colalign}" width="{colwidth}{pageunits}">|</th>
footdata=<td align="{colalign}" width="{colwidth}{pageunits}"><strong>|</strong></td>
bodydata=<td align="{colalign}" width="{colwidth}{pageunits}" valign="top">|</td>

[old_table]
<p><b>{caption={table_caption}}</b>{title}</p>
<a name="{id}"></a>
<table rules="{grid=none}"
frame="{frame%hsides}"
frame="{frame@topbot:hsides}{frame@all:border}{frame@none:void}{frame@sides:vsides}"
cellspacing="0" cellpadding="4">
{headrows#}<thead>
{headrows}
{headrows#}</thead>
{footrows#}<tfoot>
{footrows}
{footrows#}</tfoot>
<tbody>
{bodyrows}
</tbody>
</table>

# End of deprecated old table definitions.
#--------------------------------------------------------------------

[floatingtitle]
<h{level@1:2}{level@2:3}{level@3:4}{level@4:5}>{id?<a name="{id}"></a>}{title}</h{level@1:2}{level@2:3}{level@3:4}{level@4:5}>

[preamble]
# Untitled elements between header and first section title.
<a name="{id}"></a>
|

[sect0]
{doctype-manpage%}<hr>
<h1>{id?<a name="{id}"></a>}{title}</h1>
|

[sect1]
{doctype-manpage%}<hr>
<h2>{id?<a name="{id}"></a>}{numbered?{sectnum} }{title}</h2>
|

[sect2]
<h3>{id?<a name="{id}"></a>}{numbered?{sectnum} }{title}</h3>
|

[sect3]
<h4>{id?<a name="{id}"></a>}{numbered?{sectnum} }{title}</h4>
|

[sect4]
<h5>{id?<a name="{id}"></a>}{title}</h5>
|

[footer]
<p></p>
<p></p>
<hr><p><small>
Version {revnumber}<br>
Last updated {docdate} {doctime}
</small></p>
</body>
</html>

#--------------------------------
# article and book document types
#--------------------------------
ifndef::doctype-manpage[]

[header]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset={encoding=ISO-8859-1}">
<meta name="generator" content="AsciiDoc {asciidoc-version}">
<title>{doctitle=}</title>
</head>
<body>
<h1>{doctitle}</h1>
{doctitle#}<p>
{doctitle#}<strong>{author}</strong><br>
{doctitle#}<tt>&lt;<a href="mailto:{email}">{email}</a>&gt;</tt><br>
{doctitle#}version {revnumber}{revdate?,}
{doctitle#}{revdate}
{doctitle#}<br>{revremark}
{doctitle#}</p>

endif::doctype-manpage[]

#-------------------------
# manpage document type
#-------------------------
ifdef::doctype-manpage[]

[tags]
# This is more inline with man page convention.
emphasis=<b>|</b>
vlistterm=<dt><b>|</b></dt>

[header]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset={encoding=ISO-8859-1}">
<meta name="generator" content="AsciiDoc {asciidoc-version}">
<title>{mantitle}</title>
</head>
<body>
<hr>
<h1>
    {doctitle} Manual Page
</h1>
<hr>
<h2>{manname_title}</h2>
<p>{manname} -
   {manpurpose}
</p>

[synopsis]
template::[sect1]

endif::doctype-manpage[]
