Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2001 02:29:37 +0100
From:      "Jose M. Alcaide" <jose@we.lc.ehu.es>
To:        Julian Elischer <julian@elischer.org>
Cc:        hackers@FreeBSD.ORG, phk@FreeBSD.ORG
Subject:   Re: HP deskjet 940 (color) and FreeBSD
Message-ID:  <20011112022937.C827@v-ger.we.lc.ehu.es>
In-Reply-To: <Pine.BSF.4.21.0111111024080.89663-100000@InterJet.elischer.org>; from julian@elischer.org on Sun, Nov 11, 2001 at 11:11:48AM -0800
References:  <Pine.BSF.4.21.0111111024080.89663-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--bp/iNruPH9dso1Pn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Sun, Nov 11, 2001 at 11:11:48AM -0800, Julian Elischer wrote:
> I can get gimp to produce colour
> and in apsfilter I can select the gimp output drivers and get
> rather 'crude' colour, but if I select the hp drivers in ghostscript
> (even the pcl3 of hpdj) I just get Black and white testpages
> from apsfilter. (I get a cruddy colour one if I select gimp drivers)

Apsfilter does not use the options of hpdj and pcl3 drivers correctly.  I
have a patch for this problem (sent attached). The patch also fix a bug
with the handling of duplex/tumble options. I reported these problems to
the apsfilter developers, and they acknowledged them.

OTOH, hpijs is the best driver for HP inkjet printers. Unfortunately,
apsfilter does not support this driver yet.

  Regards,
  JMA
-- 
****** Jose M. Alcaide  //  jose@we.lc.ehu.es  //  jmas@FreeBSD.org ******
** "Beware of Programmers who carry screwdrivers" --  Leonard Brandwein **

--bp/iNruPH9dso1Pn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="apsfilter.patch"

--- apsfilter.orig	Tue Oct  2 01:42:43 2001
+++ apsfilter	Wed Oct  3 18:04:59 2001
@@ -1077,35 +1077,11 @@
 
 ps_set_tumble()
 {
-    local tumble
-
     if [ "$BINDING" = short ]; then
-	tumble=true
+	psset -n -q -t
     else
-	tumble=false
+	psset -n -q -d
     fi
-
-    # this code was taken from the psset command (a2ps 4.13b)
-    awk "{ print } /^%%EndProlog/ { print \"\
-countdictstack\n\
-/psset_mark\n\
-{\n\
-%%BeginFeature: *Duplex true\n\
-  (<<) cvx exec /Duplex (true) cvx exec (>>) cvx exec\n\
-  systemdict /setpagedevice get exec\n\
-%%EndFeature\n\
-%%BeginFeature: *Tumble $tumble\n\
-  (<<) cvx exec /Tumble ($tumble) cvx exec (>>) cvx exec\n\
-  systemdict /setpagedevice get exec\n\
-%%EndFeature\n\
-} stopped\n\
-{ /psset_mark eq { exit } if } loop\n\
-countdictstack exch sub dup 0 gt\n\
-{\n\
-  { end } repeat\n\
-}{\n\
-  pop\n\
-} ifelse\" }"
 }
 
 duplex_notification()
@@ -1742,13 +1718,13 @@
 		    GS_MODEL="$option" ;;
 	  500c|550c|560c|850c|855c)
 		    GS_MODEL="${option%c}C" ;;
-	  mono)     GS_FEATURES="$GS_FEATURES -sColorMode=mono" ;;
+	  mono)     GS_FEATURES="$GS_FEATURES -sColourModel=Gray" ;;
 	  cmy)      COLOR=color
-		    GS_FEATURES="$GS_FEATURES -sColorMode=CMY" ;;
+		    GS_FEATURES="$GS_FEATURES -sColourModel=CMY" ;;
 	  cmy+k)    COLOR=color
-		    GS_FEATURES="$GS_FEATURES -sColorMode=CMY+K" ;;
+		    GS_FEATURES="$GS_FEATURES -sColourModel=CMY+K" ;;
 	  cmyk)     COLOR=color
-		    GS_FEATURES="$GS_FEATURES -sColorMode=CMYK" ;;
+		    GS_FEATURES="$GS_FEATURES -sColourModel=CMYK" ;;
 	  draft)    GS_FEATURES="$GS_FEATURES -sPrintQuality=draft" ;;
 	  norm*)    GS_FEATURES="$GS_FEATURES -sPrintQuality=normal" ;;
 	  pres*)    GS_FEATURES="$GS_FEATURES -sPrintQuality=presentation";;

--bp/iNruPH9dso1Pn--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011112022937.C827>