Subject: apsfilter-1.11 -- lpd filter with filetype auto recognition
From: [email-masked] (Andreas Klemm)
Date: Sun, 20 Mar 1994 22:23:44 GMT
Newsgroups: comp.os.linux.announce,de.comp.os.linux,de.comp.os.unix,comp.os.386bsd.announce

-------------------------------------------------------------
heard a quack shouting:

"New improved printer filter todayyyy, a dozen $0" ;-)
-------------------------------------------------------------

The name of the game:

	"apsfilter-1.11 - *less* bugs *same* features ;->"

A last minute hack - simply adding $PATH at the end of the 
PATH= settings - caused big trouble ... file type autorecognition
failed completely ...

I think that with 1.11 now everything should be cured ...

# ______________________________________________________________________________
#
# apsfilter-1.11 ------ TEXT / PS / DVI input filter  -----------
#                       ============================
#
#		for Unix Systems with BSD alike print mechanism (lpd, printcap)
#
#		by Andreas Klemm <[email-masked]>
#
# Sun Mar 20 11:46:43 GMT+0100 1994
# ______________________________________________________________________________
#
#
# Features:	- Enables non-Postscript printers to print PS files
# --------	- automatically recognizes filetypes
#		  (currently supported ascii / data / postscript / TeX DVI)
#		  using the Unix command file(1) ( -> /etc/magic)
#		- uses gs and dvips as filter to process PS && DVI files
#		- initializes some printer to fine default values 
#		- if a print fault occurs when using dvips or gs:
#			-> ejects loaded paper automatically
#			-> root will be notified via e-mail (NOTIFY variable)
#			-> the tmp file is left in $TMP_DIR
#		- resets printer after a printjob
#		- resolution and papersize
#		  are selected automatically for gs and dvips.
#		- allows printing of ascii text with ``german umlauts''
#		  and "raw" Postscript files without calling gs
#		  if apsfilter is called under the name "aps-forceascii" 
#		- uses lpr's command line arguments -wwidth -iindent -llength
#		- uses pr for printing ascii texts (as an option you
#		  can disable the ps header)
#
# Installation:
# ------------	- HP Deskjet Family and Canon BJ   -> plug and play ;-)
#		- other printer supported by gs	   -> configure and play ;->
#
#		Normally **only two** steps are necessary
#		=========================================
#
#		- modify the PRINTER shell variable in this script
#		  (see my comments which types/names are supported)
#
#		- modify /etc/printcap: 
#			set ``if'' (path to input filter) variable
#			:if=_Complete_Pathname_to_apsfilter_:
#			(see example in this file)
#_______________________________________________________________________________

Data for LSM - Linux Software Map - and instructions where to get
it via ftp or ftp-mail.

Begin1
Title        = apsfilter
Version      = 1.11
Desc1        = input filter for lineprinter services
Desc2        = with automatic file type recognition and conversion
Desc3        = supports the four file types DVI, Postscript, Ascii and Data
Author       = Andreas Klemm
AuthorEmail  = [email-masked]
Site1        = ftp.germany.eu.net (to get it via ftp)
Site2        = How to get it via ftp Mail:
Site3        =     mail [email-masked]
Site4        =     Subject: none
Site5        =     limit 1024k
Site6        =     uuencode
Site7        =     get comp/i386/Linux/Incoming.EUnet/apsfilter-1.11.gz
Site8        =     quit
Path1        = /pub/comp/i386/Linux/Incoming.EUnet
Path2        = /pub/comp/i386/Linux/Local.EUnet/People/akl
File1        = apsfilter-1.11.gz
FileSize1    = 9647
Required1    = dvips (TeX DVI to Postscript)
Required2    = gs (ghostscript - Postscript Emulator)
CopyPolicy1  = GPL (GNU Public License)
Keywords     = apsfilter lpd input filter
Entered      = 20MAR94
EnteredBy    = Andreas Klemm
CheckedEmail = [email-masked]
End

Have fun with it ...

	Andreas ///

--
Andreas Klemm                 /\/\____ Wiechers & Partner Datentechnik GmbH 
[email-masked] ___/\/\/     [email-masked] (Unix Support)