1 .\" $Id: mdocterm.1,v 1.15 2009/03/08 18:02:36 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 8 2009 $
25 .Nd mdoc macro compiler
30 .Op Fl f Ns Ar option...
39 manual page for display on the terminal. The arguments are as follows:
40 .Bl -tag -width XXXXXXXXXXXX
43 Print verbose parsing output.
46 Print version and exit.
48 .It Fl f Ns Ar option...
49 Override default compiler behaviour. See
54 Print warning messages. May be set to
58 for groff/troff-compatibility warnings, or
60 for syntax warnings. If
62 is specified, warnings are considered errors and cause utility
65 arguments may be comma-separated, such as
66 .Fl W Ns Ar error,all .
79 utility is a formatting front-end for
87 into an abstract syntax tree.
91 reads from stdin and prints ANSI
93 terminal-encoded output to stdout, at this time to a fixed column with
100 Default compiler behaviour may be overriden with the
102 flag. The available options are as follows:
103 .Bl -tag -width XXXXXXXXXXXX -offset XXXX
104 .It Fl f Ns Ar ign-scope
105 When rewinding the scope of a block macro, forces the compiler to ignore
106 scope violations. This can seriously mangle the resulting tree.
107 .It Fl f Ns Ar ign-escape
108 Ignore invalid escape sequences.
116 options may be grouped and delimited with a comma. Using
117 .Fl f Ns Ar ign-scope,ign-escape ,
118 for example, will try to ignore scope and character-escape errors.
120 .Ss Character Escapes
121 This section documents the character-escapes accepted by
123 Note that the \\x, \\(xx and \\[n] forms are described here; the \\*(xx,
124 \\*[n] and \\*x forms described in
126 are deprecated, but still rendered. All one- and two-character
127 sequences may be used in the n-character sequence \\[n].
131 column will render differently whether executed with
133 or another output filter.
138 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
154 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
162 \\(rB (right bracket)
166 \\(lq (left double-quote)
168 \\(rq (right double-quote)
170 \\(oq, \\` (left single-quote)
172 \\(aq, \\' (right single-quote, apostrophe)
178 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
194 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
198 \\(<= (less-than-equal)
200 \\(>= (greater-than-equal)
218 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
224 \\(aa (accent accute)
230 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
241 *This is a deviation from the standard, as NaN is usually rendered as
242 \\*(Na, which is a deprecated form. We introduce \\(na, which follows
243 the more general syntax.
246 To display this manual page:
249 .D1 % mdocmterm \-Wall,error mdocmterm.1
252 To pipe a manual page to the pager:
254 .D1 % mdocterm mdocterm.1 2>&1 | less \-R
266 utility was written by
267 .An Kristaps Dzonsons Aq kristaps@kth.se .
272 for a list of bugs, caveats, and incomplete macros regarding the
277 utility doesn't yet know how to display the following:
281 The \-hang and \-column
283 lists are not yet supported.
285 The \-literal and \-unfilled
287 displays only accept text contents.
291 pair isn't supported (and never will be).
295 macro has no effect, yet.