1 .\" $Id: mdocterm.1,v 1.14 2009/03/06 14:13:47 kristaps Exp $
3 .\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the
7 .\" above copyright notice and this permission notice appear in all
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11 .\" WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13 .\" AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14 .\" DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15 .\" PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16 .\" TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17 .\" PERFORMANCE OF THIS SOFTWARE.
19 .Dd $Mdocdate: March 6 2009 $
25 .Nd mdoc macro compiler
38 manual page for display on the terminal. The arguments are as follows:
39 .Bl -tag -width "\-Werr... "
42 Print verbose parsing output.
45 Print warning messages. May be set to
49 for groff/troff-compatibility warnings, or
51 for syntax warnings. If
53 is specified, warnings are considered errors and cause utility
56 arguments may be comma-separated, such as
57 .Fl W Ns Ar error,all .
70 utility is a formatting front-end for
78 into an abstract syntax tree.
83 reads from stdin and prints terminal-encoded output to stdout.
94 This section documents the character-escapes accepted by
96 Note that the \\x, \\(xx and \\[n] forms are described here; the \\*(xx,
97 \\*[n] and \\*x forms described in
99 are deprecated, but still rendered. All one- and two-character
100 sequences may be used in the n-character sequence \\[n].
104 column will render differently whether executed with
106 or another output filter.
111 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
127 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
135 \\(rB (right bracket)
139 \\(lq (left double-quote)
141 \\(rq (right double-quote)
143 \\(oq, \\` (left single-quote)
145 \\(aq, \\' (right single-quote, apostrophe)
151 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
167 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
171 \\(<= (less-than-equal)
173 \\(>= (greater-than-equal)
191 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
197 \\(aa (accent accute)
203 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
214 *This is a deviation from the standard, as NaN is usually rendered as
215 \\*(Na, which is a deprecated form. We introduce \\(na, which follows
216 the more general syntax.
219 To display this manual page:
222 .D1 % mdocmterm \-Wall,error mdocmterm.1
225 To pipe a manual page to the pager:
227 .D1 % mdocterm mdocterm.1 | less \-R
239 utility was written by
240 .An Kristaps Dzonsons Aq kristaps@kth.se .
245 for a list of bugs, caveats, and incomplete macros regarding the
250 utility doesn't yet know how to display the following:
254 The \-hang and \-column
256 lists are not yet supported.
258 The \-literal and \-unfilled
260 displays only accept text contents.
264 pair isn't supported (and never will be).
268 macro has no effect, yet.