Re: driver for Epson Stylus 300
Hamish Moffatt wrote:
> On Tue, Jan 06, 1998 at 10:38:15PM +0100, David Frey wrote:
> > On Tue, Jan 6 1998 12:18 +0100 "Meskes, Michael" writes:
> > > I'm not sure about uniprint but the stcolor driver usage in magicfilter
> > > is outdated, i.e. it uses options no longer avalaible in gs-aladin.
> >
> > Sigh. gs-alladin is in non-free, so magicfilter can't use it.
>
> It could support it, but it would need to support free alternatives
> (ie gs) as well.
>
gs-aladin provides gs, conflicts with the package gs and its executables
use the same names as in gs. Thus, since magicfilter supports gs it
also supports gs-aladin.
Magicfilter does not currently support the uniprint driver though.
I edited one of the other files from magicfilter to work with it.
Here is what my setup looks like.
- Jay
I'm not sure if it is proper to have them all use the same
spool directory, but it works. The only problem I've had is
sometimes when I cancel a job, junk gets sent to the printer
(pages and pages worth) and I've had to go in and manually
fix things.
---------- begin /etc/printcap --------------
lp|epl|stc600pl|Epson Stylus 600 low-res:\
:lp=/dev/lp1:sd=/var/spool/lpd/lp:\
:sh:pw#80:pl#66:px#1440:mx#0:\
:if=/usr/sbin/stylus_color_360dpi-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:
lph|eph|stc600p|Epson Stylus 600 hi-res:\
:lp=/dev/lp1:sd=/var/spool/lpd/lp:\
:sh:pw#80:pl#66:px#1440:mx#0:\
:if=/usr/sbin/stylus_color_720dpi-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:
lpih|epih|stc600ih|Epson Stylus 600 very hi-res:\
:lp=/dev/lp1:sd=/var/spool/lpd/lp:\
:sh:pw#80:pl#66:px#1440:mx#0:\
:if=/usr/sbin/stylus_color_1440dpi-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:
---------- end /etc/printcap ---------------
I've included this here as I put in a few extra fixes to some filters.
For example it uses tiff2ps. Look at the bug reports against magicfilter
to see exactly what I changed and what other packages you need to install
to get everything to work.
----------- begin /usr/sbin/stylus_color_360dpi-filter -----
#! /usr/sbin/magicfilter
#
# Magic filter setup file for EPSON ESC/P2 (i.e. Stylus Color) series color
# printers in 360 dpi
#
# Based on epsonlqc. Modified and partially tested together with the original
# Stylus Color, Ghostscript versions 3.33 and 4.03 by Dirk_Ritter@s5.maus.de
# but please no Mail >64 kB to this address.
#
# No warranty for anything whatsoever!
#
# This file is in the public domain.
#
# This file has been automatically adapted to your system.
#
# wild guess: native control codes start with <ESC>
0 \033 cat
# You really should change Ghostscripts options if you have a version >=3.51
# since the options changed. See devices.doc (or *.txt) for what they do.
# These esoteric options are needed and aren't documented in Ghostscripts
# Manual page since they are specific to the device driver 'stcolor':
#
# -sDEVICE=stcolor -r360 -q -dSAFER -dNOPAUSE -sOutputFile=- stcolor.ps -
#
# The options currently used should work with Ghostscript up to version 3.33.
#
# PostScript
0 %! filter /usr/bin/gs @stc600pl.upp -q -dSAFER -dNOPAUSE -sOutputFile=- - -c quit
0 \004%! filter /usr/bin/gs @stc600pl.upp -q -dSAFER -dNOPAUSE -sOutputFile=- - -c quit
# PDF
0 %PDF fpipe /usr/bin/gs @stc600pl.upp -q -dSAFER -dNOPAUSE -sOutputFile=- $FILE -c quit
# TeX DVI
0 \367\002 fpipe /usr/bin/dvips -D 360 -R -q -f
# compress'd data
0 \037\235 pipe /bin/gzip -cdq
# packed, gzipped, frozen and SCO LZH data
0 \037\036 pipe /bin/gzip -cdq
0 \037\213 pipe /bin/gzip -cdq
0 \037\236 pipe /bin/gzip -cdq
0 \037\240 pipe /bin/gzip -cdq
# troff documents
0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE`
0 .\\\" fpipe `/usr/bin/grog -Tps $FILE`
0 '\\\" fpipe `/usr/bin/grog -Tps $FILE`
0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE`
0 \\\" fpipe `/usr/bin/grog -Tps $FILE`
# ditroff
0 "x T ps" pipe /usr/bin/grops
0 "x T dvi" pipe /usr/bin/grodvi
0 "x T ascii" pipe /usr/bin/grotty
0 "x T latin1" pipe /usr/bin/grotty
0 "x T lj4" reject Cannot print LaserJet 4 ditroff files.
# Portable bit-, grey- and pixmaps
0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 360 2>/dev/null
0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 360 2>/dev/null
0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 360 2>/dev/null
0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 360 2>/dev/null
0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 360 2>/dev/null
0 P6\n pipe /usr/bin/pnmtops -scale 1000 -dpi 360 2>/dev/null
# HP Printer Control Language (PCL) -- assume start with reset code
0 \033E\033 reject Cannot print PCL files on this printer.
# HP Printer Job Language (PJL)
0 \033%-12345X reject Cannot print PJL files on this printer.
0 "@PJL " reject Cannot print PJL files on this printer.
0 @PJL\t reject Cannot print PJL files on this printer.
0 @PJL\r reject Cannot print PJL files on this printer.
0 @PJL\n reject Cannot print PJL files on this printer.
# GIF files
0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null
0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null
# JFIF (JPEG) files
0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm
# TIFF files (the last two bytes of the "magic" is really a version number;
# but the magic is really lame and as far as I have understood the version
# number has never changed and never will, so we include it.)
0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE
0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE
# BMP files (even lousier magic -- Microsoft strikes again!)
0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \
/usr/bin/bmptoppm 2>/dev/null
0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \
/usr/bin/bmptoppm 2>/dev/null
0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \
/usr/bin/bmptoppm 2>/dev/null
# Garbage delivered from Windows via Samba
# (donated by Andree Leidenfrost <leidenfrost@dkrz.de>)
300 \033\052\157 cat
# Sun rasterfiles
0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null
# SGI Imagelib (IRIS RGB) files
0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null
0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null
# FIG files; reported by Steven P. Hill <sph@uscbu.ih.att.com>
0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy
#
# Standard rejects... things we don't want to print
#
# Various archive formats
257 ustar\0 reject Attempted to print a tar file.
257 "ustar \0" reject Attempted to print a tar file.
0 07070 reject Attempted to print a cpio file.
0 PK\3\4 reject Attempted to print a zip file.
20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file.
# Binaries (Linux): reject with email message
0 \013\1d\0 reject Attempted to print a compiled binary.
0 \100\1d\0 reject Attempted to print a compiled binary.
0 \007\1d\0 reject Attempted to print a compiled binary.
0 \314\0d\0 reject Attempted to print a compiled binary.
0 \177ELF reject Attempted to print an ELF object.
0 \007\001\0 reject Attempted to print an object file.
216 \021\001\0\0 reject Attempted to print a core dump file.
0 !<arch> reject Attempted to print an archive.
0 =<ar> reject Attempted to print an archive.
# Don't confuse this one with troff!
0 .snd reject Attempted to print Sun/NeXT audio data.
# optimistic troff magic
0 . fpipe `/usr/bin/grog -Tps $FILE`
# wacko troff magic
0 ''' fpipe `/usr/bin/grog -Tps $FILE`
# Default entry -- for normal (text) files. MUST BE LAST.
default text
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: