From a72a9463a78650d028b891fe8eb6dcbb093bdee2 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Wed, 18 Sep 2013 01:14:00 +0200 Subject: beta 2013.09.18 01:14 --- scripts/context/lua/mtx-tools.lua | 1 + scripts/context/ruby/base/pdf.rb | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/context/lua/mtx-tools.lua b/scripts/context/lua/mtx-tools.lua index 19b7458a1..a38e9d7e6 100644 --- a/scripts/context/lua/mtx-tools.lua +++ b/scripts/context/lua/mtx-tools.lua @@ -31,6 +31,7 @@ local helpinfo = [[ recurse into subdirecories take pathpart of given pattern set name attributes to full path name + lowercase names glob pattern (default: *) diff --git a/scripts/context/ruby/base/pdf.rb b/scripts/context/ruby/base/pdf.rb index 5aec06fc5..6be0d3f98 100644 --- a/scripts/context/ruby/base/pdf.rb +++ b/scripts/context/ruby/base/pdf.rb @@ -5,16 +5,24 @@ module PDFview @closecalls = Hash.new @allcalls = Hash.new - @method = 'default' # 'xpdf' + # acrobat no longer is a valid default as (1) it keeps crashing with pdfopen due to a dual acrobat/reader install (a side effect + # of the api changing every version, and (2) because there are all these anyoing popups with respect to signed, review, online + # this and that stuff ... hardly useable as fast previewer, and (3) sumatra is faster and nicer and doesn't block (okay, we have to + # get rid of this horrible yellow bg-coloring buts that is doable + + @method = 'sumatra' # 'default' # 'xpdf' @opencalls['default'] = "pdfopen --file" # "pdfopen --back --file" @opencalls['xpdf'] = "xpdfopen" + @opencalls['sumatra'] = 'start "test" sumatrapdf.exe -reuse-instance -bg-color 0xCCCCCC' @closecalls['default'] = "pdfclose --file" @closecalls['xpdf'] = nil + @closecalls['sumatra'] = nil @allcalls['default'] = "pdfclose --all" @allcalls['xpdf'] = nil + @allcalls['sumatra'] = nil def PDFview.setmethod(method) @method = method -- cgit v1.2.3