troff2html – convert troff output into HTML
output in the named
default standard input,
and converts them into HTML.
does a tolerable job with straight
output, but it is helped by annotations, described below.
Its main use is for
pages into HTML
and depends on a specially annotated set of
macros, invoked by
output lines beginning
x X html ...
which are introduced by placing
cause the rest of the line to be interpolated into the HTML produced.
Several such lines are recognized specially by
The most important are the pair
x X html manref start cp 1
x X html manref end cp 1
which are used to create HTML hyperlinks around text of the form
is new and experimental; in time, it may improve and subsume
On the one hand, because it uses the input,
does not handle at all; on the other hand,
documents and is easily confused by complex
has the reverse properties: it does not handle the preprocessors but its output
is reliable and (modulo helper annotations) is independent of macro package.
and HTML have different models, and they don’t mesh well in all cases.
indented paragraphs are not well served in HTML, and the output of