# $ApsCVS: src/apsfilter/driver/ijs/DESKJET_960,v 1.1.2.5 2002/11/09 16:54:26 andreas Exp $

PRINTER="$(echo $PRINTER | sed 's/_/ /g')"

case "$COLOR" in
	full)	case "$QUALITY" in
			draft|low)	RESOLUTION=300x300
					params="Quality:Quality=1,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2" ;;
			medium)		RESOLUTION=300x300
					params="Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2" ;;
			high)		RESOLUTION=600x600
					params="Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2" ;;
			photo)		RESOLUTION=1200x1200
					params="Quality:Quality=3,Quality:ColorMode=2,Quality:MediaType=2,Quality:PenSet=2" ;;
		esac ;;
	*)	case "$QUALITY" in
			draft|low)	RESOLUTION=300x300
					params="Quality:Quality=1,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=2" ;;
			medium)		RESOLUTION=300x300
					params="Quality:Quality=0,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=2" ;;
			*)		RESOLUTION=600x600
					params="Quality:Quality=0,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=2" ;;
		esac ;;
esac

if [ -n "$HARDWARE_DUPLEX" -a -n "$DUPLEX" ]; then
	if [ "$BINDING" = short ]; then
		GS_FEATURES="$GS_FEATURES -dDuplex=true -dTumble=true"
	else
		GS_FEATURES="$GS_FEATURES -dDuplex=true -dTumble=false"
	fi
fi

GS_FEATURES="$GS_FEATURES -sIjsParams='$params' -sDeviceManufacturer=HEWLETT-PACKARD"
