col.1: convert to mandoc
- Also fix a few typos, style and section order. - Changed the text "800 characters per line" to "800 bytes per line" as col doesn't seem to support UTF-8 right now.
This commit is contained in:
parent
37eaf92a7d
commit
160709734c
130
col.1
130
col.1
|
@ -1,90 +1,80 @@
|
||||||
.TH COL 1 col
|
.Dd March 6, 2014
|
||||||
.SH NAME
|
.Dt COL 1
|
||||||
col - filter reverse line-feeds
|
.Os sbase
|
||||||
.SH SYPNOSIS
|
.Sh NAME
|
||||||
.B col
|
.Nm col
|
||||||
.RB [ \-p ]
|
.Nd filter reverse line-feeds
|
||||||
.RB [ \-b ]
|
.Sh SYPNOSIS
|
||||||
.RB [ \-f ]
|
.Nm
|
||||||
.RB [ \-x ]
|
.Op Fl bfpx
|
||||||
.RB [ \-l
|
.Op Fl l Ar num
|
||||||
.IR num ]
|
.Sh DESCRIPTION
|
||||||
.SH DESCRIPTION
|
|
||||||
.PP
|
|
||||||
The
|
The
|
||||||
.B col
|
.Nm
|
||||||
utility filter all the reverse (and half reverse) line feeds,
|
utility filters all the reverse (and half reverse) line feeds,
|
||||||
as they are produced by nroff with .2C of ms(6) or by tbl(1).
|
as they are produced by
|
||||||
.B col
|
.Xr nroff 1
|
||||||
|
with .2C of
|
||||||
|
.Xr ms 6
|
||||||
|
or by
|
||||||
|
.Xr tbl 1 .
|
||||||
|
.Nm
|
||||||
also replaces spaces by tabs when it is possible.
|
also replaces spaces by tabs when it is possible.
|
||||||
The control sequences managed by
|
The control sequences managed by
|
||||||
.B col
|
.Nm
|
||||||
are:
|
are:
|
||||||
.TP
|
.Bl -tag -width Ds
|
||||||
.B ESC-7
|
.It ESC-7
|
||||||
reverse line-feed
|
Reverse line-feed
|
||||||
.TP
|
.It ESC-8
|
||||||
.B ESC-8
|
Reverse half-line-feed
|
||||||
reverse half-line-feed
|
.It ESC-9
|
||||||
.TP
|
Forward half-line-feed
|
||||||
.B ESC-9
|
.It VT
|
||||||
forward half-line-feed
|
Vertical-tab
|
||||||
.TP
|
.It SP
|
||||||
.B VT
|
|
||||||
vertical-tab
|
|
||||||
.TP
|
|
||||||
.B SP
|
|
||||||
Space
|
Space
|
||||||
.TP
|
.It TAB
|
||||||
.B TAB
|
Horizontal tab
|
||||||
horizontal tab
|
.It RETURN
|
||||||
.TP
|
|
||||||
.B RETURN
|
|
||||||
Carriage return
|
Carriage return
|
||||||
.TP
|
.It NL
|
||||||
.B NL
|
|
||||||
New line
|
New line
|
||||||
.PP
|
.El
|
||||||
|
.Pp
|
||||||
All the other control codes and escape sequences are removed.
|
All the other control codes and escape sequences are removed.
|
||||||
.B Col
|
.Nm
|
||||||
transform all the spaces into tabulators.
|
transforms all the spaces into tabulators.
|
||||||
.SH OPTIONS
|
.Sh OPTIONS
|
||||||
.TP
|
.Bl -tag -width Ds
|
||||||
.B \-p
|
.It Fl p
|
||||||
Print unknown escape sequences to the output.
|
Print unknown escape sequences to the output.
|
||||||
.TP
|
.It Fl b
|
||||||
.B \-b
|
|
||||||
Do not print backspaces in output,
|
Do not print backspaces in output,
|
||||||
and Print only the last overstriked character in the output.
|
and print only the last overstriked character in the output.
|
||||||
.TP
|
.It Fl f
|
||||||
.B \-f
|
|
||||||
Allow forward half line feeds in the output.
|
Allow forward half line feeds in the output.
|
||||||
.TP
|
.It Fl x
|
||||||
.B \-x
|
|
||||||
Do not convert spaces in tabulators.
|
Do not convert spaces in tabulators.
|
||||||
.TP
|
.It Fl l Ar num
|
||||||
.BI \-l " num"
|
|
||||||
Increment to
|
Increment to
|
||||||
.I num
|
.Ar num
|
||||||
the number of lines buffered for
|
the number of lines buffered for
|
||||||
.B col.
|
.Nm
|
||||||
.SH BUGS
|
.El
|
||||||
.PP
|
.Sh SEE ALSO
|
||||||
.B Col
|
.Xr nroff 1 ,
|
||||||
only process text with a maximum of 256 lines with 800 characteres per line,
|
.Xr tbl 1 ,
|
||||||
although the number of lines can be modified with
|
.Xr ms 6
|
||||||
.B \-l
|
.Sh BUGS
|
||||||
|
.Nm
|
||||||
|
only process text with a maximum of 256 lines with 800 bytes per line,
|
||||||
|
although the number of lines can be modified with the
|
||||||
|
.Fl l
|
||||||
option.
|
option.
|
||||||
When the number of lines is bigger,
|
When the number of lines is bigger,
|
||||||
the buffer is flushed to the output,
|
the buffer is flushed to the output,
|
||||||
so new reverse line feeds can not operate in the flushed lines.
|
so new reverse line feeds can not operate in the flushed lines.
|
||||||
This implementation ignores SI and SO selection character sets,
|
This implementation ignores SI and SO selection character sets,
|
||||||
because it is supposed it will work only with UTF-8 strings,
|
because it is supposed to work only with UTF-8 strings,
|
||||||
although the UTF-8 support is missed.
|
although the UTF-8 support is missed.
|
||||||
.SH SEE ALSO
|
|
||||||
.BR nroff (1),
|
|
||||||
.BR ms (6),
|
|
||||||
.BR tbl(1).
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user