*BSD News Article 28504


Return to BSD News archive

Xref: sserve comp.os.linux.announce:1912 de.comp.os.unix:221 comp.os.386bsd.announce:285
Newsgroups: comp.os.linux.announce,de.comp.os.linux,de.comp.os.unix,comp.os.386bsd.announce
Path: sserve!newshost.anu.edu.au!csis!rz.uni-hildesheim.de!Germany.EU.net!EU.net!howland.reston.ans.net!gatech!udel!rochester!cornell!bounce-bounce
From: andreas@knobel.knirsch.de (Andreas Klemm)
Subject: apsfilter-1.11 -- lpd filter with filetype auto recognition
Message-ID: <1994Mar20.222344.21763@cs.cornell.edu>
Followup-To: comp.os.linux.misc,de.comp.os.linux,de.comp.os.unix,comp.os.386bsd.announce
Summary: recognizes and prints PS,DVI,Ascii+Data autom., uses gs+dvips as filter for non PS printer
Keywords: apsfilter ps dvi lpd print filter
Sender: mdw@cs.cornell.edu (Matt Welsh)
Reply-To: andreas@knobel.knirsch.de (Andreas Klemm)
Organization: Andreas Klemm, 41469 Neuss, Germany
Date: Sun, 20 Mar 1994 22:23:44 GMT
Approved: linux-announce@tc.cornell.edu (Matt Welsh)
Lines: 106

-------------------------------------------------------------
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 <andreas@knobel.knirsch.de>
#
# 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  = andreas@knobel.knirsch.de
Site1        = ftp.germany.eu.net (to get it via ftp)
Site2        = How to get it via ftp Mail:
Site3        =     mail archive-server@germany.eu.net
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 = andreas@knobel.knirsch.de
End


Have fun with it ...

	Andreas ///

--
Andreas Klemm                 /\/\____ Wiechers & Partner Datentechnik GmbH 
andreas@knobel.knirsch.de ___/\/\/     andreas@wupmon.wup.de (Unix Support)