# $ApsCVS: src/apsfilter/driver/pcl3/u970,v 1.1.2.3 2001/12/29 17:17:17 andreas Exp $

PRINTER=pcl3

case "$QUALITY" in
	draft)	RESOLUTION=150x150
		GS_FEATURES="$GS_FEATURES -sPrintQuality=-1" ;;
	low)	RESOLUTION=150x150
		GS_FEATURES="$GS_FEATURES -sPrintQuality=0" ;;
	medium)	RESOLUTION=300x300
		GS_FEATURES="$GS_FEATURES -sPrintQuality=0" ;;
	high)	RESOLUTION=600x600
		GS_FEATURES="$GS_FEATURES -sPrintQuality=0" ;;
	photo)	RESOLUTION=600x600
		GS_FEATURES="$GS_FEATURES -sPrintQuality=1" ;;
esac

case "$COLOR" in
	full)	GS_FEATURES="$GS_FEATURES -sColorModel=CMYK" ;;
	*)	GS_FEATURES="$GS_FEATURES -sColorModel=Gray" ;;
esac

case "$MEDIA" in
	coated)		GS_FEATURES="$GS_FEATURES -sMedium=1" ;;
	premium)	GS_FEATURES="$GS_FEATURES -sMedium=2" ;;
	glossy)		GS_FEATURES="$GS_FEATURES -sMedium=3" ;;
	trans)		GS_FEATURES="$GS_FEATURES -sMedium=4" ;;
	plain)		GS_FEATURES="$GS_FEATURES -sMedium=0" ;;
esac

if [ -n "$HARDWARE_DUPLEX" -a -n "$DUPLEX" ]; then
	if [ "$BINDING" = short ]; then
		GS_FEATURES="$GS_FEATURES -dDuplex -dTumble=true \
		-sDuplexCapability=oppositeLeadingEdge	\
		-sPJLLanguage=PCL3GUI \
		-dOnlyCRD"
	else
		GS_FEATURES="$GS_FEATURES -dDuplex -dTumble=false \
		-sDuplexCapability=oppositeLeadingEdge	\
		-sPJLLanguage=PCL3GUI \
		-dOnlyCRD"
	fi
fi
