HDTenEightyP/NetNews huggingface dataset:
From: francis@ircam.fr (Joseph Francis)
Newsgroups: comp.lang.postscript
Subject: Re: (HELP) How does one create a gold tone in PostScript?
Date: 28 Dec 92 18:41:40 GMT
Organization: IRCAM, Paris (France)

In article <1992Dec28.000443.7228@hot.com> Robert_La_Ferla@hot.com writes:
>How does one create a gold tone in PostScript?  I realize that gold is  
>a metal and to create it you need to either render it or use a gold ink  
>but I'm looking for a simpler way to achieve the same effect.  I have  
>some artwork containing gold arcs and lines which will be printed on a  
>Canon CLC color laser printer.  Note that the artwork is pure  
>PostScript and was not created using an application.
>
>Is there a combination of CMYK values that approximates a gold  
>tone?  Is there a sample of a rendered gold image that I could use as  
>a fill pattern?  How would I do the latter?

I think your best bet would be to use a process like one of the
letraset plastic-laser bonding processes to get your gold tone. If you
are printing with a laser printer (even color), you can output the
gold layer artwork first, then melt opaque metallic gold toner into
the black, covering it over, and then run it back through your printer
for the other layers. I can't remember the name of the process (there
are at least three or four in the market in the U.S.), in French or
English, which does it, and you have your choice of a spectrum of 100
Pantone tints, including shiny metallic gold, silver, copper, green,
purple, red, blue, and matte gold, silver ('aluminum'), and a few
other metallics. They work spectacularly well - it really does look
like gold-embossing. If all you are making is a maquette, then this is
perfect. If you want production, you have to print with gold ink,
period, the effect production is too expensive and tiresome to do. If
you want 'gold' look then balance to a pantone gold, choose where you
want a pseudo-highlight to be, and do a fountain fill to from 50/50
tint/black to 100% white at that point, then fill back to 50/50
goldtint/black. It won't look like gold, but like 'metallic yellow'.

-- 
| Le Jojo: Fresh 'n' Clean, speaking out to the way you want to live
| today; American - All American; doing, a bit so, and even more so.
From: glenn@rightbrain.com (Glenn Reid)
Newsgroups: comp.lang.postscript
Subject: Re: how to reverse video of the bitmap image?
Date: 3 Jan 93 20:18:18 GMT
Reply-To: glenn@rightbrain.com
Distribution: usa

zzang writes
> Hello,
> can someone tell me how to reverse video of the image?
> for example,
> 
> /data <....> def
> 8 8 1 [8 0 0 8 0 0] {data} image showpage
> 
> now how to reverse video the above image without
> change the "data"?

The simplest way is to precede the code with this:

{ 1 exch sub } settransfer

You should probably put "gsave" and "grestore" around it to keep this
from affecting the rest of your document.  Also, you might want to
be more careful to concatenate the transfer function with the existing
one, sorta like this (see Green Book for more detail):

[ currenttransfer /exec load 1 /exch load /sub load ] cvx settransfer

Note: this only works with black-and-white images, which your example
happens to be.  There is an analogous approach for colorimage.

--
 Glenn Reid        		NeXTmail: glenn@rightbrain.com
 RightBrain Software		415-326-2974 (NeXTfax 326-2977)
 Palo Alto, California		Electronic Frontier Foundation, member #054
From: rpd@twinkletoes.sbi.com (Richard P. Daley)
Newsgroups: comp.lang.postscript
Subject: Filtering ^D from PS files
Date: 30 Dec 92 03:24:54 GMT
Organization: Fulcrum - Salomon Brothers, NY

From a Postscript neophyte...

I understand that some PC software is in the habit of creating Postscript files
which contain ^D characters, to make printing via serial connections work.
I have various software packages on my SPARCStation which print, fax, and view
Postscript files, and some of these packages don't like finding ^D characters
imbedded in the Postscript.  I'd like to use a simple filter to get rid of the
^D characters.

Can anyone tell me whether it's safe to strip out all ^D characters from an
arbitrary Postscript file?  Is it possible for a Postscript file to have
^D characters that can't be stripped out?  For example, is there a way to
imbed bitmaps or other binary data using non-printable characters?

Should my filter be a little smarter, and only filter out ^D characters that
show up at the beginning of the file?  Is there any software which is
creating Postscript files with a ^D at the end as well?

Thanks for any advice,

Rick Daley
rdaley@sbi.com
Newsgroups: comp.lang.postscript
From: zzang@stat.ufl.edu (zzang)
Subject: how to reverse video of the bitmap image?
Originator: zzang@manta
Organization: University of Florida
Distribution: usa
Date: Sun, 3 Jan 93 14:16:33 GMT

Hello,
can someone tell me how to reverse video of the image?
for example,

/data <....> def
8 8 1 [8 0 0 8 0 0] {data} image showpage

now how to reverse video the above image without
change the "data"?

Thanks very much in advance!

--zhuo

Newsgroups: comp.lang.postscript
From: rossc@extro.ucc.su.OZ.AU (Ross Cartlidge)
Subject: Re: 4 pages on one sheet
Organization: Sydney University Computing Service, Sydney, NSW, Australia
Date: Tue, 22 Dec 1992 05:42:27 GMT

bultman@dgw.rws.nl (G.W.Bultman) writes:

>Hi,

>Does anyone have or know of a utility that can print 4 pages on one sheet?
>There seem to be plenty who print 2 pages on a sheet, but I want 4, preferably
>in a variable font size, to print small ascii text files (such a shell scripts)
>Thanks for any help,
>Gert.

Use my "mutips" package - get it from

ftp.su.oz.au: pub/ps_printing/multi/*

rossc
-- 
________________________________________________________________________
Ross Rodney Cartlidge			    |   rossc@ucc.su.oz.au
Information Services, H08		    |   Phone:     +61 2 6923491
University of Sydney, NSW 2006, Australia   |   FAX:       +61 2 6606557
From: dok_mki@sovb23pki-nbg.philips.de (Manfred Kipp)
Newsgroups: comp.lang.postscript
Subject: Re: MacDraw -> Adobe Illustrator
Date: 22 Dec 92 12:31:04 GMT
Reply-To: dok_mki@pki-nbg.philips.de
Organization: Philips Communication Systems, Nuremberg, Germany


Hi there,
let me do a remark about that stuff.
I did some conversions like sun-FrameMaker(drawings are Postscript, Beziers e.g.) to Mac-FrameMaker.
Then I cut out these drawings, pasted them into MacDrawII and saved MacDraw-PICT-Format.
Using Adobes DrawOver, I returned the Pict-Drawing into Postscript (Illustrator).

The PostScript-Beziers and Handles e.g. were different between original FrameMaker-PostScript-Drawing
and Illustrators DrawOver-PostScript.

This is no 100%-Conversion, think about that!

Greetings, manfred
Newsgroups: comp.lang.postscript
From: byer@adobe.com (Scott Byer)
Subject: Re: Break down drawing larger than pagesize ?
Reply-To: byer@adobe.com (Scott Byer)
Organization: Adobe Systems Incorporated
Date: Tue, 22 Dec 1992 23:45:22 GMT

Bill Lee writes

> Has anybody been able to answer this question in general?

Yes, it can be done.  The limit becomes the amount of RAM in the
PostScript machine (practically).  The routine becomes a prolog
which reads the PostScript to generate the actual image into strings.
It must be careful not to split up tokens at the ends of strings.
You can then follow the rest of the BlueBook example, translating
around and executing all the strings in order.

It won't be any speed daemon, but you'd be suprised at how complex
an image you can just arbitrarily stick the prolog in front of.

--
Scott Byer                             NeXTMail: byer@mv.us.adobe.com
Adobe Systems Incorporated               These are *my* opinions, and  
1585 Charleston Road, P.O. Box 7900        do not necessarily reflect
Mountain View, CA 94039-7900             the opinions of my employer.
---------------------------------------------------------------------
Newsgroups: comp.lang.postscript
From: peter@ferranti.com (peter da silva)
Subject: Re: Break down drawing larger than pagesize ?
Organization: Xenix Support, FICC
Date: Wed, 23 Dec 1992 00:36:55 GMT

In article <1992Dec22.025320.5909@leeweyr.sccsi.com> bill@leeweyr.sccsi.com (Bill Lee) writes:
> I do not believe this can be done in most PostScript interpreters for an
> ARBITRARY image. 

It should be possible for any DSC compliant document, via a preprocessor
that, for each page:

	emits appropriate scale and translate commands for the portion of
	the page required.

	emits the page.

This, of course, increases the size of the document enormously.
-- 
Peter da Silva                                            `-_-'
Ferranti International Controls Corporation                'U` 
Sugar Land, TX  77487-5012 USA
+1 713 274 5180                            "Zure otsoa besarkatu al duzu gaur?"
Newsgroups: comp.lang.postscript
From: jgm@cs.brown.edu (Jonathan Monsarrat)
Subject: Re: Break down drawing larger than pagesize ?
Organization: Brown University Department of Computer Science
Date: Mon, 21 Dec 1992 17:12:03 GMT


>Has anyone ever done a program (be it postscript or a tool creating
>postscript), that can draw on an (infinitely large) virtual page, then
>break it down into an acceptable size (say the printer's default),

Here's a hack that may be of use to you. I've used it to create
posters 18 feet high! :)

Right now it's set to print "normal size" -- just one page.

-Jon


%! Jon Monsarrat   jgm@cs.brown.edu   Brown University %! Obfuscated PostScript
% The "Drawit" routine can be any program. Ignore the complexity of
% what drawit happens to be defined as.
/drawit
{

4 4 scale

(LcHdBidZi_hdQ6[PaVa1b4c6F"J4b/>$O<)(di_zk{:UFfUg;ABF)(2n>]Eh:u?<)(P"M#R\(:$T<)
([gXfSZ]f\\dZbeZeb^fH;`?dR=ZS7)(K P!U!: H<)(9l9cCf:o?$)(7W4]6`:X;=)(U"W#_%:"R-)
(A 5"<&Y%K"F"M,M,S\)i3e.M5F_PZR9>lP-)(wBxEuEs7x;uBq:q<q>hFh7o:=Nj<)(Z#]#b#:$R-)
(m+m+k3S!R+d,;"^<)(GFP\\RamZf;TAP{X{fd<{C7)(4840N2:6N=)([ Z#^&:!c<)(<%?$C$:#8<)
(D!J"L#:!B<)/a{def}def/M{exch}a/S{repeat}a/Q{{40 add}if}a 18{{}forall/R M a/x 2
/y 3/z 5 3{R M mod 1 eq a}S x Q M y Q moveto 57 sub{3{y Q M x Q M 6 2 roll}S
curveto}S z{fill}{stroke}ifelse}S showpage

} bind def

/size 1 def   % change this variable to get larger posters.
              % For example, try numbers 2, 3 and 4.
/inch { 72 mul } def
% This defines the size of the poster. The output will be (size+1)^2
% number of pages, so be wary of printing this out too big. It take a
% long time.

0 1 size 11 17 div mul { /height exch def
        0 1 size 8.5 11 div mul { /width exch def
                  -10.5 inch width mul
                  -16.5 inch height mul translate
                   size size scale drawit
              } for
      } for

Newsgroups: comp.lang.postscript
From: asente@adobe.com (A Usenet Pal)
Subject: Re: XDPS Color Use (once more...) 
Keywords: XDPS setXrgbactual
Organization: Adobe Systems Incorporated
Date: Wed, 23 Dec 1992 02:12:01 GMT

In article <AM39QBM@math.fu-berlin.de> Andre_Beck@irs.inf.tu-dresden.de (Andre Beck) writes:
>Hi PostScript(tm)-Gurus,
>
>after some discussions to the Color use
>of [X]DPS on colormapped displays (instead of truecolor ones) I came up
>with the thought of
>
> red green blue setXrgbactual pop
>
>would do a color cell allocation for me, with red, green, blue beeing
>some floats 0..1 and the popped bool indicates if it was successful.

Yes, that's correct

>I tried this immediately with dpsexec (a neat client that simply sends
>my trash to the server) and was surprised to get a success indicator even
>if I used floats 0..1 for the rgb values, or f.i. ints like 200, 2000,
>66000 ... i got true.

Neither setXrgbactual nor setrgbcolor nor any of its friends do range
checking.  Any value outside of 0..1 is just truncated.  So the color
(100, -10, -1000) is the same as (1, 0, 0) -- red.

>Does this setXrgbactual thingy do some autoscaling ???

No, just truncation.

>Or is it only defined as { pop pop pop true } on my machine's XDPS
>system ? (DEC 5000 Ultrix 4.3)

No, it works.  Try this code

.3 .4 .5 setrgbcolor
0 0 100 100 rectfill		% see blue-gray dithered square
.3 .4 .5 setXrgbactual pop
100 0 100 100 rectfill		% see solid blue-gray square next to it

The operator WILL return false if your colormap is full and it cannot
allocate the cell.

>At the moment methinks the latter is true, because the following code
>to display colormapped images still dithers its output:

In Level 1 DPS systems, actual cells do not affect colorimage rendering.
Level 2 DPS systems, which will be showing up before too long, allow you to
control the rendering much more closely by using indexed color spaces.

__   -paul asente
\/     asente@adobe.com   ...decwrl!adobe!asente   moo-bear@cs.stanford.edu

The most dangerous creation of any society is that man who has
nothing to lose.				-James Baldwin
From: bb@beach.cis.ufl.edu (Brian Bartholomew)
Newsgroups: comp.lang.postscript
Subject: Here's some pre-debugged arithmetic in GAWK for centering eps
Date: 30 Dec 92 14:44:25 GMT
Organization: Univ. of Florida CIS Dept.

#!/usr/local/bin/gawk -f

#
#  centerps - Created 12/31/92 by bb@math.ufl.edu
#
#  Generates code to translate and scale a PostScript program to
#  center it on a field such as a letter-sized page.  May be used to
#  "justify" code within any given rectangle, such as a large field as
#  for tiling.  Assumes a valid bounding box.
#
#  Some typical uses.  Field values default to letter size with 1/2"
#  side and top margins if unspecified.  When specifying use inches.
#
#	centerps < in.ps > bb.ps
#
#	centerps topmargin=2 sidemargin=1 < in.ps > bb.ps
#
#	centerps pagewidth=4 pageheight=4 margin=0 < in.ps | \
#		cat - in.ps > out.ps
#
#	centerps pagewidth=37.5 pageheight=40 margin=1 < in.ps | \
#		cat - in.ps > out.ps
#

/^%%BoundingBox: [-0-9][ -0-9]*/ {

	llx = $2 ; lly = $3 ; urx = $4 ; ury = $5

	if (pagewidth == "") pagewidth = 8.5
	if (pageheight == "") pageheight = 11
	if (margin != "") topmargin = sidemargin = margin
	if (topmargin == "") topmargin = 0.5
	if (sidemargin == "") sidemargin = 0.5

	pagewidth = pagewidth * 72
	pageheight = pageheight * 72
	margin = margin * 72
	topmargin = topmargin * 72
	sidemargin = sidemargin * 72

	desiredwidth = pagewidth - sidemargin - sidemargin
	desiredheight = pageheight - topmargin - topmargin

	currentwidth = urx - llx
	currentheight = ury - lly

	xscalefactor = desiredwidth / currentwidth
	yscalefactor = desiredheight / currentheight

	if (xscalefactor < yscalefactor) {
		scalefactor = xscalefactor
	} else {
		scalefactor = yscalefactor
	}

	shifth = pagewidth/2 - (llx + currentwidth/2) * scalefactor
	shiftv = pageheight/2 - (lly + currentheight/2) * scalefactor

	print "%!"
	print ""
	print "%	          llx: " llx
	print "%	          lly: " lly
	print "%	          urx: " urx
	print "%	          ury: " ury
	print "%	 desiredwidth: " desiredwidth
	print "%	desiredheight: " desiredheight
	print "%	    pagewidth: " pagewidth
	print "%	   pageheight: " pageheight
	print "%	       margin: " margin
	print "%	    topmargin: " topmargin
	print "%	   sidemargin: " sidemargin
	print "%	 currentwidth: " currentwidth
	print "%	currentheight: " currentheight
	print "%	 xscalefactor: " xscalefactor
	print "%	 yscalefactor: " yscalefactor
	print "%	  scalefactor: " scalefactor
	print "%	       shifth: " shifth
	print "%	       shiftv: " shiftv
	print ""
	print shifth " " shiftv " translate"
	print scalefactor " " scalefactor " scale"
	print ""
}
-- 
"Any sufficiently advanced technology is indistinguishable from a rigged demo."
-------------------------------------------------------------------------------
Brian Bartholomew	UUCP:       ...gatech!uflorida!beach.cis.ufl.edu!bb
University of Florida	Internet:   bb@math.ufl.edu
Newsgroups: comp.lang.postscript
From: plph@quip.eecs.umich.edu (MarkMontague)
Subject: Printer fonts - help
Organization: University of Michigan EECS Dept., Ann Arbor, MI
Date: Wed, 30 Dec 1992 03:37:15 GMT


I am posting the following for David Frenkiel.  Please respond to him
via email.

Mark Montague
plph@caen.engin.umich.edu

-----------------------------------------------------------------------------

From: dfl@math.tau.ac.il (David Frenkiel)
Organization: School of Math & CS - Tel Aviv University , Tel Aviv , ISRAEL.

< please post this for me under the subject header "Printer fonts - help" >

Hi

I need to find out whether or not a postscript printer has a certain
font.  In case it doesn't, I use a bitmap version of the font.
Currently, I use a method I saw in the FAQ, which searches for the
font in the FontDirectory, and defines a symbol to be equal either to
the font, or to its bitmap version, according to the result of this
search.  There are two problems with this method:

1. It does not work for printers with disks.
2. Ghostview and ghostscript always fail on FontDirectory searches, so
   I get the default "ugly" font.

If anyone knows how I can accomplish this in a different way, which
bypasses these two problems, I'd appreciate an email response.  
I work on a system with a print spooler, so the printer can't
talk back to me.  Enclosed are the definitions I currently use.

%% condfind uses one argument and returns true if it is a known font 
/condfind { dup FontDirectory exch known } def;
%% altfind uses three arguments, and defines the middle one to be
%% either the top argument, if it is a known font, else the bottom one.
/altfind { condfind {def} {pop exch def } ifelse } def 

and after downloading a bitmap font called, e.g., bitmap100, which
represents Symbol-Bold

/bitmap100 /font100 /Symbol-Bold altfind
font100 findfont ......


		Thanx

			David

--
+-------------------------------------------------------+
|   The white zone is 4 loading and unloading only.     |
| If you want to load or unload, go to the white zone.  |
+-------------------------------------------------------+
     

Newsgroups: comp.lang.postscript
From: tim@maths.tcd.ie (Timothy Murphy)
Subject: Question: anyone seen any nice borders lately?
Summary: Looking for borders to go around page
Keywords: PostScript border
Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
Date: Mon, 28 Dec 1992 17:19:07 GMT

I wonder if there are any sites with nice borders in PS (or EPS)
to go round, eg invitation cards?
I'd be very grateful for any suggestions (perhaps by e-mail).

-- 
Timothy Murphy  
e-mail: tim@maths.tcd.ie
tel: +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
From: cthomas@npal.rn.com
Newsgroups: comp.lang.postscript
Subject: HELP Postscript Interpreter/Compiler
Date: 20 Dec 92 01:16:43 EDT
Organization: PalNet -- Indianapolis, Indiana

Help,
  Is there anyone out there who could give me some information or suggestions
on aquiring or writing a post script compiler/interpreter for IBM DOS 
post script files.  I would like to pull out all the text and any formatting
that I can get out of the file.  I can view the file in a dos text editor 
but I would really like to be able to get the formatted text out.  I've tried
everything short of decyphering the coded commands and trying to write my own 
code to automate it but I'm not very familiar with postscript.  I have a 
program "txt2ps10.com", from a local bulletin board, that will create a 
postscript file from a text file.  I would like to move back the other way.  
Move from post script to text file.  I would rather not reinvent the wheel 
if a tool like this is already available.
...
Suggestions?, comments?, programs?, anything?

Very much appreciated,
"Phil"
Philip Weber
From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
Newsgroups: comp.lang.postscript
Subject: Re: LaserWriter weirdness:  "bind" command illegal?
Date: 22 Dec 1992 05:09:26 GMT
Organization: HST Wide Field/Planetary Camera
Distribution: world
Reply-To: carl@SOL1.GPS.CALTECH.EDU
NNTP-Posting-Host: sol1.gps.caltech.edu

In article <1992Dec22.033349.5292@ll.mit.edu>, black@ll.mit.edu (Jerry Glomph Black) writes:
>We have numerous LaserWriters on our UNIX network, using gatorboxes as
>bridges.  No problems for months.  Recently an OLD, ORIGINAL Apple LaserWriter
>(not PLUS, not IINT, etc.) has rejected most of the postscript stuff I send it,
>with the error something like:

"Something like"?  "SOMETHING LIKE"?  Let me get this straight.  The problem's
not important enough for you to remember the exact error, but you expect help?
What the fuck are they teaching people these days?

>illegal command: bind.  This is megaweird, my 
>suspicion is that somebody downloaded & saved some nasty dictionary crap into
>it, which it has retained.  Is there a way to check, or do a massive reset
>to this beastie?
>
>(Please email guesses to black@LL.MIT.EDU.... Thanks!)

Flame also emailed to the moron in question.
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL

Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
understanding of astronomy is purely at the amateur level (or below).  So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it.  If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.
Newsgroups: comp.lang.postscript
From: cahoon@femto.cs.umn.edu (Forrest Clinton Cahoon)
Subject: problem manipulating binary data in postscript
Organization: University of Minnesota, Minneapolis, CSci dept.
Date: Mon, 28 Dec 1992 17:12:57 GMT

I'm trying to write some postscript which will color a hexagonal grid,
reading the color data from the end of my ps file.  I'm reading one
byte for each hexagon, then doing some bit-twiddling to get values to call
setrgbcolor with before filling the hexagon.

I've got a version using "read" which works, but since "read" treats my
newline characters as valid binary data, it's not entirely
satisfactory.

What I want to use is "readhexstring", but since what this reads in is
treated as a string rather than an integer, I'm having trouble.  I
need to convert my one-byte string into an integer having the same
binary representation.  I don't want "cvi", because this parses a
string which represents an integer to us humans, and puts that value
on the stack -- cvi would read (1) and put the integer value 1 on the
stack, but what I need would take (1) and put the integer value 49 --
the ASCII value of the character 1 -- on the stack.

--
|  Forrest Cahoon      | cahoon@cs.umn.edu |------------------------------|
|  850 21st Ave SE     |-------------------| Only unbalanced people       |
|  Mpls MN  55414-2514 |                   |        can tip the scales... |
From: bass@cs.utk.edu (Vance Bass)
Newsgroups: comp.lang.postscript
Subject: Re: Break down drawing larger than pagesize ?
Date: 21 Dec 1992 16:37:41 GMT
Organization: University of Tennessee, Knoxville - CS Department
NNTP-Posting-Host: duncan.cs.utk.edu

In article <BzIK8M.6yB@newsserver.technet.sg> swispl@solomon.technet.sg (SW International) writes:
>Has anyone ever done a program (be it postscript or a tool creating
>postscript), that can draw on an (infinitely large) virtual page, then
>break it down into an acceptable size (say the printer's default),
>print all pages with special markings on the borders on how to paste
>it back together, and maybe print one more page showing an overview
>of the whole mess?

Although it's not precisely what you request, there is a program in the
Adobe Tutorial/Cookbook ("Blue Book") which takes a PostScript space and
prints it on multiple smaller sheets, suitable for pasting together.

Sounds like you want something generically applicable, and this refers to
a specific page size, but it's not far off, and if you read the book you'll
know how to modify it :-)

Vance
-- 
+----------------------------------------------------------------------+        
Vance Bass			  Reply-to: vrbass@atlvmic1.vnet.ibm.com     
IBM Professional Services	I work for IBM.  My opinions are my own.
Nashville, TN				 The facts speak for themselves.
Newsgroups: comp.lang.postscript