=================================================================== RCS file: /cvs/texi2mdoc/texi2mdoc.1,v retrieving revision 1.1 retrieving revision 1.8 diff -u -p -r1.1 -r1.8 --- texi2mdoc/texi2mdoc.1 2015/02/19 08:09:55 1.1 +++ texi2mdoc/texi2mdoc.1 2015/02/23 22:50:11 1.8 @@ -1,4 +1,4 @@ -.\" $Id: texi2mdoc.1,v 1.1 2015/02/19 08:09:55 kristaps Exp $ +.\" $Id: texi2mdoc.1,v 1.8 2015/02/23 22:50:11 kristaps Exp $ .\" .\" Copyright (c) 2015 Kristaps Dzonsons .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: February 19 2015 $ +.Dd $Mdocdate: February 23 2015 $ .Dt TEXI2MDOC 1 .Os .Sh NAME @@ -23,20 +23,33 @@ .Sh SYNOPSIS .Nm texi2mdoc .Op Fl I Ar dirs -.Ar file +.Op Ar file .Sh DESCRIPTION The .Nm utility converts .%B GNU Texinfo documents to -.Xr mdoc 7 . +.Xr mdoc 7 +mixed with +.Xr tbl 7 +.Pq if applicable . +By default, +.Nm +reads from standard input. Its arguments are as follows: .Bl -tag -width Ds .It Fl I Ar dirs Colon-separated directories to search for .Li @include files. +.It Ar file +A Texinfo input file. +If specified, the directory of +.Ar file +is prepended to the list of +.Fl I +directories. .El .Pp .Nm @@ -44,6 +57,11 @@ can understand a significant subset of the texinfo lan It recognises itself as a .Em plaintext formatter. +The produced document's title is set to the +.Ar file +filename and the description is set to the +.Li @settitle +command's contents. .\" .Sh CONTEXT .\" For section 9 functions only. .\" .Sh IMPLEMENTATION NOTES @@ -61,6 +79,8 @@ formatter. .\" .Sh ERRORS .\" For sections 2, 3, 4, and 9 errno settings only. .Sh SEE ALSO +.Xr mdoc 7 , +.Xr tbl 7 .Rs .%B GNU Texinfo .%U http://www.gnu.org/software/texinfo/manual/texinfo @@ -68,8 +88,32 @@ formatter. .\" .Xr foobar 1 .\" .Sh STANDARDS .\" .Sh HISTORY -.\" .Sh AUTHORS -.\" .Sh CAVEATS +.Sh AUTHORS +The +.Nm +utility was written by +.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv . +.Sh CAVEATS +The output of +.Nm +doesn't play entirely nicely with +.Xr mdoc 7 . +It doesn't detect whether a line trailing slash is properly escaped, nor +does it properly account for how it mingles +.Sq \&Pp +with the text. +Moreover, many commands that might contain useful information (such as +.Li @footnote ) +are thrown away. .\" .Sh BUGS -.\" .Sh SECURITY CONSIDERATIONS +.Sh SECURITY CONSIDERATIONS +As a security precaution, +.Nm +does not allow the inclusion (via +.Li @include +or +.Li @verbatiminclude ) +of absolute paths or paths with +.Li \&.. +as directory components. .\" Not used in OpenBSD.