Page 1 of 1

Automating conversion of RTF files to Unicode using WordPad?

Posted: Tue Jun 28, 2011 6:04 am
by dfhtextpipe
Suppose I have a large number (e.g. 66) of RTF files in the same folder, and I wish to automate their conversion from RTF to Unicode.

Is it feasible to use TextPipe to call WordPad to open each file in turn and save as Unicode?

Normally when this step is performed manually, Wordpad gives a popup dialog to warn the user that formating will be lost.
See attached image.

David

Re: Automating conversion of RTF files to Unicode using Word

Posted: Tue Jun 28, 2011 5:44 pm
by DataMystic Support
Why not use Filters\Convert\Word documents to text ?

Just check the Unicode output option.

Re: Automating conversion of RTF files to Unicode using Word

Posted: Wed Jun 29, 2011 6:05 pm
by dfhtextpipe
Dear Simon,

Thanks for the suggestion, but I have only TextPipe Standard and that filter is listed in Help as

Found under Filters\Convert (Pro version only)

despite the fact that it is not greyed out in the All Available Filters panel.

Is this another instance where the help file is "telling porkies" ?

David

Re: Automating conversion of RTF files to Unicode using Word

Posted: Wed Jun 29, 2011 6:25 pm
by dfhtextpipe
The Help file states also,
This filter requires Microsoft Word 98 or higher to be installed. If you wish to convert documents other than the default .DOC files, you may also need to install Word's conversion filters. If Word cannot be started automatically TextPipe will prompt you to start it manually before continuing.
Before trying TextPipe, I just examined what Word 2007 does when saving as Plain Text. I selected Unicode as the Encoding.

When Insert line breaks is ticked, lines are wrapped to the [default] margin, but tabs are preserved. Happy.
When Insert line breaks is unticked, lines are not wrapped, but tabs are replaced by a single space! Unhappy.

There is nothing in Word 2007 to suggest that tabs should be affected like this. Most annoying.

David

Re: Automating conversion of RTF files to Unicode using Word

Posted: Wed Jun 29, 2011 6:31 pm
by dfhtextpipe
The TextPipe help file was correct - it's only in Pro.

So why is this filter not greyed out?

David

Re: Automating conversion of RTF files to Unicode using Word

Posted: Fri Jul 01, 2011 9:30 am
by DataMystic Support
Hi David,

I will migrate the Convert Word/Excel/PDF filters to the Standard version and update the docy.

Re: Automating conversion of RTF files to Unicode using Word

Posted: Sat Jul 02, 2011 2:31 am
by dfhtextpipe
Excellent.

I look forward to getting the new release when it comes.

David