1 .\" $Id: mdocterm.1,v 1.19 2009/03/13 07:46:10 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 13 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.
109 .It Fl f Ns Ar ign-macro
110 Ignore unknown macros at the start of input lines.
118 options may be grouped and delimited with a comma. Using
119 .Fl f Ns Ar ign-scope,ign-escape ,
120 for example, will try to ignore scope and character-escape errors.
125 utility expects its input to be 7-bit ASCII as defined in
127 The only non-graphing characters accepted are spaces,
131 Tabs are only accepted in literal block-displays and as column
134 Only Unix-style newlines (\en) are accepted; if the newline is escaped,
135 the line is concatenated with the next.
137 .Ss Character Escapes
138 This section documents the character-escapes accepted by
140 Note that the \\x, \\(xx and \\[n] forms are described here; the \\*(xx,
141 \\*[n] and \\*x forms described in
143 are deprecated, but still rendered. All one- and two-character
144 sequences may be used in the n-character sequence \\[n].
148 column will render differently whether executed with
150 or another output filter.
155 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
171 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
183 \\(rB (right bracket)
189 \\(lq (left double-quote)
191 \\(rq (right double-quote)
193 \\(oq, \\` (left single-quote)
195 \\(aq, \\' (right single-quote, apostrophe)
201 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
217 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
221 \\(<= (less-than-equal)
223 \\(>= (greater-than-equal)
241 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
247 \\(aa (accent accute)
253 .Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
264 *This is a deviation from the standard, as NaN is usually rendered as
265 \\*(Na, which is a deprecated form. We introduce \\(na, which follows
266 the more general syntax.
269 To display this manual page:
272 .D1 % mdocmterm \-Wall,error mdocmterm.1
275 To pipe a manual page to the pager:
277 .D1 % mdocterm mdocterm.1 2>&1 | less \-R
289 utility was written by
290 .An Kristaps Dzonsons Aq kristaps@kth.se .
295 for a list of bugs, caveats, and incomplete macros regarding the
300 utility doesn't yet know how to display the following:
306 list is not yet supported.
308 The \-literal and \-unfilled
310 displays only accept text contents.
314 pair isn't supported (and never will be).
318 macro has no effect, yet.