From e466ffc54dd5937d615db06a1b497efed87548a0 Mon Sep 17 00:00:00 2001
From: jfieber
Date: Tue, 9 May 1995 23:19:47 +0000
Subject: The linuxdoc DTD used for the FreeBSD handbook and FAQ. Reviewed by:
rgrimes Obtained from: Linux (with modification)
---
share/sgml/FreeBSD/rep/Makefile | 13 +
share/sgml/FreeBSD/rep/html.general | 106 ++++++
share/sgml/FreeBSD/rep/html.mapping | 408 +++++++++++++++++++++
share/sgml/FreeBSD/rep/html.math | 104 ++++++
share/sgml/FreeBSD/rep/latex.general | 106 ++++++
share/sgml/FreeBSD/rep/latex.mapping | 674 +++++++++++++++++++++++++++++++++++
share/sgml/FreeBSD/rep/latex.math | 104 ++++++
share/sgml/FreeBSD/rep/nroff.general | 112 ++++++
share/sgml/FreeBSD/rep/nroff.mapping | 638 +++++++++++++++++++++++++++++++++
share/sgml/FreeBSD/rep/nroff.math | 114 ++++++
10 files changed, 2379 insertions(+)
create mode 100644 share/sgml/FreeBSD/rep/Makefile
create mode 100644 share/sgml/FreeBSD/rep/html.general
create mode 100644 share/sgml/FreeBSD/rep/html.mapping
create mode 100644 share/sgml/FreeBSD/rep/html.math
create mode 100644 share/sgml/FreeBSD/rep/latex.general
create mode 100644 share/sgml/FreeBSD/rep/latex.mapping
create mode 100644 share/sgml/FreeBSD/rep/latex.math
create mode 100644 share/sgml/FreeBSD/rep/nroff.general
create mode 100644 share/sgml/FreeBSD/rep/nroff.mapping
create mode 100644 share/sgml/FreeBSD/rep/nroff.math
(limited to 'share/sgml/FreeBSD/rep')
diff --git a/share/sgml/FreeBSD/rep/Makefile b/share/sgml/FreeBSD/rep/Makefile
new file mode 100644
index 0000000..e1a112e
--- /dev/null
+++ b/share/sgml/FreeBSD/rep/Makefile
@@ -0,0 +1,13 @@
+# $Id:$
+
+FILES= html.general html.mapping html.math latex.general latex.mapping
+FILES+= latex.math nroff.general nroff.mapping nroff.math
+NOOBJ= noobj
+
+all clean cleandir depend lint tags:
+
+afterinstall:
+ install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \
+ ${DESTDIR}${BINDIR}/rep
+
+.include
diff --git a/share/sgml/FreeBSD/rep/html.general b/share/sgml/FreeBSD/rep/html.general
new file mode 100644
index 0000000..7aa9ecf
--- /dev/null
+++ b/share/sgml/FreeBSD/rep/html.general
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+" >
+" >
diff --git a/share/sgml/FreeBSD/rep/html.mapping b/share/sgml/FreeBSD/rep/html.mapping
new file mode 100644
index 0000000..dd53e90
--- /dev/null
+++ b/share/sgml/FreeBSD/rep/html.mapping
@@ -0,0 +1,408 @@
+
+% Converts qwertz files to html files ready for fixref and html2html.
+%
+% This file is R-Rated because of uglyness.
+%
+% -Magnus
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+% Manual Pages are expected to be formatted using nroff (or groff), unless
+% they are included as sections of other qwertz documents.
+
+
+
+
+
+
+
+ + "<@@title>"
+
+
+ + ""
+
"" +
+
+
+
+
+ + ""
+
""
+
+ " and "
+
+
+ + "Thanks "
+
+
+ + ""
+
"" +
+
+ "
"
+
+
" +
+
+ + "Appendix
" +
+
+
+
+
+
+
+
+
+
+
+
+ + "<@@part>"
+
+
+ + "<@@sect>"
+ + "<@@endsect>" +
+
+ + "<@@sect>"
+ + "<@@endsect>" +
+
+ + "<@@sect>"
+ + "<@@endsect>" +
+
+ + "<@@sect>"
+ + "<@@endsect>" +
+
+ + "<@@sect>"
+ + "<@@endsect>" +
+
+ + "<@@sect>"
+ + "<@@endsect>" +
+
+ + "<@@head>"
+ + "<@@endhead>" +
+
+ "
"
+
"" +
+
+ + " + "" +
+
+ + "" +
+
+ "" +
+
+ + "" +
+
+ "" +
+
+- + ""
+
"" +
+
+ ""
+ ""
+
+ "[[ID]]"
+
+
+ "[[NOTE] ([ID])]"
+
+
+ + ""
+ "" +
+
+ "\""
+ "\""
+
+ + "" +
+ + "" +
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+
""
+
+% url support by HG
+
+ + "<@@url>[URL]\n"
+ "[NAME]\n"
+ "<@@endurl>" +
+
+
+% ref modified to have an optional name field
+[ + "<@@ref>[ID]\n"
+ "[NAME]\n"
+ "<@@endref>" +
+]
+
+ + "<@@ref>[ID]" +
+
+
+ + "<@@ref>[ID]" +
+
+
+
+
+
+ ""
+ ""
+
+ + "" +
+
+
+ + "
\n" +
+
+ "\n
" +
+
+ + "" +
+
+ "" +
+
+ + "" +
+
+ "" +
+
+ + "" +
+
+ "" +
+
+% theorems and such
+
+ + ""
+ + "" +
+
+ + ""
+ + "" +
+
+ + ""
+ + "" +
+
+ + ""
+ + "" +
+
+ + ""
+ + "" +
+
+ + ""
+ + "" +
+
+ ""
+ ""
+
+% mathematics
+
+ ""
+ ""
+
+ + "" +
+ + "" +
+
+ + "" +
+ + "" +
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+"
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+
+
+ ""
+
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+ ""
+
+ ""
+
+
+% figures
+
+" +
+
+ + "" +
+
+
+
+ + "" +
+
+
+ + ""
+ "" +
+
+% tables
+
+" +
+
+ + "
\n" +
+ + "\n" +
+
+ "
" +
+
+
+
+
+
+ + "
" +
+
+
+% slides
+
+ + "" +
+ + "" +
+
+ + "" +
+ + "" +
+
+% letters
+
+
+ + "" +
+ + "" +
+
+ + "" +
+ + "" +
+
+ + ""
+ "" +
+
+
+ + ""
+ + "" +
+
+
+ + ""
+
+ + "" +
+
+% first end definition of name
+
+ + "" +
+ + "" +
+
+ + ""
+ "" +
+
+ + ""
+ "" +
+
+
+ + ""
+ "" +
+
+ + ""
+ "" +
+
+
+ + ""
+ "" +
+
+ + ""
+ "" +
+
+ + ""
+ "" +
+
+ + ""
+ "" +
+
+ + ""
+ "" +
+
+ + ""
+ "" +
+
+ + "" +
+ + "" +
+
+
+% end of html replacement file
+
diff --git a/share/sgml/FreeBSD/rep/html.math b/share/sgml/FreeBSD/rep/html.math
new file mode 100644
index 0000000..13c3625
--- /dev/null
+++ b/share/sgml/FreeBSD/rep/html.math
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/share/sgml/FreeBSD/rep/latex.general b/share/sgml/FreeBSD/rep/latex.general
new file mode 100644
index 0000000..cd57f2a
--- /dev/null
+++ b/share/sgml/FreeBSD/rep/latex.general
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+$}" >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/share/sgml/FreeBSD/rep/latex.mapping b/share/sgml/FreeBSD/rep/latex.mapping
new file mode 100644
index 0000000..1841454
--- /dev/null
+++ b/share/sgml/FreeBSD/rep/latex.mapping
@@ -0,0 +1,674 @@
+
+% qwertz to latex replacement file
+
+ +
+ +
+
+ + "\\documentstyle\[linuxdoc,[OPTS]\]{article}\n" +
+
+ + "\\end{document}" +
+
+ + "\\documentstyle\[linuxdoc,[OPTS]\]{report}\n"
+ "\\pagestyle{headings}" +
+
+ + "\\end{document}" +
+
+ + "\\documentstyle\[linuxdoc,[OPTS]\]{book}\n"
+ "\\pagestyle{headings}" +
+
+ + "\\end{document}" +
+
+
+ + "\\documentstyle\[linuxdoc,[OPTS]\]{article}\n"
+ "\\def\\title#1{\n"
+ "\\begin{center}\n"
+ "\\bf\n"
+ "#1\n"
+ "\\end{center}\n"
+ "\\bigskip\n"
+ "}\n"
+ "\\begin{document}"
+
+ + "\\end{document}" +
+
+
+ + "\\input{dina4.sty}"
+
+
+% Manual Pages are expected to be formatted using nroff (or groff), unless
+% they are included as sections of other qwertz documents.
+
+
+
+
+
+ + "\n\n\\begin{document}\n"
+ "\\maketitle\n" +
+
+ + "\\title{"
+ "}" +
+
+ "\\\\\n"
+ "{\\large "
+ "}" +
+
+ + "\\author{"
+ "}" +
+
+
+
+
+ "\\and " +
+
+
+ "\\thanks{"
+ "}"
+
+ " \\\\\n\\\\" +
+
+
+ + "\\date{"
+ "}" +
+
+ "\\\\ "
+
+
+
+
+
+
+ "{"
+ "}"
+
+ "{"
+ "}" +
+
+% + "\n\n\\begin{verbatim}" +
+% + "\\end{verbatim}\n\n" +
+
+ "{\\tt "
+ "}"
+
+% Hacked by mdw to use linuxdoc-sgml \abstract{...}
+ + "\\abstract{"
+ "}" +
+
+ + "\n \\appendix \n" +
+
+
+ + "\\tableofcontents" +
+
+
+ + "\\listoffigures" +
+
+
+ + "\\listoftables" +
+
+
+ + "\n\\part"
+
+
+ + "\n\\chapter"
+
+
+ + "\n\\section"
+
+
+ + "\n\\subsection"
+
+
+ + "\n\\subsubsection"
+
+
+ + "\n\\paragraph"
+
+
+ + "\n\\subparagraph"
+
+
+ "{"
+ "}\n\n"
+
+
+
"\n\n"
+
+ + "\\begin{itemize}" +
+ + "\\end{itemize}" +
+
+ + "\\begin{enumerate}" +
+ + "\\end{enumerate}" +
+
+ + "\\begin{list}{}{}\n" +
+
+ "\\end{list}" +
+
+ + "\\begin{description}" +
+ + "\\end{description}" +
+
+- + "\\item "
+
+
+ + "\\item\["
+ "\] \\mbox{}\n\n"
+
+ "\\cite{[ID]"
+ "}"
+
+ "\\cite\[[NOTE]\]{[ID]"
+ "}"
+
+ "\\idx{"
+ "}"
+
+ "\\cdx{"
+ "}"
+
+ "\\footnote{"
+ "}"
+
+ "``"
+ "''"
+
+ + "\\begin{quotation}\n" +
+ + "\n\\end{quotation}\n\n" +
+
+ "{\\em "
+ "\\/}"
+
+ "{\\bf "
+ "}"
+
+ "{\\it "
+ "\\/}"
+
+ "{\\sf "
+ "}"
+
+ "{\\sl "
+ "}"
+
+ "{\\rm "
+ "}"
+
+ "{\\tt "
+ "}"
+
+% Added by mdw
+ "\\cparam{"
+ "}"
+
+[ "\\ref{[ID]}"
+]
+
+ "\\pageref{[ID]}"
+
+
+%url added by HG
+ "\\url{[URL]}{[NAME]}"
+
+
+
+
+
+
+
+
+ + "\\bibliographystyle{[STYLE]}\n"
+ "\\bibliography{[FILES]}" +
+
+
+% + "\\macro{[ID]}{\\qw[ID]}"
+%
+
+% + "\\macro{qwmain}{\\qwmain}"
+%
+
+ + "\\par\n"
+ "\\addvspace{\\medskipamount}\n"
+ "\\nopagebreak\\hrule\n"
+ "\\begin{verbatim}" +
+
+
+ "\\end{verbatim} \n"
+ "\\nopagebreak\\hrule \n"
+ "\\addvspace{\\medskipamount}" +
+
+ + "\\begin{verbatim}" +
+ + "\\end{verbatim}" +
+
+% tscreen added by mdw
+ + "\\begin{tscreen}" +
+ + "\\end{tscreen}" +
+
+ + "\\begin{quotation}" +
+
+ "\\end{quotation}" +
+
+% theorems and such
+
+ + "\\begin{definition}"
+ + "\\end{definition}\n\n" +
+
+ + "\\begin{proposition}" +
+ + "\\end{proposition}" +
+
+ + "\\begin{lemma}"
+ + "\\end{lemma}\n\n" +
+
+ + "\\begin{corollary}"
+ + "\\end{corollary}\n\n" +
+
+ + "\n{\\noindent{\\bf Proof.} " +
+ + "}"
+
+ + "\\begin{theorem}"
+ + "\\end{theorem}\n\n" +
+
+ "\["
+ "\]" +
+
+% mathematics
+
+ "$"
+ "$"
+
+ + "\\\["
+ "\\\]" +
+
+ + "\\begin{equation}" +
+ + "\\end{equation}\n" +
+
+ "\\frac"
+
+
+ "{"
+ "}"
+
+ "{"
+ "}"
+
+
+
+
+
+
+
+ "_{"
+ "}"
+
+ "}"
+
+
+
+
+ "\\prod"
+
+
+ "\\int"
+
+
+ "\\sum"
+
+
+ "\\sqrt\[[n]\]{"
+ "}"
+
+ + "\\begin{array}{[ca]}" +
+ + "\\end{array}" +
+
+ " \\\\ " +
+
+
+ " & "
+
+
+
+ "^{"
+ "}"
+
+ "_{"
+ "}"
+
+ "\\underline{"
+ "}"
+
+ "\\overline{"
+ "}"
+
+ "\\mbox{\\tt "
+ "}"
+
+ "\\vec{"
+ "}"
+
+ "{\\cal "
+ "}"
+
+ "{\\rm "
+ "}"
+
+ "\\\\ \n"
+
+
+% figures
+
+ + "\\begin{figure}\[[LOC]\]" +
+ + "\\end{figure}\n" +
+
+ + "\\centerline{\\epsffile{[FILE].ps}}" +
+
+
+
+ + "\\vspace{[VSPACE]}\n\\par" +
+
+
+ + "\\caption{"
+ "}" +
+
+% tables
+
+ + "\\begin{table}\[[LOC]\]" +
+
+ "\\end{table}" +
+
+ + "\\begin{center}\n"
+ "\\begin{tabular}{[ca]}" +
+ + "\\end{tabular}\n"
+ "\\end{center}" +
+
+ "\\\\ " +
+
+
+ "& "
+
+
+ + "\\hline" +
+
+
+% slides
+
+ + "\\documentstyle\[qwertz,dina4,xlatin1,[OPTS]\]{article}\n"
+ "\\input{epsf.tex}\n"
+ "\\def\\title#1{\n"
+ "\\begin{center}\n"
+ "\\bf\\LARGE\n"
+ "#1\n"
+ "\\end{center}\n"
+ "\\bigskip\n"
+ "}\n"
+ "\\begin{document}" +
+ + "\\end{document}" +
+
+
+ + "\\newpage" +
+
+% letters
+
+
+ + "\\documentstyle\[qwertz,dina4,xlatin1,[OPTS]\]{letter}\n"
+ "\\input{epsf.tex} \n"
+ "\\newfont{\\gmd}{gmdlogo} \n"
+ "\\font\\agb=pagk at 13truept\n"
+ "\\font\\helv=phvr at 7.4truept\n"
+ "\\parindent 0pt \n"
+ "\\parskip 5pt plus 1pt minus 2pt \n"
+ "\\addtolength{\\oddsidemargin}{-4.0mm} \n"
+ "\\addtolength{\\evensidemargin}{-4.0mm} \n"
+ "\\setlength{\\unitlength}{ 1.0mm } \n"
+
+ % initial values for optional elements in the
+ % letter head
+
+ "\\def\\semail{} \n"
+ "\\def\\remail{} \n"
+ "\\def\\sphone{} \n"
+ "\\def\\rphone{} \n"
+ "\\def\\sref{} \n"
+ "\\def\\rref{} \n"
+ "\\def\\rdate{} \n"
+ "\\def\\subj{} \n"
+
+ % switch for distinguishing between context of
+ % sender and receiver's address
+
+ "\\newif\\ifsender \n"
+ "\\newif\\ifsubj \n"
+ "\\subjfalse \n" % assume no subject
+
+ "\\newif\\ifcc \n" % for cc field
+ "\\ccfalse \n"
+
+ "\\newif\\ifsaddress\n"
+ "\\saddressfalse\n"
+ "\\newif\\ifraddress\n"
+ "\\raddressfalse\n"
+
+ "\\newif\\iffax\n"
+ "\\faxfalse\n"
+
+"\\def\\letterhead{\n"
+"\\begin{picture}(178,54) \n"
+"\\put(0,50){\\agb GESELLSCHAFT F\\\"{U}R MATHEMATIK UND \n"
+"DATENVERARBEITUNG MBH } \n"
+
+"\\put(147,50){\\gmd g} \n "
+
+"\\put(0,40){\\helv GMD, Postfach 1316, Schlo{\\ss} Birlinghoven, \n "
+"D-53757 Sankt Augustin 1} \n "
+
+"\\put(97,40){\\parbox\[b\]{10cm} \n"
+"{\\helv\\raggedright \n"
+"\\baselineskip=9pt plus 2pt \n"
+"Telefon (0 22 41) 14-0 \\\\ \n"
+"Telefax (0 22 41) 14 26 18, -28 89}}\n"
+
+"\\put(0,210){\\makebox(0,0)\[bl\]{\\today}} \n "
+
+% letter specific information
+
+% from
+
+% name and e-mail
+
+"\\put(0,44){\\sname\\ \\semail} \n"
+
+% phone
+
+"\\put(128,44){-\\sphone} \n"
+
+% To, name and address
+
+"\\put(0,30){\\parbox\[t\]{9.5cm} \n"
+"{\\rname \\\\\n"
+"\\ifraddress\\raddress\\fi}}\n"
+
+% subject
+
+"\\ifsubj{\\put(0,0){\\subj}}\\fi\n"
+
+% sref
+
+% "\\put(70,15){\\sref} \n"
+
+% rref
+
+% "\\put(0,15){\\rref} \n"
+
+% rdate
+
+% "\\put(32,15){\\rdate} \n"
+
+"\\end{picture} \n"
+"}\n" % end of letterhead definition
+
+ + "\\end{document}" +
+
+ + "\\documentstyle\[[OPTS],qwertz,dina4,xlatin1\]{article}\n"
+ "\\def\\faxlength{[LENGTH]}\n"
+
+ % initial values for optional elements in the
+ % letter head
+
+ "\\def\\semail{} \n"
+ "\\def\\remail{} \n"
+ "\\def\\sphone{} \n"
+ "\\def\\rphone{} \n"
+ "\\def\\rfax{} \n"
+ "\\def\\sfax{} \n"
+ "\\def\\subj{} \n"
+
+ % switch for distinguishing between context of
+ % sender and receiver's address
+
+ "\\newif\\ifsender \n"
+ "\\newif\\ifsubj \n"
+ "\\subjfalse \n" % assume no subject
+
+ "\\newif\\ifcc \n" % for cc field
+ "\\ccfalse \n"
+
+ "\\newif\\ifsaddress\n"
+ "\\saddressfalse\n"
+ "\\newif\\ifraddress\n"
+ "\\raddressfalse\n"
+
+ "\\newif\\iffax\n"
+ "\\faxtrue\n"
+
+"\\def\\letterhead{\n"
+"\\newfont{\\gmd}{gmdlogo}\n"
+"\\setlength{\\parindent}{0pt}\n"
+
+"\\parbox\[b\]{\\textwidth}{Gesellschaft f\\\"{u}r\n"
+"Mathematik und Datenverarbeitung mbH \\\\\n"
+"Schlo{\\ss} Birlinghoven \\\\\n"
+"D-53757 St.~Augustin \\\\\n"
+"Telefax: +49--2241--142618, "
+"+49--2241--142889}\\makebox\[0pt\]\[r\]{\\gmd e}\n"
+
+"\\begin{center}\n"
+"~ \\\\\n"
+"\\LARGE TELEFAX\n"
+"\\\\ ~\n"
+"\\end{center}\n"
+
+"\\framebox\[\\textwidth\]{\\parbox{0.9\\textwidth}\%\n"
+"{\n"
+"Von/From: \\sname\n"
+"\\\\\n"
+"Datum/Date: \\today\n"
+"}}\n"
+
+"\\framebox\[\\textwidth\]{\\parbox{0.9\\textwidth}\%\n"
+"{\n"
+"An/To: \\rname\n"
+"\\\\\n"
+"Telefax: \\rfax\n"
+"\\\\\n"
+"Firma/Company: \\raddress\n"
+"}}\n"
+
+"\\framebox\[\\textwidth\]{\\parbox{0.9\\textwidth}\%\n"
+"{\n"
+"Anzahl der gesendeten Seiten (inkl. dieses Deckblatts)/ \\\\\n"
+"Number of pages (including this cover sheet): \\faxlength\n"
+"}}\n"
+
+"\\framebox\[\\textwidth\]{\\parbox{0.9\\textwidth}\%\n"
+"{\\setlength{\\parskip}{0.5\\baselineskip}\n"
+"Bemerkungen/Comments: \\\\\n"
+"\\subj\n"
+"\\vspace{60pt}}}\n"
+"}\n" % end of letterhead definition for fax messages
+
+ + "\\end{document}" +
+
+ + "\\begin{document}\n"
+ "\\pagestyle{empty}\n"
+ "\\letterhead\n"
+
+"\\iffax\\newpage\n"
+"\\else{\\ifsubj\\vspace{0.5cm}\\fi}\n"
+"\\fi\n\\par" +
+
+ + "\n\n\\vspace{0.6cm}\n\\par" +
+
+
+ + "\\sendertrue\n"
+ "\\def\\sname{"
+ "}" +
+
+
+ + "\\senderfalse\n"
+ "\\def\\rname{"
+ "}" +
+
+% first end definition of name
+
+ "\\def\\address{"
+ "}\n"
+ "\\ifsender{\\global\\saddresstrue\n"
+ "\\global\\def\\saddress{\\address}}\n"
+ "\\else{\\global\\raddresstrue\n"
+ "\\global\\def\\raddress{\\address}}\n"
+ "\\fi" +
+
+ + "\\def\\email{"
+ "}\n"
+ "\\ifsender\\edef\\semail{(\\email)} \n"
+ " \\else\\edef\\remail{\\email} \n"
+ "\\fi" +
+
+ + "\\def\\phone{"
+ "}\n"
+ "\\ifsender\\edef\\sphone{\\phone} \n"
+ " \\else\\edef\\rphone{\\phone} \n"
+ "\\fi" +
+
+
+ + "\\def\\fax{"
+ "}\n"
+ "\\ifsender\\edef\\sfax{\\fax} \n"
+ "\\else{\\global\\edef\\rfax{\\fax}\n"
+ "\\newwrite\\faxnum\n"
+ "\\immediate\\openout\\faxnum=.fax=num\n"
+ "\\immediate\\write\\faxnum{\\rfax}\n"
+ "\\immediate\\closeout\\faxnum}\n"
+ "\\fi" +
+
+ + "\\subjtrue\n"
+ "\\def\\subj{"
+ "}" +
+
+
+ + "\\newcommand{\\sref}{"
+ "}" +
+
+ + "\\newcommand{\\rref}{"
+ "}" +
+
+ + "\\def\\rdate}{"
+ "}" +
+
+ + "\\vspace{1cm} \n\\par\n"
+ "\\parbox\[t\]{\\textwidth} "
+ "{"
+ + "}\\vspace{2cm}\n\\par\n"
+ "\\sname \n"
+ "\\ifcc{\\vspace{0.5cm}\n\\par\n"
+ "cc:\\ \\ \\parbox\[t\]{14cm}{\n"
+ "\\cc}\\fi\n" +
+
+ + "\\cctrue\n"
+ "\\def\\cc{"
+ "}" +
+
+ + "\\vspace{0.5cm}\n\\par\n"
+ "encl:\\ \\ \\parbox\[t\]{14cm}{"
+ "}\n\n" +
+
+ + "\\vspace{0.5cm}\n\\par" +
+
+
+
+% end of latex replacement file
+
diff --git a/share/sgml/FreeBSD/rep/latex.math b/share/sgml/FreeBSD/rep/latex.math
new file mode 100644
index 0000000..60ad10a
--- /dev/null
+++ b/share/sgml/FreeBSD/rep/latex.math
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/share/sgml/FreeBSD/rep/nroff.general b/share/sgml/FreeBSD/rep/nroff.general
new file mode 100644
index 0000000..213f1ff
--- /dev/null
+++ b/share/sgml/FreeBSD/rep/nroff.general
@@ -0,0 +1,112 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+" >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/share/sgml/FreeBSD/rep/nroff.mapping b/share/sgml/FreeBSD/rep/nroff.mapping
new file mode 100644
index 0000000..98cbced
--- /dev/null
+++ b/share/sgml/FreeBSD/rep/nroff.mapping
@@ -0,0 +1,638 @@
+% linuxdoc replacement file
+% translates into nroff, using ms macros
+% manpages can be processed using the man macros
+% does not use neqn for math.
+
+% Based on qwertz replacement file by Tom Gordon
+% linuxdoc mods by mdw
+
+% Groff dependencies are few. To port to another roff:
+% 1. Check and modify, if necessary, font changes. (e.g. In psroff the
+% same fonts have other names.)
+% 2. Check the code for including Encapsulated PostScript, generated
+% for eps elements.
+% 3. Also make versions of general.grops and math.grops, which are sed
+% scripts translating character entities into groff character references.
+
+
+ + ".nr PS 11\n"
+
+ % Hacked by mdw
+ ".nr PI 3n\n"
+ ".ds CF \\\\n\%\n"
+ ".ds CH \\&\n"
+ ".ds dR $\n" % dollar, to avoid EQN conflicts
+
+ % Start with no TOC
+ ".ds printtoc\n"
+
+ % Footnote style
+ ".nr FF 1\n"
+
+ % James Clark's trick to prevent unintended paragraph
+ % breaks
+
+ ".tr \\&\n"
+
+ % horizontal line
+ ".de hl\n"
+ ".br\n"
+ "\\l'\\\\n(.lu-\\\\n(.iu'\n"
+ "..\n"
+
+ % paragraph spacing
+ ".if n .nr PD 1v\n"
+
+ % margins added by mdw
+ ".nr PO 0.25i\n"
+ ".po 0.25i\n"
+ ".nr LL 7.0i\n"
+ ".nr TL 7.0i\n"
+ ".nr HM 0i\n"
+ ".nr FM 0i\n"
+
+ % Turn off right-margin filling
+ ".na\n"
+
+ % h is 1 if first paragraph after heading
+
+ ".nr h 0\n"
+
+ % initialize heading level
+
+ ".nr il 1\n"
+
+ % Number registers for list
+
+ ".nr bi 0\n" % initialize begin items
+ ".nr ll 0\n" % list level, stores current level
+ ".nr el 0\n" % current enumeration level
+
+ % Not all list levels are enumerations, as
+ % itemizations can be embedded within enumerations
+ % and vice versa
+
+ % type of list level is in \n(t\n(ll, where
+ % 0 : itemize, 1 : enumerate, 2: description
+
+ % enumerator for an enumeration level is in
+ % \n(e\n(el -- i.e. \n(e1=2 means current item of
+ % enumeration level 1 is 2
+
+ % context-sensitive paragraph macro
+
+% Bug: There's some problem using this to re-start paragraphs after the
+% and , so after verb and code I insert .LP. That's fine
+% except that is loses indentation when using verb or code inside of a list.
+
+".de Pp\n"
+".ie \\\\n(ll>0 \\{\\\n" % within list?
+".ie \\\\n(bi=1 \\{\\\n" % first par element of item?
+".nr bi 0\n" % reset bi flag
+% if itemization, mark with a bullet
+".if \\\\n(t\\\\n(ll=0 \\{.IP \\\\(bu\\}\n" % itemize
+% if enumeration: increment and print enumerator
+% for this enumeration level
+".if \\\\n(t\\\\n(ll=1 \\{.IP \\\\n+(e\\\\n(el.\\}\n"
+% if first par element of descrip, do nothing
+".\\}\n"
+".el .sp \n" % subsequent par element of item
+".\\}\n"
+".el \\{\\\n" % not within list
+".ie \\\\nh=1 \\{\\\n" % first par after heading
+".LP\n"
+".nr h 0\n" % reset h flag
+".\\}\n"
+".el .LP \n" % Changed from .PP, mdw
+".\\}\n"
+".nh\n"
+"..\n"
+
+
+
+ % for each level, a number register is created
+ % to store its type and current item number, where
+ % -1=bullet of an itemized list.
+
+ % Format of list level enumerators
+
+ ".ds f1 1\n"
+ ".ds f2 a\n"
+ ".ds f3 i\n"
+ ".ds f4 A\n"
+
+ % Number registers for theorems
+ ".nr def 0\n"
+ ".nr prop 0\n"
+ ".nr lemma 0\n"
+ ".nr coroll 0\n"
+ ".nr proof 0\n"
+ ".nr theorem 0\n"
+
+ % Reference commands
+
+% redefine superscript strings so that refer tags look like [this]
+
+ ".ds \[. \[\n"
+ ".ds .\] \]\n"
+
+
+
+% set initial level of headings, in register il
+
+ + ".nr il 0" +
+ + ".if '\\*[printtoc]'true' .PX\n"
+
+ + ".nr il 1" +
+ + ".bp\n"
+ ".rm LH\n.rm RH\n"
+ ".TC" +
+
+ + ".nr il 1" +
+ + ".rm LH\n.rm RH\n"
+ ".bp\n"
+ ".TC" +
+
+
+
+
+ + ".nr il -1" +
+
+
+% Hacked up titlepag stuff to look more reasonable. Titles and author
+% names are now stored in strings, printed by the end of .
+% Wake up! This uses groff-like long string names. You must use groff
+% to format this.
+
+ + ".ds mdwtitle\n"
+ ".ds mdwsubtitle\n"
+ ".ds mdwdate\n"
+ ".de printabstract\n"
+ "..\n" +
+ + "\\*[mdwtitle]\n"
+ ".br\n"
+ ".if !'\\*[mdwsubtitle]'' \\*[mdwsubtitle]\n"
+ ".br\n"
+ ".printauthor\n"
+ ".br\n"
+ "\\*[mdwdate]\n"
+ ".br\n"
+ ".printabstract\n"
+ ".br\n"
+
+% + ".TL" +
+%
+
+ + ".ds mdwtitle "
+ +
+
+% + ".br\n"
+% ".ft R\n"
+% ".SM" +
+% + ".LG" +
+
+ + ".ds mdwsubtitle "
+ +
+
+ + ".ds mdwdate "
+ +
+
+ + ".de printabstract\n"
+ ".LP\n"
+ + ".." +
+
+% author needs to be set up as its own macro, fired off from .printtitle.
+
+ + ".de printauthor" +
+ + ".." +
+
+% + ".AU" +
+%
+
+ + ".br" +
+
+
+
+
+
+ "\\**\n"
+ ".FS" +
+ + ".FE" +
+
+ + ".br" +
+
+
+ + ".br" +
+
+
+
+
+
+
+ + ".EH '"
+ "'''" +
+
+ + ".OH '''"
+ "'" +
+
+ + "(*" +
+ + "*)" +
+
+% New abstract given above --mdw
+% + ".AB" +
+% + ".AE" +
+
+ + ".af H1 A" +
+
+
+% limitation: no list of figures or tables. A table of contents
+% is always generated for books and reports. Thus these next three tags
+% are no-ops
+
+% For now, no table-of-contents in ASCII output. (Uncomment this if
+% desired).
+% + ".ds printtoc true"
+%
+
+
+
+
+
+
+
+
+
+
+ + ".bp\n"
+ ".NH \\n(il " +
+
+
+ + ".NH 1+\\n(il" +
+
+
+ + ".NH 2+\\n(il" +
+
+
+ + ".NH 3+\\n(il" +
+
+
+ + ".NH 4+\\n(il" +
+
+
+ + ".NH 5+\\n(il" +
+
+
+ ".ds h "
+ + "\\*h\n"
+ ".XS \\n%\n"
+ "\\*(SN \\*h\n"
+ ".XE\n"
+ ".nr h 1\n" % set heading flag to true
+
+ + ".Pp" +
+
+
+ + ".nr ll +1\n" % increment list level
+ ".nr t\\n(ll 0\n" % set type of level to itemize
+ + ".nr ll -1\n" % decrement list level
+
+ + ".nr ll +1\n" % increment list level
+ ".nr el +1\n" % increment enumeration level
+ ".nr t\\n(ll 1\n" % set type of level to enum
+ ".nr e\\n(el 0 1\n" % initialize enumerator
+ ".af e\\n(el \\*(f\\n(el\n" % style of enumerator
+ ".if \\n(ll>1 .RS" +
+ + ".if \\n(ll>1 .RE\n"
+ ".br\n"
+ ".nr el -1\n" % decrement enumeration level
+ ".nr ll -1\n" % decrement list level
+
+ + ".RS\n"
+ ".nr ll +1\n" % increment list level
+ ".nr t\\n(ll 2\n" % set type of level to descrip
+ + ".nr ll -1\n" % decrement list level
+ ".RE" +
+
+% number register bi means "begin item". Used in the .P macro to print
+% bullets or numbers at beginning of first paragraph of an item.
+% If bi=1 then the paragraph is the first one of the item.
+
+- + ".nr bi 1\n.Pp" +
+
+
+ + ".IP \"\\fB"
+ "\\fP\"\n"
+ ".nr bi 1" +
+
+ + ".\[\n[ID]\n.\]" +
+
+
+ + ".\[\n[ID]\n.\]\n([NOTE])"
+
+
+ " (-- "
+ "--)" +
+
+ "\\*Q"
+ "\\*U"
+
+ + ".RS\n"
+ ".nr LL \\n(LL-\\n(PI" +
+ + ".nr LL \\n(LL+\\n(PI\n"
+ ".RE" +
+
+ "\\fI"
+ "\\fP"
+
+ "\\fB"
+ "\\fR"
+
+ "\\fI"
+ "\\fR"
+
+ "\\fR"
+ "\\fR"
+
+ "\\fI"
+ "\\fR"
+
+% Changed by mdw
+ "\\fC"
+ "\\fR"
+
+% Added by mdw
+ "\\fI<"
+ ">\\fR"
+
+ "[NAME] (\\fC[URL]\\fR)"
+
+
+[ "``[NAME]''"
+]
+
+ "??"
+
+
+
+
+
+
+
+
+ + ".\[\n"
+ "$LIST$\n"
+ ".\]" +
+
+
+ + ".DS L\n"
+ ".hl\n"
+ ".ft R\n"
+ ".eo" +
+
+
+ ".ec\n"
+ ".hl\n"
+ ".DE\n"
+ ".ft P\n"
+ % ".Pp" + % continue previous paragraph (changed mdw)
+ ".LP"
+
+ + ".DS L\n"
+ ".ft R\n"
+ ".eo" +
+
+ + ".ec\n"
+ ".DE\n"
+ ".ft P\n"
+ % ".Pp" + % continue previous paragraph (changed mdw)
+ ".LP"
+
+% tscreen added by mdw
+ + ".br\n"
+ ".po 0.75i\n"
+ ".ll 6.0i\n"
+ ".ft C\n"
+ ".LP\n" % Used to be Pp
+ + ".br\n"
+ ".po 0.25i\n"
+ ".ll 7.0i\n"
+ ".ft R\n" % This might not be correct
+ ".LP\n" % Used to be Pp
+
+ + ".br\n"
+ ".po 0.75i\n"
+ ".ll 6.0i\n"
+ ".nr LL 6.0i\n"
+ ".LP\n" % Used to be Pp
+
+ ".br\n"
+ ".po 0.25i\n"
+ ".ll 7.0i\n"
+ ".nr LL 7.0i\n"
+ ".LP\n" % Used to be Pp
+
+
+
+
+% theorems and such
+
+ + ".sp\n"
+ ".nr def \\n\[def\]+1\n"
+ ".B \"Definition \\n\[def\] \"" +
+ + ".ft P\n.sp" +
+
+ + ".sp\n"
+ ".nr prop \\n\[prop\]+1\n"
+ ".B \"Proposition \\n\[prop\] \"" +
+ + ".ft P\n.sp" +
+
+
+ + ".sp\n"
+ ".nr lemma \\n\[lemma\]+1\n"
+ ".B \"Lemma \\n\[lemma\] \"" +
+ + ".ft P\n.sp" +
+
+ + ".sp\n"
+ ".nr coroll \\n\[coroll\]+1\n"
+ ".B \"Corolloary \\n\[coroll\] \"" +
+ + ".ft P\n.sp" +
+
+ + ".sp\n"
+ ".nr proof \\n\[proof\]+1\n"
+ ".B \"Proof \\n\[proof\] \"" +
+ + ".ft P\n.sp" +
+
+ + ".sp\n"
+ ".nr theorem \\n\[theorem\]+1\n"
+ ".B \"Theorem \\n\[theorem\] \"" +
+ + ".ft P\n.sp" +
+
+ + ".B\n("
+ ")\n.I" +
+
+% mathematics -- this nroff version needs work.
+
+
+
+
+ + ".DS L" +
+ + ".DE" +
+
+ + ".DS L" +
+ + ".DE" +
+
+
+
+
+ "{"
+ "} over "
+
+ "{"
+ "}"
+
+
+
+
+
+
+
+ " from {"
+ "}"
+
+ "}"
+
+
+
+
+ " prod "
+
+
+ " int "
+
+
+ " sum "
+
+
+% limitation: eqn only does square roots!
+
+ " sqrt {"
+ "}"
+
+ + ".TS\n"
+ "center, tab(|) ;\n"
+ "[ca]." +
+ + ".TE" +
+
+ "\n"
+
+
+ "|"
+
+
+
+ " sup {"
+ "}"
+
+ " sub {"
+ "}"
+
+
+ "{"
+ "} under "
+
+ "{"
+ "} bar "
+
+ " bold{"
+ "}"
+
+ "{"
+ "} vec "
+
+% limitation: no calligraphic characters, using helvetica italics instead. Is there a better font?
+
+ "\\fI"
+ "\\fP"
+
+ " roman }"
+ "}"
+
+
+ + ".br" +
+
+
+% figures
+
+ % + ".KF" +
+ % + ".KE" +
+
+ + ".if t .PSPIC [file].ps\n"
+ ".if n .sp 4" +
+
+
+% Are TeX units properly handled by this translation of ph?
+
+ + ".sp [VSPACE]" +
+
+
+ + ".sp\n.ce" +
+
+
+% tables
+
+ + ".KE" +
+
+ + ".TS\n"
+ "center, tab(|) ; \n"
+ "[ca]." +
+ + ".TE" +
+
+ "\n" +
+
+
+ "|"
+
+
+ + "_" +
+
+
+ + ".nr PS 18" +
+
+
+
+ + ".bp\n\\&" +
+
+% letters -- replacement for email, using mh format.
+
+ + ".nf" +
+ +
+
+ + "From: "
+ + "To: "
+
+ + ".de Ad\n"
+ + ".." +
+
+ " <"
+ ">"
+
+ + "Subject: "
+
+ + "Sref: "
+ + "In-Reply-To: "
+
+ + "cc: "
+
+ + ".fi\n.LP" +
+
+ + ".LP" +
+
+ + ".XP\n"
+ "encl: "
+
+ + ".LP\np.s."
+
+
+% end of roff replacement file
diff --git a/share/sgml/FreeBSD/rep/nroff.math b/share/sgml/FreeBSD/rep/nroff.math
new file mode 100644
index 0000000..17490d7
--- /dev/null
+++ b/share/sgml/FreeBSD/rep/nroff.math
@@ -0,0 +1,114 @@
+
+
+
+
+=}' >
+
+
+
+
+
+
+
+}' >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}' >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--
cgit v1.1