./textproc/par, Paragraph reformatter, vaguely similar to fmt, but better

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.53.0, Package name: par-1.53.0, Maintainer: pkgsrc-users

Par is a filter which 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.


Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 50.985 KB

Version history: (Expand)


CVS history: (Expand)


   2021-10-26 13:23:42 by Nia Alarie | Files touched by this commit (1161)
Log message:
textproc: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Unfetchable distfiles (fetched conditionally?):
./textproc/convertlit/distinfo clit18src.zip
   2021-10-07 17:02:49 by Nia Alarie | Files touched by this commit (1162)
Log message:
textproc: Remove SHA1 hashes for distfiles
   2020-07-13 08:01:33 by Kimmo Suominen | Files touched by this commit (2)
Log message:
Upgrade par to 1.53.0

Par 1.53.0 released 2020-Mar-14
    Fixed the following bugs:
        An unintended bad interaction between <quote> and <repeat>.
            The specification was inconsistent.  Although it said that
            the lines inserted by the <quote> feature were vacant,
            the <repeat> feature could interpret the quote character
            of inserted lines as a repeat character, in which case
            the lines were not vacant (according to the definition),
            and more quote/repeat characters would be inserted to
            extend the line to the full width, which no one would ever
            want.  The definition of "bodiless line" is revised so that
            lines inserted by the <quote> feature are excluded from
            consideration by the <repeat> feature.
        A printf format string mismatch (ptrdiff_t vs. %d), reported by
            Quentin Barnes (qbarnes at gmail.com).
        protoMakefile's clean target removed par rather than par$E,
            reported by George V. Reilly (george at reilly.org).
    Added the following features:
        Locale support for single-byte character sets.
            The previous verson, 1.52, attempted to do this in one line
            of code (setlocale()), but it's not that simple.  Versions
            before 1.52 gave no thought to character sets other than
            US-ASCII and did not handle them entirely correctly.
            Calling setlocale() in version 1.52 corrected some flaws but
            not all, and created one new flaw.  This version and the
            previous two all have the same character handling in the
            "C" locale and when processing US-ASCII text; differences
            arise only when processing non-US-ASCII text in another
            locale.  In versions before 1.52 the implementation assumed
            that "uppercase letter" means only the 26 characters A-Z
            and that "lowercase letter" means only the 26 characters
            a-z, and the specification assumed that every letter is
            either upper case or lower case.  These assumptions hold
            for US-ASCII, but not for most other character sets;
            therefore versions before 1.52 did not really support
            non-US-ASCII text.  Version 1.52, by calling setlocale(),
            relaxed the three assumptions in the implementation but
            not the assumption in the specification, and inadvertantly
            caused the implementation to deviate from the specification
            by converting all space characters to spaces rather than
            converting only the specified white characters, which is not
            necessarily what you want (for example, you probably don't
            want no-break space converted to space, but some locales
            on some platforms have been known to classify no-break
            space as white-space, like FreeBSD did in 2004).  This
            version fixes the specification by introducing the concept
            of "neither-case letter" and redefining "alphanumeric
            character" to include it, and fixes the implementation to
            convert only the white characters to spaces.  It also makes
            the white characters configurable so that the version 1.52
            space-conversion behavior can be restored if desired (W=_S).
            Note that Par still assumes constant display width per byte,
            which is not true for UTF-8 nor ISO-2022-*, but is true for
            most single-byte charsets and for EUC-* text without the
            single-shift-in/out codes.
        The W option, for configuring the set of white characters.
        The Z option, for configuring the set of terminal characters.
        The _@ escape sequence (neither-case letter) in charset syntax.
        The _S escape sequence (any space) in charset syntax.
    Added _@ and apostrophe to the set of body characters in PARINIT.
    Add #includes for whatever interfaces are used rather than depending
        on included files to #include other files.
    In protoMakefile introduced CPPFLAGS and CFLAGS (default empty) into
        the default definition of CC.
    Added a test-par script and a test target in protoMakefile.
    Fixed a misspelling (preceed => precede) in par.doc and par.1.
    Changed the top-of-file comment convention so that every release
        won't need to touch every file (this is the last time).
    Updated the author contact information.
    Clarified the license and added the MIT License as an alternative.
    Adopted a modern version number format, with minor and patch numbers
        as dot-separated integers rather than adjacent single digits.
   2015-11-04 03:00:17 by Alistair G. Crooks | Files touched by this commit (797)
Log message:
Add SHA512 digests for distfiles for textproc category

Problems found locating distfiles:
	Package cabocha: missing distfile cabocha-0.68.tar.bz2
	Package convertlit: missing distfile clit18src.zip
	Package php-enchant: missing distfile php-enchant/enchant-1.1.0.tgz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2012-10-25 08:57:09 by Aleksej Saushev | Files touched by this commit (587)
Log message:
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
   2009-06-12 21:09:39 by Roland Illig | Files touched by this commit (36)
Log message:
Removed redundant .gz suffix for man pages.
   2008-06-12 04:14:58 by Joerg Sonnenberger | Files touched by this commit (1134)
Log message:
Add DESTDIR support.
   2007-01-07 10:14:16 by Roland Illig | Files touched by this commit (412)
Log message:
Mechanically replaced man/* with ${PKGMANDIR}/* in the definition of
INSTALLATION_DIRS, as well as all occurrences of ${PREFIX}/man with
${PREFIX}/${PKGMANDIR}.

Fixes PR 35265, although I did not use the patch provided therein.