# AFT Output Elements.
# !!DO NOT EDIT!! This file was automatically generated by aft-compile v2.05a on Tue Jun 25 11:59:35 2002
# See http://www.maplefish.com/todd/aft.html for details.
package AFT_OUTPUT;

use vars qw ($filePreamble $filePostamble %elem %pragma_postvar);

$filePreamble = '';	# Holds preamble for output file.
$filePostamble = '';	# Holds postamble for output file.
%elem = ();		# Element commands for producing output file.%pragma_postvar = ();	# Variables for substitution post-filtering.


sub initElements {
	%pragma_postvar = (
		'stylesheet' =>	 'none',
	);
	%elem = (
		'StartFilteredVerbatim' =>	 qq'<pre>',
		'^****' =>	 qq'<br><a href="#AFT-top">[Top]</a><h5><a name="\%section\%">\%text\%</a></h5>',
		'Image-center' =>	 qq'<center><img src="\%image\%" alt="" align=bottom></center><br clear=all>',
		'StrikeLine' =>	 qq'<!-- Striken: \%line\% -->',
		'StartTeletype' =>	 qq'<tt>',
		'StartSmall' =>	 qq'<small>',
		'StartStrong' =>	 qq'<strong>',
		'TableHeader' =>	 qq'<th>\%stuff\%</th>',
		'StartBulletList' =>	 qq'<ul>',
		'StartQuote' =>	 qq'<blockquote>',
		'EndBulletListElement' =>	 qq'</li>',
		'NumberedListElement' =>	 qq'<li>',
		'EndEmphasis' =>	 qq'</em>',
		'URL' =>	 qq'<a href="\%target\%">\%text\%</a>',
		'EndNamedList' =>	 qq'</dl>',
		'^**' =>	 qq'<br><a href="#AFT-top">[Top]</a><h3><a name="\%section\%">\%text\%</a></h3>',
		'TableRowStart' =>	 qq'<tr>',
		'EndBulletList' =>	 qq'</ul>',
		'****' =>	 qq'<h5><a name="\%section\%">\%text\%</a></h5>',
		'NBSPACE' =>	 qq'&nbsp',
		'^*' =>	 qq'<br><a href="#AFT-top">[Top]</a><h2><a name="\%section\%">\%text\%</a></h2>',
		'Target' =>	 qq'<a name="\%target\%">\%text\%</a>',
		'*' =>	 qq'<h2><a name="\%section\%">\%text\%</a></h2>',
		'EndTeletype' =>	 qq'</tt>',
		'Image-right' =>	 qq'<img src="\%image\%" alt="" align=right><br clear=all>',
		'BeginSectLevel1' =>	 qq'<!-- Start SectLevel1 -->',
		'Title' =>	 qq'<br><center><h1><a name="AFT-top">\%title\%</a></h1></center>',
		'BeginSectLevel2' =>	 qq'<!-- Start SectLevel2 -->',
		'BeginSectLevel3' =>	 qq'<!-- Start SectLevel3 -->',
		'EndParagraph' =>	 qq'</p>',
		'BeginSectLevel4' =>	 qq'<!-- Start SectLevel4 -->',
		'Superscript' =>	 qq'<sup>\%stuff\%</sup>',
		'interpolate' =>	 qq'yes',
		'Author' =>	 qq'<br><center><h2>\%author\%</h2></center>',
		'EndSectLevel1' =>	 qq'<!-- End SectLevel1 -->',
		'EndSectLevel2' =>	 qq'<!-- End SectLevel2 -->',
		'EndSectLevel3' =>	 qq'<!-- End SectLevel3 -->',
		'TableRowEnd' =>	 qq'</tr>',
		'EndSectLevel4' =>	 qq'<!-- End SectLevel4 -->',
		'FullFilterFilteredVerbatim?' =>	 qq'Yes',
		'**' =>	 qq'<h3><a name="\%section\%">\%text\%</a></h3>',
		'EndNumberedListElement' =>	 qq'</li>',
		'Image-left' =>	 qq'<img src="\%image\%" alt="" align=left><br clear=all>',
		'EndStrong' =>	 qq'</strong>',
		'TOC' =>	 qq'',
		'EndBlockedVerbatim' =>	 qq'</pre>',
		'Image' =>	 qq'<img src="\%image\%" alt="" align=bottom>',
		'NamedListElement' =>	 qq'<dt><strong>\%name\%</strong><dd>',
		'StartNumberedList' =>	 qq'<ol>',
		'TableCaption' =>	 qq'<caption>\%caption\%</caption>',
		'InternalReference' =>	 qq'<a href="#\%target\%">\%text\%</a>',
		'StartNamedList' =>	 qq'<dl>',
		'StartVerbatim' =>	 qq'<pre>',
		'NoteRef' =>	 qq'<sup>\%ref\%</sup>',
		'HorizontalLine' =>	 qq'<hr>',
		'EndNumberedList' =>	 qq'</ol>',
		'Subscript' =>	 qq'<sub>\%stuff\%</sub>',
		'CommentLine' =>	 qq'<!-- \%line\% -->',
		'StartBlockedVerbatim' =>	 qq'<pre>',
		'EndTable' =>	 qq'</table>',
		'StartParagraph' =>	 qq'<p class="Body">',
		'PreFilterVerbatim?' =>	 qq'Yes',
		'EndSect1' =>	 qq'<!--End Section 1-->',
		'Center' =>	 qq'<center>\%center\%</center>',
		'EndSect2' =>	 qq'<!--End Section 2-->',
		'EndFilteredVerbatim' =>	 qq'</pre>',
		'EndSect3' =>	 qq'<!--End Section 3-->',
		'EndSect4' =>	 qq'<!--End Section 4-->',
		'EndNamedListElement' =>	 qq'</dd></dt>',
		'EndVerbatim' =>	 qq'</pre>',
		'StartEmphasis' =>	 qq'<em>',
		'EndSmall' =>	 qq'</small>',
		'BulletListElement' =>	 qq'<li>',
		'StartTable' =>	 qq'<!-- \%columns\% columns --><table border>',
		'^***' =>	 qq'<br><a href="#AFT-top">[Top]</a><h4><a name="\%section\%">\%text\%</a></h4>',
		'ID' =>	 qq'HTML',
		'EndQuote' =>	 qq'</blockquote>',
		'TableElement' =>	 qq'<td>\%stuff\%</td>',
		'***' =>	 qq'<h4><a name="\%section\%">\%text\%</a></h4>',
	);

## Preamble:

$filePreamble = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>%title%</title>
	<meta name="author" content="%author%">
	<meta name="GENERATOR" content = "%version%">
<style type="text/css">
  <!--
	.Default {background-color: rgb(255,255,255); color: rgb(0,0,0); font-family: \'Tahoma\'; font-size: 12pt}
	.Text-Background {background-color: rgb(255,255,255)}
  -->
</style>
</head>
<body>
';

## Postamble:

$filePostamble = '<br>
<p align="right"> <small>%aft%</small> </p>
</body>
</html>
';
}


## Prefilter subroutine:

sub prefilter {
   my ($line) = @_;
   $line=~s/\&/\&amp;/g;
   $line=~s/\"/\&quot;/g;
   $line=~s/\>/\&gt;/g;
   $line=~s/\</\&lt;/g;
   $line=~s/\\\\/<br>/g;
   return $line;
}

## Postfilter subroutine:

sub postfilter {
   my ($line) = @_;
   $line=~s/\s{8}/\&nbsp;\&nbsp;/g;
   $line=~s/\t/\&nbsp;\&nbsp;/g;
   return $line;
}

1;
