[comp.sys.atari.st] neoprint.ttp, labeler.ttp, mmerge.ttp

georgew@tekig4.TEK.COM (George Walker) (05/03/87)

To all the people who asked for a copy of neoprint (a program to grayscale
and shrink a .neo file and print it anywhere on a page using an Okimate 20)
I answered all the requests I got, so if you didn't get a copy, your mail
must not have reached me.

Here's an offer for 2 more PD programs, one to print labels from an address
list, and the other to generate personalized junk mail.  Both are written
using the Mark Johnson (shareware) C compiler.
Both are hack programs, and I'm too embarrassed to post them to the entire
net, but if anyone wants a copy, I'll mail them the source and binary.
Brief descriptions follow:

/*
	labeler.c

	Read an address list and print labels, using double-wide label
	forms.  The first form must be vertically positioned by hand so
	it will start printing in the right place.  Normal labels are
	one inch tall, so the printer should be set to 6lpi (default for
	most printers anyway).  All defaults are set for an Okimate 20.

	The input file typically contains entries of the form:
		separator
		personal name
		address1
		address2
		address3
		address4
		phone
	Each line should be terminated with a <CR> and a <LF>.
	It is possible to change the number of lines in the items by use of
	the -I switch.  The default for -I is 6.
	The -C switch is dumb: it only allows 1-9 copies, and it works by
	repeating the entire address list, so if there was an odd number of
	addresses (e.g. 1), it will leave some labels on the sheets unused.
	-F is fast mode: it means the printer can print continuously,
	unlike the Okimate 20, which slips a little when label forms are
	in the printer, sometimes requiring the paper to be realigned for each
	pair of labels.  Also, if you don't use -F, an extra linefeed prints
	after each label, to compensate for the tractor slippage.
	-D is just for debugging and forces the output to stdout.

	Usage: labeler [-F][-C copies][-I addr_lines][-D] addressfile

	Written by George Walker for the Mark Johnson C compiler.
	Placed in the public domain April, 1987.
*/
----------------------------------------------------------------------------
/*
	mmerge.c

	Matthew Rapaport, July 1985
	Scaetrix Co, 222 Fifth St, Petaluma, CA, 94952
	Compuserve 70371,255

	This program merges a list of names to a letter
	Sends impersonal mail to prospective customers

	Ported to the Atari ST by George Walker, April 1987:
		All ifdefs deleted, to allow use with Johnson's ST C compiler.
		Form ejects are not sent between letters if -N option used.
			to allow more flexibility with existing word processors.
		The number of lines per item is controlled via the -I option,
			instead of being fixed at 6.  Default is still 6.
		Pre-read error checking of list file added.
		With the -P option, output goes directly to the printer.
		The program tries to avoid inserting uneccessary 1STWORD
			format control lines (they begin with 0x1f).
		Error messages added, and wait_exit() function added to let
			the user see the message before return to desktop.

	Usage: mmerge [-N][-P][-I addr_lines][-D] addressfile letterfile

	This program is in the public domain.
*/

George S. Walker {decvax,hplabs,...}!tektronix!tekig4!georgew	FLAMENET
Tektronix, Inc.	 georgew@tekig4.TEK.COM				DOMAIN
(503) 627-4669	 tekig4!georgew.tektronix@Udel-Relay		ARPANET