Subject: apsfilter-1.10
From: [email-masked] (Andreas Klemm)
Date: Sat, 12 Mar 1994 16:59:00 GMT
Newsgroups: comp.os.linux.announce,de.comp.os.linux,de.comp.os.unix

apsfilter-1.10 - less bugs more features ;-)
============================================

[apsfilter will automatically convert different file types for printing. --mdw]

Begin1
Title        = apsfilter
Version      = 1.10
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.10.gz
Site8        =     quit
Path1        = /pub/comp/i386/Linux/Incoming.EUnet
Path2        = /pub/comp/i386/Linux/Local.EUnet/People/akl
File1        = apsfilter-1.10.gz
FileSize1    = 9140
Required1    = dvips (TeX DVI to Postscript)
Required2    = gs (ghostscript - Postscript Emulator)
CopyPolicy1  = GPL (GNU Public License)
Keywords     = apsfilter lpd input filter
Entered      = 11MAR94
EnteredBy    = Andreas Klemm
CheckedEmail = [email-masked]
End

For those of you, who don't know it:

# ______________________________________________________________________________
#
# apsfilter-1.10 ------ TEXT / PS / DVI input filter  -----------
#                      ============================
#
#		for Unix Systems with BSD alike print mechanism (lpd, printcap)
#
#		by Andreas Klemm <[email-masked]>
#
# Fri Mar 11 17:57:13 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 the 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)
#			-> leaves the tmp file in $TMP_DIR
#		- resets printer after a printjob
#		- resolution and papersize
#		  are selected automatically for gs and dvips.
#		- allows now to print ascii text with ``german umlauts''
#		  if apsfilter is called under the name "aps-forceascii" 
#		- uses lpr's command line arguments -wwidth -iindent -llength
#		- uses pr for printing ascii texts (but you can switch off
#		  the pr header in the script
#
# 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 /etc/printcap: set ``if'' variable
#		  :if=_Complete_Pathname_to_apsfilter_:
#		  (see example in this file)
#
#		- modify the PRINTER shell variable in this script
#
#_______________________________________________________________________________
#
# Andreas Klemm                 /\/\____ Wiechers & Partner Datentechnik GmbH 
# [email-masked] ___/\/\/     [email-masked] (Unix Support)
#_______________________________________________________________________________
#

################################################################################
#
# Changes 1.9 -> 1.10
#
################################################################################
#
# introduced shell functions print_ps, print_dvi, print_ascii, ....
# is needed for the new program functions to force printing of ascii, which
# is needed for printing "deutsche Umlaute"
#
# problems with "deutschen Umlauten"
# Text containing "Deutsche Umlaute" may be interpreted as data, so cr/nl 
# conversion for deskjet and possibly other printer doesn't work.
# A possible solution is to force the script to handle imput data as text or
# something else.
#
# exit 1 on print fault caused lpd to print the file again and again
# and lots of tmp files made TMP_DIR full.. so we have to exit 0 in any case
#
# Introduced MAILX variable. /bin/mail = elm on Linux. Elm didn't find
# ~/Mail directory, so it failed to send $NOTIFY a mail when a print error
# occurred.
#
# David Frey <[email-masked]>:
# use lpr's command line arguments -wwidth -iindent -llength, pipe ascii
# through pr
#
# and some more ...

Bye

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