1 .\" $Id: mdocterm.1,v 1.10 2009/03/03 21:07:01 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 3 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
131 \\(rB (right bracket)
135 \\(lq (left double-quote)
137 \\(rq, \\' (right double-quote)
139 \\(lq, \\` (left single-quote)
141 \\(aq (right single-quote, apostrophe)
147 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
163 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
167 \\(<= (less-than-equal)
169 \\(>= (greater-than-equal)
171 \\(== (greater-than-equal)
187 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
193 \\(aa (accent accute)
199 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
210 *This is a deviation from the standard, as NaN is usually rendered as
211 \\*(Na, which is a deprecated form. We introduce \\(na, which follows
212 the more general syntax.
215 To display this manual page:
218 .D1 % mdocmterm \-Wall,error mdocmterm.1
221 To pipe a manual page to the pager:
223 .D1 % mdocterm mdocterm.1 | less -R
235 utility was written by
236 .An Kristaps Dzonsons Aq kristaps@kth.se .
241 for a list of bugs, caveats, and incomplete macros regarding the
246 utility doesn't yet know how to display the following:
250 Only \-bullet , \-dash , \-enum , \-hyphen , \-tag and \-ohang
254 The \-literal and \-unfilled
256 displays only accept text contents.
260 pair isn't supported (and never will be).