version 1.11, 2019/04/09 16:57:29 |
version 1.12, 2019/04/12 19:14:50 |
|
|
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm docbook2mdoc |
.Nm docbook2mdoc |
.Op Fl W |
.Op Fl W |
|
.Op Fl T Cm mdoc | tree | lint |
.Op Ar file |
.Op Ar file |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
|
|
.Sq Cm \- |
.Sq Cm \- |
or omitted, standard input is used. |
or omitted, standard input is used. |
.Pp |
.Pp |
The arguments are as follows: |
The options are as follows: |
.Bl -tag -width Ds |
.Bl -tag -width 2n |
|
.It Fl T |
|
Select the output mode. |
|
The following arguments are supported: |
|
.Bl -tag -width 4n |
|
.It Cm mdoc |
|
Translate the input to |
|
.Xr mdoc 7 . |
|
This is the default. |
|
.It Cm tree |
|
Dump a human-readable representation of the parse tree. |
|
Each output line shows one tree node. |
|
Child nodes are indented with respect to their parent node. |
|
The columns are: |
|
.Bl -enum -width 2n |
|
.It |
|
A hyphen if the node follows the previous node |
|
without intervening whitespace. |
|
.It |
|
The node type. |
|
.It |
|
For text nodes, the text contents. |
|
For other nodes, the attributes, if any. |
|
.El |
|
.It Cm lint |
|
Do not produce any output, only error messages. |
|
Can be combined with |
|
.Fl W . |
|
.El |
.It Fl W |
.It Fl W |
Report warnings on standard error output, and if any occur, raise the |
Report warnings on standard error output, and if any occur, raise the |
.Sx EXIT STATUS |
.Sx EXIT STATUS |