On Tue, Nov 07, 2000 at 02:07:42PM -0100, Dirk Ruediger wrote:
Hi all!
On Tue, 07 Nov 2000, Jan Houtsma wrote:
On Tue, Nov 07, 2000 at 12:13:23AM +0100, Martin Schweizer wrote:
Hello
How can I see the above files with mutt(1.0.1i) on a FreeBSD-Box (4.0) without
StarOffice?
If you don't mind using X-programs, but like me only dont want to start
this beast StartOffice you can try AbiWord for .doc files and
(under gnome) gnumeric for xls files. Works great for me.
For me too (despite of missing table support in Abiword).
For text only i use wvHtml for .doc files. I don't have anything for xls
that can display on text only terminals.
XLS:
http://www.xlhtml.org/
Office filters:
http://arturo.directmail.org/filtersweb/
Word processors:
http://www.w3.org/Tools/Word_proc_filters.html
Converters in general:
http://directory.google.com/Top/Computers/Software/Internet/Authoring/Converters/
Ciao for now, Dirk
This script can be used for viewing a bunch of well known file types.
The script looks for an X environment and launches either a graphical
program or an ascii oriented program.
It looks at the extension and its magic number (in that order) to
determine the file type. Its by far complete but can be extended as
needed.
I am using this script almost everywhere for viewing files so also in mutt.
The script uses /bin/zsh, but /bin/bash should work as well.
Usage: pitview [-dtH] filename [ filename filename ... ]
or: pitview [-dtH] url
-d = dump (implies -t)
-t = text mode
-H = you'r looking at it :-)
for example 'pitview memo.doc'
'pitview students.xls'
'pitview www.mutt.org'
'pitview RobbieWilliams_KylieMinogue-Kids.mp3'
...
e.g. .urlview: COMMAND pitview %s
e.g. mailcap: text/html; pitview %s; test=RunningX
text/html; pitview %s; nametemplate=%s.html
application/msword; pitview %s; test=RunningX
application/msword; pitview -d %s; copiousoutput
application/msexcel; pitview -d %s; copiousoutput
...
Just wanted to share with the group as someone might find it useful (or not).
jan
--
pgp: http:://www.houtsma.net/~jan/openpgp.asc
___ ___ ___
/ // // / Jan H. Houtsma
/ // // / Comeniushof 92
/ // // /1216 HH Hilversum
___ / _ _ / Netherlands
/ / / // // /
/ /__/ // // / http://www.houtsma.net
///__//__/[EMAIL PROTECTED]
#!/bin/zsh
#
SCRIPTNAME=${0##*/}
typeset Help="# View files of different types inside or outside X
#
# Usage: $SCRIPTNAME [-dtH] filename [ filename filename ... ]
#or: $SCRIPTNAME [-dtH] url
#
# -d = dump (implies -t)
# -t = text mode
# -H = you'r looking at it :-)
#
# Author: Jan Houtsma
#
# This script can be used for viewing a bunch of well known file types.
# The script looks for an X environment and launches either a graphical
# program or an ascii oriented program.
# It looks at the extension and its magic number (in that order) to
# determine the file type."
#
# Note that this works under the Linux/Gnome/Enlightenment environment.
# Some programs mentioned below might need to be additionally installed.
#
# Needed programs to view various types files:
# RunningXto determine if X windows can be opened
# w3m htmlAscii
# netscapehtmlX11
# AbiWord M$ word X11
# wvHtml M$ word Ascii
# gnumericM$ xls X11
# xlHtml M$ xls Ascii
# gv postscript X11
# acroreadpdf X11
# ee gif, jpeg, tiff X11
# rpm rpm Ascii
# esdplay wav, au Ascii
# xmmsmp3 X11
# mpg123 mp3 Ascii
#
TMP=$HOME/tmp
h=$TMP/$SCRIPTNAME.$$.html
e=$TMP/$SCRIPTNAME.error
function mylynx
{
if ((dump))
then
#lynx -dump $1
w3m -dump -T text/html $1
else
w3m -T text/html $1
fi
}
function view_html
{
if [ -f $1 ]
then
# construct a valid local url (file://...)
d=`dirname $1`
f=${1##*/}
cd $d
p=`pwd`
cd - /dev/null
f="file://$p/$f"
else
# if not a local filename it must be an url...
f=$1
fi
if ((!text)) RunningX 2/dev/null
then
if [ -L $HOME/.netscape/lock ]
then
netscape -remote "openURL($f)"
else
netscape $f
fi
else
mylynx $f
fi
}
function view_mp3
{
if ((!text)) RunningX 2/dev/null
then
xmms $1
else