HDTenEightyP/NetNews huggingface dataset:
From: gleeson@rook.dec.com (Sue Gleeson)
Newsgroups: comp.lang.postscript
Subject: Re: a2ps problem...
Date: 17 Aug 92 20:10:34 GMT
Distribution: comp.lang.postscript
Organization: Digital Equipment Corporation


In article <1992Aug13.081744.1355@rdg.dec.com>, urban@decum.muh.dec.com (Rob Urban) writes...
>Hi net,
> 
>Has anyone solved the problem of using a2ps on an LN03R (postscript
>printer from DEC)?  The 
>output is always shifted 3/4 to 1" off the top of the page.  I do not
>think this is a problem of
>a2ps because there are other brands of postscript that also get shifted,
>but maybe there is 
>a generic way of talking with both the LN03R and printservers (where the
>output is correct)
>so that both work.  thanks.
> 
>-rob urban, munich

Rob,

This is probably caused by your LN03R printer being set for A4 paper.

Check the switch on the back of the paper.  Note that if you change the
switch, you'll need to power cycle the printer before the change takes
effect.


Sue Gleeson				gleeson@rook.enet.dec.com
PrintServer Systems Engineering
Digital Equipment Corporation
Westford, MA 
Newsgroups: comp.lang.postscript
From: scott@statsci.com (Scott Blachowicz)
Subject: Transcript software versions?
Reply-To: scott@statsci.com
Organization: Statistical Sciences, Inc., Seattle, WA USA
Date: Wed, 19 Aug 1992 20:45:53 GMT

Hi-
   We're running an ancient version of Transcript (vintage 1985 or
thereabouts, I think -- the RCS version in psint.sh says v2.1). At any rate,
this ancient version apparently doesn't grok the %%Begin(End)Setup comments.
This, in turn, has the effect of screwing up the page order reversal of
anything that has such a section (DSC v2.1 and later)--it gets dropped because
psrv doesn't know where to put it. The problem is easily fixed by using recent
software or using a printer that doesn't require the page reversal, as we
normally do, but that's not really the point of my questioning...

   Now, I have application code that generates PostScript output. I can set a
switch that specifies what version of the DSC to conform to, so I can get
around the problem, by setting it to 2.0. What I'm curious about is the time
frames involved with the DSC versions and corresponding Transcript releases.
Does any one have a table of what Transcript release came out when and which
versions of the DSC they purported to understand? As to the DSC/EPSF versions,
I can find this info from documents I have around here:
   PS-Adobe-1.0: 1985/1986 [original Red Book copyright]
   EPSF-1.2: March 1987
   PS-Adobe-2.0: ?????
   PS-Adobe-2.1: January 1989
   EPSF-2.0: January 1989
   PS-Adobe-3.0: 1990 [last copyright on 2nd ed Red Book]
Can others be filled in?

   The reason I'm curious about the dates is to help decide what the default
DSC level should be for this code. If a significant number of people will have
problems with the generated PS code, I may opt for an older version as
default. It may be useful for making recommendations to users based on what
software they are running. If PS-Adobe-2.1 is dated January 1989, is it
reasonable to assume that practically everyone will be able to handle at least
DSC 2.1?

Thanx,
--
Scott Blachowicz    Ph: 206/283-8802x240      USPS:  Statistical Sciences, Inc
                                                      1700 Westlake Ave N #500
scott@statsci.com / uunet!statsci!scott                Seattle, WA USA   98109
..or..     Scott.Blachowicz@seaslug.org
Newsgroups: comp.lang.postscript
From: arorav@bnr.ca (Vikas Arora)
Subject: Looking for a Postscript Generator!!!!! 
Organization: Bell-Northern Research Ltd., Ottawa, Ontario, Canada
Date: Thu, 13 Aug 92 21:12:33 GMT

I am using a language called Tcl/Tk. The language provides a facility to
draw objects on a *canvas* and the objects are line, rectangle, polygon
text and oval but (as of now)does'nt support generation of a postscript file for
printing these objects.
I am looking for some sort of a postscript generator which has a standard
input format of the object definition  and can produce a postscript file.
The object should be definable at a fairly high level so that
I can generate this intermediate representation from Tcl/Tk and pass it on to
postscript generator to get get .ps file.

Any help/suggestions will be highly appreciated.

Thanks,

Vikas
Software Engineering Centre
Newsgroups: comp.lang.postscript
From: cc_paul@rcvie.co.at (Wolf Paul)
Subject: Re: Printing specific pages with GS
Reply-To: cc_paul@rcvie.co.at (Wolf N. Paul)
Organization: Alcatel Austria - Elin Research Center, Vienna
Date: Sat, 15 Aug 1992 12:31:43 GMT

In article <Bszv2G.Fyq@acsu.buffalo.edu> xiaofei@acsu.buffalo.edu (XiaoFei Wang) writes:
>/* From the keyboard of wrp@psl1.gvl.unisys.com (Bill Pringle) */:
>:You can use the pspages program I posted a day or so ago.
>:Just use pspages to extract the pages you want to print, and then
>:send that segment to the printer.
>
>It is impossible to print certain pages from a PostScript file. 
>For example, 
>2 { copypage } repeat 
>will print out two pages. How can you print out the first page and
>leave the second page using your utility ?

That is a nonsense comment. "2 { copypage } repeat" print 2 COPIES of
THE SAME PAGE, not "two pages". "Page" in the context of a PDL like
PostScript refers not to physical sheets of paper or whatever.

If a given page is meant to be printed twice, it will print twice even
when extracted with such a utility. That does not invalidate the
claims or description of such a utility as "extracting certain pages
from a PS document".

-- 
            V              
+-----------------------+  Wolf N. Paul, Computer Center         wnp@rcvie.co.at
|  A  L  C  A  T  E  L  |  Alcatel-Elin Research Center     +43-1-391621-122 (w)
+-----------------------+  Ruthnergasse 1-7                   +43-1-391452 (fax)
      ELIN RESEARCH        A-1210 Vienna-Austria/Europe        +43-1-2246913 (h)
From: rcd@raven.eklektix.com (Dick Dunn)
Newsgroups: comp.lang.postscript
Subject: Re: PostScript coding style question
Summary: not so bad in error-handling cases
Date: 21 Aug 92 16:03:13 GMT
Organization: eklektix - Boulder, Colorado

bradlee@cg-atla.UUCP (Rob Bradlee) writes:
>/utility_procedure {
>	mark
...stuff...
>	{
>	% test was true.  Process the rest of the items on the stack.
>	}
>	{
>	% test failed. cleanup.
>	cleartomark
>	}  ifelse
>} def

>Is the cleartomark a legitimate way to make sure you've left the stack in good
>shape or a cheap trick that absolves you from the effort of thinking?

Glenn Reid took the "cheap trick" position, which I think is true most of
the time.  However, if testing and processing arguments, managing inter-
mediate results, etc., gets complex enough, I think the mark...cleartomark
is cleaner and clearer than a proc which ends something like:
		} {
			pop pop
		} ifelse
		pop
	} {
		exch pop pop
	} ifelse
...as you try to dig your way back and balance the stack at the end.  This
is hardest in a proc which is coping with error situations and trying to
invoke error handlers with the right stack context.
-- 
Dick Dunn    rcd@raven.eklektix.com   -or-   raven!rcd    Boulder, Colorado
				Cats!
From: urban@decum.muh.dec.com (Rob Urban)
Newsgroups: comp.lang.postscript
Subject: a2ps problem...
Date: 13 Aug 92 08:17:44 GMT
Reply-To: urban@decum.muh.dec.com (Rob Urban)
Distribution: comp.lang.postscript
Organization: Digital Equipment Corporation

Hi net,

Has anyone solved the problem of using a2ps on an LN03R (postscript
printer from DEC)?  The 
output is always shifted 3/4 to 1" off the top of the page.  I do not
think this is a problem of
a2ps because there are other brands of postscript that also get shifted,
but maybe there is 
a generic way of talking with both the LN03R and printservers (where the
output is correct)
so that both work.  thanks.

-rob urban, munich
From: bcockburn@acorn.co.uk (Bruce Cockburn)
Newsgroups: comp.lang.postscript
Subject: Re: (29may91) FAQ 1.06: Frequently Asked Questions about PostScript
Date: 23 Aug 92 16:00:49 GMT
Organization: Acorn Computers Ltd, Cambridge, England

People,

  Another thing which may help is if the FAQ list is registered and
cross-posted to news.answers.  There are regular postings of FAQs for most
groups on news.answers, see the informational postings there for the steps
for registration and submission.

  Bruce.

Any views expressed are my own and are not necessarily those     _--_|\ 
of Acorn. Any factual information is given in good faith and    /      \
neither I, nor Acorn can accept liability for loss or damage    \_.--._/
resulting from its use.                                               v 
Newsgroups: comp.lang.postscript
From: qarl@wuecl.wustl.edu (Karl Stiefvater)
Subject: FAQ?
Organization: Washington University, St. Louis MO
Date: Wed, 12 Aug 1992 21:15:51 GMT

Searching the last 200 or so messages, I found 16 message which began
with
	"Sorry if this is a FAQ, but..."

and no FAQ file.  Is there one?

- Karl

Newsgroups: comp.lang.postscript
From: bdb112@rsphy3.anu.edu.au (Boyd Blackwell)
Subject: Level II compression questions
Keywords: ENcode compression Level II source
Reply-To: bdb112@rsphy3.anu.edu.au (Boyd Blackwell)
Organization: Plasma Research Laboratory
Date: Fri, 14 Aug 92 03:04:18 GMT

I have just attempted to convert gnu-compress4.01 to produce compressed 
output suitable for feeding into LZWDecode filter in Level II postscript.  It
works up to the first token length change.  Before beating my haed against the 
wall, I would like to know if anyone already has c code for LZWEncode.

It is like unix compress, BUT

a/ does not start with the magic number and the bit length
b/ DOES start with an explicit table clear  256(10)
c/ appears to change bit length smoothly without a buffer flush
d/ ends with an EOD token (what a good idea!) 257(10)
e/ pushes bits the other way - i.e. the MSBit 
     first (CLEAR is 0x80 0x0.. not 0x00 0x8..)

This is based on the Postscript Language Reference Manual *SECOND* edition 
pp.130 132 - (yes it is worth buying!)

If anyone can correct my interpretation or provide more info, I will post a
corrected article.

Hint:  If you want to test any of these filters, you can let your Laserwriter
IIf or IIg or your Tek Phaser II PXe/i do it for you - they can encode and
decode.  
Here is some smaple  code


%!
%designed as a quick test bdb 6/92
(filter test: ) print
/=print where not {/=print {(               ) cvs print} def 1} if pop % 1 or dict
statusdict begin revision (                           ) 
	printername product
  	print ([) print print (] rev. ) print =print (  ) print
	pagecount =print ( pages ) print
end

(\nLZWEncode ASCII info following this file:\n) print
realtime
(%stdout) (w) file
  /ASCIIHexEncode filter dup
    /LZWEncode filter dup /FILTER exch def
     { FILTER (%stdin) (r) file 256 string readstring 
	{writestring} {writestring closefile closefile 
	 (\nEND: ) print
	 realtime exch sub 1000 div =print ( sec ) print exit} ifelse} loop
-----A---B

% replace the above line (-----A)with your test data line(s) - up to about 20k chars
% the example -----A---B comes from the  Ps Lang. Ref Man (45 45 45 45 45 65...)

Sample run:
===========
% setenv PRINTER scu_colour
% /usr/local/cap/lwpr ~/ps/foo.ps
abInit: [ddp:   4.23, 51], [GW:   4.23, 33] starting
Status: status: idle
status: idle
Sending /users/prl1/bdb112/ps/foo.ps
filter test: Phaser II PXe[Phaser II PXe] rev. 2  103 pages
LZWEncode ASCII info following this file:
800B6050220C0C840A8080>
END: 0.0 sec bdb112@rsphy1>

Note the line 800B.... is the same as p 132. Ps Lang. Ref Man

--
	-Boyd Blackwell
Plasma Research Lab, RSPhysSE, ANU/ GPO Box 4 /Canberra ACT 2601/AUSTRALIA
internet: bdb112@prl1.anu.edu.au
PHONE: +61 62 49 2482 +61 62 51 2605(h) FAX: Boyd Blackwell, PRL +61 62 49 1884
Newsgroups: comp.lang.postscript
From: bruce@tssnext.rmNUG.ORG
Subject: Re: looking for RTF->PostScript
Reply-To:  <bruce@TotSysSoft.com> (Bruce Gingery)
Organization:  Total System Software
Date: Sat, 15 Aug 1992 11:22:36 GMT

mslade@netcom.com (Michael Slade) writes:
: I'm looking for c code that parses MicroSoft's Rich Text Format
: and produces reasonable PostScript.
: A close second would be a good parser for Rich Text Format.
: 
: Thanks in advance for any suggestions.
: 
: -- Michael Slade, Datavision Technologies
 
This is SOP on the NeXT.  Most of the NeXT on-line documentation is 
saved in .rtf Rich-Text-Format, and converted to display postscript
for even to be brought up on-screen.  Whatever displays may be printed
etc.  Not a ``reasonable'' postscript, but an excellent rendering.

I cannot say whether or not ALL of Micky's design criteria are im-
plemented, as I've never seen any documentation on the full specifications
for rtf.


-- 
Bruce Gingery          bruce@TotSysSoft.com        (Total System Software)
InterNet:  Bruce.Gingery@p1.f5.n310.z1.fidonet.org (  Cheyenne, Wyoming )
       or  bruce@brucext.TotSysSoft.com
NeXT-Mail: bruce@tssnext.rmNUG.org  < -or- > bruce@TotSysSoft.com
From: nolan@cg-atla.UUCP (Larry Nolan)
Newsgroups: comp.lang.postscript
Subject: restore and showpage
Date: 17 Aug 92 14:45:17 GMT
Reply-To: nolan@cg-atla.UUCP (Larry Nolan)
Organization: Agfa Compugraphic Division

On page 61 of the second edition of the red book it briefly mentions
(without an explanation) that the page level restore should occur
immediately BEFORE the showpage. Why?

When I do the following with a restore before the showpage I get 
blank output:

	MyDict begin
	/pageVM save def
	792 612 0 0 setpageparams
	(stuff) show
	pageVM restore
	end
	showpage

It seems to have something to to with setpageparams.
Newsgroups: comp.lang.postscript
From: barry@ramsey.cs.laurentian.ca (Barry G. Adams)
Subject: chaos game: Sierpinski Surprise
Keywords: postscript program, chaos, fractals
Organization: Dept. of Computer Science, Laurentian University, Sudbury, ON
Date: Thu, 20 Aug 1992 12:49:23 GMT

Here is an interesting postscript program which generates the
Sierpinski gasket using the chaos game.

------------------------ CUT HERE --------------------------------
%!
% chaos.ps: The chaos game
% Reference: Fractals For the Classroom, by Peitgen, Jurgens and Saupe
% Author: Barry G. Adams (barry@ramsey.cs.laurentian.ca)

% Procedure for plotting a pixel
1 setlinecap
0.2 setlinewidth
/plotpixel { moveto 0.2 0 rlineto stroke} def

% getting random integer array index 0, 1, or 2
/randindex {rand 3 mod} def

% triangle vertices
/xvertices [100 520 310] def
/yvertices [100 100 380] def

% procedure for computing average of two numbers
/avg { add 2 div } def

% Procedure for drawing triangle outline
/triangle {
   newpath
      xvertices 0 get yvertices 0 get moveto
      xvertices 1 get yvertices 1 get lineto
      xvertices 2 get yvertices 2 get lineto 
   closepath
   stroke
} def

% Play the game:
% (1) Initialize a current point
% (2) randomly generate a triangle vertex number (0, 1, 2),
% (3) calculate the midpoint of the line joining this vertex
%     to the current point, plot the midpoint and make it the
%     new current point.
% (4) go to (2)
/playgame {
   /numpoints exch def % get number of points
   % initialize the current point
   /cpx xvertices 0 get xvertices 1 get avg def
   /cpy yvertices 0 get yvertices 2 get avg def
   triangle
   cpx cpy plotpixel
   numpoints {
      /r randindex def
      /cpx xvertices r get cpx avg def
      /cpy yvertices r get cpy avg def 
      cpx cpy plotpixel
   } repeat
} def

/Times-Roman findfont 24 scalefont setfont
100 710 moveto (The Chaos Game: Sierpinski Surprise) show
/Times-Roman findfont 12 scalefont setfont
/str 30 string def

% Play the game with 1000 points
/numpoints 1000 def
gsave
   0 300 translate
   numpoints playgame
   100 300 moveto numpoints str cvs show ( points) show
grestore

% Play the game with 40000 points
/numpoints 40000 def
gsave
   0 0 translate
   numpoints playgame
   100 300 moveto numpoints str cvs show ( points) show
grestore
showpage



Newsgroups: comp.lang.postscript
From: mo@gizmo.bellcore.com (Michael O'Dell)
Subject: ghostview on the Mac???
Keywords: 
 
Reply-To: mo@bellcore.com
Organization: Center for Chaotic Repeatabilty
Distribution: world 
Date: Thu, 20 Aug 92 13:37:05 GMT

is there a version of ghostview that runs on the macintosh?

	-Mike
Newsgroups: comp.lang.postscript
From: jwm@oclc.org (Jeffrey May)
Subject: AT-style keyboard templates
Organization: OCLC Online Computer Library Center, Inc.
X-Newsreader: Tin 1.1 PL3
Date: Wed, 19 Aug 1992 20:24:09 GMT

I am looking for a PostScript utility to produce function key
templates for an AT-style enhanced keyboard (12 function keys across
the top).  Send/post/e-mail pointers or source code.  I have ftp
capability if something is available by anonymous ftp somewhere.

Thanks,
Jeff

-- 
______________________________________________________________________________
 Jeffrey May                                                   jwm@oclc.org
 OCLC - Online Computer Library Center
        Dublin, Ohio          "Heavens they're tasty and expeditious."
From: waltervj@coos.dartmouth.edu (Walter V. Jeffries)
Newsgroups: comp.lang.postscript
Subject: Re: Iron-On Code
Date: 21 Aug 92 04:13:46 GMT
Distribution: na
Organization: Dartmouth College, Hanover, NH


Someone anonamously told me that there were some questions here about
using laser printers for creating iron on transfers for t-shirts and ask
ed if I might add some details.

Basically we have developed (1989) a special line of toner for Canon
based laser printers (ie. Apple, HP, QMS...) that has a special dye
embedded in the toner.  This toner prints black on the page and then
when heated to 400 degrees F the dye is released and if the page is
pressed firmly to a surface containing polyester then the dye will
bond with the polyester molecules.  Because of this chemical bonding
process the resulting image is very permenant.  When properly applied
it will not fade even after repeated hot water bleach washes.

Because this is a dye process, it is limited to t-shirts or surfaces
of a light color.  In a dye process there is color mixing between the
surface and the dye because the dye is not opaque like a silkscreen
pigment.  So, you can't do it on black.  But, it looks wonderful on
white, grey, silver, light red, blue, green, etc.

You can, with special presses, use this same toner to create iron-ons 
for coated ceramic coffee mugs, metal signs, vinyls, PVC, etc.  Materials
that lack polyester will often work, but the colors will be more muted
and not as permenant.  We have made banners on polyester cloth as large
ast 12 feet by 12 feet.

We have created 12 colors at this point and may make additional colors
available in the future.  If you are interested in using this process
yourself drop me a line with your postal address and I can send you
more information.  We also put out a newsletter, The Flash, which has
a column each issue about transfers and we just produced a book, The
Flash Compendium, of the best of the past four and a half years of 
The Flash.  Important reading if you are going to do transfers.

One last note on the transfer process.  It leaves the material feeling
just like it did before transfering.  You can _not_ feel the transfers
because they dye is chemically bonded ith and embedded in the surface
of the material.

Hope that answers some questions.

-Walter
BlackLightning, Riddle Pond Road, West Topsham, VT 05086 USA
Newsgroups: comp.lang.postscript
From: clewis@bwdlh118.bnr.ca (Chris Lewis)
Subject: Re: Font Metric Files + Routines?
Keywords: PFM, font metrics
Organization: Bell Northern Research
Distribution: comp
Date: Thu, 13 Aug 1992 14:56:34 GMT

In article <hess.713705522@swt1> hess@swt1.informatik.uni-hamburg.de (Hauke Hess) writes:
>Hi,
>
>I have to write a PostScript output routine for a X11R5 graphical application.
>In this application there is an extensive use for font metrics as supplied by
>the function XTextWidth(). Sadly enough this information is wrong for PostScript
>fonts rendered by the printer, so I have to write a routine that gets the font
>metrics from the adobe font metric files and supllies its own XTextWidth().

If all you need is the width of the character, there are several utilities
that can retrieve them for you.  One particular example is "psdtwid" in
psroff 3.0.  psdtwid is a program that you download to a printer, and the
printer will spit shars back to the computer (if you're using serial
ports at least) that contain ditroff-width-table format width tables.
This should be scalable/transformable to what you want.  Psroff 3.0 also
has other utilities for parsing these things - a start on what you
may need.

tpscript also has a similar utility (where did you think I got the idea and
some of the code ;-)

Psroff 3.0 also has a program called "showfont" which, when send to the
printer, will print out a nicely formatted table of characters in the font
you request, including font metric information.
From: ad@fermi.wustl.edu (Andrew Davis)
Newsgroups: comp.lang.postscript
Subject: GS for MS-DOS compiled with BGI driver?
Date: 20 Aug 1992 23:50:54 GMT
Organization: Washington University Astrophysics
Distribution: world
NNTP-Posting-Host: fermi.wustl.edu


Could somebody send me (or tell me where to obtain) a version of Ghostscript
2.41 for MS-DOS with the bgi driver compiled in? I've tried compiling using
Borland C++ 2.0, and turbo C, but it doesn't work for me and I'm no expert.
I'd like to use the higher screen resolutions available with the bgi driver.
I don't really care what other devices are compiled in. I have a 386, but
no FP-coprocessor.

Thanks,
Andrew J. Davis
Washington U. Physics
St. Louis MO 63130
ad@cosray.wustl.edu

Newsgroups: comp.lang.postscript
From: xsong@marcus.cs.umn.edu (Xiaohui Carol Song)
Subject: Help needed: extract pages from PS files
Summary: How to extract pages from a PS file?
Keywords: extract pages
Organization: University of Minnesota
Date: Fri, 14 Aug 1992 14:21:08 GMT

Hello net!

I have a big document in postscript format. I only want to print centain
pages of it.  I wonder if there exists a command to extract pages from
a Postscript file? (something similar to dviselect)

Thanks,

Carol Song
xsong@marcus.cs.umn.edu
From: lilleyc@cs.man.ac.uk (Chris Lilley)
Newsgroups: comp.lang.postscript
Subject: Re: ps to eps help
Date: 21 Aug 92 15:51:38 GMT
Organization: Dept Computer Science, University of Manchester, U.K.

In article <1992Aug21.020053.24291@ccu1.aukuni.ac.nz>
bradley@ccu1.aukuni.ac.nz (Chris Bradley) writes: 

>I realise that this is a FAQ and has been dealt with numerous times in this
>group but there does not appear to be a FAQ file. I have a postscript file
>that was generated on a VAX using VAX GKS handlers and wish to view in on a
>Mac. The problem is that the Mac requires a EPS format. I have read the 
>postscript manual and have tried changing the file to what the manual suggested
>but with no luck.

One simple solution would be to regenerate the file using an EPS
workstation type rather than PS.

VAX GKS can produce EPS; however they will not have a preview bitmap.

The relevant GKS workstation types are:

61	Postscript
62	Colour Postscript
65	EPS
66	Colour EPS

Chapter 3 of the PHIGS and GKS device specifics manual goes into some
detail on using Postscript workstation types with GKS.

Of course, this assumes you still have access to the original source
program.

If not, I am sure many others on the net will have explained how to
hack PS to EPS

--
Chris Lilley
---------------------------------------------------------------------------
Technical Author, ITTI Computer Graphics and Visualisation Training Project
Computer Graphics Unit, Manchester Computing Centre, Manchester, UK
Internet:   lilley@cgu.mcc.ac.uk        Janet:   lilley@uk.ac.mcc.cgu
Voice:      +44 (0)61 275 6095          Fax:     +44 (0)61 275 6040
---------------------------------------------------------------------------