On Sep 4, 4:18 pm, Tommy Nordgren <[EMAIL PROTECTED]> wrote:
> On Sep 4, 2008, at 9:54 PM, [EMAIL PROTECTED] wrote:
>
>
>
> > Hi Everyone,
>
> > I had previously asked a similar question,
> >http://groups.google.com/group/comp.lang.python/browse_thread/thread/...
>
> > but at that point I was using
On 04Sep2008 12:54, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
| I had previously asked a similar question,
|
http://groups.google.com/group/comp.lang.python/browse_thread/thread/2953d6d5d8836c4b/9dc901da63d8d059?lnk=gst&q=convert+doc+txt#9dc901da63d8d059
|
| but at that point I was using Windo
Here is a function that I have used with wvText to convert .doc files into
text files.
def readdoc(fpath):
tmp = 'tmp_readdoc.txt'
cmd = 'wvText %s %s'%(fpath,tmp)
os.system(cmd)
lines = open(tmp,'r').readlines()
os.unlink(tmp)
return lines
It's not a completely python dep
On Sep 4, 2008, at 9:54 PM, [EMAIL PROTECTED] wrote:
Hi Everyone,
I had previously asked a similar question,
http://groups.google.com/group/comp.lang.python/browse_thread/thread/2953d6d5d8836c4b/9dc901da63d8d059?lnk=gst&q=convert+doc+txt#9dc901da63d8d059
but at that point I was using Windows
I'd recommend using one of the Word->txt converters for Linux and just
running it in a shell script:
* http://wvware.sourceforge.net/
* http://www.winfield.demon.nl/
No compelling reason to use Python in this instance. Right tool for
the right job and all that.
- Chris
On Thu, Sep 4, 2008 at 12:
Hi Everyone,
I had previously asked a similar question,
http://groups.google.com/group/comp.lang.python/browse_thread/thread/2953d6d5d8836c4b/9dc901da63d8d059?lnk=gst&q=convert+doc+txt#9dc901da63d8d059
but at that point I was using Windows and now I am using Linux.
Basically, I have some .doc fil