home *** CD-ROM | disk | FTP | other *** search
- %!PS
-
- % RiScript bug work-arounds.
- % Copyright 1996 Chris Poole (c.e.poole@iee.org.uk)
- % Version 1.1
-
- userdict begin
-
- % Make a new version of ashow which actually does what it is supposed to.
-
- /ashow
- {
- 2 dict begin
- 3 1 roll /y exch def /x exch def
- {pop pop x y rmoveto} exch kshow
- x y rmoveto
- end
- } bind def
-
- % We need a new version of awidthshow too, both to make it work, and to
- % fix a bug whereby it objects to some of its parameters being reals.
-
- /awidthshow
- {
- 7 dict begin
- 6 1 roll /ay exch def /ax exch def
- /c exch def /cy exch def /cx exch def
- /last 0 def
- {/last exch def c eq {cx ax add cy ay add} {ax ay} ifelse rmoveto} exch kshow
- last c eq {cx ax add cy ay add} {ax ay} ifelse rmoveto
- end
- } bind def
-
- % Some postscript programs pass non-executable parameters to bind which
- % RiScript objects to. Fix this by redefining bind.
-
- /bind
- {
- cvx bind
- } bind def
-
- % Some programs expect 'version' to return a number in a string, without
- % any other text. Redefine version to return something suitable.
-
- /version
- {
- version 0 4 getinterval
- } bind def
-
- end
-