File: sc580

package info (click to toggle)
apsfilter 7.2.6-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,544 kB
  • ctags: 61
  • sloc: sh: 457; ansic: 236; perl: 175; makefile: 157
file content (79 lines) | stat: -rw-r--r-- 2,696 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# $ApsCVS: src/apsfilter/driver/pips/sc580,v 1.1 2001/11/17 15:22:00 andreas Exp $

POST_FILTER=pips-sc580
POST_FILTER_OPTS="$POST_FILTER_OPTS -ui C"

case "$MEDIA" in
	plain)
		POST_FILTER_OPTS="$POST_FILTER_OPTS -mt PLAIN"
		case "$QUALITY" in
			draft)	RESOLUTION=120x120
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 120 -ql DRAFT" ;;
			low)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -ql STD" ;;
			medium)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -ql FINE" ;;
			high)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -ql PHOTO" ;;
			photo)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -ql PHOTO" ;;
		esac ;;
	coated)
		case "$QUALITY" in
			draft)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -mt FINE -ql STD" ;;
			low)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -mt SFINE -ql STD" ;;
			medium)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -mt SFINE -ql STD" ;;
			high)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -mt SFINE -ql FINE" ;;
			photo)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -mt SFINE -ql FINE" ;;
		esac ;;
	glossy)
		POST_FILTER_OPTS="$POST_FILTER_OPTS -mt GPAPER"
		case "$QUALITY" in
			draft)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -ql STD" ;;
			low)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -ql STD" ;;
			medium)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -ql FINE" ;;
			high)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -ql FINE" ;;
			photo)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -ql PHOTO" ;;
		esac ;;
	premium)
		POST_FILTER_OPTS="$POST_FILTER_OPTS -mt GFILM"
		case "$QUALITY" in
			draft|low)
				RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -ql FINE" ;;
			medium)
				RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -ql FINE" ;;
			high|photo)
				RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -ql PHOTO" ;;
		esac ;;
	trans)
		RESOLUTION=360x360
		POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -mt OHP -ql STD" ;;
esac

case "$COLOR" in
	full)	PRINTER=png16m
		POST_FILTER_OPTS="$POST_FILTER_OPTS -in COLOR" ;;
	gray)	PRINTER=pnggray
		POST_FILTER_OPTS="$POST_FILTER_OPTS -in MONO" ;;
	mono)	PRINTER=pngmono
		POST_FILTER_OPTS="$POST_FILTER_OPTS -in MONO" ;;
esac

case "$PAPERSIZE" in
	a4)	POST_FILTER_OPTS="$POST_FILTER_OPTS -ms A4" ;;
	letter)	POST_FILTER_OPTS="$POST_FILTER_OPTS -ms LT" ;;
	legal)	POST_FILTER_OPTS="$POST_FILTER_OPTS -ms LGL" ;;
esac