特殊:Badtitle/NS100:EvinceMozilla:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
无编辑摘要
Wikibot留言 | 贡献
无编辑摘要
第36行: 第36行:
repeat noisy swallow(win) fill: xpdf -g +9000+9000 "$file"
repeat noisy swallow(win) fill: xpdf -g +9000+9000 "$file"
repeat noisy swallow(gv) fill: gv -safer -quiet -antialias -geometry +9000+9000 "$file"
repeat noisy swallow(gv) fill: gv -safer -quiet -antialias -geometry +9000+9000 "$file"
application/x-postscript: ps: PostScript file
application/x-postscript: ps: PostScript file
application/postscript: ps: PostScript file
application/postscript: ps: PostScript file

2007年12月6日 (四) 10:30的版本

{{#ifexist: :EvinceMozilla/zh | | {{#ifexist: EvinceMozilla/zh | | {{#ifeq: {{#titleparts:EvinceMozilla|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:EvinceMozilla|1|-1|}} | zh | | }}

Evince is a GTK+ PDF and PS viewer. Using mozplugger you can embed it into Mozilla and/or Firefox. First make sure you have Evince and mozplugger installed, otherwise install with:

sudo apt-get install evince mozplugger

Now edit /etc/mozpluggerrc.

gksudo gedit /etc/mozpluggerrc

Look for these lines:

application/pdf: pdf: PDF file
application/x-pdf: pdf: PDF file
text/pdf: pdf: PDF file
text/x-pdf: pdf: PDF file

and these lines:

application/x-postscript: ps: PostScript file
application/postscript: ps: PostScript file

then add the following line below them:

repeat noisy swallow(evince) fill: evince "$file"

Example:

application/pdf: pdf: PDF file
application/x-pdf: pdf: PDF file
text/pdf: pdf: PDF file
text/x-pdf: pdf: PDF file
	repeat noisy swallow(evince) fill: evince "$file"
	repeat swallow(acrobatreader) fill: acroread -geometry +9000+9000 +useFrontEndProgram -tempFileTitle acrobatreader "$file"
	repeat noisy swallow(win) fill: xpdf -g +9000+9000 "$file"
	repeat noisy swallow(gv) fill: gv -safer -quiet -antialias -geometry +9000+9000 "$file"

application/x-postscript: ps: PostScript file
application/postscript: ps: PostScript file
	repeat noisy swallow(evince) fill: evince "$file"
	repeat noisy swallow(gv) fill: gv -safer -quiet -antialias -geometry +9000+9000 "$file"
	repeat swallow(Pageview) fill: pageview "$file"

Troubleshooting

Check if MozPlugger is correctly installed in Firefox. Type about:plugins as address in Firefox. It shows a list of all installed plugins and MozPlugger 1.6.0 must be there with a list of extensions. If that's not the case: Remove the automatic action for PDF files in Firefox: Edit -> Preferences -> Downloads Remove also potential pdf plugin(s): Edit -> Preferences -> Download, then click on the plugins button and disable the pdf extension You need also to remove the plugins: Close Firefox The plugins are in that directory /usr/lib/mozilla-firefox/plugins/. then

rm ~/.mozilla/firefox/pluginreg.dat

Finally reinstall MozPlugger Now you should see the Plugin correctly installed with about:plugins. Credits: Saik0 & BlogRabais


You can get a Chinese translation of this article here.