Skip to Main Content
Linux Desktop Hacks
book

Linux Desktop Hacks

by Nicholas Petreley, Jono Bacon
March 2005
Beginner to intermediate content levelBeginner to intermediate
342 pages
15h 55m
English
O'Reilly Media, Inc.
Content preview from Linux Desktop Hacks
168
|
Chapter 7, Terminal Empowerment
#52 View Microsoft Word Documents in a Terminal
HACK
HACK
#52
View Microsoft Word Documents in a
Terminal Hack #52
Avoid the load time of OpenOffice.org and view Microsoft Word documents in
a terminal.
The simplest way to view a Microsoft Word document in a terminal is to use
the
catdoc command. But catdoc turns a Word document to plain text,
which does little or nothing to preserve the format of the original Word doc-
ument. Obviously, it’s nearly impossible to view a Word document in a ter-
minal exactly the way it would look in Word. Heck, competing word
processors have trouble importing Word documents without upsetting the
format, and they have the advantage of being a graphical desktop applica-
tion. But this hack is still a vast improvement over the popular catdoc pro-
gram, because it preserves at least some of the formatting of the original
document by converting the Word document to HTML.
You’ll need both the wvWare set of file conversion utilities and the hybrid
web browser/pager w3m, along with a little scripting magic to view Word
documents in a terminal or console while retaining at least some of the origi-
nal formatting.
Figure 7-2. Transparent and tinted urxvt terminal
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux Server Hacks, Volume Two

Linux Server Hacks, Volume Two

William von Hagen, Brian K. Jones
Introducing Linux Distros

Introducing Linux Distros

Jose Dieguez Castro

Publisher Resources

ISBN: 0596009119Supplemental ContentCatalog PageErrata