% Based on qwertz replacement file by Tom Gordon
% linuxdoc mods by mdw
-% Groff dependencies are few. To port to another roff:
+% 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
% Hacked by mdw
".nr PI 3n\n"
- ".ds CF \\\\n\%\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"
".nr HM 0i\n"
".nr FM 0i\n"
- % Turn off right-margin filling
+ % Turn off right-margin filling
".na\n"
-
+
% h is 1 if first paragraph after heading
- ".nr h 0\n"
+ ".nr h 0\n"
% initialize heading level
-
- ".nr il 1\n"
+
+ ".nr il 1\n"
% Number registers for list
".nr ll 0\n" % list level, stores current level
".nr el 0\n" % current enumeration level
- % Not all list levels are enumerations, as
+ % 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
+% Bug: There's some problem using this to re-start paragraphs after the
% </verb> and </code>, 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.
% 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"
+".\\}\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"
+".ie \\\\nh=1 \\{\\\n" % first par after heading
+".LP\n"
".nr h 0\n" % reset h flag
-".\\}\n"
+".\\}\n"
".el .LP \n" % Changed from .PP, mdw
".\\}\n"
".nh\n"
-"..\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.
% set initial level of headings, in register il
<article> + ".nr il 0" +
-</article> + ".if '\\*[printtoc]'true' .PX\n"
+</article> + ".if '\\*[printtoc]'true' .PX\n"
<report> + ".nr il 1" +
</report> + ".bp\n"
".bp\n"
".TC" +
-<notes>
+<notes>
</notes>
<manpage> + ".nr il -1" +
-</manpage>
+</manpage>
<progdoc>
</progdoc>
% Hacked up titlepag stuff to look more reasonable. Titles and author
% names are now stored in strings, printed by the end of </titlepag>.
-% Wake up! This uses groff-like long string names. You must use groff
+% Wake up! This uses groff-like long string names. You must use groff
% to format this.
<titlepag> + ".ds mdwtitle\n"
".ds mdwsubtitle\n"
- ".ds mdwdate\n"
+ ".ds mdwdate\n"
".de printabstract\n"
"..\n" +
</titlepag> + "\\*[mdwtitle]\n"
"\\*[mdwdate]\n"
".br\n"
".printabstract\n"
- ".br\n"
+ ".br\n"
%<title> + ".TL" +
-%</title>
+%</title>
<title> + ".ds mdwtitle "
</title> +
% ".SM" +
%</subtitle> + ".LG" +
-<subtitle> + ".ds mdwsubtitle "
+<subtitle> + ".ds mdwsubtitle "
</subtitle> +
-<date> + ".ds mdwdate "
+<date> + ".ds mdwdate "
</date> +
-<abstract> + ".de printabstract\n"
+<abstract> + ".de printabstract\n"
".LP\n"
</abstract> + ".." +
<name> + ".br" +
</name>
-<and>
+<and>
</and>
-<thanks> "\\**\n"
+<thanks> "\\**\n"
".FS" +
</thanks> + ".FE" +
<newline> + ".br"
</newline>
-<label>
-</label>
+<label>
+</label>
-<header>
-</header>
+<header>
+</header>
<lhead> + ".EH '"
</lhead> "'''" +
<toc>
</toc>
-<lof>
+<lof>
</lof>
-<lot>
+<lot>
</lot>
-<chapt> + ".bp\n"
+<chapt> + ".bp\n"
".NH \\n(il " +
</chapt>
</sect2>
<sect3> + ".NH 4+\\n(il" +
-</sect3>
+</sect3>
<sect4> + ".NH 5+\\n(il" +
</sect4>
</heading> + "\\*h\n"
".XS \\n%\n"
"\\*(SN \\*h\n"
- ".XE\n"
+ ".XE\n"
".nr h 1\n" % set heading flag to true
-<p> + ".Pp" +
+<p> + ".Pp" +
</p>
<itemize> + ".nr ll +1\n" % increment list level
".af e\\n(el \\*(f\\n(el\n" % style of enumerator
".if \\n(ll>1 .RS" +
</enum> + ".if \\n(ll>1 .RE\n"
- ".br\n"
+ ".br\n"
".nr el -1\n" % decrement enumeration level
- ".nr ll -1\n" % decrement list level
+ ".nr ll -1\n" % decrement list level
<descrip> + ".RS\n"
".nr ll +1\n" % increment list level
% If bi=1 then the paragraph is the first one of the item.
<item> + ".nr bi 1\n.Pp" +
-</item>
+</item>
<tag> + ".IP \"\\fB"
</tag> "\\fR\"\n"
</cf> ""
<cite> + ".\[\n[ID]\n.\]" +
-</cite>
+</cite>
<ncite> + ".\[\n[ID]\n.\]\n([NOTE])"
</ncite>
-<footnote> " (-- "
+<footnote> " (-- "
</footnote> "--)" +
<sq> "\\*Q"
</lq> + ".nr LL \\n(LL+\\n(PI\n"
".RE" +
-<em> "\\fI"
-</em> "\\fP"
+<em> "\\fI"
+</em> "\\fP"
-<bf> "\\fB"
-</bf> "\\fR"
+<bf> "\\fB"
+</bf> "\\fR"
-<it> "\\fI"
-</it> "\\fR"
+<it> "\\fI"
+</it> "\\fR"
-<sf> "\\fR"
-</sf> "\\fR"
+<sf> "\\fR"
+</sf> "\\fR"
-<sl> "\\fI"
-</sl> "\\fR"
+<sl> "\\fI"
+</sl> "\\fR"
% Changed by mdw
<tt> "\\fC"
<pageref> "??"
</pageref>
-<x>
+<x>
</x>
-<mc>
+<mc>
</mc>
<biblio> + ".\[\n"
% ".Pp" + % continue previous paragraph (changed mdw)
".LP"
-% tscreen added by mdw
+% tscreen added by mdw
<tscreen> + ".br\n"
".po 0.75i\n"
".ll 6.0i\n"
% mathematics -- this nroff version needs work.
-<f>
-</f>
+<f>
+</f>
<dm> + ".DS L" +
</dm> + ".DE" +
<eq> + ".DS L" +
</eq> + ".DE" +
-<fr>
-</fr>
+<fr>
+</fr>
<nu> "{"
</nu> "} over "
<de> "{"
</de> "}"
-<lim>
+<lim>
</lim>
<op>
</in>
<sum> " sum "
-</sum>
+</sum>
% limitation: eqn only does square roots!
"[ca]." +
</ar> + ".TE" +
-<arr> "\n"
+<arr> "\n"
</arr>
<arc> "|"
% limitation: no calligraphic characters, using helvetica italics instead. Is there a better font?
-<fi> "\\fI"
-</fi> "\\fP"
+<fi> "\\fI"
+</fi> "\\fP"
<phr> " roman }"
</phr> "}"
<eps> + ".if t .PSPIC [file].ps\n"
".if n .sp 4" +
-</eps>
-
+</eps>
+
% Are TeX units properly handled by this translation of ph?
<ph> + ".sp [VSPACE]" +
-</ph>
+</ph>
<caption> + ".sp\n.ce" +
</caption>
<slides> + ".nr PS 18" +
</slides>
-<slide>
+<slide>
</slide> + ".bp\n\\&" +
% letters -- replacement for email, using mh format.
<!-- This is a DTD, but will be read as -*- sgml -*- -->
<!-- ================================================= -->
-<!-- $Id$
+<!-- $Id$
This was heavilly modified for use with bird! Don't you dare to use it
anywhere else. <pavel@ucw.cz>
weren't in the original linuxdoc 1.3 DTD, and are
superseded by the new if/unless facility. -->
<!-- BK/97/05/09: this is the original Linuxdoc DTD,
- as of SGML Tools 0.99.0. It is not longer
+ as of SGML Tools 0.99.0. It is not longer
supported. Use only if in dire need, for backwards
compabitlity. Backend support for undocumented
QWERTZ leftovers not in the strict Linuxdoc DTD's
any changes to this, just replacing. -->
<!-- ================================================= -->
-<!entity % emph
+<!entity % emph
" em|it|bf|sf|sl|tt|cf|m|cparam|const|func|struct|param|type|funcdef " >
<!entity % index "idx|cdx|nidx|ncdx" >
<!entity % xref
" label|ref|pageref|cite|url|htmlurl|ncite " >
-<!entity % inline
+<!entity % inline
" (#pcdata | f| x| %emph; |sq| %xref | %index | file )* " >
-<!entity % list
+<!entity % list
" list | itemize | enum | descrip " >
-<!entity % par
+<!entity % par
" %list; | comment | lq | quote | tscreen | hrule " >
<!entity % mathpar " dm | eq " >
-<!entity % thrm
+<!entity % thrm
" def | prop | lemma | coroll | proof | theorem " >
<!entity % litprog " code | verb " >
-<!entity % sectpar
- " %par; | figure | tabular | table | %mathpar; |
+<!entity % sectpar
+ " %par; | figure | tabular | table | %mathpar; |
%thrm; | %litprog; | function ">
-<!element birddoc o o
- (sect | chapt | article | report |
+<!element birddoc o o
+ (sect | chapt | article | report |
book | letter | telefax | slides | notes | manpage ) >
<!-- `general' entity replaced with ISO entities - kwm -->
<!element hrule - - EMPTY>
<!shortref pmap
- "&#RS;B" null
+ "&#RS;B" null
"&#RS;B&#RE;" psplit
"&#RS;&#RE;" psplit
-- '"' qtag --
<!entity ftag '<f>' -- formula begin -- >
<!entity qendtag '</sq>'>
-<!shortref sqmap
+<!shortref sqmap
"&#RS;B" null
-- '"' qendtag --
"[" lsqb
<!shortref bodymap
"&#RS;B&#RE;" ptag
"&#RS;&#RE;" ptag
- '"' qtag
+ '"' qtag
"[" lsqb
"~" nbsp
"_" lowbar
<!shortref oneline
"B&#RE;" space
- "&#RS;&#RE;" null
+ "&#RS;&#RE;" null
"&#RS;B&#RE;" null
-- '"' qtag --
"[" ftag
<!usemap oneline caption>
<!entity % tabrow "(%inline, (colsep, %inline)*)" >
-<!element tabular - -
+<!element tabular - -
(hline?, %tabrow, (rowsep, hline?, %tabrow)*, caption?) >
<!attlist tabular
"B&#RE;" null
"BB" space
"@" rowsep
- "|" colsep
+ "|" colsep
"[" ftag
-- '"' qtag --
"_" thinsp
<!shortref ttmap -- also on one-line --
"B&#RE;" space
- "&#RS;&#RE;" null
+ "&#RS;&#RE;" null
"&#RS;B&#RE;" null
"&#RS;B" null
'#' num
<!entity % limits "pr|in|sum" >
<!entity % fbu "fr|lim|ar|root" >
<!entity % fph "unl|ovl|sup|inf" >
-<!entity % fbutxt "(%fbu;) | (%limits;) |
+<!entity % fbutxt "(%fbu;) | (%limits;) |
(%fcstxt;)|(%fscs;)|(%fph;)" >
<!entity % fphtxt "p|#pcdata" >
<!element f - - ((%fbutxt;)*) >
<!entity fendtag '</f>' -- formula end -- >
-<!shortref fmap
+<!shortref fmap
"&#RS;B" null
"&#RS;B&#RE;" null
"&#RS;&#RE;" null
<!shortref arrmap
"&#RE;" space
"@" arr
- "|" arc
+ "|" arc
"_" thinsp
"~" nbsp
"#" num
<!element ovl - - ((%fbutxt;)*) >
<!element rf - o (#pcdata) >
<!element phr - o ((%fphtxt;)*) >
-<!element v - o ((%fcstxt;)*)
+<!element v - o ((%fcstxt;)*)
-(tu|%limits;|%fbu;|%fph;) >
<!element fi - o (#pcdata) >
<!element tu - o empty >
<!shortref global
"&#RS;B" null -- delete leading blanks --
- -- '"' qtag --
+ -- '"' qtag --
"[" ftag
"~" nbsp
"_" lowbar
<!-- ref modified to have an optional name field HG -->
<!element ref - o empty>
-<!attlist ref
+<!attlist ref
id cdata #required
name cdata "&refnam">
<!-- url entity added to have direct url references HG -->
<!element url - o empty>
-<!attlist url
+<!attlist url
url cdata #required
name cdata "&urlnam" >
<!-- htmlurl entity added to have quieter url references esr -->
<!element htmlurl - o empty>
-<!attlist htmlurl
+<!attlist htmlurl
url cdata #required
name cdata "&urlnam" >
<!-- Hacked by mdw to exclude abstract; abstract now part of titlepag -->
<!element article - -
- (titlepag, header?,
- toc?, lof?, lot?, p*, sect*,
+ (titlepag, header?,
+ toc?, lof?, lot?, p*, sect*,
(appendix, sect+)?, biblio?) +(footnote)>
<!attlist article
opts cdata "null">
<!-- Hacked by mdw to exclude abstract; abstract now part of titlepag -->
-<!element report - -
+<!element report - -
(titlepag, header?, toc?, lof?, lot?, p*,
chapt*, (appendix, chapt+)?, biblio?) +(footnote)>
<!attlist report
opts cdata "null">
-<!element book - -
- (titlepag, header?, toc?, lof?, lot?, p*, chapt*,
+<!element book - -
+ (titlepag, header?, toc?, lof?, lot?, p*, chapt*,
(appendix, chapt+)?, biblio?) +(footnote) >
<!attlist book
<!element title - o (%inline, subtitle?) +(newline)>
<!element subtitle - o (%inline)>
<!usemap oneline titlepag>
-<!element author - o (name, thanks?, inst?,
+<!element author - o (name, thanks?, inst?,
(and, name, thanks?, inst?)*)>
<!element name o o (%inline) +(newline)>
<!element and - o empty>
<!element date - o (#pcdata) >
<!usemap global thanks>
-
+
<!element newline - o empty >
-<!entity nl "<newline>">
+<!entity nl "<newline>">
<!element progdoc - o empty>
<!element footnote - - (%inline)>
<!usemap global footnote>
<!element cite - o empty>
-<!attlist cite
+<!attlist cite
id cdata #required>
<!element ncite - o empty>
-<!attlist ncite
+<!attlist ncite
id cdata #required
note cdata #required>
<!attlist slides
opts cdata "null">
<!element slide - o (title?, p+) >
-<!entity % addr "(address?, email?, phone?, fax?)" >
-
-<!element letter - -
+<!entity % addr "(address?, email?, phone?, fax?)" >
+
+<!element letter - -
(from, %addr, to, %addr, cc?, subject?, sref?, rref?,
rdate?, opening, p+, closing, encl?, ps?)>
<!attlist letter
opts cdata "null">
-
+
<!element from - o (#pcdata) >
<!element to - o (#pcdata) >
-
+
<!usemap oneline (from,to)>
-
+
<!element address - o (#pcdata) +(newline) >
<!element email - o (#pcdata) >
<!element phone - o (#pcdata) >
<!element fax - o (#pcdata) >
-
+
<!element subject - o (%inline;) >
<!element sref - o (#pcdata) >
<!element rref - o (#pcdata) >
<!element rdate - o (#pcdata) >
-
+
<!element opening - o (%inline;) >
<!usemap oneline opening>
-
+
<!element closing - o (%inline;) >
<!element cc - o (%inline;) +(newline) >
<!element encl - o (%inline;) +(newline) >
-
+
<!element ps - o (p+) >
-<!element telefax - -
- (from, %addr, to, address, email?,
+<!element telefax - -
+ (from, %addr, to, address, email?,
phone?, fax, cc?, subject?,
opening, p+, closing, ps?)>
<!element notes - - (title?, p+) >
<!attlist notes
opts cdata "null" >
-<!element manpage - - (sect1*)
- -(sect2 | f | %mathpar | figure | tabular |
+<!element manpage - - (sect1*)
+ -(sect2 | f | %mathpar | figure | tabular |
table | %xref | %thrm )>
<!--
Local Variables:
mode: sgml
- End: -->
+ End: -->
<!-- ================================================= -->