Python plain text converter?

Jp Calderone exarkun at intarweb.us
Fri Feb 28 07:27:36 CET 2003


On Fri, Feb 28, 2003 at 12:41:27AM -0500, dromedary wrote:
> Does anyone know if Python can strip the nasty formatting codes from
> documents in, say, Word or QPS? I'd like to write a small batch
> processor that will grab a bunch of files and covert them to text only
> format for manipulation using regular expressions. Unfortunately I
> can't figure out how to get rid of the nasty codes (e.g., ?). Any
> assistance appreciated.
> 

  "Python" can't, but you can probably use win32com to get Word to do it for
you.  Assuming you're on Windows, anyway.

  Jp

-- 
   Know what I pray for? The strength to change what I can, the inability to
accept what I can't and the incapacity to tell the difference.    -- Calvin
-- 
 up 19 days, 10:29, 5 users, load average: 0.29, 0.20, 0.15
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20030228/6812e5e1/attachment.pgp>


More information about the Python-list mailing list