mozilla
来自「A free MS Word reader for Linux and RISC」· 代码 · 共 89 行
TXT
89 行
Date: Mon, 11 Nov 2002 11:36:21 +0000From: Cam <camilo@mesias.co.uk>Subject: Re: antiwordHiI have updated the script for the latest Mozilla with plugger, as found in RedHat 8. This makes the default action a very quick text view of a document, much better IMHO than starting ooffice or abiword. If users want to edit the file they can still save as.Here is a slightly improved script for gnome users:#!/bin/bashtmpfile=/tmp/aw$$.txtlastditch=`which vi`editor=${EDITOR:-$lastditch}if [ ! -x $editor ] ; then editor=$lastditchfitmpfile=/tmp/aw$$.txtgtopts="-t antiword-helper --hide-menubar"antiword "$1" > $tmpfilechmod -w $tmpfilegnome-terminal $gtopts -x $editor $tmpfile ; chmod +w $tmpfile ; rm $tmpfileHere is the script for non-gnome users:#!/bin/bashtmpfile=/tmp/aw$$.txtlastditch=`which vi`editor=${EDITOR:-$lastditch}if [ ! -x $editor ] ; then editor=$lastditchfiantiword "$1" > $tmpfilechmod -w $tmpfilexterm -T "antiword-helper" -e $editor $tmpfilechmod +w $tmpfilerm $tmpfileTo use the scripts add an entry into your plugger config file (pluggerrc, for locations check man plugger). Mine is in /home/cxm/.netscape/pluggerrc:The line to add is (it has a leading tab): ignore_errors exits: antiword-helper "$file"Here is my config file after I added the lineapplication/rtf: rtf: Rich Text Formatapplication/x-msword: doc, dot: Microsoft Word Documentapplication/msword: doc, dot: Microsoft Word Document ignore_errors exits: antiword-helper "$file" nokill exits: oowriter "$file" repeat swallow(AbiWord) fill: AbiWord -nosplash -geometry +9000+9000 "$file" >/dev/null 2>/dev/null repeat swallow(PCFileViewer) fill: sdtpcv "$file" repeat swallow(PCFileViewer) fill: /opt/SUNWdtpcv/bin/sdtpcv "$file"Then start Mozilla / Netscape and you should be able to quickly view word docs from the browser and as email attachments.Hope that helps,-Cam
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?