# $ApsCVS: src/apsfilter/driver/pcl3/unspec,v 1.1 2001/11/17 15:22:00 andreas Exp $

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"
	else
		GS_FEATURES="$GS_FEATURES -dDuplex -dTumble=false"
	fi
fi
