HDTenEightyP/NetNews huggingface dataset:
From: brown@vidiot.UUCP (Vidiot)
Newsgroups: comp.lang.postscript
Subject: Re: Changing a file from A size to letter
Date: 21 Jan 93 07:46:52 GMT
Reply-To: brown@vidiot.UUCP (Vidiot)
Organization: Vidiot's Hangout

In article <1993Jan19.160610.2421@walter.cray.com> goldman@orac.cray.com (Goldman of Chaos) writes:
<In article <4781@vidiot.UUCP> brown@vidiot.UUCP (Vidiot) writes:
<>In article <DLA.93Jan13065032@se05.wg2.waii.com> dla@se05.wg2.waii.com (Doug Acker) writes:
<><Our  printer  freaks  out  if it gets a A4 Size request ... so in a PS
<><file,  I  recieved,  I changed the PageSize: to Letter ... but when it
<><prints out it still thinks its A4 .... where else should I look>
<>
<>Reformat the document for letter paper.
<>
<>Once the PostScript file is made, there is nothing you can do, since all of
<>the positioning of text and lines, etc., is based upon the A4 area.
<
<I beg to differ.  If you find where the pre-page processing is done,
<then you can scale the page up/down, and move the page around.  
<
<        5 -5 translate          % added to fit on 8.5 x 11 paper
<        .90 .90 scale           % added to fit on 8.5 x 11 paper
<
<Put in the right place will put it on the paper, although a bit
<smaller than perfect 8.5x11 paper.

In a later posting, I did mention that the A4 output could be scaled equally
in both the X and Y directons.  But, at 100%, A4 output will not fit on letter
paper, unless the margins happen to make the output < 8.5" x 11".

So, 100% = pretty much no, while scaled = pretty much yes.
-- 
      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
Newsgroups: comp.lang.postscript
From: pd@world.std.com (Peter F Davis)
Subject: Re: Display PostScript
Keywords: display postscript, DPS, postscript
Organization: The World Public Access UNIX, Brookline, MA
Date: Sat, 23 Jan 1993 23:56:54 GMT

dayne@cache.declab.usu.edu writes:

>I would like to look into using display postscript on the DEC Station 5000 running Ultrix v.4.2.  I have located the include files and the libraries.  I own a NeXT and am used to making wraps of PostScript code, generating C files to use in my graphics programs.  Is there some way to do the same sort of thing on the DEC Stations.

Display PostScript is part of UWS (ULTRIX Workstation Software) 4.2, and you
should be able to port your code from the NeXT with little or no modification.
I think the only difference is that the NeXT Display PostScript supports the
setalpha/currentalpha operators, which are not part of the standard PostScript
language.

Get some documentation from DEC, and/or pick up a copy of Display PostScript
Programming by David A. Holzgang.  This should get you starting compiling and
building your DPS programs.

-pd
Xref: sparky comp.lang.postscript:6434 comp.periphs.printers:4026 comp.sources.wanted:5797
From: brown@vidiot.UUCP (Vidiot)
Newsgroups: comp.lang.postscript,comp.periphs.printers,comp.sources.wanted
Subject: Re: Postscript to HPGL
Keywords: HPGL postscript plotter
Date: 24 Jan 93 06:28:27 GMT
Reply-To: brown@vidiot.UUCP (Vidiot)
Organization: Vidiot's Hangout

In article <C18FLF.JpG@avalon.nwc.navy.mil> mcclung@archimedes.nwc.navy.mil (Scott McClung) writes:
<Hello, world.  I was hoping someone here could provide me with information
<on converting Postscript to HPGL, on a Sun Sparc 2. (4.1.x)  If you have
<any such information, please E-mail your responses to me.  I will 
<summarize, if there is any need.  Thanks, of course, in advance.

You didn't mention why you would want to do such a thing.  HPGL has nowhere
near the power of PostScript.  There are no fonts, etc.

Personally I believe that trying to put PostScript onto a HPGL device is a
big step backward.  If you have a SS2, you should have a PostScript printer.
-- 
      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
Newsgroups: comp.lang.postscript
From: mfraser@wimsey.bc.ca (Mark Fraser)
Subject: Re: Pacific Data PostScript
Organization: Wimsey Information Services
Date: Mon, 25 Jan 1993 06:22:57 GMT

Of course, the Pacific Page PE in Version 5.0 or later DOES recognize
either a PS or a non-PS data stream heding it's way.  Earlier ones
(prior to last fall, I think) don't do so.....

Cheers
Mark Fraser

Newsgroups: comp.lang.postscript
From: cyoon@utdallas.edu (CHANG K YOON)
Subject: Is there a MS-DOS version of PdB?
Organization: Univ. of Texas at Dallas
Date: Tue, 26 Jan 1993 05:19:34 GMT

The subject line tells it all.  Is there a MS-DOS version of PdB?

-- 
-------------------------------------------------------------------------------
Chang Yoon                            |  "Our children know EVERYTHING, we
cyoon@utdallas.edu                    |   have cable." - Ms. Penbroke, C 'n C
-------------------------------------------------------------------------------
Newsgroups: comp.lang.postscript
From: snyder@voodoo.utcc.utk.edu (kim snyder)
Subject: LaserWriter IIg and Transcript3.0 problems
Followup-To: comp.lang.postscript
Keywords: offending command "setpagedevice"
Organization: University of Tennessee Computing Center
Distribution: na
Date: Thu, 28 Jan 1993 15:28:05 GMT


I'm experiencing problems printing to a LWIIg printer connected 
serially to a Sun Sparc.  Other LWIIg's i've hooked up have not 
had this problem.  

We're using Transcript software, currently version 3.0.

What would you assume about an Apple LaserWriter IIg w/ 2M
of memory that prints one page of "man -t xfig" (a 10-page manual) then barfs with an error (from the log):
 
pstf: mercedes.engr.utk.edu:gonzalez lw start - Wed Jan 20 10:33:16 1993
psdman: mercedes.engr.utk.edu:gonzalez lw start - Wed Jan 20 10:33:16 1993
%%[ Error: undefined; OffendingCommand: setpagedevice ]%%^M
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%^M
pstf: end - Wed Jan 20 10:34:06 1993

hooked onto /dev/ttyb.  9600 baud.  Same TranScript installation
that is on other sparcs with LWIIg hooked serially which works.
 
could this a problem with ROM set 1.0?  How do i find out what
ROM version is in this puppy?  

Also, i'm using a printer description file called APLWIIg.  should
i be using a different one?

Thanks for any help.

Kim Snyder

 
Newsgroups: comp.lang.postscript
From: pd@world.std.com (Peter F Davis)
Subject: Re: floodfill operator
Organization: The World Public Access UNIX, Brookline, MA
Date: Thu, 28 Jan 1993 13:30:34 GMT

rajeev@netcom.com (Rajeev Karunakaran) writes:

>Can anybody tell me why PostScript doesn't have a
>floodfill operator?

Basically, for two reasons:

   1)	PostScript does not have any features that require reading the page
	framebuffer.  You can write to the framebuffer all you want, but you
	can't read it.  This is presumably for portability reasons.

   2)	Flood fill may give radically different results, depending on the
	resolution of the display device.  Regions which are closed on a
	low-res device, such as a display screen, may be open on higher
	resolution laser printers, etc.  Vice is also versa.

-pd


Newsgroups: comp.lang.postscript
From: pd@world.std.com (Peter F Davis)
Subject: Re: Authoritative text on color?
Organization: The World Public Access UNIX, Brookline, MA
Date: Wed, 27 Jan 1993 00:33:16 GMT

chris@chinook.atd.ucar.edu (Chris Webster) writes:

>How is color done in PostScript?  If this is more than a
>3 sentence answer, then what is the authoritatve text on
>color PS?

The authoritative text, for this as for most PostScript issues, is the 
PostScript Language Reference Manual, 2nd Edition, by Adobe Systems Inc.,
published by Addison-Wesley.  For more detail, see also PostScript Screening:
Adobe Accurate Screens, by Peter Fink, published by Adobe Press.  For a more
tutorial (vs. reference) treatment, see PostScript By Example, by McGilton
and Campione, published by Addison-Wesley.
From: bob@comlab.gatech.edu (Bob Baggerman)
Newsgroups: comp.lang.postscript
Subject: Duplex printing
Date: 26 Jan 93 22:39:18 GMT
Organization: GTRI Communications Lab

Greetings PostScript gurus.  I am a relative newcomer to PostScript
programming so this question is probably an easy one.

I have an HP IID laser printer with the HP PostScript cartridge (not the
Plus cartridge).  The HP IID has a duplex mode where it will print on
both sides of the page.  The user guide gives some directions for putting
the printer into duplex mode.  Evidently the "statusdict" dictionary
is pushed onto the dictionary stack with the "statusdict begin" command.
Then duplex mode can be set with the "'boolean' setduplexmode" command
where 'boolean' is true or false.

I've been studying "PostScript by Example" by McGilton and Campione, and
it seems to me that a simple

statusdict begin
true setduplexmode

ought to do the trick.  I've moved these statements around, used 0 and 1 for
false and true, put slashed in front of things but so far no joy.  The 
result is always the same; a bunch of light blinking on the printer, a long
delay, and then....  no printout at all.

Any ideas?  Have I included enough info to troubleshoot this or should I 
post more of the PostScript header stuff?  The file I am playing with is
a pretty simple one generated by pstext with a three page printout.

Thanx in advance,  Bob

-- 
Bob Baggerman                         !  bob.baggerman@gtri.gatech.edu
Communications Laboratory             !  bob@comlab.gatech.edu
Georgia Tech Research Institute       !  qseclrb@prism.gatech.edu
Atlanta, GA  30332  USA               !  404-894-3525
From: churchyh@ccwf.cc.utexas.edu (Henry Churchyard)
Newsgroups: comp.lang.postscript
Subject: Re: Adding fonts to Ghostscript 2.52
Date: 21 Jan 1993 18:49:54 GMT
Organization: The University of Texas at Austin, Austin TX
NNTP-Posting-Host: sneezy.cc.utexas.edu

In article <1jloht$70b@agate.berkeley.edu> colemanr@garnet.berkeley.edu () writes:
>
>1. I read somewhere that putting a command similar to 
>  (c:\\psfonts\\fontfile) run
>at the start of my ghostscript file will load a font stored in "fontfile".
>Is this correct ?

   Yes,but only if "fontfile" is in plaintext (.PFA) format, rather
than in binary (.PFB) format.

>3. Do I have to fiddle with the Fontmap file that comes with Ghostscript,
>   and if so, do I have to recompile Ghostscript (I don't have the source)?

   Actually, this is an _alternative_ to the ()run method, and a
rather better one, since:

        1.You only have to edit one file once.
        2.You can load fonts in .PFB format.

   And no, you don't have to recompile (that's the point of having a
separate configuration file).
--
         --Henry Churchyard     churchyh@ccwf.cc.utexas.edu
From: chris@chinook.atd.ucar.edu (Chris Webster)
Newsgroups: comp.lang.postscript
Subject: Authoritative text on color?
Date: 26 Jan 93 21:56:16 GMT
Reply-To: chris@chinook.atd.ucar.edu
Organization: Research Aviation Facility, NCAR, Boulder, CO

How is color done in PostScript?  If this is more than a
3 sentence answer, then what is the authoritatve text on
color PS?

--Chris
Xref: sparky comp.lang.postscript:6466 comp.periphs.printers:4048 comp.sources.wanted:5819
From: pavlov@niktow.canisius.edu (Greg Pavlov)
Newsgroups: comp.lang.postscript,comp.periphs.printers,comp.sources.wanted
Subject: Re: Postscript to HPGL
Keywords: HPGL postscript plotter
Date: 26 Jan 93 19:47:41 GMT
Followup-To: comp.periphs.printerss,comp.lang.postscript
Organization: Canisius College, Buffalo NY. 14208

In article <4825@vidiot.UUCP>, brown@vidiot.UUCP (Vidiot) writes:
> In article <C18FLF.JpG@avalon.nwc.navy.mil> mcclung@archimedes.nwc.navy.mil (Scott McClung) writes:
> <Hello, world.  I was hoping someone here could provide me with information
> <on converting Postscript to HPGL, on a Sun Sparc 2. (4.1.x) ..... 
> 
> You didn't mention why you would want to do such a thing.  HPGL has nowhere
> near the power of PostScript.  There are no fonts, etc.
> 

  Maybe, for one of a thousand reasons or so, he needs to.....




  greg pavlov
  pavlov@fstrf.org
Newsgroups: comp.lang.postscript
From: jos@bull.nl (Jos Vos)
Subject: Re: Adding fonts to Ghostscript 2.52
Organization: Bull, P.O. Box 22859, NL-1100 DJ Amsterdam, The Netherlands
Date: Sun, 24 Jan 1993 10:03:49 GMT

churchyh@ccwf.cc.utexas.edu (Henry Churchyard) writes:

>In article <1jloht$70b@agate.berkeley.edu> colemanr@garnet.berkeley.edu () writes:

>>3. Do I have to fiddle with the Fontmap file that comes with Ghostscript,
>>   and if so, do I have to recompile Ghostscript (I don't have the source)?

>   Actually, this is an _alternative_ to the ()run method, and a
>rather better one, since:

>        1.You only have to edit one file once.
>        2.You can load fonts in .PFB format.

>   And no, you don't have to recompile (that's the point of having a
>separate configuration file).

A few extra comments on this:

-  You can always add your own fonts at the end of the Fontmap: only the
   LAST appearance of a fontname in the Fontmap file is taken into account
   (this is important in case you want to use official Adobe versions of
   fonts already listed in the default Fontmap file).

-  Because I did't like changing the Fontmap file itself, I made a patch
   to support a Fontmap.local file containing all the fonts available
   on your system and to support a personal Fontmap file, which name can
   be found in the environment variable GS_FONTMAP.
   These 3 Fontmap files now act as if there was one big Fontmap file
   being the concatenation of Fontmap, Fontmap.local and the personal
   Fontmap file (in that order).

-----------START-OF-PATCH------------
*** gs_fonts.ps-	Mon Nov 16 14:28:19 1992
--- gs_fonts.ps	Mon Nov 16 14:34:40 1992
***************
*** 41,47 ****
--- 41,53 ----
       counttomark 3 sub { pop } repeat put
       1 index
     } bind def
+   % Process the standard Ghostscript fontmap.
    (Fontmap) run
+   % Process an optional local Ghostscript fontmap, named Fontmap.local.
+   (Fontmap.local) findlibfile { pop run } { pop } ifelse
+   % Process an optional personal Ghostscript fontmap, which name can be
+   % specified via the GS_FONTMAP environment variable.
+   (GS_FONTMAP) getenv { findlibfile { pop run } { pop } ifelse } if
  end
  pop pop		% pop the mark and the copy of the dictionary
  userdict exch /Fontmap exch put
-----------END-OF-PATCH------------

-- 
--    Jos Vos <jos@bull.nl>   (UUCP: ...!{uunet,mcsun,sun4nl}!nlbull!jos)
--    Bull Nederland NV, Product Support Unix, Amsterdam, The Netherlands
Newsgroups: comp.lang.postscript
From: bill@leeweyr.sccsi.com (Bill Lee)
Subject: Re: Page accounting
Keywords: postscript, page, accounting
Organization: Lee Aerie
Date: Fri, 22 Jan 1993 04:00:36 GMT

In article <86579@ut-emx.uucp> tai@utpapa.ph.utexas.edu (Tai Morris) writes:
>I'm new to this newsgroup so I hope this question hasn't been answered
>too many times already...
>
>I need a program that parses a postscript file to see how many pages will
>be printed. Please don't tell me this is impossible - it's impossible that
>it is impossible because postscript printers know how to parse postscript
>files. Otherwise, the printer could be fooled, too.
>
>Any help would be appreciated.
>
>
>
>-- 
>Tai Morris, tai@utpapa.ph.utexas.edu


O.k., I won't tell you it's impossible. I'll just tell you you have
answered your own question!

In order to determine how many pages an arbitrary PS file will
print, you MUST parse the PS. That's what the PS printers do! And
that is exactly what you have already said.

See....you answered your own question!   8-{)

One solution is to send the file to the printer, count the pieces
of paper it ejects, throw the paper away, and you have the page
count.  8-{)

Seriously........ in order to predict accurately the expected page
count, you will need a PostScript interpreter running on the computer
where you want to perform the prediction. I understand that
ghostscript is a likely candidate. There may be others. I'm sure
you will hear of them.

From the PostScript FAQ:

Subject: 1.2 How can I tell how many pages my document will have? 

    The easiest way to count pages is view your document on-line with a 
    PostScript previewer. Some previewers like Ghostview and GSPreview 
    count the pages for you. (See Section 12, ``PostScript Interpreters 
    and Utilities''.) 

    If your document is generated by a professional program, you should 
    be able to just count the number of ``%%Page:'' comments 
    imbedded in the document. With UNIX you can type 
  
  grep -c %%Page document.ps
  
    to do this counting. (See Section 9, ``Encapsulated PostScript''.) 

    The only completely reliable way to count pages is to ask the 
    printer. PostScript printers maintain a page counter that can be 
    queried before and after the job is printed, and the page count is 
    a simple subtraction. This tends to require rather sophisticated 
    spooling systems and a communications channel that is 
    bidirectional. However, some printers allow you to submit jobs on 
    one port, and issue queries on another. Experts using a level 2 
    printer can use the SerialOff.PS and SerialEHandlder.ps programs to 
    communicate bidirectionally to the printer. 



Regards,

Bill Lee
Newsgroups: comp.lang.postscript
From: ab@nova.cc.purdue.edu (Allen B)
Subject: Re: Is there a PostScript Code Beautifier?
Organization: Purdue University
Date: Tue, 26 Jan 1993 15:01:54 GMT

In article <1993Jan26.030632.20615@csus.edu> eps@futon.SFSU.EDU (Eric P. Scott)  
writes:
> Gee, I always thought the standard answer was, "follow the style
> used in the Green Book."  :-)

Assuming the :-) means what I think it means, yes.  The
Green Book gives some pointers, but I don't think it goes
far enough.  If it did, I don't think I'd see as much ugly
code as I do. 

> [ pointer to Adobe's psformat ]

Again, my answer was more philosophical, I guess.  The
point of a code beautifier is not to straighten up >your<
code, it's to clean up code written by "those idiots".
It's to format inherently bad code.  You shouldn't need to
reformat code you write, right? :-)

The main things that psformat does for you are breaking up
long lines and handling {}s.  You could make emacs do that
if you were good at it.  It doesn't make sure lines end with a
"verb", which I think is important (and tough because
it's semantic).  It doesn't always indent correctly,
even within its limited rules. 

I ran a typical "block-formatted" piece of code (my
encode.ps) through it to double-check these
assertions, and found that it's far better than nothing,
but a long way from doing to PostScript what
pretty-printers for other languages do. 

Additionally, it made one of my obfuscated PostScript
entries (mm.ps) non-functional- proof enough that I
don't want to use it a lot on alien code.  Even trying hard, I
don't usually write textually ugly code (procedurally,
yes!), imagine what those professional obfuscaters
could cook up. :-) 

The problem is a lot harder than it is for languages like C
because we have so little syntax, and because >any< piece
of code could change meaning in another context (if
nothing else, it could be read from the source file as
data).

Am I just griping?  No, I'm glad things like this exist, but
I'm still looking for a >real< solution.

Allen B (Watching with interest)
From: colemanr@garnet.berkeley.edu ()
Newsgroups: comp.lang.postscript
Subject: Adding fonts to Ghostscript 2.52
Date: 21 Jan 1993 08:57:33 GMT
Organization: University of California, Berkeley
NNTP-Posting-Host: garnet.berkeley.edu

I would like to use more/different fonts than those supplied with the
Ghostscript 2.52 distribution.  Can I do this??  If so, how?

1. I read somewhere that putting a command similar to 
  (c:\\psfonts\\fontfile) run
at the start of my ghostscript file will load a font stored in "fontfile".
Is this correct ?

2. I presume that I should purchase "Adobe Type 1" fonts?

3. Do I have to fiddle with the Fontmap file that comes with Ghostscript,
   and if so, do I have to recompile Ghostscript (I don't have the source)?

4. Is there anything else that I should know about doing this?

Any help would be appreciated.
-- Ron

Newsgroups: comp.lang.postscript
Organization: Arizona State University
Date: Monday, 25 Jan 1993 14:50:48 MST
From: Ben Goren <AUBXG@ASUACAD.BITNET>
Newsgroups: comp.lang.postscript
Subject: Re: Unprintable regions - definitive answer sought

The printable region is treated as the initial clipping path; therefore,
a bit of code like

0 0 moveto 72 0 lineto 72 72 lineto 0 72 lineto closepath fill showpage

will, on most printers, generate a rectangle with its upper right corner
one inch from the bottom left edge of the page and the lower left corner
at the edge of the prinable area.

Note that "page" does not allways mean "piece of paper." On a typical
imagesetter, a sheet of letter paper is actually centered on a 12" roll
of paper, and it images all the way to the edges (as the printable area
is the same as the page size in this case). On that particular imagesetter,
it is *not* going to go through all fifty feet of paper just to print on
the edge of the page....

b&
Newsgroups: comp.lang.postscript
From: qb7g6@fel.tno.nl (Maarten Landzaat)
Subject: ghostscript: where to get fonts?
Organization: TNO Physics and Electronics Laboratory
Date: Mon, 25 Jan 1993 12:08:11 GMT

Hi, sorry if this is a FAQ,
but can anybody tell me which fonts I need and where to get them
if I want to start playing with ghostscript on my Atari ST?

Thanks very much,
-- 
Maarten J. Landzaat (analyst/programmer, bass player, Atari/midi freak)
BSO/Aerospace & Systems			Mail: Spuistraat 97
Email: maarten.landzaat@fel.tno.nl	      1012 SV  Amsterdam
Phone: +31 20 6266098			      The Netherlands
Newsgroups: comp.lang.postscript
From: carl@teal.csn.org (Carl Podlogar)
Subject: motif widgets rendered in postscript
Summary: how do you render widgets in postscript (not pixmap)
Keywords: motif widgets postscript
Organization: Colorado SuperNet, Inc.
Date: Tue, 26 Jan 1993 17:24:56 GMT

I need to render Motif widgets in postscript (not pixmap).
Does anybody know of any software that will do this, public
domain or otherwise. A check on ARCHIE proved futile. If no
software exists, does anybody have suggestions on how I
might write my own?
Thanks and have a great day,
Carl
carl@csn.org
From: bultman@dgw.rws.nl (G.W.Bultman)
Newsgroups: comp.lang.postscript
Subject: psmulti & eps files
Date: 26 Jan 1993 02:30:53 -0600
Organization: UTexas Mail-to-News Gateway
NNTP-Posting-Host: cs.utexas.edu

Hi,

I have lots of postscript files generated by UNIRAS (a graphics package).
I'd like to print them several to the page, but psmulti recognises them 
as eps files, and puts them all on page 1 on top of each other.

This is NOT what I want - I'd like every file to be in its own little
frame. 

Can anyone help me?

Thanks,
Gert.

P.S. The file format is as follows:


%!PS-Adobe-2.0 EPSF-1.2

%%Creator: UNIRAS 6V1

%%BoundingBox:0,0,469,721

/m {moveto} def /l {rlineto} def /d {stroke} def 
/c {setrgbcolor} def /g {setgray} def /t {show} def 
.....
initgraphics 20 60 translate    .240   .240 scale 
1 setlinewidth 1 setlinecap 1 setlinejoin gsave 2 w 
 .000  .000  .000 c 1587 1667 m 0 0 l 1586 1667 m 0 0 l 
....................
-1 2 l 0 1 l -4 5 l -1 1 l -5 3 l -7 3 l -4 1 l -3 1 l 
-9 0 l -12 0 l p showpage grestore grestore 


--

    o                                                                o   
  / | \    Gert Bultman <bultman@dgw.rws.nl>   Koningskade 4       / | \  
 o--o--o   Tidal Waters Division               2596 AA The Hague  o--o--o 
  \ | /    Rijkswaterstaat                     The Netherlands     \ | /  
    o                                                                o