Automating conversion of RTF files to Unicode using WordPad?

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

DFH
Posts: 636
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Automating conversion of RTF files to Unicode using WordPad?

Postby DFH » Tue Jun 28, 2011 6:04 am

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
Attachments
WordPadSaveAsDialog.png
Wordpad popup dialog
WordPadSaveAsDialog.png (34.19 KiB) Viewed 3508 times

User avatar
DataMystic Support
Site Admin
Posts: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Automating conversion of RTF files to Unicode using Word

Postby DataMystic Support » Tue Jun 28, 2011 5:44 pm

Why not use Filters\Convert\Word documents to text ?

Just check the Unicode output option.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

DFH
Posts: 636
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: Automating conversion of RTF files to Unicode using Word

Postby DFH » Wed Jun 29, 2011 6:05 pm

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

DFH
Posts: 636
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: Automating conversion of RTF files to Unicode using Word

Postby DFH » Wed Jun 29, 2011 6:25 pm

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

DFH
Posts: 636
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: Automating conversion of RTF files to Unicode using Word

Postby DFH » Wed Jun 29, 2011 6:31 pm

The TextPipe help file was correct - it's only in Pro.

So why is this filter not greyed out?

David
Attachments
TP_std_popup.png
TextPipe Standard popup
TP_std_popup.png (33.74 KiB) Viewed 3498 times

User avatar
DataMystic Support
Site Admin
Posts: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Automating conversion of RTF files to Unicode using Word

Postby DataMystic Support » Fri Jul 01, 2011 9:30 am

Hi David,

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

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

DFH
Posts: 636
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: Automating conversion of RTF files to Unicode using Word

Postby DFH » Sat Jul 02, 2011 2:31 am

Excellent.

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

David


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests