HDTenEightyP/NetNews huggingface dataset:
From: ab@nova.cc.purdue.edu (Allen B)
Subject: Re: help with a def including an image
Organization: Purdue University
Date: Wed, 18 Nov 1992 18:24:39 GMT

In article <2157@shaman.wv.tek.com> andrew@frip.WV.TEK.COM (Andrew Klossner)  
writes:
> > /mypic {
> >	...
> >	{currentfile picstr readhexstring pop}
> >	...
> > FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
> >	...
> > } def
> 
> You can't do it this way.  "readhexstring" reads from the file, not
> from the procedure body.

Right.  If I have an image I use a lot, I put it in an external
file and run it.  I won't suggest that to you, though,
'cause I usually get flamed for it. :-) 

The image operator takes an arbitrary executable array. 
You don't need to use a read to get the data.  You could get it
from an array or a string.  If it's really big, you might
have trouble doing that, but that's what files are for. :-(  

Somebody probably already suggested it, but you could
try using a binary (hex) string directly: 

%!
/logo
{
	8 8 1
	[ 8 0 0 -8 0 8 ]
	{ <007e7e66667e7e00> }
	image
} def

gsave
100 100 translate
72 dup scale
logo
grestore

gsave
200 150 translate
80 60 scale
logo
grestore

showpage
Newsgroups: comp.lang.postscript
From: ray@ole.cdac.com (Ray Berry)
Subject: faking duplex printing
Organization: Cascade Design Automation, Bellevue, WA
Distribution: na
Date: Thu, 19 Nov 1992 19:44:05 GMT

    I have gs386, an ljet3, and a postscript file of a 300 page document
intended for duplex printing.  The question is how to filter or split
the document so that I can print it as two passes through the lj3 and
wind up with a two-sided print job.  I am *not* conversant in PS.
All suggestions gratefully accepted.
-- 
Ray Berry kb7ht ray@ole.cdac.com 73407.3152@compuserve.com /*inquire within*/
From: jblst5@icarus.lis.pitt.edu (Jan B Larsen)
Newsgroups: comp.lang.postscript
Subject: Re: WANTED:tutorial manual or books info
Date: 21 Nov 92 16:32:26 GMT
Reply-To: jblst5@icarus.lis.pitt.edu
Organization: University of Pittsburgh

In article 23054@eng.ufl.edu, zzang@stat.ufl.edu (zzang) writes:
:Hello,
:do we have any tutorial manual on the
:postscript? I just begin to learn the
:postscript language, and would like to
:find a good tutorial manual or book
:of the language.
:
:can someone give me some suggestion?
:
:Thanks in advance!
:
:
:-- 
:Zhuo Zang[~{j0WA~}]
:Department of Statistics
:University of Florida            Email: zzang@stat.ufl.edu

I have just started doing postscipt programming, and the following book has helped
me a lot:

_Hands_on PostScript_ by Dr. M.B. Spring & David Dubin, published by Hayden Books.
($29.95)

It is very straightforward, and has a lot of good sample programs. 
A disk with all the examples from the book is included.

Jan B. Larsen
From: dcook@garnet.berkeley.edu (Dan Cook)
Newsgroups: comp.lang.postscript
Subject: EPS to EPSI converter: Questions!
Date: 23 Nov 1992 02:00:07 GMT
Organization: University of California, Berkeley
Distribution: world
NNTP-Posting-Host: garnet.berkeley.edu

So I just swiped the filter eps2epsi from this group
in an attempt to incorporate some of my beautiful graphs
into my Ph.d. thesis... So how does it work?.. I 'sh eps2epsi'
'ed it, but if I type eps2epsi my shell doesn't seem to 
recognize it... I don't have perl, is that the problem? and
if so where can I get perl? I'm trying to incorporate some
postscript files in to a Framemaker document, does anyone
know if this is going to work or not?

-uncle dan
Newsgroups: comp.lang.postscript
From: psybeast@dracut.keps.com (Andy Seymour)
Subject: Stack Under/Over flows
Originator: psybeast@dracut
Organization: KEPS, Inc.
Date: Thu, 19 Nov 1992 16:42:21 GMT

My  works allows me to deal with the wonderful world of PostScript, and in
doing so, I have to trouble shoot files...

A common one lately is the Stack under/over flow...

One of the "rumors" around the office is that some of QuarkXpress'
extentions corrupt the PostScript code... Has anyone heard of this??

Also, I would be intersted in finding out some general trouble shooting
ideas on these Stack U/O flows...

I deal with the Mac side of life going to HiRes imagesetters... Most of
the common apps... PageMaker, Illustrator, FreeHand, QuarkXpress, ect.

Is the a FAQ on gerenal PostScript troubleshooting??

Thanks in advance!!

PsyBeast
-- 
//////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
||||||||||||||||||||    Where to find the PsyBeast   |||||||||||||||||||||
  AOL: PsyBeast           psybeast@world.std.com         CIS: 74620,2744
#########################~~~~~~~~~~~~~~~~~~~~~~~~#########################
From: minh@lis.rch.unimelb.edu.au (Minh Tran)
Newsgroups: comp.lang.postscript
Subject: TSR program to print text file to postscript printer ??
Date: 19 Nov 92 03:22:14 GMT
Organization: Computer Science, University of Melbourne, Australia
X-Newsreader: TIN [version 1.1 PL6]


	Does any one know if there is a DOS TSR program which can print 
	text file to postscript printer ??
	Thanks
	---
	minh
--
|>	B\iochemistry                        Minh Tra/N                       <|
|>	 I\nformation     minh@lis.rch.unimelb.edu.a/U                        <|
|>	  S\ervice                     (03) 345-590/8                         <|
|>	   D\epartment         Melbourne, Australi/A                          <|
From: brown@vidiot.UUCP (Vidiot)
Newsgroups: comp.lang.postscript
Subject: Re: Text that erases background
Date: 17 Nov 92 02:49:53 GMT
Reply-To: brown@vidiot.UUCP (Vidiot)
Organization: Vidiot's Hangout

In article <1992Nov14.034940.7891@gvl.unisys.com> wrp@pslsrv1.gvl.unisys.com (Bill Pringle) writes:
<What you want to do is to draw a thick white line over the area where
<the string will be written.  Set the line width to the point size,
<then use setgray to create a white line.  You can use stringwidth to
<determine how long to make the line.  Something like:
<
<	% assume you are at the position to draw the text
<	% and the text string is on top of the stack
<	gsave
<		12 setlinewidth	% assume 10 or 12 pt. font
<		0 setgray	% drawing a white line
<		dup stringwidth pop	% get width to draw
<		0 exch rlineto stroke	% draw the line
<	grestore

You are forgetting that the width of the line is determined from the center
of the line, not the bottom edge.  You will have to move the start of the line
to the center of the text box.
-- 
      harvard\                          spool.cs.wisc.edu!astroatc!vidiot!brown
Vidiot  ucbvax!uwvax..........!astroatc!vidiot!brown
      rutgers/            INTERNET:vidiot!brown%astroatc.UUCP@spool.cs.wisc.edu
                                   brown@wi.extrel.com
From: kent@sparky.imd.sterling.com (Kent Landfield)
Subject: Re: Is there interest in comp.sources.postscript?
Organization: Sterling Software
Date: Mon, 23 Nov 1992 05:38:46 GMT
X-Md4-Signature: 8c6b2ac5e1733098229b51819791f775

In article <6803@m1.cs.man.ac.uk> lilleyc@cs.man.ac.uk (Chris Lilley) writes:
>In article <1992Nov14.235834.9723@dsd.es.com> rthomson@dsd.es.com
>(Rich Thomson) writes: 
>>This is one of the many reasons for moderating a sources group.  The
>>moderator would simply weed out any comments and not approve them.
>
>You mean, just discard them? Why? Are you trying to stop any of the
>discussion that would occur when sources were posted?
>
>Or are you suggesting that the moderator(s) should redirect discussion
>to the comp.lang.postscript?

It is real simple to put a Followup-To: header into the posted sources 
which redirects the discussion to the right place.  I add a 
   Followup-To: comp.sources.d
to posting which go to comp.sources.misc.  That way the discussion goes on 
where it should and I need to deal with much less mail... :-)   In the case 
of comp.sources.postscript the followups could be redirected to c.l.postscript.
Also, I politely inform people who have misdirected discussion posts to c.s.misc
so that they know they need to repost them to the right group.

			-Kent+
---
Kent Landfield                   INTERNET: kent@IMD.Sterling.COM
Sterling Software, IMD           UUCP:     uunet!sparky!kent
Phone:    (402) 291-8300         FAX:      (402) 291-4362
Please send comp.sources.misc-related mail to kent@uunet.uu.net.
From: clewis@ferret.ocunix.on.ca (Chris Lewis)
Newsgroups: comp.lang.postscript
Subject: Re: psnup
Date: 20 Nov 92 00:22:34 GMT
Organization: Elegant Communications Inc., Ottawa, Canada

In article <1992Nov17.134853.10979@news.nd.edu> jott@tagore.helios.nd.edu (John Ott) writes:
>In article <3998@ecicrl.ocunix.on.ca>, clewis@ferret.ocunix.on.ca (Chris Lewis) writes:
>|> Yeah, but mpage insists on borders...

>Then what does the -b switch do?

Dat was a yoke son.

[psnup generates borders and you can't turn them off...  Then again,
I stopped tracking mpage years ago...]
-- 
Chris Lewis; clewis@ferret.ocunix.on.ca; Phone: Canada 613 832-0541
Psroff 3.0 info: psroff-request@ferret.ocunix.on.ca
Ferret list: ferret-request@ferret.ocunix.on.ca
Newsgroups: comp.lang.postscript
From: ab@nova.cc.purdue.edu (Allen B)
Subject: Re: SOURCE: Scramble Algorithm
Organization: Purdue University
Date: Tue, 17 Nov 1992 21:33:33 GMT

In article <dockhorn.721922569@probitas> dockhorn@probitas.cs.utas.edu.au  
(Patrick Dockhorn) writes:
> I provide an algorithm that converts two arbitrary
> text strings into another - sounds strange ? It is.

Damn!  That's neat- and, curiously, I was thinking of
writing something similar.  Good to see I'm not the only
crazy person here. :-)

Thanks for an incredibly cool bit of code to mess with! 

ab
From: thomas@cogsci.ed.ac.uk (Thomas Plass)
Newsgroups: comp.lang.postscript
Subject: printing with gswin
Date: 18 Nov 92 14:24:52 GMT
Reply-To: thomas@uk.ac.ed.cogsci
Distribution: comp.lang.postscript
Organization: Centre for Cognitive Science, University of Edinburgh

Hi,

I saw some dicussion involving the MS Windows Ghostscript, so maybe
this is the place to ask...

When interacting with gs I frequently want to print out the result.
However, after selecting my printer as the device and executing the
code, the only way to start printing is actually to send an
end-of-file to gs.  This does indeed start printing (after a printer
selection dialog) but at the same time kills my session.

Any way to print and continue using the current gs session?

Ta,

th.
--
Thomas Plass                                    
             ARPA:  thomas%cogsci.ed.ac.uk@nsfnet-relay.ac.uk
            JANET:  thomas@uk.ac.ed.cogsci                   
Newsgroups: comp.lang.postscript
From: mcover@magnus.acs.ohio-state.edu (Mark Coverdill)
Subject: Reading external data files
Reply-To: markc+@osu.edu
Organization: The Ohio State University
Date: Mon, 23 Nov 1992 18:26:15 GMT

I would like to generate a Postscript form letter and then merge data
into the letter from an external data file.  The letter would continue
to print as long as new data remains to be read.  The data would
consist of an address block 35 charaters wide by 8 lines deep. There
would be no control codes delimiting each record.

This seems possible using readstring or readline but not being an
expert I could use all the examples, tips and techniques I can get.
Thanks.
-- 
Mark Coverdill                                 The Ohio State University
Internet: markc+@osu.edu                              Columbus, Ohio
From: rickcl@pogo.wv.tek.com (Rick Clements)
Newsgroups: comp.lang.postscript
Subject: Re: TSR program to print text file to postscript printer ??
Date: 20 Nov 92 01:35:56 GMT
Organization: Tektronix, Inc., Wilsonville,  OR.


In article <9232414.238@mulga.cs.mu.OZ.AU> minh@lis.rch.unimelb.edu.au (Minh Tran) writes:

>	Does any one know if there is a DOS TSR program which can print 
>	text file to postscript printer ??

Do you need a TSR?  I download a PostScript program into the printer.  This
has the advantage of not conflicting with any other TSR's.  The program I use
is VERY dumb.  But, it works for me.
-- 
Rick Clements (RickCl@pogo.WV.TEK.COM)
Newsgroups: comp.lang.postscript
From: bvs@BitBlocks.com (Bakul Shah)
Subject: Does anyone have a program to make a PostScript file DSC compliant?
Organization: Bit Blocks, Inc.
Date: Tue, 17 Nov 1992 19:53:39 GMT

The idea is to take an arbitrary PostScript file, run it through
a program and produce a DSC 3.0 compliant PS file that prints the
same.  You can sort of do this with a PostScript previewer by
producing a bitmap for every page but that is not what I am
looking for.  The DSC compliant output should print the same as
the original at *any* resolution.  Can this be done?  Has anyone
done this?  I am envisioning something like Glen Reid's
distillery program.

Well, okay, not just *any* arbitrary PS file, something that does
`showpage' in a loop would be impossible to transform this way,
but the vast majority of PS files aren't like that.  If I can
transform PS files produced by old/non-compliant versions of
dvi*ps, framemaker, etc. I will be more than happy.

Thanks!

Bakul Shah <bvs@BitBlocks.com>
Newsgroups: comp.lang.postscript
From: phalsema@x102a.ess.harris.com (halsema pb 64533)
Subject: Re: Postscript to HPGL, WPG, PCX
Date: Tue, 17 Nov 1992 13:52:52 GMT
X-Newsreader: Tin 1.1 PL4
Organization: Harris ESS, Melbourne, Fla.

dwk@naucse.cse.nau.edu (Dave Knapik) writes:
: Here is my problem.
: I have a drawing on the macintosh done in Minicad+ which can output
: as an Adobe postscript file. (Basically print to a postscript file)
: 
: I would like to read this file into Draft Choice for the IBM which
: can inport file types such as HPGL (most perfered) WPG, PCX and a
: few other formats.

Someone in our office just went through a process to end up with a PCX file.
He used Ghostscript's pstoppm script and them pbmplus' ppmtopcx program with
very good results.  I believe he had to change the pstoppm from 72 dbi to
300 dpi.  If you need more info, let me know and I'll track down the exact 
details.  Best to email me with questions as I'll be out of town for a few
days and posts may expire before I get back to them.

   ---Paul
_______________________________________________________________   _________
Paul Halsema               \\      AT&T: (407) 729-3536          |  _   _  |
Harris Corp., GASD          \\ INTERNET:                         |_| |_| | |
MS 102-4827 PO Box 94000     \\   phalsema@x102a.ess.harris.com  |_/\/\/\|_|
Melbourne, FL 32902           \\                                 | |_| |_| |
_______________________________________________________________  |_________|
From: ajb@winton.uucp (Arthur J. Butler)
Newsgroups: comp.lang.postscript
Subject: looking for shaded triangle draw code ..
Date: 18 Nov 1992 01:51:42 GMT
Organization: Worcester Polytechnic Institute, MA
Distribution: world
NNTP-Posting-Host: winton.wpi.edu

Hi. I'm in need of a routine to draw a shaded triangle in PostScript.
I have a similar routine for raster graphics which does scanline
conversion and interpolates the color at a each pixel based on the
nodal values of color.

Any pointers to implimentations of such a routine or ideas on how to
impliment it would be appreciated.  It would be easy enough to convert
the scanline code to PostScript, but I am not sure how to access each
pixel in a device independent manner and still allow the figure to be
scaled later by a user when he includes it in another document.

Thanks.

Arthur
ajb@winton.wpi.edu
From: cca09@keele.ac.uk (Norman Bridges)
Newsgroups: comp.lang.postscript
Subject: Transcript
Date: 16 Nov 92 15:19:34 GMT
Organization: Keele University, England
X-Newsreader: TIN [version 1.1 PL6]

Hi

We currently use what I believe is v2.2 of the Transcript software on
a Sequent Symmetry platform, having purchased a single CPU source
license some time back. Then we dealt directly with Adobe in
Calfornia.

My question is, where do I now go to order an upgrade - is there
a UK contact? We are interested in both a newer version if one exists,
and in an upgrade from single CPU to mulitple CPUs on different
platforms.

As a supplementary question, would any one care to offer a summary of
features added to more recent versions, or some pointers to any
suitable transcript clones out there?


Thanks in advance.

--
Norman Bridges

email cca09@keele.ac.uk  ||  tel (0782) 583073

Keele University::Computer Centre::Keele::Newcastle,Staffs::ST5 5BG::UK
From: pao@norbert.mitre.org (Lucy Y. Pao)
Newsgroups: comp.lang.postscript
Subject: Problems printing Encapusulated PostScript files
Date: 17 Nov 92 14:38:29 GMT
Organization: Research Computer Facility, MITRE Corporation, Bedford, MA


We are having problems getting Encapsulated PostScript (epsf)
files within another document to print out properly.   The parts
of the document containing the epsf files appear fine when viewed
with the GhostScript interpreter.  But when printed out, the epsf
files are altered.

The specific parts that get altered are these carat (^) symbols
that appear over other math symbols.  In the laser printout, the
carat symbols have been turned into larger V's with serifs.

The files that we are having problems with were originally created
in MacDraw Pro on a MacIntosh and the variables with the carat
symbols were created in Equation Editor and pasted into the
MacDraw Pro documents.  The MacDraw Pro files were then saved as
epsf files and ported over to a network of SparcStations.  Then
these files were included into LaTeX documents using the epsf
style file.  When LaTeXed and converted to PostScript files
(with `dvips'), the figures originally created in MacDraw appear
fine with the ghostscript interpreter.  But the laser printer
output corrupts the carat symbols to larger V's with serifs.

Any suggestions on how to get the laser printout to come out properly?

Thanks.

--Lucy Pao
Newsgroups: comp.lang.postscript
From: jgm@cs.brown.edu (Jonathan Monsarrat)
Subject: How to switch paper trays?
Organization: Brown University Department of Computer Science
Date: Thu, 19 Nov 1992 21:58:24 GMT


I'm posting this for a friend. --Jon

------------------------------------------------------------
Hello netters (or should I say nutters???  :-)

I am having trouble posting to this group and so Jonathan Monsarrat has
been kind enough to post this article on behalf of myself.  Please address
any replies to pjc@melb.bull.oz.au, not to the poster.

I am trying to develop some postscript code that will control which of
two paper trays the next page will be printed from.  Unfortunately, I
do not have access to such a printer to test my code and the one
person I know who does have access seems to be unavailable at the
moment.

I have defined the following functions in my prolog:

/BinT {statusdict begin 0 setpapertray end} def
/BinB {statusdict begin 1 setpapertray end} def

Before each StartPage sequence, I call one of the above functions to
set the desired paper tray.  E.g.

BinT
StartPage

My contact, as mentioned above, did get to try it once and said that
it didn't seem to work before he became unavailable, so I have the
following questions:

1. I suspect that different printers may number their paper trays
   differently (i.e. 0 and 1 or 1 and 2).  Is this the case and, if
   so, what printers use what numbers?  Is there a way of querying the
   printer about its paper trays?

2. Is my usage of the setpapertray command correct?

I would appreciate any and all information relating to this topic - would
you please email me at pjc@melb.bull.oz.au and I will arrange to have the
results posted if there is any interest.

Thanks in advance!

Blueskies from down-under,
Paul

| Paul Carapetis, Software Advisor (Unix, DOS, C)|   Phone: 61 3 2464944     |
| Internet: pjc@melb.bull.oz.au            | There are only two experiences  |
| #define STD_DISCLAIMER _my_opinion_only  | in life: successes and lessons! |
Newsgroups: comp.lang.postscript
From: zzang@stat.ufl.edu (zzang)
Subject: VM questions in Blue Book
Originator: zzang@manta
Organization: University of Florida
Distribution: usa
Date: Sun, 22 Nov 92 02:31:26 GMT

Hello,
I am reading the Blue Book, and I like
it very much. but it is hard for me
to understand the virtual memory.
what is the virtual memory, is it
something about the disk spaces used
by the program to extend the RAM
capability?

here is the example from the book:
(Copyright by Adobe)

1:
/localdict 1 dict def
/sampleproc
  { localdict begin
      /localvariable 6 def
    end
  } def

2:
/sampleproc
  { 1 dict begin	%this allocates new VM each time
    /localvariable 6 def
    end
  } def	


the book says the 2nd procedure will use more memory.
but they look the same to me, I am totally confused.
could someone explain this.

Thanks very much in advance!

-- 
Zhuo Zang[~{j0WA~}]
Department of Statistics
University of Florida            Email: zzang@stat.ufl.edu
From: ward@stokes.ae.utexas.edu (Steve Ward)
Newsgroups: comp.lang.postscript
Subject: PCL5->PostScript
Date: 20 Nov 92 14:33:19 GMT
Distribution: comp.lang.postscript
Organization: CFD Lab, Dept ASE-EM, University of Texas at Austin

Howdy,
  Can anyone tell me where to ftp code for a DOS machine
to convert HP's PCL5 into PostScript (if it exists)?

Thanks a bunch,
Steve Ward
ward@cfdlab.ae.utexas.edu
Newsgroups: comp.lang.postscript
From: rcd@raven.eklektix.com (Dick Dunn)
Subject: Re: Postscript Font Scaling & Reduction
Organization: eklektix - Boulder, Colorado
Date: Thu, 19 Nov 1992 16:15:08 GMT

clewis@ferret.ocunix.on.ca (Chris Lewis) writes:
>delahunt@adobe.com (Jim DeLaHunt) writes:
[metal type designs varied with size; phototypesetters linear]
>>PostScript technology preserved this linear scaling.  The glyph outline
>>is described in bezier curves, and the PostScript interpreter scales the
>>outline linearly to the desired size...
...
>I was under the impression that the "hints" allow the font machinery
>to do adjustments based on target point size.  From my experiments, linear
>font scaling doesn't look that great.

No, the hints are intended to help based on device resolution--they tell
the font-scaling code how to behave when the characters get small relative
to device resolution.  Examples of the hints:
	- "Flex" says "mash this curve flat if the "flex height" (roughly,
	  the deviation from a straight line) is too small relative to the
	  device pixel size.
	- "Stem width" hints say that when the size gets small enough that
	  a one-pixel difference in line width is noticeable, certain
	  widths should be made equal.
	- "Alignment zones" describe how to adjust horizontal segments so
	  those which should be at the same height actually are, when you
	  get down to where a one-pixel difference matters.
The point, again, is that they're all related to device resolution--they
kick in at 600 dpi at half the point size they do at 300.  So they don't
provide any help with the changes that should happen due to how our eyes
perceive the characters (i.e., changes based on actual size, irrespec-
tive of device resolution).

However, there are other effects that enter into apparent differences.  For
example, the rule for what pixels to turn on says "any pixel that a stroke
passes through.  This inherently darkens characters somewhat at small reso-
lutions.  (It's possible to compensate for this somewhat, but if the
correct width of a stroke is 0.5 pixel, your only choices are to make it
twice as wide as it should be or discard it and let the stroke break up.)
-- 
Dick Dunn    rcd@raven.eklektix.com   -or-   raven!rcd    Boulder, Colorado
	...Simpler is better.
Newsgroups: comp.lang.postscript,comp.text.frame