From: cabbage@kki.esi.yamanashi.ac.jp (Masami Ueno)
Subject: Re: Q: ASCII TeX(eps) -> dvi2ps (In Japanese/Kanji)
X-Nntp-Posting-Host: hope
Followup-To: fj.comp.texhax
Organization: Dept. of Electrical Eng. & Comp. Sci., Yamanashi Univ., Japan.
Distribution: fj
Date: Wed, 29 Jul 1992 11:16:43 GMT

$B$O$8$a$^$7$F!$>eLn(B$B!w;3M|Bg$H?=$7$^$9!%(B
NTT JTeX $B$r;H$C$F$$$k$N$G$"$s$^$jLu$KN)$?$J$$$+$bCN$l$^$;$s$,(B...

In article <2182@cecgw.cec.co.jp> kazu@cec.co.jp (Kazutoshi Takahashi) writes:
   >>$B9b66!wCf1{EE;R$G$9!#(B
   >>$B<B$O!"(BASCII TeX$B$G!"(Bepsf.sty$B$rMQ$$$F!"(Beps$B$r%$%s%/%k!<%I$7$?(Bdvi$B$r:n@.$7$F(B
   >>dvi2ps-j$B$r;H$C$F!"(Bps$B%U%!%$%k$r(B$B:n@.$7$F$$$k$N$G$9$,!"(B
   >>$B#1(B	MICROLINE801PS$B$K=PNO$G$-$J$$!#!JCm#1!K(B
$B$3$A$i$G$9$,!$(Bcomp.lang.postscript $B$KEj9F$5$l$F$$$?(B PostScript $BMQ$N%((B
$B%i!<%O%s%I%i!<$,$"$j$^$9!%$3$l$r%W%j%s%?$KAw$C$F$*$/$H!$=PNO$G(B$B$-$J$+$C(B
$B$?>l9g$K$=$N860x$r<!$N;f$K0u:~$7$F$/$l$^$9!%(B($B$?$@$7!$KM$O2r=|$9$kJ}K!(B
$B$rCN$i$J$$$N$G!$EE8;$r(B$BF~$lD>$7$F$$$^$9!%(B{$B>p$1$J$$(B...}) $B>l9g$K$h$C$F$O!$(B
lpd $B$b%j%9%?!<%H$9$kI,MW$,$"$k$+$bCN$l$J$$$N$G!$%k!<(B$B%H$5$s$KCG$C$F$*$$(B
$B$?J}$,NI$$$G$7$g$&!%855-;v$r8e$m$KIU$1$^$9$N$G;29M$K$7$F2<$5$$!%(B

   >>$B#2(B	PDL-WRITE$B$G$b=PNO$G$-$J$$$h$&$@!#!JCm#2!K(B
   >>$B#3(B	ghostscript$B$G$O%W%l%S%e!<$G$-$F!"$J$*$+$D(BLBP-B406S$B$X$N=PNO$b(B$B$G$-$k!#(B
   >>	     $B$G$b!"%U%)%s%H$,$-$l$$$8$c$J$$(B(;_;)
   >>$B$=$3$G!"7P83$f$?$+$J$_$J$5$s$K$*J9$-$7$?(B$B$$$N$O!"(B
   >>	     Q1:$B#1$O!"$"$?$j$^$($N$3$H$J$N$+!#$=$l$H$bIaDL$O=PNO$G$-$k$N$+!#(B
   >>		$B!J$3$A$i$N(B$B@_Dj!?;HMQ%_%9$J$N$G$7$g$&$+!K(B
   >>	     Q2:PDL-WRITE$B$HF1$8$h$&$J%=%U%H$G!"(BRICOH-SCRIPT$B$H$$$&$b$N$,(B
   >>		$B$"$j$^$9$,!"$=$l$G$O=PNO$9$k$N$G$7$g$&$+!#(B
   >>		$B!J(B -> $B;H$C$F$$$k$+$?$K<ALd!K(B
   >>$B$A$J$_$K!"(Bjdvi2kps$B$G$O=PNO$G$-$F$$$^$9!#(B
$BB>$O!$$o$+$j$^$;$s!%$"$7$+$i$:!%$G$b!$(Bepsf.sty $B$d(B TeX, dvi2ps-j $B%P!<%8(B$B%g(B
$B%s$0$i$$$OL@5-$7$F$*$$$?J}$,Ez$($F2<$5$kJ}$bEz$($d$9$$$H;W$$$^$9$,(B...

$B$G$O!%(B
|                        $B;3M|Bg3X(B $B9)3X8&5f2J(B $B7W;;5!2J3X@l96(B $BEb_78&(B M2
|_______________________ $B>eLn@5L&(B   (cabbage@kki.esi.yamanashi.ac.jp)

---- $B$3$3$+$i(B ---- $B$3$3$+$i(B ---- $B$3$3$+$i(B ---- $B$3$3$+$i(B ---- $B$3$3$+$i(B ----
From: dlu@wobble.uucp (Doug Urner)
Newsgroups: comp.lang.postscript
Subject: Re: smart lpfilters for Unix?
Date: 8 Jul 92 07:36:41 GMT
Organization: dlu UNIX Consultants

vances@xenitec.on.ca (Vance Shipley) writes:

>Does anyone use Unix printer interfaces for postscript printers that
>do something with data (eg. errors) sent back from the printer?  

There is one in Richard Steven's new book that is based on one that
James Clark posted to one of the sources groups a while back.  I
believe the code from the book is on uunet -- sorry but I don't know
the location.

While the "(stty whatever ; cat) < /dev/laserprinter" trick works
there is something to be said for having a program that actually knows
what it is doing.  For instance a "smart" program managing the printer
can send a control C when the user wants to kill the print job, and
can do page accounting by asking the printer how many pages it
printed, and can manage downloadable fonts, and . . .

>I'm using SCO Unix and an Apple LaserWriter.  Every time a job won't
>print I have to take out a datascope and put it in line to see what 
>the error is.

You can also download one of the various error handlers floating
around the net.  This one came from Adobe.

--------8<----------------------------------------------------
%!
% lib/ehandler.ps -- Downloaded Error Break-page handler
% Copyright (c) 1984, 1985, 1986 Adobe Systems Incorporated. 
% All Rights Reserved.

0000 % serverloop password
/$brkpage where
{pop pop(Error Handler in place - not loaded again\n)print flush stop}
{dup serverdict begin statusdict begin checkpassword
 {(Error Handler downloaded.\n)print flush exitserver}
 {pop(Bad Password on loading error handler!!!\n)print flush stop}ifelse
}ifelse
/$brkpage 64 dict def $brkpage begin
/prnt
 {dup type/stringtype ne{=string cvs}if dup length 6 mul/tx exch def/ty 10 def
  currentpoint/toy exch def/tox exch def 1 setgray newpath
  tox toy 2 sub moveto 0 ty rlineto tx 0 rlineto 0 ty neg rlineto
  closepath fill tox toy moveto 0 setgray show}bind def
/nl{currentpoint exch pop lmargin exch moveto 0 -10 rmoveto}def
/=={/cp 0 def typeprint nl}def
/typeprint{dup type dup currentdict exch known
  {exec}{unknowntype}ifelse}readonly def
/lmargin 72 def/rmargin 72 def
/tprint{dup length cp add rmargin gt{nl/cp 0 def}if
  dup length cp add/cp exch def prnt}readonly def
/cvsprint{=string cvs tprint( )tprint}readonly def
/unknowntype{exch pop cvlit(??)tprint cvsprint}readonly def
/integertype{cvsprint}readonly def
/realtype{cvsprint}readonly def
/booleantype{cvsprint}readonly def
/operatortype{(//)tprint cvsprint}readonly def
/marktype{pop(-mark- )tprint}readonly def
/dicttype{pop(-dictionary- )tprint}readonly def
/nulltype{pop(-null- )tprint}readonly def
/filetype{pop(-filestream- )tprint}readonly def
/savetype{pop(-savelevel- )tprint}readonly def
/fonttype{pop(-fontid- )tprint}readonly def
/nametype{dup xcheck not{(/)tprint}if cvsprint}readonly def
/stringtype
 {dup rcheck{(\()tprint tprint(\))tprint}{pop(-string- )tprint}ifelse
 }readonly def
/arraytype
 {dup rcheck{dup xcheck
  {({)tprint{typeprint}forall(})tprint}
  {([)tprint{typeprint}forall(])tprint}ifelse}{pop(-array- )tprint}ifelse
 }readonly def
/packedarraytype
 {dup rcheck{dup xcheck
  {({)tprint{typeprint}forall(})tprint}
  {([)tprint{typeprint}forall(])tprint}ifelse}{pop(-packedarray- )tprint}ifelse
 }readonly def
/courier/Courier findfont 10 scalefont def
/OLDhandleerror errordict /handleerror get def
end %$brkpage
errordict/handleerror
 {systemdict begin $error begin $brkpage begin newerror
   {/newerror false store 
    vmstatus pop pop 0 ne{grestoreall}if initgraphics courier setfont
    lmargin 720 moveto(ERROR: )prnt errorname prnt
    nl(OFFENDING COMMAND: )prnt/command load prnt
    $error/ostack 
    known{nl nl(STACK:)prnt nl nl $error/ostack get aload length{==}repeat}if
    systemdict/showpage get exec
    /newerror true store/OLDhandleerror load end end end exec}{end end end}
  ifelse}
dup 0 systemdict put dup 4 $brkpage put bind readonly put
-- 
Doug Urner, dlu@wobble   "They tear down our comrades like leaves from a tree,
dlu UNIX Consulting       leaves from a tree, leaves from a tree, but the
Bellingham, WA            tree still stands, its roots locked to the land."
206/676-5759                              -- Song of the Exile,  Barry Guilder