/usr/share/cagefs-skeleton/usr/share/ghostscript/lib
% Copyright (C) 2001-2021 Artifex Software, Inc. % All Rights Reserved. % % This software is provided AS-IS with no warranty, either express or % implied. % % This software is distributed under license and may not be copied, % modified or distributed except as expressly authorized under the terms % of the license contained in the file LICENSE in this distribution. % % Refer to licensing information at http://www.artifex.com or contact % Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato, % CA 94945, U.S.A., +1(415)492-9861, for further information. % % stcolor.ps % Epson Stylus-Color Printer-Driver % The purpose of this file is to configure the stcolor-printer driver % % It is useless and dangerous to interpret the following code with anything % else than Ghostscript, so this condition is verified first. If this fails % a message is send to the output. If this message bothers you, remove it, % but I prefer to know why the device-setup failed. statusdict begin product end dup (Ghostscript) eq 1 index (Artifex Ghostscript) eq or exch (AFPL Ghostscript) eq or{ % fetch the current device-parameters this is specific for Ghostscript. /STCold currentdevice getdeviceprops .dicttomark def % Any Ghostscript-Driver has a Name, verify that the selected device is % stcolor, otherwise nothing than another message will be produced. STCold /Name get (stcolor) eq { % % The main thing this file does, is to establish transfer-functions. % Here are two predefined arrays for 360x360Dpi and for 720x720DpI. % If resolution is 360x720 or 720x360 the average is used. You may % want to define other arrays here. % /STCdeftransfer [ 0.0 1.0 ] def /STCKtransfer360 [ 0.0000 0.0034 0.0185 0.0377 0.0574 0.0769 0.0952 0.1147 0.1337 0.1540 0.1759 0.1985 0.2209 0.2457 0.2706 0.2949 0.3209 0.3496 0.3820 0.4145 0.4505 0.4907 0.5344 0.5840 0.6445 0.7093 0.8154 0.9816 0.9983 0.9988 0.9994 1.0000 ] def /STCKtransfer720 [ 0.0000 0.0011 0.0079 0.0151 0.0217 0.0287 0.0354 0.0425 0.0492 0.0562 0.0633 0.0700 0.0766 0.0835 0.0900 0.0975 0.1054 0.1147 0.1243 0.1364 0.1489 0.1641 0.1833 0.2012 0.2217 0.2492 0.2814 0.3139 0.3487 0.3996 0.4527 0.5195 ] def % compute the resolution STCold /HWResolution get dup 0 get exch 1 get mul sqrt /STCdpi exch def % pick the colormodel STCold /ProcessColorModel get /STCcolor exch def mark % prepare stack for "putdeviceprops" % warn for BitsPerPixel=30 with fsrgb STCcolor /DeviceRGB eq STCold /BitsPerPixel get 32 eq and { (%%[ stcolor.ps: inefficient RGB-setup, recommend BitsPerPixel=24 ]%%\n) print } if % if the Dithering-Method is default (gscmyk), change it to fscmyk % this is achieved by pushing a name/value-pair onto the stack % if the selected algorithm uses another ProcessColorModel, it is necessary % to change the Value of STCcolor according to the new algorithm. STCold /Dithering get (gscmyk) eq { /Dithering (hscmyk) % preferred dithering-method } if % might be necessary to change STCcolor too % % select the array according to the resolution % STCdpi 359.0 lt { STCdeftransfer } { STCdpi 361.0 lt { STCKtransfer360 } { STCdpi 719.0 gt { STCKtransfer720 } { STCKtransfer360 length STCKtransfer720 length eq { 0 1 STCKtransfer360 length 1 sub { dup dup STCKtransfer360 exch get exch STCKtransfer720 exch get add 2.0 div STCKtransfer360 3 1 roll put } for }if STCKtransfer360 } ifelse }ifelse } ifelse /STCtransfer exch def % % Add the arrays. With Version 1.17 and above, it seems to be % a good idea, to use the transfer-arrays as coding-arrays too. % % % RGB-Model requires inversion of the transfer-arrays % STCcolor /DeviceRGB eq { /RGBtransfer STCtransfer length array def 0 1 STCtransfer length 1 sub { dup RGBtransfer length 1 sub exch sub exch STCtransfer exch get 1.0 exch sub RGBtransfer 3 1 roll put } for /Rtransfer RGBtransfer /Gtransfer RGBtransfer /Btransfer RGBtransfer /Rcoding RGBtransfer /Gcoding RGBtransfer /Bcoding RGBtransfer }{ /Ctransfer STCtransfer /Mtransfer STCtransfer /Ytransfer STCtransfer /Ktransfer STCtransfer /Ccoding STCtransfer /Mcoding STCtransfer /Ycoding STCtransfer /Kcoding STCtransfer } ifelse counttomark 0 ne {currentdevice putdeviceprops pop}{cleartomark}ifelse % decativate predefined correction {} dup dup currenttransfer setcolortransfer }{ (%%[ stcolor.ps: currentdevice is not stcolor - ignored ]%%\n) print } ifelse }{ (%%[ stcolor.ps: not interpreted by AFPL Ghostscript - ignored ]%%\n) print } ifelse
.
Edit
..
Edit
PDFA_def.ps
Edit
PDFX_def.ps
Edit
PM760p.upp
Edit
PM760pl.upp
Edit
PM820p.upp
Edit
PM820pl.upp
Edit
Stc670p.upp
Edit
Stc670pl.upp
Edit
Stc680p.upp
Edit
Stc680pl.upp
Edit
Stc740p.upp
Edit
Stc740pl.upp
Edit
Stc760p.upp
Edit
Stc760pl.upp
Edit
Stc777p.upp
Edit
Stc777pl.upp
Edit
Stp720p.upp
Edit
Stp720pl.upp
Edit
Stp870p.upp
Edit
Stp870pl.upp
Edit
acctest.ps
Edit
align.ps
Edit
bj8.rpd
Edit
bj8gc12f.upp
Edit
bj8hg12f.upp
Edit
bj8oh06n.upp
Edit
bj8pa06n.upp
Edit
bj8pp12f.upp
Edit
bj8ts06n.upp
Edit
bjc6000a1.upp
Edit
bjc6000b1.upp
Edit
bjc610a0.upp
Edit
bjc610a1.upp
Edit
bjc610a2.upp
Edit
bjc610a3.upp
Edit
bjc610a4.upp
Edit
bjc610a5.upp
Edit
bjc610a6.upp
Edit
bjc610a7.upp
Edit
bjc610a8.upp
Edit
bjc610b1.upp
Edit
bjc610b2.upp
Edit
bjc610b3.upp
Edit
bjc610b4.upp
Edit
bjc610b6.upp
Edit
bjc610b7.upp
Edit
bjc610b8.upp
Edit
caption.ps
Edit
cbjc600.ppd
Edit
cbjc800.ppd
Edit
cdj550.upp
Edit
cdj690.upp
Edit
cdj690ec.upp
Edit
cid2code.ps
Edit
dnj750c.upp
Edit
dnj750m.upp
Edit
docie.ps
Edit
font2pcl.ps
Edit
ghostpdf.ppd
Edit
gs_ce_e.ps
Edit
gs_css_e.ps
Edit
gs_il2_e.ps
Edit
gs_kanji.ps
Edit
gs_ksb_e.ps
Edit
gs_l.xbm
Edit
gs_l.xpm
Edit
gs_l_m.xbm
Edit
gs_lgo_e.ps
Edit
gs_lgx_e.ps
Edit
gs_m.xbm
Edit
gs_m.xpm
Edit
gs_m_m.xbm
Edit
gs_s.xbm
Edit
gs_s.xpm
Edit
gs_s_m.xbm
Edit
gs_t.xbm
Edit
gs_t.xpm
Edit
gs_t_m.xbm
Edit
gs_wl1_e.ps
Edit
gs_wl2_e.ps
Edit
gs_wl5_e.ps
Edit
gslp.ps
Edit
gsnup.ps
Edit
ht_ccsto.ps
Edit
image-qa.ps
Edit
jispaper.ps
Edit
landscap.ps
Edit
lines.ps
Edit
mkcidfm.ps
Edit
necp2x.upp
Edit
necp2x6.upp
Edit
pdf2dsc.ps
Edit
pdf_info.ps
Edit
pf2afm.ps
Edit
pfbtopfa.ps
Edit
ppath.ps
Edit
pphs.ps
Edit
prfont.ps
Edit
printafm.ps
Edit
ps2ai.ps
Edit
ps2epsi.ps
Edit
ras1.upp
Edit
ras24.upp
Edit
ras3.upp
Edit
ras32.upp
Edit
ras4.upp
Edit
ras8m.upp
Edit
rollconv.ps
Edit
s400a1.upp
Edit
s400b1.upp
Edit
sharp.upp
Edit
sipixa6.upp
Edit
st640ih.upp
Edit
st640ihg.upp
Edit
st640p.upp
Edit
st640pg.upp
Edit
st640pl.upp
Edit
st640plg.upp
Edit
stc.upp
Edit
stc1520h.upp
Edit
stc2.upp
Edit
stc200_h.upp
Edit
stc2_h.upp
Edit
stc2s_h.upp
Edit
stc300.upp
Edit
stc300bl.upp
Edit
stc300bm.upp
Edit
stc500p.upp
Edit
stc500ph.upp
Edit
stc600ih.upp
Edit
stc600p.upp
Edit
stc600pl.upp
Edit
stc640p.upp
Edit
stc740ih.upp
Edit
stc800ih.upp
Edit
stc800p.upp
Edit
stc800pl.upp
Edit
stc_h.upp
Edit
stc_l.upp
Edit
stcany.upp
Edit
stcany_h.upp
Edit
stcinfo.ps
Edit
stcolor.ps
Edit
stocht.ps
Edit
traceimg.ps
Edit
traceop.ps
Edit
uninfo.ps
Edit
viewcmyk.ps
Edit
viewgif.ps
Edit
viewjpeg.ps
Edit
viewmiff.ps
Edit
viewpbm.ps
Edit
viewpcx.ps
Edit
viewps2a.ps
Edit
winmaps.ps
Edit
zeroline.ps
Edit