version 1.14, 2019/04/24 18:38:02 |
version 1.17, 2019/05/02 12:40:42 |
|
|
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm docbook2mdoc |
.Nm docbook2mdoc |
.Op Fl W |
.Op Fl W |
|
.Op Fl s Ar section |
.Op Fl T Cm mdoc | tree | lint |
.Op Fl T Cm mdoc | tree | lint |
.Op Ar file |
.Op Ar file |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
|
|
.Xr eqn 7 . |
.Xr eqn 7 . |
If |
If |
.Ar file |
.Ar file |
is |
is omitted, standard input is used. |
.Sq Cm \- |
|
or omitted, standard input is used. |
|
.Pp |
.Pp |
The options are as follows: |
The options are as follows: |
.Bl -tag -width 2n |
.Bl -tag -width 2n |
|
.It Fl s |
|
Specify the manual page |
|
.Ar section |
|
to be used as the second argument of the |
|
.Ic \&Dt |
|
macro. |
|
Defaults to the content of the first |
|
.Eo < Ic manvolnum Ec > |
|
element in the first |
|
.Eo < Ic refmeta Ec > |
|
block, if any, or to |
|
.Qq 1 |
|
otherwise. |
.It Fl T |
.It Fl T |
Select the output mode. |
Select the output mode. |
The following arguments are supported: |
The following arguments are supported: |
|
|
.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv |
.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv |
and |
and |
.An Ingo Schwarze Aq Mt schwarze@openbsd.org . |
.An Ingo Schwarze Aq Mt schwarze@openbsd.org . |
.Sh CAVEATS |
|
The |
|
.Nm |
|
utility is experimental. |
|
Many elements are not recognized yet. |
|
.Pp |
|
The output |
|
.Xr mdoc 7 |
|
could be much nicer: trailing spaces, superfluous space removal, |
|
new-line new-sentence, and other niceties are not used. |
|