2 .Dd $Mdocdate: December 8 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.
38 Make warning and error messages verbose.
49 reads from stdin and writes to stdout using the xml filter.
54 The XML filter, specified by
56 is the default filter. This filter has no additional arguments.
58 The XML filter creates an XML document where element names are their respective
59 roff macro names. Each element name has an associated
60 namespace, which is one of
66 corresponding to the display mode of a node. The document root is
69 element, in the default namespace; the
71 namespace is for block headers (such as
77 namespace is for block bodies; and the
79 namespace is for in-line elements (such as
82 The HTML filter, specified by
84 accepts the following filter-specific arguments:
85 .Bl -tag -width "\-c css"
87 The CSS file location, which defaults to
90 Whether to embed the CSS file into the HTML prologue.
94 To produce an HTML4-strict document
98 with the default, embedded style-sheet:
100 .D1 % mdocml -fhtml -e -o mdocml.html mdocml.1
102 To create an XML document on standard output from
104 with the default namespace identifiers
111 .D1 % mdocml mdocml.1
122 utility was written by
123 .An Kristaps Dzonsons Aq kristaps@kth.se .
128 stem from ambiguities in
130 or the necessary limitations of converting an ad hoc language into
132 .Bl -enum -compact -offset indent
134 The engine doesn't understand the
142 All macro arguments may be quoted, instead of only some.
144 Blank lines raise errors.
146 If terminating punctuation is found, then
148 remaining tokens are flushed after line scope is closed, not just the
154 produces text in-line; thus, output may already be partially written by
155 the time an error is encountered.