Re: View .doc & .xls
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 ... ] or: pitview [-dtH] -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 ... ] #or: $SCRIPTNAME [-dtH] # # -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
Re: View .doc & .xls
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 -- Dirk Ruediger, Rostock, Germany Let's not complicate our relationship by trying to communicate with each other.
Re: View .doc & .xls
> How can I see the above files with mutt(1.0.1i) on a FreeBSD-Box (4.0) without > StarOffice? > Thanks in advance. > Martin I remember reading about a program "msword2html" that could convert .doc files to html. -neelakanth
Re: View .doc & .xls
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? > Thanks in advance. > 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. Just that AbiWord doesn't display Word2000 very well yet, but maybe i need to upgrade. For text only i use wvHtml for .doc files. I don't have anything for xls that can display on text only terminals. And if you dont mind spending money you could also have a look at a program called QuickView Plus, which i run at work under solaris. That's really great and supports a lot of M$ files! Dunno if that works for linux though. jan -- pgp: http:://www.houtsma.net/~jan/openpgp.asc ___ ___ ___ / // // / Jan H. Houtsma / // // / Comeniushof 92 / // // /1216 HH Hilversum ___ / _ _ / Netherlands / / / // // / / /__/ // // / http://www.houtsma.net ///__//__/[EMAIL PROTECTED]
Re: View .doc & .xls
On Tue, Nov 07, 2000 at 01:49:18AM +0300, Vitaly A. Repin wrote: > On Tue, Nov 07, 2000 at 12:13:23AM +0100, Martin Schweizer wrote: > > > How can I see the above files with mutt(1.0.1i) on a FreeBSD-Box (4.0) without > > StarOffice? > > Thanks in advance. > > At the first, you should get the program for viewing such files. I can't say >anything about xls files, but there is a program named "catdoc" for viewing doc >files, produced by MS WORD. > > I don't keep in mind the URL of catdoc, but it seems to me, you can find it easily >in the internet. This program was written by Vitus Wagner. catdoc is in the FreeBSD ports collection - /usr/ports/textutils/catdoc/ The current version includes xls2csv and xlsview for viewing Excel spreadsheets - not perfect, but way better than nothing :) G'luck, Peter -- Thit sentence is not self-referential because "thit" is not a word.
Re: View .doc & .xls
Dear Martin This is from the first few lines of a BSD makefile for catdoc. It details the latest version. # New ports collection makefile for: catdoc # Date created:11 November 1997 # Whom:Brion Moss <[EMAIL PROTECTED]> # # $FreeBSD: ports/textproc/catdoc/Makefile,v 1.12 2000/09/28 21:06:59 # nbm Exp $ # PORTNAME= catdoc PORTVERSION=0.91.4 CATEGORIES= textproc MASTER_SITES= ${MASTER_SITE_TEX_CTAN} \ ftp://ftp.ice.ru/pub/vitus/ MASTER_SITE_SUBDIR= support/catdoc Hope this helps Regards, Richard Mahoney On Tue, Nov 07, 2000 at 01:49:18AM +0300, Vitaly A. Repin wrote: > On Tue, Nov 07, 2000 at 12:13:23AM +0100, Martin Schweizer wrote: > > > How can I see the above files with mutt(1.0.1i) on a FreeBSD-Box (4.0) without > > StarOffice? > > Thanks in advance. > > At the first, you should get the program for viewing such files. I can't say >anything about xls files, but there is a program named "catdoc" for viewing doc >files, produced by MS WORD. > > I don't keep in mind the URL of catdoc, but it seems to me, you can find it easily >in the internet. This program was written by Vitus Wagner. > > -- > WBR & WBW, Vitaly. -- == Richard Mahoney/^^^\ Telephone: +64-3-351-5831 78 Jeffreys Rd (| , , |) Christchurch | * | NEW ZEALAND\_-_/ mailto:[EMAIL PROTECTED] --
Re: View .doc & .xls
On Tue, Nov 07, 2000 at 12:13:23AM +0100, Martin Schweizer wrote: > How can I see the above files with mutt(1.0.1i) on a FreeBSD-Box (4.0) without > StarOffice? > Thanks in advance. At the first, you should get the program for viewing such files. I can't say anything about xls files, but there is a program named "catdoc" for viewing doc files, produced by MS WORD. I don't keep in mind the URL of catdoc, but it seems to me, you can find it easily in the internet. This program was written by Vitus Wagner. -- WBR & WBW, Vitaly.
View .doc & .xls
Hello How can I see the above files with mutt(1.0.1i) on a FreeBSD-Box (4.0) without StarOffice? Thanks in advance. -- Martin