9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] AFPL Ghostscript-8.13 plus hpijs-1.5
Date: Tue, 24 Feb 2004 19:54:35 -0500	[thread overview]
Message-ID: <248a37c22b18967dd4190c32739089d7@plan9.bell-labs.com> (raw)
In-Reply-To: <6b221435fe329720cf7aed179b570bd3@granite.cias.osakafu-u.ac.jp>

[-- Attachment #1: Type: text/plain, Size: 4 bytes --]

done

[-- Attachment #2: Type: message/rfc822, Size: 3170 bytes --]

From: Kenji Okamoto <okamoto@granite.cias.osakafu-u.ac.jp>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] AFPL Ghostscript-8.13 plus hpijs-1.5
Date: Wed, 25 Feb 2004 09:50:30 +0900
Message-ID: <6b221435fe329720cf7aed179b570bd3@granite.cias.osakafu-u.ac.jp>

> I stuck your /sys/lib/lp/process/{generic,pdfgsijs} onto sources.

Great!
So, please add one more file /sys/lib/lp/process/gspipeijs which
I posted here long time ago, and probably many don't remember it.
This is for plain postscript file, not pdf file.

-----from here   /sys/lib/lp/process/gspipeijs -----
#!/bin/rc
# extended to IJS driver by K.Okamoto
# duble-sided printing for PSC 2550 printer
#
if (! ~ $DEBUG '') flag x +

# usage: gspipeijs [dev]
# assumes postscript on stdin

switch($#*) {
case 0
	MODEL=`{echo $LPCLASS | sed 's/(.*\+)?gsijs!([^+]*)(\+.*)?/\2/'}
	NUMBER=`{echo $LPCLASS | sed 's/(.*\+)?gsijs!([^+]*)\+(.*)?/\3/'}
case 1
	IJS=$1
case *
	echo 'usage: gspipeijs [dev]' >[1=2]
	exit gspipeijs
}

GSTMPFILE=/tmp/gsp$pid

switch($NUMBER) {
case 2100
	GSOPT=(-q -sDEVICE'='ijs -sIjsServer'='hpijs -sDeviceManufacturer'='HP '-sDeviceModel='"$MODEL^' '^$NUMBER" -r600 -sOutputFile'='^$GSTMPFILE -sPAPERSIZE'='a4 -dIjsUseOutputFD -dSAFER -dNOPAUSE -DBATCH)
case 2500
	GSOPT=(-q -sDEVICE'='ijs -sIjsServer'='hpijs -sDeviceManufacturer'='HP '-sDeviceModel='"$MODEL^' '^$NUMBER" -r600 -sOutputFile'='^$GSTMPFILE -dDuplex'='true -sPAPERSIZE'='a4 -dIjsUseOutputFD -dSAFER -dNOPAUSE -DBATCH)
}

gs $GSOPT  -

cat $GSTMPFILE
rm $GSTMPFILE

exit
----------- cut here ---------

Kenji

  reply	other threads:[~2004-02-25  0:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-17  4:44 Kenji Okamoto
2004-02-18  5:34 ` Kenji Okamoto
2004-02-24 15:04 ` David Presotto
2004-02-25  0:50   ` Kenji Okamoto
2004-02-25  0:54     ` David Presotto [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-02-17  2:08 Kenji Okamoto
2004-02-17  2:11 ` Geoff Collyer
2004-02-17  2:18   ` Kenji Okamoto
2004-02-17  2:35     ` Kenji Okamoto
2004-02-17  4:42       ` Kenji Okamoto
2004-02-17 13:04 ` David Meyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=248a37c22b18967dd4190c32739089d7@plan9.bell-labs.com \
    --to=presotto@closedmind.org \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).