2 .Dd $Mdocdate: December 4 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.
50 The XML filter, specified by
52 is the default filter. This filter has no additional arguments.
54 The XML filter creates an XML document where element names are their respective
55 roff macro names. Each element name has an associated
56 namespace, which is one of
62 corresponding to the display mode of a node. The document root is
65 element, in the default namespace; the
67 namespace is for block headers (such as
73 namespace is for block bodies; and the
75 namespace is for in-line elements (such as
78 The HTML filter, specified by
80 accepts the following filter-specific arguments:
81 .Bl -tag -width "\-c css"
83 The CSS file location, which defaults to
86 Whether to embed the CSS file into the HTML prologue.
88 .\" This next request is for sections 1, 6, 7 & 8 only.
91 To produce an HTML4-strict document
95 with the default, embedded style-sheet:
97 .D1 % mdocml -fhtml -e mdocml.1 -o mdocml.html
99 To create an XML document on standard output from
101 with the default namespace identifiers
108 .D1 % mdocml mdocml.1
119 utility was written by
120 .An Em Kristaps Dzonsons Aq kristaps@kth.se .
125 stem from ambiguities in
127 or the necessary limitations of converting an ad hoc language into
129 .Bl -enum -compact -offset indent
131 The engine doesn't understand the
141 All macro arguments may be quoted, instead of only some.
143 Blank lines raise errors.
145 If terminating punctuation is found, then
147 remaining tokens are flushed after line scope is closed, not just the
153 produces text in-line; thus, output may already be partially written by
154 the time an error is encountered.