1 .\" $Id: mdocterm.1,v 1.26 2009/03/19 11:49:00 kristaps Exp $
3 .\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@openbsd.org>
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 19 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 version and exit.
45 .It Fl f Ns Ar option...
46 Override default compiler behaviour. See
51 Print warning messages. May be set to
55 for groff/troff-compatibility warnings, or
57 for syntax warnings. If
59 is specified, warnings are considered errors and cause utility
62 arguments may be comma-separated, such as
63 .Fl W Ns Ar error,all .
66 Read input from zero or more
68 If unspecified, reads from stdin.
74 utility is a formatting front-end for
82 into an abstract syntax tree.
87 reads from stdin and prints nroff
89 terminal-encoded output to stdout, at this time to a fixed column with
96 Default compiler behaviour may be overriden with the
98 flag. The available options are as follows:
99 .Bl -tag -width XXXXXXXXXXXX -offset XXXX
100 .It Fl f Ns Ar ign-scope
101 When rewinding the scope of a block macro, forces the compiler to ignore
102 scope violations. This can seriously mangle the resulting tree.
103 .It Fl f Ns Ar ign-escape
104 Ignore invalid escape sequences.
105 .It Fl f Ns Ar ign-macro
106 Ignore unknown macros at the start of input lines.
114 options may be grouped and delimited with a comma. Using
115 .Fl f Ns Ar ign-scope,ign-escape ,
116 for example, will try to ignore scope and character-escape errors.
118 .Ss Character Escapes
121 utility correctly renders all
122 .Sx Special Characters
127 In the general sense,
131 to render complex characters; however, if a manual is using considerable
132 special characters, some meaning may be lost in translation.
135 To display this manual page:
138 .D1 % mdocterm \-Wall,error mdocterm.1
141 To pipe a manual page to the pager:
143 .D1 % mdocterm mdocterm.1 | less
152 utility was written by
153 .An Kristaps Dzonsons Aq kristaps@openbsd.org .
158 for a list of bugs, caveats, and incomplete macros regarding the
163 utility doesn't yet know how to display the following:
169 list is not yet supported.
171 The \-literal and \-unfilled
173 displays only accept text contents.
177 pair isn't supported (and never will be).
181 macro has no effect, yet.