Par

Jul 20, 2023

Paragraph reformatter for email

Par is similar but superior to the fmt1 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 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

1 An optional prefix and/or suffix is removed from each input line. 2 The remainder is divided into words separated by spaces. 3 The words are joined into lines to make an eye-pleasing paragraph. 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.



Checkout these related ports:
  • Zxing-cpp - ZXing C++ Library for QR code recognition
  • Zu-hunspell - Zulu hunspell dictionaries
  • Zu-aspell - Aspell Zulu dictionary
  • Zq - Easier and faster alternative to jq
  • Zorba - General purpose C++ XQuery processor
  • Zenxml - Simple C++ XML Processing
  • Zed - Command-line tool to manage and query Zed data lakes
  • Yq - Command-line YAML and XML processor, jq wrapper for YAML/XML documents
  • Yould - Pronounceable word generator
  • Yodl - Easy to use but powerful document formatting/preparation language
  • Yi-hunspell - Yiddish hunspell dictionaries
  • Yi-aspell - Aspell Yiddish dictionary
  • Yelp-xsl - DocBook XSLT stylesheets for yelp
  • Yelp-tools - Utilities to help manage documentation for Yelp and the web
  • Ydiff - Diff readability enhancer for color terminals