🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.misc
Article #652

Re: Editing '.ps' files?

#652
From: Dave Griffiths
Date: Tue, 04 Aug 1992 05:59
35 lines
2323 bytes
In article <1992Jul31.053336.6399@csus.edu> eps@cs.sfsu.edu writes:
>In article <1992Jul30.113455.13997@aplcen.apl.jhu.edu>
>	tim@aplcen.apl.jhu.edu (Tim Pugh) writes:
>>Please podon my ignorance but it would seem that PostScript is a great
>>output file format but not readily available as an input format.  While
>>I am able to open a '.ps' file in Edit, all I see is "raw" PostScript".
>>WriteNow will not even show that a '.ps' file exists in it's open panel.
>>While Preview is great for display of a '.ps' file, how does one convert
>>it to an input format such as RTF or ASCII (without the PS commands)?
>
>The general answer is, "you can't."  PostScript is an honest-to-
>goodness programming language, and the ONLY way to make sense of
>arbitrary PostScript is to execute it.  Except for rigid subsets
>(such as Adobe Illustrator format) that are basically data
>structures suitably contrived to pass for valid PostScript, it's
>impossible to do what you're asking for any but the most trivial
>files (which generally means no reencodings, no kerning, etc.).
>Sometimes you can get away with redefining a whole bunch of
>operators (ref. distill) and get something meaningful, especially
>if whatever generated the PostScript in the first place wasn't
>deliberately mean-spirited.
>

While it may be true that "we can't", surely it is true that NeXT *can*?
In other words, it must be possible to add some functionality to the
window server to say "give me the text in this rectangle"? (Maybe in
RTF. Lets forget about the graphics for the time being.) Since the window
server is interpreting the postscript, *it* must know where it is placing
the text and what font is being used?

Given the pervasiveness of postscript on the NeXT and the usefulness of
being able to extract RTF from postscript for cutting and pasting
purposes, I'm really surprised that no such ability exists.

Dave Griffiths
Technical Details
Message-ID: <1992Aug4.055940.899@prim>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!unido!prim!dave
References: <1992Jul30.113455.13997@aplcen.apl.jhu.edu> <1992Jul31.053336.6399@csus.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!unido!prim!dave
From: prim!dave@germany.eu.net (Dave Griffiths)
Newsgroups: comp.sys.next.misc
Subject: Re: Editing '.ps' files?
Message-ID: <1992Aug4.055940.899@prim>
Date: 4 Aug 92 05:59:40 GMT
References: <1992Jul30.113455.13997@aplcen.apl.jhu.edu> <1992Jul31.053336.6399@csus.edu>
Organization: Primitive Software Ltd.
Lines: 35