HDTenEightyP/NetNews huggingface dataset:
From: sailer@hpuerca.atl.hp.com (Lee Sailer)
Subject: Re: Advice on accepting/returning objects vs. copies of objects
Date: Sat, 12 Dec 1992 19:57:41 GMT
Distribution: usa
Organization: Hewlett-Packard NARC Atlanta
X-Newsreader: Tin 1.1.3 PL5

Adam Fedor (fedor@hopper.Colorado.EDU) wrote:
: I think I have an answer to this, but since I'm very new to Obj-C, I thought
: I'd ask:
: 
: Say I have an instance of a class List (myList) that stores a 
: bunch of objects.  If some
: client asks for an object and myList returns it, instead of a copy 
: of the object, this leaves open the possibility that the client may 
: change and/or even free the object without myList knowing about - with
: disasterous consequences.

I would distinguish two cases:

1.  You use a List to store some objects of *yours*  that is, you create
them, and you insert them in the list, and so on.  When you ask the List
to return one of them to you, you just get an id, and that is OK.  If
you are foolish enough to free it, and thus confuse your List object,
that's your problem.  After all, its your program.

2.  Some object that provides you services stores a bunch of object id's
in a List object.  Later, according to the services offered, you retrieve
an object from this List.  If you free this object, you are freeing an
object that "belongs" to someone else, which feels bad to me.  Again,
two cases: a)  You promise not to.  b)  You can, and the List object
needs to always check to see if it has a valid object before it frees
it or returns it.

onward...

BTW--what'd you do?

-- 
Lee Sailer

					- Let's leave my employer
					  out of this, OK?
From: brown@vidiot.UUCP (Vidiot)
Newsgroups: comp.lang.postscript
Subject: Re: can I print a mirrored page???
Date: 12 Dec 92 20:33:35 GMT
Reply-To: brown@vidiot.UUCP (Vidiot)
Organization: Vidiot's Hangout

In article <1992Dec11.095754.19047@csd.uch.gr> graphics@selas.iesl.forth.gr (Graphics Team (PIT)) writes:
<
<	I would like to know if it is possible to print a page (text) in
<a mirrored way...(to be read correctly from the opposite side of the paper only)

To get you started, we will assume that the origins aren't screwed up.  We can
flip the output along the X or Y axis to achieve the results.  This example will
flip along the Y axis.  Add these lines after the first line (%!) of the file:

	612 0 translate			% move to right edge of 8.5" paper
	-1 1 scale			% make +X value move left (mirror)

That is all there is to it.  Change the 612 according to your paper size.
-- 
      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: peter@ferranti.com (peter da silva)
Subject: Re: Need ascii to Postscript filter
Organization: Xenix Support, FICC
Date: Mon, 14 Dec 1992 15:35:21 GMT

In article <1992Dec11.170410.1@ducvax.auburn.edu> hank@ducvax.auburn.edu writes:
> Name     pps
> Status   ?
> Targets  UNIX
> Features Designed to be extended into further tools. It
> 	 consists of a front-end that converts the file into
>          generic Postscript. You tack a header onto it that
>          defines the behaviour of tabs, font changes, newlines,
>          formfeeds, and so on.
> Get-from alt.sources and comp.lang.postscript article
>          <1992May13.013042.23844@NeoSoft.com>, posted 13 May 1992.
> --
> Peter da Silva.  <peter@sugar.neosoft.com>.
> NeoSoft Communications Services -- +1 713 684 5900

I just posted an update to alt.sources. Minor bug fix in PREPS, lots of
enhancements to PPS.SH, and a man page.
-- 
%Peter da Silva/77487-5012 USA/+1 713 274 5180/Have you hugged your wolf today?
/L{lineto}def/C{curveto}def/F{0 562 moveto 180 576 324 648 396 736 C 432 736 L
482 670 518 634 612 612 C}def/G{setgray}def .75 G F 612 792 L 0 792 L fill 1 G
324 720 24 0 360 arc fill 0 G 3 setlinewidth F stroke showpage % "Peerless"
From: dsouth@uoft02.utoledo.edu (Dale Southard Jr.)
Newsgroups: comp.lang.postscript
Subject: Re: How to go from "Mac PS" to "Unix PS"
Date: 17 Dec 92 16:45:40 EST
Organization: University of Toledo, Computer Services

In article <1992Dec16.215120.14016@lynx.dac.northeastern.edu>, molinari@ccs.northeastern.edu (Bert Molinari) writes:
> in a similar vein, how do i past the fact that when you create a ps file
> by holding down the 'f' key during printing on the mac, i uses commands
> in the Appledict, which i don't have access to when trying to print from
> unix.  i  make docs on my mac, convert them to postscript by holding 'f'
> when printing, upload them to a sparc here and then try to print them but
> i get offending commands because the printer doesn't have Appledict.


Try either:

	1) Using the K key (which, if memory serves will include the
		apple dict.)

       			or

	2) Switch to system 7 which has a radio button print to a file.
		(and automatically include the dict.)

			or maybe even

	3) Use ResEdit to uncover the "secret" Postscript File
		checkbox in the system 6 laswerwriter driver.
		(If I remember correctly, it is item 23 in the
		print dialog -- just check the id's of all the
		buttons etc and look for the missing number. The
		checkbox itself is hidden in the upper left corner
		of the print dialog.  You will have to find somewhere
		to put the checkbox, but there is some space towards
		the bottom.)  Note that it has been a couple of years
		since I have done this hack, so my memory of the
		exact procedure is somewhat faint (I really should
		write down the things I find while working at 3 am....)

-- 
/* Dale Southard Jr.                                   Sr. Rigger      */
/* Department of Chemistry                            AFF/I   SL/I     */
/* University of Toledo                                  D-11216       */
/* dsouth@uoft02.utoledo.edu -- "Just another skydiving grad student." */
From: pg@sanitas.stortek.com (Paul Gilmartin)
Newsgroups: comp.lang.postscript
Subject: Re: font convertors from adobe to postscript
Date: 15 Dec 92 05:35:40 GMT
Organization: Storage Technology Corp.
X-Newsreader: TIN [version 1.1 PL7]

Ben Goren (AUBXG@ASUACAD.BITNET) wrote:
: Create a new document in your favorite word processor, and put a word
: or two in the font you want to convert, and nothing else. Then, print
: to disk (using that obscure key command I can never remember if you're
    [ ... ]
: bottom). You can then cut an paste to get rid of the extra stuff, and
: do a simple file transfer from Mac to Unix.
: 
: I used this method to get the standard 35 fonts in my copy of ATM
: in a format that Ghostscript would like (on A/UX). It was somewhat
: tedious, but it worked.

By the way, read your license agreement and copyright laws and make sure
you're not violating anyone's intellectual property rights before you
do all of this!
From: przemek@rrdstrad.nist.gov (Przemek Klosowski)
Newsgroups: comp.lang.postscript
Subject: Re: Greek italic
Date: 14 Dec 92 12:46:35 GMT
Organization: U. of Maryland/NIST
In-reply-to: HAC041@DJUKFA11.BITNET's message of 14 Dec 92 09:54:28 GMT

In article <92349.105428HAC041@DJUKFA11.BITNET> HAC041@DJUKFA11.BITNET (Konrad Hinsen) writes:

   Is there a 'standard' way to produce greek italic letters for mathematical
   formulas? The font "Symbol" only has non-italic characters.

I tried a font transformation to skew Symbol fonts and it wasn't too bad (not
true italics of course, but better than nothing) Now if someone could
tell me how to make WordPerfect use such font...

--
			przemek klosowski (przemek@rrdstrad.nist.gov)
			Reactor Division (bldg. 235), E111
			National Institute of Standards and Technology
			Gaithersburg, MD 20899,      USA

			(301) 975 6249
Newsgroups: comp.lang.postscript,misc.forsale.computers.other,sdnet.forsale
From: scotto@ipars.cts.com (Scott O'Connell)
Subject: HP PostScript - C2089A 4-Sale
Organization: Spectrum Data Services - Carlsbad, CA
Date: Tue, 15 Dec 1992 21:55:50 GMT
X-Newsreader: TIN [version 1.1 PL6]


I just upgraded to the HP4 from a HP3.  I was told that I could use my old
HP PostScript cartridge in my new printer.  Well, after selling my HP3 and
getting the HP4 I found out that's not true.

I now have a genuine HP C2089A cartridge for sale.  Make offer.
-- 

Scott O'Connell - N6ZEK                UUCP: {nosc, ucsd}!crash!ipars!scotto
Spectrum Data Services                 ARPA: crash!ipars!scotto@nosc.mil
Carlsbad, CA                           INET: scotto@ipars.cts.com
Newsgroups: comp.lang.postscript
From: peter@ferranti.com (peter da silva)
Subject: Re: How to make fixed width fonts with non-fixed width fonts
Keywords: postscript
Organization: Xenix Support, FICC
Date: Fri, 11 Dec 1992 16:56:03 GMT

In article <mick.724008993@picus> mick@dcs.bbk.ac.uk (Mick Farmer) writes:
> I've found the easiest way to do this is to use kshow.

Not good enough, because words like "summer" come out as:

	*****
     **********
    ***      ***   ****    ***   ****   ***   ***    ***   ***    ******
    ***             ***    ***    *****************************  ***  ***
     ********       ***    ***    ***   ***   ****   ***    ***  ********
	*******     ***    ***    ***   ***   ****   ***    ***  ***
	     ***    ***    ***    ***   ***   ****   ***    ***  ***
    ***      ***    ***    ***    ***   ***   ****   ***    ***  ***   **
     **********      ***   ***    ***   ***   ****   ***    ***   *** ***
	*****         *********  ****  ***** ****** *****  *****   *****

I have a "CWSHOW" routine I was using with mp23. Maybe I can dig it up
and post it. If the character is less then 90% of the spacing, it prints
it, otherwise it scales it to fit in 90% of the intercharacter space.
The result is like the fixed-width "Roman" or "Prestige" fonts in dot
matrix printers.

Let's see...

	/c2s { %% code -- string
	  1 string exch 1 index % string code string
	    0 put % Can't recall order of args ?value string index put?
	} def
	/cwshow { %% spacing text --
	  { % spacing code
	    gsave % We're scaling and showing so SAVE
	      c2s
	      dup stringwidth pop % spacing char width
		dup 3 index 0.9 div gt { % spacing char width
		  2 index 0.9 div % spacing char width maxwidth
		    exch div 1 scale
	        } if
	      show
	    grestore
	    dup 0 rmoveto % move by spacing...
	  } forall pop
	} def

Something like that...
-- 
%Peter da Silva/77487-5012 USA/+1 713 274 5180/Have you hugged your wolf today?
/L{lineto}def/C{curveto}def/F{0 562 moveto 180 576 324 648 396 736 C 432 736 L
482 670 518 634 612 612 C}def/G{setgray}def .75 G F 612 792 L 0 792 L fill 1 G
324 720 24 0 360 arc fill 0 G 3 setlinewidth F stroke showpage % "Peerless"
Newsgroups: comp.lang.postscript
From: steveg@iplmail.orl.mmc.com (Steve Gabrilowitz)
Subject: Re: ehandler.ps
Organization: Martin Marietta
Date: Mon, 14 Dec 1992 19:06:24 GMT

In article <4560@vidiot.UUCP>, brown@vidiot.UUCP (Vidiot) writes:
|> 
|> 
|> I screwed up and lost an enhanced ehandler.ps program.  It was posted to this
|> newsgroup in the recent past.
|> 
|> I would appreciate it if someone would send me a copy.

I didn't see that come by - could some kind soul send me a copy too please?

-- 



I think
I think I am
Therefore I am!
I think...



                            Steve Gabrilowitz
                            Martin Marietta, Orlando Fl.
                            steve-gabrilowitz@orl.mmc.com
                            Fidonet 1:363/1701 (407-380-1701)
From: henry@trilithon.mpk.ca.us (Henry McGilton)
Newsgroups: comp.lang.postscript
Subject: Re: PS Development tools for Macs and PCs
Date: 14 Dec 92 20:06:36 GMT
Organization: Trilithon Software

In article <1992Dec14.113700.18473@husc3.harvard.edu> veloso@husc9.harvard.edu  
(Manuel Veloso) writes:
    *  In article <ByzzMx.EuB@world.std.com> Peter F Davis, pd@world.std.com
    *  writes:

In article <ByzzMx.EuB@world.std.com> Peter F Davis, pd@world.std.com
writes:
	*  >I'm trying to decide between a Mac and a PC as a
	*  >development platform for advanced PostScript
	*  >techniques.  I'm trying to find out which platform
	*  >has better tools for this kind of job.  I know
	*  >there used to be something called Lasertalk for
	*  >debugging with a LaserWriter on Macs.  Is it still
	*  >available?  What printers can be used?  Other info?

	*  >I'd also really like something like a PostScript
	*  >previewer for doing on-screen debugging, etc.  I
	*  >know Freedom-of-Press has a screen preview capability,
	*  >but it's horrendously slow.  I also know Ghostscript
	*  >is available for PCs, but I don't know how fast or
	*  >reliable it is, or how well it emulates Adobe
	*  >PostScript.  Comments?

    *  Well, on the Mac there's:

    *  LaserTalk, which is _still_ in 1.0 release after all these
    *  years, can do any laserwriter that's hooked up via the
    *  printer port (ie:  appletalk-able). It only supports level
    *  1, tho.

The latest issue of the Adobe developer Association newsletter
contains a kind of apologia for the current state of support
for LaserTalk and hints at Great Things To Come in future.

Have you considered using a NeXT with DisplayTalk?  You can get a
pretty good NeXT at prices comparable to Macintosh.  PostScript
is the imaging model for the NeXT screen, and NeXTSTEP Release
3.0 supports full blown PostScript Level Two.  DisplayTalk is
available from Adobe for the NeXT as a PostScript development and
debugging environment.

We developed all the examples (amounting to around 13,000 lines of
PostScript code) for our book (``PostScript by Example'', published
by Addison-Wesley) on NeXTs using just YAP (Yet Another Previewer).
The response is fast and the instant gratification (uh, I mean
turnaround) sure beats messing around on a Mac with a printer.


	........  Henry
Newsgroups: comp.lang.postscript
From: peter@ferranti.com (peter da silva)
Subject: Calligraphic fonts (Re: Wedding Invitations?)
Organization: Xenix Support, FICC
Date: Fri, 11 Dec 1992 17:03:36 GMT

In article <1992Dec10.114759.13576@wisipc.weizmann.ac.il> dov@menora.weizmann.ac.il (Dov Grobgeld) writes:
> I did it. But I'm not a PostScript guru. And the invitation wasn't made
> in PostScript, but by hand. So far I have only been able to digitize
> a very simple calligraphy font, and I did it in MetaFont.

Hmmm. Has anyone got a "free domain" or cheap celtic type PS font (uncial?).
There's Chancery, and lots of gothic types, but I haven't seen uncial
anywhere...
-- 
%Peter da Silva/77487-5012 USA/+1 713 274 5180/Have you hugged your wolf today?
/L{lineto}def/C{curveto}def/F{0 562 moveto 180 576 324 648 396 736 C 432 736 L
482 670 518 634 612 612 C}def/G{setgray}def .75 G F 612 792 L 0 792 L fill 1 G
324 720 24 0 360 arc fill 0 G 3 setlinewidth F stroke showpage % "Peerless"
Newsgroups: comp.lang.postscript
From: tor@geomatic.no (Tor Langballe)
Subject: PostScript Test Files
Organization: Geomatic a.s, Norway.
Date: Wed, 16 Dec 1992 12:12:08 GMT

Hi!

We're making a Postscript Interpreter as part of a new program that will
revolutionize using PostScript. We have not yet made the graphics part of
the program, but would like to run programs that do non-graphical
stuff.

Does anybody have any such postscript-programs?

Thanks,
Tor
O --------------------------O------------------------------------------------O
! Tor Langballe             ! Yesterday I logged out of cyberspace and went  !
! day  : +47 2 50 43 30     ! for a walk. I got run over by a bus. Luckily   !
! nite : +47 2 44 96 39     ! I was in a nested, double log-in session.	     !
! fax  : +47 2 50 05 55     !						     !
! net  : tor@geomatic.no    ! 						     !
! space: Eckersbergsgate 31 !						     !
!        0266 OSLO 2 Norway !						     !
O---------------------------!------------------------------------------------O
--
O --------------------------O------------------------------------------------O
! Tor Langballe             ! Yesterday I logged out of cyberspace and went  !
! day  : +47 2 50 43 30     ! for a walk. I got run over by a bus. Luckily   !
! nite : +47 2 44 96 39     ! I was in a nested, double log-in session.	     !
! fax  : +47 2 50 05 55     !						     !
! net  : tor@geomatic.no    ! 						     !
! space: Eckersbergsgate 31 !						     !
!        0266 OSLO 2 Norway !						     !
O---------------------------!------------------------------------------------O
Newsgroups: comp.lang.postscript
From: jgm@cs.brown.edu (Jonathan Monsarrat)
Subject: Re: Need postscript library callable from C
Organization: Brown University Department of Computer Science
Date: Mon, 14 Dec 1992 19:28:01 GMT

> Is there any public domain postscript library that is callable from C?

It depends what you want to draw. I've written programs both for:

     1. drawing a picture which is to be viewed later
and  2. drawing a picture which is to be viewed while the program's running

I can email sample code to anyone who is interested in this stuff.
Basically, however, it's just a matter of sending PostScript commands
either:

   1. to a file
or 2. to GhostScript, using the "flushpage" command to force the screen
      to be updated

And this means that you have to know PostScript programming.

If there were some library calls, there would be a very simple mapping
to PostScript, so you either learn the library or you learn PostScript.

Learning some simple PostScript is not hard.

-------------------------------
   psline(x1, y1, x2, y2)

   printf("%d %d moveto %d %d lineto stroke\n", x1, y1, x2, y2);

-------------------------------
psopen() would just be either
   1. opening the file
or 2. popen() to GhostScript


-------------------------------
   pstext(x1, y1, str);

Would just be

   printf("Times-Roman findfont 12 scalefont setfont\n");
   printf("%d %d moveto (%s) show\n", x1, y1, str);

------------------------------
   psclose();

Would close the file pointer to either
   1. the file you opened
   2. the popen()

-Jon
%! Jon Monsarrat   jgm@cs.brown.edu   Brown University %! Obfuscated PostScript
/p 4/f{{}forall moveto gsave{dup 32 mod dup 15 mul rotate sub p div 0 rlineto}
forall fill grestore}def 4 scale 1 def(``f`f`f)dup(  )f( i).3 setgray f/p 8 def
1 setgray/h(F!6! 2477!W)def h("4)h(,C)h(6O)h(LT)h(^O)h(tC)h(~6)(7!6!"7#$&6!7 #)
(9~)(""""""""""")(}~)(fTV``Vt)(9!)(e!FR"n&44ED-w@-7&&b)(C2)11{f}repeat showpage
From: simmons@duncan.utkcs (Paul T Simmons ( Doc ))
Newsgroups: comp.lang.postscript
Subject: Printing image multiple times
Date: 18 Dec 92 14:09:02
Organization: My own private world :-)
NNTP-Posting-Host: duncan.cs.utk.edu


	Is there a way for an image to be printed multiple times
on a page without having to insert it multiple times.  To give
you more information.  I'm using colorimage with an embedded
image right after it (ala currentfile) I don't want to have to
put 2 more or the same line with only the coordinates changed
to place the image two more times on the page.
	How can I do this?
	Any and all help appreciated.
simmons@cs.utk.edu
--
-------------------------disclaimer.standard -------------------
simmons@cs.utk.edu               | 
[The Doctor]                     |  "The secret is:  you have to
     ____    ____    ____        |     bang the rocks together!"
    /   /   /   /   /            | 
   /___/   /___/   /___          |

Xref: sparky comp.lang.postscript:5945 comp.periphs.printers:3591
From: yeonwook@hardy.u.washington.edu (Mark Choi)
Newsgroups: comp.lang.postscript,comp.periphs.printers
Subject: NEC SilentWriter 95 ADOBE PFM & FON installation probs
Date: 12 Dec 92 23:55:37 GMT
Article-I.D.: u.1992Dec12.235537.8351
Organization: University of Washington, Seattle

Hi. I'm having some problems installing the PFM & FON files that
come with the NEC Silentwriter 95. First of all, I copied the 
winfonts.exe file to a subdirectory of windows, like they said,
and then proceeded to unpack winfonts by typing winfonts. It
uncompresses fine. However, when I type install, to install the
fonts just uncompressed, I just get a Quit prompt because it says
for me to run it on disk1.

What's going on?


-- 
    .  .      +---------------------------------+
  --|--|      | Mark Yun Wook Choi              |
   /.\ |      | yeonwook@hardy.u.washington.edu |
  --|--|      +---------------------------------+
From: ericm@pike.ee.mcgill.ca (Eric Masson)
Newsgroups: comp.lang.postscript
Subject: Printing Level 2 on a Level 1 Printer
Date: 19 Dec 92 01:19:40 GMT
Organization: McGill University - VLSI Laboratory, Montreal, CANADA.


Hello,

   Lately we have received several postscript level 2 documents with level 2 
specific commands. Unfortunately our lab only owns postscript level 1 printers.
After a quick talk with our local postscript expert (expertise being relative 
to the knowledge of those surrounding the expert), I was under the impression
that it would be impossible to print the files. But a reading of FAQ's 11.32
and 11.33 suggests that there possibly exists a postscript driver capable of 
emulating or discarding level 2 commands from level 2 files so that they may be 
processed by level 1 printers. We use SunOS 4.1.3 and would like to know if 
any such driver exists for our environment. 

   Thank you, 

   Eric Masson
Newsgroups: comp.lang.postscript
From: meyer@geomatic.no (Harald Martens Meyer)
Subject: Justifying strings, how??
Organization: Geomatic a.s, Norway.
Date: Wed, 16 Dec 1992 12:11:25 GMT

I want to be able to justify strings; left, right and middle. How can
I do this when almost all PostScript fonts are non-fixed fonts? How do
I calculate where to put the string???

Anybody have a piece of code, or a general idea of how to do this?

  2
HM
--
Harald Martens Meyer    | Geomatic a.s       |      #_O_#      Powder
Email:meyer@geomatic.no | PO.Box 165 Skoyen  |    (/ _|_ \)     Snow
Tel: +47 2 50 43 30     | N-0212 OSLO 2      |     \/   \/       Is
Tfx: +47 2 50 05 55     | NORWAY             |      \   /  Simply the Best!
From: epc1@quads.uchicago.edu (Merlin)
Subject: Printing images much faster!
Reply-To: epc1@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Mon, 14 Dec 1992 16:14:05 GMT



After converting some X images to Postscript, I sent the Postscript files
to the laser printer.  Each images took more than 10 minutes to print!

As I would like to do this consistently, is there anything I can do
to speed the process of printing these images?  Can I convert
to some other format which would speed up the printing of these images?
Will PS2 do anything for me?  Can I get a faster printer?

What can I do???   I would like to get the printing time to under 2 minutes.

Newsgroups: comp.lang.postscript
From: gvm@pandora.cs.wayne.edu (Gautham)
Subject: Printing Text+Image file
Reply-To: gvm@pandora.cs.wayne.edu (Gautham)
Organization: Wayne State University, Detroit
Date: Tue, 15 Dec 1992 15:42:00 GMT



HELP..

We have this Postscript code, which we use to print
Raw image files <Gray Scale>, we would like to know what modification/ code
we have to do to include a <one line description> of an Image. 


**************************************************************
%!
% The image file is of the format: 128X128

/inch {72 mul } def
/width 128 def
/height 128 def
/finalwidth 3 inch def
/picstr width string def

/dopic
{gsave
	width height 8
	[width 0 0 height neg 0 height]
	{currentfile picstr readhexstring pop}
	image
 grestore
}def
%----------------------------------------------
85 85 translate
finalwidth
finalwidth width div height mul scale


dopic


< 128*128  Hex Values >

showpage

**************************************************************

We tried including the following code with the above

50 650 moveto
(Description) show


We are using "pageview" on SPARC to view the result, and we are
able to view the description + image.  

The problem we face is when we try to print the same, we do not
get any output..!!..

thanks in advance.

gautham gvm@pandora.cs.wayne.edu
sriram ras@pandora.cs.wayne.edu


Newsgroups: comp.lang.postscript