Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Nov 2000 12:31:07 +1100 (EST)
From:      Steve the teco <steve@red.hot.net.au>
To:        Joel Mc Graw <jpmcgraw1@home.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: removing escape chr (printer)
Message-ID:  <Pine.BSF.3.96.1001127122436.1932A-100000@red.hot.net.au>
In-Reply-To: <3A1D3D65.7A93451@home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi All and thanks for the pointers, but I still have a few problems.

my new perl script gets rid of the PCL code but I loose the
FORMAT.(spacing)

I'm using in my script 

s/\033.*?[A-Z]//g;

anybody got a PCL to text or PCL to html program ?


Thanks for all the help to date.


Steve.


On Thu, 23 Nov 2000, Joel Mc Graw wrote:

> Steve the teco wrote:
> > 
> > Hi All,
> > 
> > I have about 200 files to convert to plain text or better still html.
> > 
> > The problem is the text is full of printer codes
> > <SNIP>
> > ^[^[&a8R^[^[&f0S^[^[&a4C^[^[&f0S^[*c2221A^[*c95B^[*c15G^[*c2P^[*c4A^[*c1852B^[*c0P^[*c2221A^[*c4B^[*c0P^[*p+59Y^[*p
> > +200X^[^[(s0p10h0s3b4099TPROJECT
> > COST^[*p+330X^[*p-20Y^[^[(s0p17h0s3b4099T1999^[*p+40Y^[*p-85XActual^[*p-40Y^[*p+70
> > X2000^[*p+40Y^[*p-89XBudget^[*p-40Y^[^[&f0S
> > </SNIP>
> > 
> > Do I need a port or something to clean up this mess.
> > 
> > hope someone can help.
> > 
> > Thanks for your time.
> > 
> > Steve Hutson.
> > 
> 
> Steve,
> 
> These appear to be PCL codes--which is HP's printer control language
> (kinda like PostScript).  Notice that they appear to always begin with
> an escape character and end with a capital letter.
> 
> Using this info, writing a program/script to remove the codes should be
> fairly trivial.
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.1001127122436.1932A-100000>