[net.unix-wizards] Removings cut marks for Versatec

jaap@haring.UUCP (03/23/84)

I have send this to a couple of persons this already, but since it seems to be
come up again on the net, I'll send it to this group as well.

Vsort will take the option -c. This option will remove the cut-marks when
defined as:

	/* Heuristic: if cut marks are present, they are on lines whose
	 * row numbers are <= 24 or >= pagelength-4.
	 * Cut marks are formed from 023's, 040's, or 061's.
	 * There are 2 or 4 of them on a line, and no other characters
	 * are present.  cutmark(...) checks this.
	 * Cutmark lines are removed if nocutmarks is true.
	 * Three leading units are removed, too, to compensate for
	 * varian output not being exactly 1584 leading units long.
	 */

This comment is taken out of vsort.c.
The characters 023, 040 and 061 are the C/A/T-codes for the
minus, the hyphen and the root extender respectively (at least, when in the
right font).

The vsort -c option has been documented somewhere in the BSD manuals. In
4.2 the the reference to it seems to be lost in the pile of paper you get
with it, so probably it is thrown away into the waste bucket.

It is still in the code, so you might want to try it.

Jaap Akkerhuis.