Add WWW:. Reference fmt(1). Minor reformatting to keep this within 24 lines.
This commit is contained in:
parent
e06909c5cb
commit
824fcf67c9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=20240
@ -1,4 +1,7 @@
|
|||||||
Par is a filter which copies its input to its output, changing all
|
Par is similar but superiour to the fmt(1) command included in the
|
||||||
|
base system.
|
||||||
|
|
||||||
|
Par is a filter that copies its input to its output, changing all
|
||||||
white characters (except newlines) to spaces, and reformatting
|
white characters (except newlines) to spaces, and reformatting
|
||||||
each paragraph. Paragraphs are separated by protected, blank, and
|
each paragraph. Paragraphs are separated by protected, blank, and
|
||||||
bodiless lines (see the Terminology section for definitions), and
|
bodiless lines (see the Terminology section for definitions), and
|
||||||
@ -8,12 +11,12 @@
|
|||||||
Each output paragraph is generated from the corresponding input
|
Each output paragraph is generated from the corresponding input
|
||||||
paragraph as follows:
|
paragraph as follows:
|
||||||
|
|
||||||
1) An optional prefix and/or suffix is removed from each input
|
1) An optional prefix and/or suffix is removed from each input line.
|
||||||
line.
|
|
||||||
2) The remainder is divided into words (separated by spaces).
|
2) The remainder is divided into words (separated by spaces).
|
||||||
3) The words are joined into lines to make an eye-pleasing
|
3) The words are joined into lines to make an eye-pleasing paragraph.
|
||||||
paragraph.
|
|
||||||
4) The prefixes and suffixes are reattached.
|
4) The prefixes and suffixes are reattached.
|
||||||
|
|
||||||
If there are suffixes, spaces are inserted before them so that they
|
If there are suffixes, spaces are inserted before them so that they
|
||||||
all end in the same column.
|
all end in the same column.
|
||||||
|
|
||||||
|
WWW: http://www.cs.berkeley.edu/~amc/Par/
|
||||||
|
Loading…
Reference in New Issue
Block a user