?? netscape
字號:
From: "Craig D. Miller" <Craig.D.Miller@jpl.nasa.gov>Hi,Steps to integrate antiword into NetScape 4.73 (should also work with earlierversions).Programs that launch from netscape must startup an X window to display theiroutput (otherwise output ends up it the bit bucket on your system). I wrote thefollowing script to do this for antiword (and saved it as"/usr/local/bin/xantiword":#!/bin/csh -fsetenv FILE $1setenv NEWFILE ${FILE}.xantiword/usr/local/bin/antiword $FILE >&$NEWFILE/usr/bin/X11/xterm -title "$FILE (MS Word)" -e /usr/bsd/more $NEWFILErm -f $NEWFILEThe above script works, but may not be the best way to do it. If you come upwith a more elegant solution, then please let me know.Next you'll have to tell netscape to execute the "/usr/local/bin/xantiword"script when word documents are clicked on. The easiest way to do this is tochange the /usr/local/lib/netscape/mailcap netscape configuration file. ForSGI version of netscape the following two lines are changed. For other versionsof netscape, one should find similar lines or will need to add the new lines.Old lines (try to run SoftWindows, which is not installed on my system): application/x-dos_ms_word; /usr/local/lib/netscape/swinexec %s winword; \ description="Microsoft Word-for-Windows Document"; application/msword; /usr/local/lib/netscape/swinexec %s winword; \ description="Microsoft Word-for-Windows Document";New lines (for antiword execution), which replace old lines on my system: application/x-dos_ms_word; /usr/local/bin/xantiword %s; \ description="Microsoft Word-for-Windows Document"; application/msword; /usr/local/bin/xantiword %s; \ description="Microsoft Word-for-Windows Document";These changes can also be made via the netscape preferences, underNavigator/Applications, but then the changes would only be for the user thatchanged them. The above change to the mailcap file affects all users, which iswhat you'll usually want. Note that the above file paths may be different for your system. On our linuxbox, a quick search DID NOT show where the mailcap for netscape was stored, butI did find one in /etc/mailcap. I don't have time to experiment to see if thisis the same one that netscape uses.If you have questions then please E-mail me.- Craig===============================================================================From: "Craig D. Miller" <Craig.D.Miller@jpl.nasa.gov>Hi,I just discovered a program called "xless". It would actually be easier to usethan my previous xterm/more solution. To use it change the"/usr/local/bin/xantiword" script to: #!/bin/csh -fsetenv FILE $1/usr/local/bin/antiword $FILE | /usr/freeware/bin/xless \ -title "$FILE (MS Word)" -geometry 100x60Note that one also needs to have xless installed. It can be found on theSGI Freeware Feb 1999 (or later) CD-ROM.- Craig===============================================================================From: Bruno Crochet <bruno.crochet@pse.unige.ch>Hi!Another way to integrate antiword into netscape is to copy the followingline in your .mailcap file :application/msword; ns="%s"\; nf="${ns}".ps\; antiword -pa4 "${ns}" >"${nf}"\; gv "${nf}"\; sleep 2 \; rm "${nf}"Bruno.===============================================================================From: Andoni Zarate <azarate@saincotrafico.com>In order to view the file into netscape you can write the xantiword filelike this: #!/bin/csh -fsetenv FILE $1setenv NEWFILE ${FILE}.xantiword/usr/local/bin/antiword $FILE >&$NEWFILEnetscape -remote 'openFile('$NEWFILE')' Andoni Z醨ate.===============================================================================From: Evelyne Pinter <epinter@ptcs.ch>I include a script for netscape to see the document with ghostview. #!/bin/csh -fsetenv FILE $1setenv NEWFILE ${FILE}.xantiword/usr/local/bin/antiword -pa4 $FILE >&$NEWFILE/usr/X11R6/bin/gv $NEWFILErm -f $NEWFILE In netscape the application must be called like that"/usr/local/bin/xantiword %s" This is just a small change(done by Roger Luechinger) to the xantiwordyou included in the distribution 0.31 Thanks SG E.M.S.P.===============================================================================
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -