2 .Dd $Mdocdate: December 6 2008 $
8 .Nd compile manpage source into mark-up language
20 utility parses mdoc formatted manual source and passes results into an
21 output filter. The current output filters are
25 the default. Arguments common to all filters follow:
26 .Bl -tag -width "\-o outfile"
28 The output filter name.
36 Print warnings to stderr.
47 reads from stdin and writes to stdout using the xml filter.
52 The XML filter, specified by
54 is the default filter. This filter has no additional arguments.
56 The XML filter creates an XML document where element names are their respective
57 roff macro names. Each element name has an associated
58 namespace, which is one of
64 corresponding to the display mode of a node. The document root is
67 element, in the default namespace; the
69 namespace is for block headers (such as
75 namespace is for block bodies; and the
77 namespace is for in-line elements (such as
80 The HTML filter, specified by
82 accepts the following filter-specific arguments:
83 .Bl -tag -width "\-c css"
85 The CSS file location, which defaults to
88 Whether to embed the CSS file into the HTML prologue.
92 To produce an HTML4-strict document
96 with the default, embedded style-sheet:
98 .D1 % mdocml -fhtml -e -o mdocml.html mdocml.1
100 To create an XML document on standard output from
102 with the default namespace identifiers
109 .D1 % mdocml mdocml.1
120 utility was written by
121 .An Em Kristaps Dzonsons Aq kristaps@kth.se .
126 stem from ambiguities in
128 or the necessary limitations of converting an ad hoc language into
130 .Bl -enum -compact -offset indent
132 The engine doesn't understand the
140 All macro arguments may be quoted, instead of only some.
142 Blank lines raise errors.
144 If terminating punctuation is found, then
146 remaining tokens are flushed after line scope is closed, not just the
152 produces text in-line; thus, output may already be partially written by
153 the time an error is encountered.