Converting .doc to .txt in Linux

2008-09-04 Thread patrick . waldo
Hi Everyone, I had previously asked a similar question, http://groups.google.com/group/comp.lang.python/browse_thread/thread/2953d6d5d8836c4b/9dc901da63d8d059?lnk=gstq=convert+doc+txt#9dc901da63d8d059 but at that point I was using Windows and now I am using Linux. Basically, I have some .doc

Re: Converting .doc to .txt in Linux

2008-09-04 Thread Chris Rebert
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

Re: Converting .doc to .txt in Linux

2008-09-04 Thread Tommy Nordgren
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=gstq=convert+doc+txt#9dc901da63d8d059 but at that point I was using Windows

Re: Converting .doc to .txt in Linux

2008-09-04 Thread William Purcell
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

Re: Converting .doc to .txt in Linux

2008-09-04 Thread Cameron Simpson
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=gstq=convert+doc+txt#9dc901da63d8d059 | | but at that point I was using Windows

Re: Converting .doc to .txt in Linux

2008-09-04 Thread Carl Banks
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 Windows and