Re: APSFILTER und Drucker

From: J Wunsch <j(at)uriah.heep.sax.de>
Date: Thu, 29 Oct 1998 07:20:04 +0100

As Michael Vorleiter wrote:

(apsfilter + uniprint ghostscript driver)

> Koenntest Du mir da ein bischen mehr Info geben. Ich habe auch wenig
> Zeit, aber interessieren wuerde es mich schon

Hmm, mal sehen. Eventuell checke ich das auch mal in den Port ein.

j(at)uriah 397% diff -u apsfilter{.orig,}
--- apsfilter.orig Sat Jan 10 20:40:12 1998
+++ apsfilter Sun Jan 11 09:23:11 1998
@@ -295,7 +295,12 @@
         paintjet|pj*) DVIPS_OPTS="-q $DVIPS_RESOL_DorP 300" ;;
         necp6) DVIPS_OPTS="-q $DVIPS_RESOL_DorP 360" ;;
         bj200|escp2|st800) DVIPS_OPTS="-q $DVIPS_RESOL_DorP 360 -r" ;;
- stcolor) DVIPS_OPTS="-q $DVIPS_RESOL_DorP 360 -r" ;;
+ stcolor|stcany|stc|stc_l|stc2|stc600pl|stc800pl)
+ DVIPS_OPTS="-q $DVIPS_RESOL_DorP 360 -r" ;;
+ stc_h|stc2_h|stc2s_h|stc500ph|stc500ih|stc600p|stc800p)
+ DVIPS_OPTS="-q $DVIPS_RESOL_DorP 720 -r" ;;
+ stc600ih|stc800ih)
+ DVIPS_OPTS="-q $DVIPS_RESOL_DorP 1440 -r" ;;
         epson) DVIPS_OPTS="-q -P360x180 -r" ;;
         bj10e) DVIPS_OPTS="-q $DVIPS_RESOL_DorP 300 -r" ;;
         *) DVIPS_OPTS="-q $DVIPS_RESOL_DorP 300 -r" ;;
@@ -332,13 +337,30 @@
                 PRINT_PS="cat -" ;;
 
         *) # we have a nice non ps printer
+ case $PRINTER in
+ stcolor)
+ DEVICE="-sDEVICE=${PRINTER}" ;;
+
+ st*) # any other Epson stylus driver is
+ # for the uniprint ghostscript driver
+ # (using a .upp file)
+ DEVICE="@${PRINTER}.upp" ;;
+
+ #
+ # XXX more uniprint supported devices
+ # should be added (BJC610, CDJ550, NECP2X)
+ #
+ *) # any other printer is plain hard-
+ # coded driver
+ DEVICE="-sDEVICE=${PRINTER}" ;;
+ esac
                 if [ -z "$GS_RESOL" ]
                 then
                         # default is _not_ to fiddle around with
                         # ghostscripts printer driver resolution
                         PRINT_PS=" gs \
                                         -q \
- -sDEVICE=${PRINTER} \
+ ${DEVICE} \
                                         -sPAPERSIZE=${PAPERSIZE} \
                                         -dNOPAUSE \
                                         -dSAFER \
@@ -352,7 +374,7 @@
                         # or in $HOME/apsfilterrc)
                         PRINT_PS=" gs \
                                         -q \
- -sDEVICE=${PRINTER} \
+ ${DEVICE} \
                                         -r${GS_RESOL} \
                                         -sPAPERSIZE=${PAPERSIZE} \
                                         -dNOPAUSE \

Hier noch die .upp's, die ich für den STC500 benutze:

j(at)uriah 403% shar stc500*upp
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# stc500ih.upp
# stc500p.upp
# stc500ph.upp
#
echo x - stc500ih.upp
sed 's/^X//' >stc500ih.upp << 'END-of-stc500ih.upp'
X-supModel="Epson Stylus Color 500, 720x720DpI, not Weaved, InkJet Paper"
X-sDEVICE=uniprint
X-dNOPAUSE
X-dSAFER
X-dupColorModel=/DeviceCMYKgenerate
X-dupRendering=/FSCMYK32
X-dupOutputFormat=/EscP2
X-r720x720
X-d.HWMargins="{ 9.0 39.96 9.0 9.0}"
X-dMargins="{ -90 -90}"
X-dupBlackTransfer="{
X0.0000 0.0029 0.0082 0.0151 0.0232 0.0324 0.0426 0.0537
X0.0655 0.0782 0.0916 0.1057 0.1204 0.1358 0.1517 0.1683
X0.1854 0.2030 0.2212 0.2399 0.2591 0.2788 0.2989 0.3195
X0.3406 0.3621 0.3840 0.4064 0.4292 0.4524 0.4760 0.5000
X}"
X-dupCyanTransfer="{
X0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255
X0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171
X0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752
X0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000
X}"
X-dupMagentaTransfer="{
X0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255
X0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171
X0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752
X0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000
X}"
X-dupYellowTransfer="{
X0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255
X0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171
X0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752
X0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000
X}"
X-dupBeginPageCommand="<
X 1b40 1b40
X 1b2847 0100 01
X 1b2869 0100 01
X 1b2855 0100 05
X 1b5500
X 1b2843 0200 0000
X 1b2863 0400 0000 0000
X>"
X-dupAdjustPageLengthCommand
X-dupAdjustTopMarginCommand
X-dupAdjustBottomMarginCommand
X-dupEndPageCommand="(\033@\014)"
X-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)"
X
END-of-stc500ih.upp
echo x - stc500p.upp
sed 's/^X//' >stc500p.upp << 'END-of-stc500p.upp'
X-supModel="Epson Stylus Color 500, 360x360DpI, not Weaved, Plain Paper"
X-sDEVICE=uniprint
X-dNOPAUSE
X-dSAFER
X-dupColorModel=/DeviceCMYKgenerate
X-dupRendering=/FSCMYK32
X-dupOutputFormat=/EscP2
X-r360x360
X-d.HWMargins="{ 9.0 35.0 9.0 3.0}"
X-dMargins="{ -45 -45}"
X-dupBlackTransfer="{
X 0.0000 0.0008 0.0075 0.0155 0.0235 0.0331 0.0430 0.0540
X 0.0625 0.0714 0.0804 0.0889 0.0973 0.1061 0.1143 0.1239
X 0.1382 0.1551 0.1732 0.1956 0.2196 0.2488 0.2854 0.3215
X 0.3633 0.4185 0.4841 0.5529 0.6284 0.7365 0.8529 1.0000
X}"
X-dupCyanTransfer="{
X 0.0000 0.0021 0.0152 0.0291 0.0418 0.0552 0.0681 0.0818
X 0.0947 0.1082 0.1218 0.1347 0.1474 0.1607 0.1732 0.1877
X 0.2029 0.2208 0.2393 0.2626 0.2866 0.3159 0.3528 0.3873
X 0.4268 0.4797 0.5417 0.6042 0.6712 0.7692 0.8714 1.0000
X}"
X-dupMagentaTransfer="{
X 0.0000 0.0021 0.0152 0.0291 0.0418 0.0552 0.0681 0.0818
X 0.0947 0.1082 0.1218 0.1347 0.1474 0.1607 0.1732 0.1877
X 0.2029 0.2208 0.2393 0.2626 0.2866 0.3159 0.3528 0.3873
X 0.4268 0.4797 0.5417 0.6042 0.6712 0.7692 0.8714 1.0000
X}"
X-dupYellowTransfer="{
X 0.0000 0.0021 0.0152 0.0291 0.0418 0.0552 0.0681 0.0818
X 0.0947 0.1082 0.1218 0.1347 0.1474 0.1607 0.1732 0.1877
X 0.2029 0.2208 0.2393 0.2626 0.2866 0.3159 0.3528 0.3873
X 0.4268 0.4797 0.5417 0.6042 0.6712 0.7692 0.8714 1.0000
X}"
X-dupBeginPageCommand="<
X 1b40 1b40
X 1b2847 0100 01
X 1b2869 0100 01
X 1b2855 0100 0A
X 1b5500
X 1b2843 0200 0000
X 1b2863 0400 0000 0000
X>"
X-dupAdjustPageLengthCommand
X-dupAdjustTopMarginCommand
X-dupAdjustBottomMarginCommand
X-dupEndPageCommand="(\033@\014)"
X-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)"
X
END-of-stc500p.upp
echo x - stc500ph.upp
sed 's/^X//' >stc500ph.upp << 'END-of-stc500ph.upp'
X-supModel="Epson Stylus Color 500, 720x720DpI, not Weaved, Plain Paper"
X-sDEVICE=uniprint
X-dNOPAUSE
X-dSAFER
X-dupColorModel=/DeviceCMYKgenerate
X-dupRendering=/FSCMYK32
X-dupOutputFormat=/EscP2
X-r720x720
X-d.HWMargins="{ 9.0 39.96 9.0 9.0}"
X-dMargins="{ -90 -90}"
X-dupBlackTransfer="{
X 0.0000 0.0003 0.0027 0.0056 0.0085 0.0120 0.0156 0.0196
X 0.0227 0.0260 0.0292 0.0323 0.0354 0.0386 0.0416 0.0450
X 0.0503 0.0564 0.0630 0.0711 0.0799 0.0905 0.1038 0.1169
X 0.1321 0.1522 0.1761 0.2011 0.2285 0.2678 0.3102 0.3637
X}"
X-dupCyanTransfer="{
X 0.0000 0.0008 0.0055 0.0106 0.0152 0.0201 0.0248 0.0298
X 0.0344 0.0393 0.0443 0.0490 0.0536 0.0585 0.0630 0.0683
X 0.0738 0.0803 0.0870 0.0955 0.1042 0.1149 0.1283 0.1408
X 0.1552 0.1744 0.1970 0.2197 0.2441 0.2797 0.3169 0.3637
X}"
X-dupMagentaTransfer="{
X 0.0000 0.0008 0.0055 0.0106 0.0152 0.0201 0.0248 0.0298
X 0.0344 0.0393 0.0443 0.0490 0.0536 0.0585 0.0630 0.0683
X 0.0738 0.0803 0.0870 0.0955 0.1042 0.1149 0.1283 0.1408
X 0.1552 0.1744 0.1970 0.2197 0.2441 0.2797 0.3169 0.3637
X}"
X-dupYellowTransfer="{
X 0.0000 0.0008 0.0055 0.0106 0.0152 0.0201 0.0248 0.0298
X 0.0344 0.0393 0.0443 0.0490 0.0536 0.0585 0.0630 0.0683
X 0.0738 0.0803 0.0870 0.0955 0.1042 0.1149 0.1283 0.1408
X 0.1552 0.1744 0.1970 0.2197 0.2441 0.2797 0.3169 0.3637
X}"
X-dupBeginPageCommand="<
X 1b40 1b40
X 1b2847 0100 01
X 1b2869 0100 01
X 1b2855 0100 05
X 1b5500
X 1b2843 0200 0000
X 1b2863 0400 0000 0000
X>"
X-dupAdjustPageLengthCommand
X-dupAdjustTopMarginCommand
X-dupAdjustBottomMarginCommand
X-dupEndPageCommand="(\033@\014)"
X-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)"
X
END-of-stc500ph.upp
exit

-- 
cheers, J"org
joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
Received on Thu 29 Oct 1998 - 07:20:53 CET

search this site