
% Converts qwertz files to html files ready for fixref and html2html.
%
% This file is R-Rated because of uglyness.
%
% -Magnus <magnus@ii.uib.no>
%
% class doc mappings
<s-class-doc>	"<body bgcolor='#FFFFFF'>"
</s-class-doc>	</body>

<s-slots>	"\n<H2> Class Slots: </H2>\n"
</s-slots>
<s-class-slot>	+ 	"<DT><B>[NAME]</B>\n</DT><DD>\n"
</s-class-slot>	+	"</DD>"

<s-bigdata-required>	"<p>This function requires the bigdata library section to be loaded.</p>"
<s-bigdata-arg>	"This argument can be used only if the bigdata library section has been loaded."

<s-contains>	"\n<H2> Extends: </H2>\n"
</s-contains>
<s-contains-class>	+ 	"<DT><B>[NAME]</B>\n</DT><DD>\n"
</s-contains-class>	+	"</DD>"

<s-side-effects>	"\n<H2> SIDE EFFECTS: </H2>\n"
</s-side-effects>

%function doc mappings

<s-function>  	+	"MUSTFIX "		
</s-function>            		+
<s-function-name> +  
</s-function-name> + "("
<s-expression>	+	"<CODE>"
</s-expression>         "</CODE>" 		   
<s-function-doc>	"<HTML>\
<head> \
<style type=\"text/css\"> \
  body { font-size: 14pt ; font-family: SansSerif } \
  p    { font-size: 14pt ; font-family: SansSerif } \
  samp { font-size: small; font-family: Monospaced }\
  code { font-family: Monospaced }\
  tt   { font-family: Monospaced }\
  pre  { margin-top: 5; margin-bottom: 5; font-family: Monospaced}\
</style>\
<script language=\"JavaScript\"> \
<!-- \
// searching is disabled until the applet is initialized \
enableSearch = false; \
function searchInIndex (srch_trm) { \
theUrl = document.SgmlLink.search(srch_trm); \
if (theUrl.length() == 0) { \
alert(\"DOCUMENT NOT FOUND\"); \
} \
else{ \
coWindow =open(theUrl,\"srch_trm\",\"width=600,height=500,resizable=1,scrolling=1,statusbar=1,location=1,scrollbars=1\");\
coWindow.location=theUrl; \
coWindow.focus(); \
} \
return ""; \
} \
//--> \
</script> \
</head> \n  <body bgcolor='#FFFFFF'>"
</s-function-doc>	"<applet \n code=SgmlLink.class \n  name=SgmlLink \nwidth=0 \n height=0 > \n <param name=\"INDEXFILE\" value=\"index.txt\"> \n </applet> \n "
<s-see>		+	"<H2> SEE ALSO: </H2>\n"
</s-see>
<code>		+	"<CODE>"
</code>                 "</CODE>"		
<qwertz>
</qwertz>	+	"<@@enddoc>"		+
<s-keyword>	+	"<!-- s-keyword "
</s-keyword>		" -->"			+			
<s-docclass>	+	"<!-- s-docclass "
</s-docclass>		" -->"			+			
<article>
</article>	+	"<@@enddoc>"		+

<report>
</report>	+	"<@@enddoc>"		+

<book>
</book>		+	"<@@enddoc>"		+

<notes>
</notes>	+	"<@@enddoc>"		+

% Manual Pages are expected to be formatted using nroff (or groff), unless
% they are included  as sections of other qwertz documents.  
<s-details>		+	"<H2>DETAILS:</H2>\n [NAME]<P>\n"
</s-details>		+	"</P>"		+

<s-section>		+	"<H2> [NAME]: </H2>\n <P>\n"
</s-section>		+	"</P>"		+

<manpage>
</manpage>
<pre>		+	"<PRE>\n"
</pre>			"\n</PRE>"	+
<br>		+	"<BR>"
</br>			
<titlepag>
</titlepag>
<s-topic>	+	"<!"
</s-topic>		">"		+
<s-examples>	+	"<H2> EXAMPLES: </H2>\n "
</s-examples>            
<s-example>		+	"<PRE>"
</s-example>			"\n</PRE>"			+
<s-value>	+	"<H2> VALUE: </H2>\n<DL>"
</s-value>	+	"</DL>"
<s-return-component>	+ 	"<DT><B>[NAME]</B>\n</DT><DD>\n"
</s-return-component>	+	"</DD>"
<s-args-required>	+	"<H2> REQUIRED ARGUMENTS: </H2>\n<DL>"
</s-args-required>	+	"</DL>"
<s-args-optional>	+	"<H2> OPTIONAL ARGUMENTS: </H2>\n<DL>"
</s-args-optional>	+	"</DL>"
<s-args>	+	"<H2> ARGUMENTS: </H2>\n<DL>"
</s-args>	+	"</DL>"
<s-arg>		+ 	"<DT><B>[NAME]</B>\n</DT><DD>\n"
</s-arg>	+	"</DD>"
<s-argument>    +        "[NAME]" 
</s-argument>   +        
<s-usage>	+	"<H2> USAGE: </H2>\n"
</s-usage>

<s-usage-expression>	+	"<BR><H3><PRE>"
</s-usage-expression>		"\n</PRE></H3><BR>"		+

<s-old-style-usage>     +	"<PRE>"
</s-old-style-usage>		"\n</PRE>"		+
<s-call>                +
</s-call>               +")"
<s-title>	+	"<H1>" 
</s-title>	+ 	"</H1>"

<s-description>	+	"<H2> DESCRIPTION: </H2>"
</s-description>			
<subtitle>	+	"<H2>"	
</subtitle>		"</H2>"			+

<author>
</author>

<name>		+	"<H2>"
</name>			"</H2>"

<and>			" and "
</and>

<thanks>	+	"Thanks "
</thanks>		

<inst>		+	"<H3>"
</inst>			"</H3>"			+

<newline>		"<BR>"
	
<label>		+	"<@@label>[ID]"		+
	
<header>	
</header>	

<lhead>		+	"<!-- "
</lhead>		" -->"			+			

<rhead>		+	"<!-- "
</rhead>		" -->"			+

<comment>	+	"<H4>Comment</H4>"	+
</comment>		

<abstract>	+	"<P><HR><EM>"
</abstract>		"</EM><HR></P>"			+

<appendix>	+	"<H2>Appendix</H2>"	+
</appendix>
<toc>
</toc>

<lof>
</lof>

<lot>
</lot>

<chapt>		+	"<@@chapt>"
</chapt>	+	"<@@endchapt>"		+

<sect>		+	"<@@sect>"
</sect>		+	"<@@endsect>"		+

<sect1>		+	"<@@ssect>"
</sect1> 	+	"<@@endssect>"		+

<sect2>		+	"<@@head>"
</sect2>

<sect3>		+	"<@@head>"
</sect3>

<sect4>		+	"<@@head>"		
</sect4>

<heading>
</heading>	+	"<@@endhead>" 		+

<p>			"<P>"
</p>			"</P>"			+

<s-arg>		+	"<UL>"		+
</s-arg>	+	"</UL>"		+

<enum>		+	"<OL>"		+
</enum>		+	"</OL>"		+

<descrip>	+	"<DL>"		+
</descrip>	+	"</DL>"		+

<itemize>	+	"<UL>"		+
</itemize>	+	"</UL>"		+

<item>		+	"<LI>"
</item>			"</LI>"		+

<tag>			"<DT><B>"
</tag>			"</B><DD>"

<cite>			"[<I>[ID]</I>]"
</cite>

<ncite>			"[<I>[NOTE] ([ID])</I>]"
</ncite>

<footnote>	+	"<SL>"
</footnote>		"</SL>"		+

<sq>			"\""
</sq>			"\""

<lq>		+	"<LQ>"			+
</lq>		+	"</LQ>"			+

<em>		 	"<EM>"
</em>			"</EM>"

<bf>			"<B>"
</bf>			"</B>"

<it>			"<I>"
</it>			"</I>"

<sf>			"<SF>"
</sf>			"</SF>"

<sl>			"<I>"
</sl>			"</I>"

<tt>			"<TT>"
</tt>			"</TT>"

% url support by HG

<url>		+	"<@@url>[URL]\n"
			"[NAME]</A>\n"
			"<@@endurl>"		+
</url>

<htmlurl>	+	"<@@url>[URL]\n"
			"[NAME]</A>\n"
			"<@@endurl>"		+
</htmlurl>

% ref modified to have an optional name field 
<ref>		+	"<@@ref>[ID]\n"
			"[NAME]</A>\n"
			"<@@endref>"		+
</ref>

<href>		+	"<@@ref>[ID]"		+
</href>

<pageref>	+	"<@@ref>[ID]"		+
</pageref>

<x>
</x>

<mc>			"<MC>"
</mc>			"</MC>"

<biblio>	+	"<BIBLIO STYLE=\"[STYLE]\" FILES=\"[FILES]\">" +
</biblio>	

%<code>		+	"<HR>\n<PRE>"		+
%</code>		+	"</PRE>\n<HR>"		+

<verb>		+	"<PRE>"		+
</verb>		+	"\n</PRE>"		+

<tscreen>	+	"<BLOCKQUOTE><CODE>"	+
</tscreen>	+	"</CODE></BLOCKQUOTE>"	+

<quote>         +       "<BLOCKQUOTE>"  +
</quote>        +       "</BLOCKQUOTE>" +

% theorems and such

<def>		+	"<DEF>"			
</def>		+	"</DEF>"		+

<prop>		+	"<PROP>"		
</prop>		+	"</PROP>"		+

<lemma>		+	"<LEMMA>"		
</lemma>	+	"</LEMMA>"		+

<coroll>	+	"<COROLL>"		
</coroll>	+	"</COROLL>"		+

<proof>		+	"<PROOF>"		
</proof>	+	"</PROOF>"		+

<theorem>	+	"<THEOREM>"		
</theorem>	+	"</THEOREM>"		+

<thtag>			"<THTAG>"
</thtag>		"</THTAG>"

% mathematics 

<f>			"<F>"
</f>			"</F>"

<dm>		+	"<DM>"			+
</dm>		+	"</DM>"  +

<eq>		+	"<EQ>"			+
</eq>		+	"</EQ>"			+

<fr>			"<FR>"
</fr>			"</FR>"

<nu>			"<NU>"
</nu>			"</NU>"

<de>			"<DE>"
</de>			"</DE>"

<lim>			"<LIM>"
</lim>			"</LIM>"

<op>			"<OP>"
</op>			"</OP>"

<ll>			"<LL>"
</ll>			"</LL>"

<ul>			"<UL>"
</ul>			"</UL>"

<opd>			"<OPD>"
</opd>			"</OPD>"

<pr>			"<PR>"
</pr>			"</PR>"

<in>			"<INT>"
</in>			"</INT>"

<sum>			"<SUM>"
</sum>			"</SUM>"

<root>			"<ROOT>"
</root>			"</ROOT>"

<ar>			"<AR>"
</ar>			"</AR>"

<arr>                   "<ARR>" 
</arr>			

<arc>                   "<ARC>"
</arc>		

<sup>			"<SUP>"
</sup>			"</SUP>"

<inf>			"<SUB>"
</inf>			"</SUB>"

<unl>			"<UNL>"
</unl>			"</UNL>"

<ovl>			"<OVL>"
</ovl>			"</OVL>"

<rf>			"<RF>"
</rf>			"</RF>"

<v>			"<V>"
</v>			"</V>"

<fi>			"<FI>"
</fi>			"</FI>"

<phr>			"<PHR>"
</phr>			"</PHR>"

<tu>			"<TU>"
</tu>

% figures

<figure>	+	"<FIGURE>"			+
</figure>	+	"</FIGURE>"			+

<eps>		+   	"<EPS FILE=\"[FILE]\">"  +
</eps>                	
            	

<ph>		+	"<PH VSPACE=\"[VSPACE]\">"	+
</ph>	

<caption>	+	"<CAPTION>"
</caption>		"</CAPTION>" 	+

% tables

<table>		+ 	"<TABLE>"	+
</table>	+	"</TABLE>"		+

<tabular>	+	"<BR>\n"		+
</tabular>	+	"\n"			+

<rowsep>		"<BR>"		+
</rowsep>

<colsep>		
</colsep>

<hline>		+	"<HR>"	+
</hline>

% slides

<slides>	+ 	"<SLIDES>"	+
</slides>	+	"</SLIDES>"	+

<slide>		+	"<SLIDE>"	+
</slide>	+	"</SLIDE>"	+

% letters


<letter>	+	"<LETTER OPTS=\"[OPTS]\">"	+
</letter>	+	"</LETTER>"		+

<telefax>	+	"<TELEFAX OPTS=\"[OPTS]\">"	+
</telefax>	+	"</TELEFAX>"			+

<opening>	+  	"<OPENING>"
</opening>		"</OPENING>"		+


<from>		+	"<FROM>"			
</from>		+	"</FROM>"	+


<to>		+	"<TO>"

</to>		+	"</TO>"		+

% first end definition of name

<address>	+	"<ADDRESS>"	+
</address>	+	"</ADDRESS>"	+

<email>		+	"<EMAIL>"
</email>		"</EMAIL>"	+

<phone>		+	"<PHONE>"	
</phone>		"</PHONE>"	+


<fax>		+	"<FAX>"
</fax>			"</FAX>"	+

<subject>	+	"<SUBJECT>"
</subject>		"</SUBJECT>"	+


<sref>		+	"<SREF>"	
</sref>			"</SREF>"	+

<rref>		+	"<RREF>"	
</rref>			"</RREF>"	+

<rdate>		+	"<RDATE>"
</rdate>		"</RDATE>"	+

<closing>	+	"<CLOSING>"	
</closing>		"</CLOSING>"	+

<cc>		+	"<CC>"
</cc>			"</CC>"		+

<encl>		+	"<ENCL>"
</encl>			"</ENCL>"	+

<ps>		+	"<PS>"		+
</ps>		+	"</PS>"		+


% end of html replacement file

