Re: Postscript Parser

Wolfgang Glunz <Wolfgang.Glunz@mchp.siemens.de>
26 Oct 1997 22:14:31 -0500

          From comp.compilers

Related articles
Postscript Parser withers@cs.man.ac.uk (1997-10-17)
Re: Postscript Parser tgl@netcom.com (Tom Lane) (1997-10-19)
Re: Postscript Parser quite@dial.pipex.com (1997-10-19)
Re: Postscript Parser pd@world.std.com (1997-10-21)
Re: Postscript Parser Wolfgang.Glunz@mchp.siemens.de (Wolfgang Glunz) (1997-10-26)
| List of all articles for this month |
From: Wolfgang Glunz <Wolfgang.Glunz@mchp.siemens.de>
Newsgroups: comp.lang.postscript,comp.compilers
Date: 26 Oct 1997 22:14:31 -0500
Organization: Siemens AG
References: 97-10-091 97-10-101
Keywords: parse

Peter Davis wrote:
> [ re recognizing rectangles in Postscript code ]
> The simplest approach would be to create a short PostScript prolog
> which redefines certain operators to test for "rectangle-ness," and
> then writes the appropriate HTML to a file. You would probably want
> to redefine stroke, fill, rectstroke and rectfill.
>
> This will not be completely bullet-proof, but it's simple, and will
> probably cover all the cases you need to worry about.
>




You should take a look at pstoedit which provides a sort of "framework"
for such tasks:


ftp://ftp.x.org/contrib/applications/pstoedit/pstoedit.html
ftp://sunsite.cnlab-switch.ch/mirror/X11/contrib/applications/pstoedit/pstoedit.html


Wolfgang
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.