Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (5) </ [1] 2 3 4 5 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Viewing M$ word in 0.9.3< Next Oldest | Next Newest >
nucpc Offline





Group: Members
Posts: 89
Joined: Dec. 2003
Posted: Feb. 03 2005,20:04 QUOTE

Congratulations on 0.9.3, beautiful work.

I don't know if its just the documents I'm viewing (which should be
fairly demanding) but,

antiword -p a4 filename > /tmp/temp.ps
gvu /tmp/temp.ps

is giving some great results and is a gift to script...
(doesn't often like direct `piping'  thus the need for tmp)
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Feb. 05 2005,05:57 QUOTE

Funny that you mention this.  Great minds think alike. My thoughts were to create a short shell script that does something like this:

Code Sample
#!/bin/bash
#
#  wordview   Rev0 2/5/05
#  originally submitted by cbagger01 from the DSL forum
#
antiword -p letter "$*" > /tmp/"$*".ps
gvu /tmp/"$*".ps
rm /tmp/"$*".ps
exit



save the script as wordview  and then do a "chmod 755 wordview" to make it executable.

and then associate the *.doc extension to run "wordview" in the emelfm file manager.

So then all you need to do is double-click on the Word document and up pops the nice formatted postscript conversion of your document for viewing or printing.

Give it a try.  Maybe it is worth adding in a future version of DSL.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Feb. 05 2005,17:56 QUOTE

FYI, around 0.9.0 build we tried to eliminate Xpdf by using a technique very similar to the above suggestion. But it was dropped because of gvu rendering ability of some postscript files.
Back to top
Profile PM WEB 
nucpc Offline





Group: Members
Posts: 89
Joined: Dec. 2003
Posted: Feb. 06 2005,17:12 QUOTE

Hi Cbagger, great to be in good company.

Robert, I finally got the script to fall over (a little bit) on one document when it got confused
around an included image (where upon it just produced a few blank pages before returning
text) but apart from that I've not hit big trouble (with -p a4 postscript output).

Accepting it might never be clean enough for DSL: antiword + gvu is however definitely
beating wvHtml + dillo, or previously, wvLaTeX + latex2rtf + Ted or any other combinations
I've tried. Perhaps still worth consideration??
Back to top
Profile PM 
nucpc Offline





Group: Members
Posts: 89
Joined: Dec. 2003
Posted: Feb. 07 2005,11:00 QUOTE

Hi again CB, Robert,
CB - I've just noticed that in the `word processor' posts from a while back you'd
already mentioned antiword and (oh yep) gv in almost the same sentence....
hmmm, beginning to get the feeling I'm a few steps behind folk....
I'll try to stay a bit more up to date in future. Cheers.
Back to top
Profile PM 
23 replies since Feb. 03 2005,20:04 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (5) </ [1] 2 3 4 5 >/
reply to topic new topic new poll
Quick Reply: Viewing M$ word in 0.9.3

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code