Subject: PostScript on Epson Stylus Color (was: GhostScript for Lazy People)
To: Peter Seebach <seebs@plethora.net>
From: Greg Lehey <grog@lemis.com>
List: current-users
Date: 09/22/2000 12:58:41
On Thursday, 21 September 2000 at 11:01:56 -0500, Peter Seebach wrote:
> Okay, I can use GS to render PostScript.  I can send the output to a printer.
> Is there, somewhere out there, an existing script clever enough to just DWIM
> when output is sent to it?  If so, does anyone have a config file for an Epson
> Stylus Color 600?
>
> Normally I'd just do it by hand, but this is for MomBSD, and I want it to
> be user-friendly.

This is what I have for a 740, on a FreeBSD box.  I'd expect this to
work unchanged for NetBSD as well.  First, /etc/printcap:

c|ep740ps|epson740ps|Epson Stylus Color 740 with PostScript:\
        :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:sh:mx#0:\
        :if=/usr/local/libexec/psfilter2:

psfilter2 is:

#!/bin/sh
read first_line
/usr/local/bin/gs @stc500ph.upp -q -sPaperSize=a4 -sOutputFile=- -dNOPAUSE - -c quit 

I have also modified stc500ph.upp for more saturated colours.  You may
or may not want to do this; it uses more ink (obviously), and it also
tends to make the paper wrinkle.  Here's the modified version:

-supModel="Epson Stylus Color 500, 720x720DpI, not Weaved, Plain Paper"
-sDEVICE=uniprint
-dNOPAUSE
-dSAFER
-dupColorModel=/DeviceCMYK
-dupRendering=/ErrorDiffusion
-dupOutputFormat=/EscP2
-r720x720
-dupMargins="{ 0 0 0 0 }"
-dupBlackTransfer="{
     0.0000     0.0003  0.0027  0.0056  0.0085  0.0120  0.0156  0.0196
     0.0227     0.0260  0.0292  0.0323  0.0354  0.0386  0.0416  0.0450
     0.0503     0.0564  0.0630  0.0711  0.0799  0.0905  0.1038  0.1169
     0.1321     0.1522  0.1761  0.2011  0.2285  0.2678  0.3102  0.3637
}"
-dupCyanTransfer="{
0.0       0.00128 0.0088  0.01696 0.02432 0.03216 0.03968 0.04768
0.05504 0.06288 0.07088 0.0784  0.08576 0.0936  0.1008  0.10928
0.11808 0.12848 0.1392  0.1528  0.16672 0.18384 0.20528 0.22528
0.24832 0.27904 0.3152  0.35152 0.39056 0.44752 0.50704 0.58192
}"
-dupMagentaTransfer="{
0.0       0.00128 0.0088  0.01696 0.02432 0.03216 0.03968 0.04768
0.05504 0.06288 0.07088 0.0784  0.08576 0.0936  0.1008  0.10928
0.11808 0.12848 0.1392  0.1528  0.16672 0.18384 0.20528 0.22528
0.24832 0.27904 0.3152  0.35152 0.39056 0.44752 0.50704 0.58192
}"
-dupYellowTransfer="{
0.0       0.00128 0.0088  0.01696 0.02432 0.03216 0.03968 0.04768
0.05504 0.06288 0.07088 0.0784  0.08576 0.0936  0.1008  0.10928
0.11808 0.12848 0.1392  0.1528  0.16672 0.18384 0.20528 0.22528
0.24832 0.27904 0.3152  0.35152 0.39056 0.44752 0.50704 0.58192
}"
-dupBeginPageCommand="<
   1b40   1b40
   1b2847 0100 01
   1b2869 0100 01
   1b2855 0100 05
   1b5500
   1b2843 0200 0000
   1b2863 0400 0000 0000
>"
-dupAdjustPageLengthCommand
-dupAdjustTopMarginCommand
-dupAdjustBottomMarginCommand
-dupEndPageCommand="(\033@\014)"
-dupAbortCommand="(\033@\15\12\12\12\12    Printout-Aborted\15\014)"

Greg
--
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers