diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-25 01:03:52 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-25 01:03:52 +0000 |
commit | b862a185d00afc5c08a5353e6bc4633818b058cc (patch) | |
tree | 712aa647f086a4f6ef629c3e09e859ea13d21122 /mandoc.1 | |
parent | 586bd579d5085e1a046f1f463315281ff3f09037 (diff) | |
download | mandoc-b862a185d00afc5c08a5353e6bc4633818b058cc.tar.gz mandoc-b862a185d00afc5c08a5353e6bc4633818b058cc.tar.zst mandoc-b862a185d00afc5c08a5353e6bc4633818b058cc.zip |
integrate preconv(1) into mandoc(1);
enhances functionality and reduces code and docs by more than 300 lines
Diffstat (limited to 'mandoc.1')
-rw-r--r-- | mandoc.1 | 30 |
1 files changed, 28 insertions, 2 deletions
@@ -1,4 +1,4 @@ -.\" $Id: mandoc.1,v 1.118 2014/10/12 19:31:41 schwarze Exp $ +.\" $Id: mandoc.1,v 1.119 2014/10/25 01:03:52 schwarze Exp $ .\" .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> .\" Copyright (c) 2012, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -15,7 +15,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: October 12 2014 $ +.Dd $Mdocdate: October 25 2014 $ .Dt MANDOC 1 .Os .Sh NAME @@ -27,6 +27,7 @@ .Sm off .Op Fl I Cm os Li = Ar name .Sm on +.Op Fl K Na Ar encoding .Op Fl m Ns Ar format .Op Fl O Ns Ar option .Op Fl T Ns Ar output @@ -89,6 +90,31 @@ macro. Display only the SYNOPSIS lines. Implies .Fl a . +.It Fl K Ns Ar encoding +Specify the input encoding. +The supported +.Ar encoding +arguments are +.Cm us-ascii , +.Cm iso-8859-1 , +and +.Cm utf-8 . +If not specified, autodetection uses the first match: +.Bl -tag -width iso-8859-1 +.It Cm utf-8 +if the first three bytes of the input file +are the UTF-8 byte order mark (BOM, 0xefbbbf) +.It Ar encoding +if the first or second line of the input file matches the +.Sy emacs +mode line format +.Pp +.D1 .\e" -*- Oo ...; Oc coding: Ar encoding ; No -*- +.It Cm utf-8 +if the first non-ASCII byte in the file introduces a valid UTF-8 sequence +.It Cm iso-8859-1 +otherwise +.El .It Fl k A synonym for .Xr apropos 1 . |