1999-07-17 13:55:49 +00:00
|
|
|
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
|
1997-08-06 14:36:48 +00:00
|
|
|
white characters (except newlines) to spaces, and reformatting
|
|
|
|
each paragraph. Paragraphs are separated by protected, blank, and
|
|
|
|
bodiless lines (see the Terminology section for definitions), and
|
|
|
|
optionally delimited by indentation (see the d option in the Options
|
|
|
|
section).
|
|
|
|
|
|
|
|
Each output paragraph is generated from the corresponding input
|
|
|
|
paragraph as follows:
|
|
|
|
|
1999-07-17 13:55:49 +00:00
|
|
|
1) An optional prefix and/or suffix is removed from each input line.
|
1997-08-06 14:36:48 +00:00
|
|
|
2) The remainder is divided into words (separated by spaces).
|
1999-07-17 13:55:49 +00:00
|
|
|
3) The words are joined into lines to make an eye-pleasing paragraph.
|
1997-08-06 14:36:48 +00:00
|
|
|
4) The prefixes and suffixes are reattached.
|
|
|
|
|
|
|
|
If there are suffixes, spaces are inserted before them so that they
|
|
|
|
all end in the same column.
|
1999-07-17 13:55:49 +00:00
|
|
|
|
|
|
|
WWW: http://www.cs.berkeley.edu/~amc/Par/
|