|File: [cvsweb.bsd.lv] / docbook2mdoc / docbook2mdoc.1 (download)
Revision 1.7, Sun Oct 19 19:11:29 2014 UTC (7 years, 3 months ago) by kristaps
Changes since 1.6: +3 -2 lines
Differentiate between inline and non-inline equations by using delimiters.
.\" $Id: docbook2mdoc.1,v 1.7 2014/10/19 19:11:29 kristaps Exp $
.\" Copyright (c) 2014 Kristaps Dzonsons <email@example.com>
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.Dd $Mdocdate: October 19 2014 $
.Dt DOCBOOK2MDOC 1
.Nd Convert DocBook refentry to mdoc
.Op Ar file
.Xr mdoc 7
.Xr eqn 7
section of DocBook source, ignoring other sections.
If unspecified or
.Ar \&- ,
is taken to be standard input.
The arguments are as follows:
.Bl -tag -width Ds
.It Fl W
Output non-fatal warning messages.
supports only well-formed XML DocBook V4.x until V5.1.
Some earlier DocBook constructs are accepted as well.
SGML DocBook documents may be parsed unless they contain SGML-specific
constructs, such as empty end tags
.Li </> .
The only non-DocBook construct recognised are
.Aq xi:include \(sl
.Pq which is discarded
.Aq mml:* ,
which is accepted and converted to
.Xr eqn 7 .
.Sh EXIT STATUS
To pipe a DocBook document
.Xr mandoc 1
and a pager:
.Dl % docbook2mdoc foo.xml | mandoc | more
.Sh SEE ALSO
.Xr mandoc 1 ,
.Xr eqn 7 ,
.Xr mdoc 7
was written by
.Ar Kristaps Dzonsons ,
.Mt firstname.lastname@example.org .
utility is experimental.
As such, only a modest subset of the
domain is accepted.
.Xr mdoc 7
could be much nicer: trailing spaces, superfluous space removal,
new-line new-sentence, and other niceties are not used.