1 .\" $Id: mdocterm.1,v 1.9 2009/03/02 17:29:16 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 2 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 and \\*x forms described in
99 are deprecated, but still correctly rendered. For all two-character
100 sequences, \\(xx is equivalent to the n-character \\[xx].
104 column will render differently whether executed with
106 or another output filter.
111 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
115 \\(rB (right bracket)
119 \\(lq (left double-quote)
121 \\(rq (right double-quote)
123 \\(lq (left single-quote)
125 \\(aq (right single-quote, apostrophe)
131 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
147 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
151 \\(<= (less-than-equal)
153 \\(>= (greater-than-equal)
155 \\(== (greater-than-equal)
167 *This is a deviation from the standard, as NaN is usually rendered as
168 \\*(Na, which is a deprecated form. We introduce \\(na, which follows
169 the more general syntax.
173 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
179 \\(aa (accent accute)
185 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
195 To display this manual page:
198 .D1 % mdocmterm \-Wall,error mdocmterm.1
201 To pipe a manual page to the pager:
203 .D1 % mdocterm mdocterm.1 | less -R
215 utility was written by
216 .An Kristaps Dzonsons Aq kristaps@kth.se .
221 for a list of bugs, caveats, and incomplete macros regarding the
226 utility doesn't yet know how to display the following:
230 Only \-bullet , \-dash , \-enum , \-hyphen , \-tag and \-ohang
234 The \-literal and \-unfilled
236 displays only accept text contents.
240 pair isn't supported (and never will be).