Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

View WordPerfect for Windows files in Terminal Apps
I have hundreds of WordPerfect for Windows files with contents that I don't need to edit, but often view. They can be opened with NeoOffice or AbiWord, but both of these are fairly slow when I just want to quickly view a file's contents. So I created a contextual menu item which (in the blink of an eye) opens a Terminal window containing the text of the file. Here's what you need to make it work:
  1. OnMyCommand
  2. wpd2text. Note that they used to have Mac binaries here, but it looks like you will need to compile it yourself now (you'll need the Developer Tools to do that).
  3. Add this to your .bashrc file: function settitle() { echo -ne "\e]2;$@\a\e]1;$@\a"; } (taken from this hint).
Once that's all done, add this command to your OnMyCommand command list. If you want, you can pipe the output to less -- I had done this, but I didn't like the way smart quotes, etc. showed up as highlighted hex codes.

Control-click on a WordPerfect file, go to the OnMyCommand contextual menu, select Preview text of WordPerfect file -- bingo, a quick-and-dirty Terminal window appears with the filename in the title and the text displayed.

[robg adds: I haven't tested this one.]
    •    
  • Currently 3.50 / 5
  You rated: 3 / 5 (4 votes cast)
 
[7,441 views]  

View WordPerfect for Windows files in Terminal | 7 comments | Create New Account
Click here to return to the 'View WordPerfect for Windows files in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
View WordPerfect for Windows files in Terminal
Authored by: donquichote on Aug 28, '06 12:40:41PM

I guess this hint could be useful for me. But I need some help. What do I have to do with wpd2text? Which download-link? How to install it? Thanks!



[ Reply to This | # ]
Re: View WordPerfect for Windows files in Terminal
Authored by: Uncle Asad on Aug 28, '06 04:47:16PM
There's a binary release of wpd2* available for Mac OS X; the 0.8.6 version hasn't been posted, and the older 0.8.5 release is not listed anymore but still available: <http://prdownloads.sourceforge.net/libwpd/libwpd-0.8.5.dmg?download>;

It's an Apple Installer package that will install the wpd2text binary at /opt/wpcnv/bin/wpd2txt

I'll poke the website maintainer again about posting the 0.8.6 package....

Uncle Asad (libwpd for Mac OS X packager)

[ Reply to This | # ]
Re: View WordPerfect for Windows files in Terminal
Authored by: Uncle Asad on Aug 29, '06 12:20:05PM
A bunch of semi-Mac-related Wordperfect tips
Authored by: victory on Aug 29, '06 01:40:57PM
Nice hint!

I won't waste time here trying to describe to others exactly why some businesses/individuals still use a 20+ year old word processing app, but suffice to say that there are a few industries that still regard WP5.1 (for DOS!) as their standard document format. Here are a few random tips for those who still need to work with WP-formatted documents under OSX in some capacity:

- A Spotlight plugin that can look into WP documents. Of course, you'll still need some way (such as the parent hint) to actually view the documents your search has found.

- If you're willing to go through the trouble of running Classic(PPC) or SheepShaver(PPC+Intel), the last version of WordPerfect ever made for the Mac (v3.5.x) is still available as a quasi-legal download on the web, possibly because of its legacy status.

- If you're in a situation where you actually need to run WP5.1 for DOS on your PPC-based Mac, both VirtualPC and the free DOSBOX emulator provide acceptable solutions.

- Here's a good page of info about Wordperfect for DOS. Granted, none of the info is really Mac-specific, but it does outline another method for bringing WP documents into the 21st century -- setting up a legacy WP installation with a Postscript printer driver, capturing the output to a file which is then converted to PDF. (Don't forget that under OSX 10.4, both Preview.app and /usr/bin/pstopdf work with Postscript files)

- AFAIK, only pre-OSX versions of Microsoft Word had an importer plugin to open WordPerfect files. (Am I wrong? It would be great if MS-Word under OSX could open native WP files...)

[ Reply to This | # ]

View WordPerfect for Windows files in Terminal
Authored by: deef on Sep 03, '06 11:57:51AM

Thanks for following up on this for me. Glad to see others are interested in this.



[ Reply to This | # ]
View WordPerfect for Windows files in Terminal
Authored by: deef on Sep 03, '06 12:00:59PM

I have submitted another hint to view WP files in a browser -- it uses wpd2html and maintains much of the original formatting.



[ Reply to This | # ]
View WordPerfect for Windows files in Terminal
Authored by: deef on Sep 03, '06 12:15:39PM

I have submitted a new hint which will open WP files in a web browser -- this will retain much of the original document formatting.



[ Reply to This | # ]