mm2html is a
sed(1)/ksh(1)
script (yes!) that converts input
mm(1) or
man(1) documents to an
html document on the standard output.
If
file is omitted then the standard input is read.
troff2html(1) is similar but does a full
troff(1) parse.
dir operands and directory components of
file
operands are added to the included file search list.
.xx name[=
value] is a special
mm2html request that handles program tracing,
html
extensions and
troff macro package magic. Supported operations are:
- author=text
Specifies the contact information for the document HEAD section.
- background=URL
Specifies the document background URL.
- logo=URL
Specifies the logo/banner image URL that is centered at the top of the
document.
- mailto=address
Sets the email address to send comments and
suggestions.
- meta.name
Emits the html tag <META name=name content=
content>.
- package=text
text is prepended to the html document title.
- title=text
Sets the document title.
Local URL links are generated for all top level headings. These can be referenced by embedding the benign (albeit
convoluted)
troff construct \h'0*\w"label"'text\h'0', where
label is the local link label and
text
is the hot link text. If
label and
text are the same then use \h'0*1'text\h'0'.
man(1) links are generated for bold or italic identifiers that are
immediately followed by a parenthesized number.