=================================================================== RCS file: /cvs/mandoc/Attic/preconv.1,v retrieving revision 1.3 retrieving revision 1.6 diff -u -p -r1.3 -r1.6 --- mandoc/Attic/preconv.1 2011/05/26 14:43:07 1.3 +++ mandoc/Attic/preconv.1 2011/12/25 19:35:44 1.6 @@ -1,4 +1,4 @@ -.\" $Id: preconv.1,v 1.3 2011/05/26 14:43:07 kristaps Exp $ +.\" $Id: preconv.1,v 1.6 2011/12/25 19:35:44 kristaps Exp $ .\" .\" Copyright (c) 2011 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: May 26 2011 $ +.Dd $Mdocdate: December 25 2011 $ .Dt PRECONV 1 .Os .Sh NAME @@ -38,6 +38,11 @@ or other troff system supporting the escape sequence .Pc input. +.Pp +By default, it parses from standard output, determining encoding as +described in +.Sx Algorithm . +.Pp Its arguments are as follows: .Bl -tag -width Ds .It Fl D Ar enc @@ -48,15 +53,6 @@ The document's encoding. The input file. .El .Pp -If -.Ar file -is not provided, -.Nm -accepts standard input. -See -.Sx Algorithm -for encoding choice. -.Pp The recoded input is written to standard output: Unicode characters in the ASCII range are printed as regular ASCII characters, while those above this range are printed using the @@ -86,14 +82,14 @@ A file variable is an input line of the form .Pp .Dl \%.\e\(dq -*- key: val [; key: val ]* -*- .Pp -where +A coding tag variable is where .Cm key is .Qq coding and .Cm val is the name of the encoding. -A typical usage may be +A typical file variable with a coding tag is .Pp .Dl \%.\e\(dq -*- mode: troff; coding: utf-8 -*- .It @@ -154,7 +150,8 @@ utility appeared in May 2011. The .Nm utility was written by -.An Kristaps Dzonsons Aq kristaps@bsd.lv . +.An Kristaps Dzonsons , +.Mt kristaps@bsd.lv . .\" .Sh CAVEATS .\" .Sh BUGS .\" .Sh SECURITY CONSIDERATIONS