[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] HPGL to x,y coor. files



To Larry and others interested,
	Thanks for your responce.  After searching the web I found a site
at
http://www.mhri.edu.au/~pdb/dataformats/hpgl/  
which explains the language and plotter commands. The HPGL code I am
working with is defining absolute points and simply connecting points.  I
have
written a perl script to extract all the control points.  I still need to
think of a creative way to remove the important information from these
points(or rather patterns of controls points) with efficient perl code.
The HPGL is defining a data point plot with curve fitting lines
though the points.  All of the plots are scaled differently and the 6
point stars defining the data points are changing sizes.  
Anyway, I am my way to solving the problem.
I do have a couple questions though.
If I am wanting to program in the opposite direction (hpgl creation), are
there example perl
scripts around I could take a lot at?
Can you think of a way I could efficiently search for these stars or other
patterns in the hpgl code?
Do most hp printers except this code?

Thanks alot,
Eric


On Fri, 5 Mar 1999, Larry F. Allen-Tonar wrote:

> Eric,
> 
> You'll need to be more specific.
> HPGL can be fairly involved, with characters,
> encoded polygons, spline curves,
> boxed or rounded line segment connections, etc.
> 
> Do you want to want to output a point-by-point representation of the
> line, just the control points, a stroke representation of characters, etc.?
> 
> Parsing HPGL is certainly within the capabilities of PERL (although
> most folks use "C").
> 
> Eric L Bruner keystroked:
> >        Does anyone know if is it possible to convert HPGL (Hewlett
> >Packard Graphical Layout) files to a spreadsheet of x,y data?
> 
> --
> Regards, Larry F. Allen-Tonar        (larryat@cts.com) +1 760/746-6464 (voice)
>          Principal Designer                              +1 760/746-0766 (FAX,
>          P.O. Box 463072                                         upon request)
>          Escondido, CA  92046-3072
> 
> 
> 


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org