Re: .ps/.eps to .fig conversion?
From: E. Rosten (look_at_my.sig)
Date: 09/01/05
- Previous message: James Kimble: "Re: How to setup X to run with no keyboard attached"
- In reply to: Måns Rullgård: "Re: .ps/.eps to .fig conversion?"
- Next in thread: Måns Rullgård: "Re: .ps/.eps to .fig conversion?"
- Reply: Måns Rullgård: "Re: .ps/.eps to .fig conversion?"
- Reply: Peter T. Breuer: "Re: .ps/.eps to .fig conversion?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 01 Sep 2005 20:30:49 +0100
On Wed, 31 Aug 2005 18:55:46 +0100, Måns Rullgård wrote:
> "E. Rosten" <look@my.sig> writes:
>
>> On Thu, 25 Aug 2005 15:13:15 +0200, Jon Haugsand wrote:
>>
>>> * BigMan@abv.bg
>>>> How do I convert a .ps/eps file to a .fig file?
>>>
>>> Provable impossible in the general case (Gödel and all that). Not
>>> worthwhile I would guess in most cases.
>>
>> Not at all--you could write a postscript interpreter which outputs vector
>> graphics instead of bitmapped ones (ghostscript has a driver interface
>> which supports this). Then, you run the program and get a list of drawing
>> instructions.
>
> In the completely general case this won't do.
Sure it will.
> Postscript is a
> programming language (although with special focus on outputting
> graphics), and the fig format is not.
Indeed. But you run the program and then convert the (graphic) output to a
fig file. This is how ps2pdf works: ps is a programming language, pdf is
not.
> Of course, most postscript
> files simply draw a figure, but they can do a lot more.
Sure, any file i/o or random stuff will be lost, but that instance of the
graphics generated by the program can be saved and edited.
Look at it this way, you can take the bitmapped output and edit it in the
GIMP. Consider just taking the actual vector graphics instructions issued
and editing those in xfig.
-Ed
--
(You can't go wrong with psycho-rats.) (er258)(@)(eng.cam)(.ac.uk)
/d{def}def/f{/Times findfont s scalefont setfont}d/s{10}d/r{roll}d f 5/m
{moveto}d -1 r 230 350 m 0 1 179{1 index show 88 rotate 4 mul 0 rmoveto}
for /s 15 d f pop 240 420 m 0 1 3 { 4 2 1 r sub -1 r show } for showpage
- Previous message: James Kimble: "Re: How to setup X to run with no keyboard attached"
- In reply to: Måns Rullgård: "Re: .ps/.eps to .fig conversion?"
- Next in thread: Måns Rullgård: "Re: .ps/.eps to .fig conversion?"
- Reply: Måns Rullgård: "Re: .ps/.eps to .fig conversion?"
- Reply: Peter T. Breuer: "Re: .ps/.eps to .fig conversion?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|