From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83208 Path: news.gmane.org!not-for-mail From: Bill Meahan Newsgroups: gmane.comp.tex.context Subject: Re: Overriding pdfview Date: Wed, 26 Jun 2013 11:17:40 -0400 Message-ID: <51CB0614.5030208@meahan.net> References: <51CAF274.9050503@meahan.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1998436188==" X-Trace: ger.gmane.org 1372259886 27611 80.91.229.3 (26 Jun 2013 15:18:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Jun 2013 15:18:06 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 26 17:18:08 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UrrTw-00046Q-Qk for gctc-ntg-context-518@m.gmane.org; Wed, 26 Jun 2013 17:18:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0AC89101F1; Wed, 26 Jun 2013 17:18:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZnV8a88IuBRf; Wed, 26 Jun 2013 17:18:01 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8CF82101E5; Wed, 26 Jun 2013 17:18:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3BA68101E5 for ; Wed, 26 Jun 2013 17:18:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id L+BKbdfRH3uT for ; Wed, 26 Jun 2013 17:17:58 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 7C86B101E0 for ; Wed, 26 Jun 2013 17:17:48 +0200 (CEST) Original-Received: from mail14c40.carrierzone.com (mail14c40.carrierzone.com [209.235.156.154]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5QFHjkp018148 for ; Wed, 26 Jun 2013 17:17:47 +0200 X-Authenticated-User: subscribed_lists.meahan.net Original-Received: from [172.31.255.9] (33.156.224.173.host.smoothstone.net [173.224.156.33] (may be forged)) (authenticated bits=0) by mail14c40.carrierzone.com (8.13.6/8.13.1) with ESMTP id r5QFHgKM029272 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 26 Jun 2013 15:17:43 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 In-Reply-To: X-CSC: 0 X-CHA: v=2.0 cv=DemgXIRW c=1 sm=1 a=KGsOzS0Xz4WGPHkGNstmMA==:17 a=WIJ4OnAGe2cA:10 a=5gaxmJSfiX8A:10 a=Olzf91-8vUEA:10 a=wBJZxVaMAAAA:8 a=nfIsEgzAeWUA:10 a=Sp4lnKN_31TilXKM-xkA:9 a=wPNLvfGTeEIA:10 a=_ANfRI8hDG0A:10 a=pGLkceISAAAA:8 a=vNDCgpsTUQ1_2eGvDG4A:9 a=_W_S_7VecoQA:10 a=tXsnliwV7b4A:10 a=vZgxfiNp4ZnweOSY:21 a=KGsOzS0Xz4WGPHkGNstmMA==:117 X-CTCH-RefID: str=0001.0A020208.51CB0618.0005, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.235.156.154; country=US; region=FL; city=Fort Lauderdale; postalcode=33301; latitude=26.1209; longitude=-80.1273; metrocode=528; areacode=954; http://maps.google.com/maps?q=26.1209,-80.1273&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TJR3hKdi - cad86fbab333 - 20130626 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83208 Archived-At: This is a multi-part message in MIME format. --===============1998436188== Content-Type: multipart/alternative; boundary="------------090501030501080001050105" This is a multi-part message in MIME format. --------------090501030501080001050105 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 6/26/2013 10:20 AM, luigi scarso wrote: > > > > On Wed, Jun 26, 2013 at 3:53 PM, Bill Meahan > > wrote: > > > How does one override the default pdf viewer for MKIV Standalone > on Windows 7-64 so --autopdf starts Acrobat Reader instead of > "sumatrapdf.exe"? > > I don't have "sumatra" and do not wish to install it just to > satisfy this one application. WTH is it anyway? (I know what it > is, it's a rhetorical question). Making some obscure pdf viewer > the default with no clear way to change it is not a good idea. For > Windows, the vast majority of people have Acrobat Reader which is > very often preinstalled. For Linux, it's less clear what the > default should be but {xpdf |evince|acroread} are quite common. > Can't speak to OSX as I've never used it but I'd bet a coffee > Acrobat Reader is (or can be) there, too. > > I have searched through the source and tried editing l-pdf.lua but > that doesn't seem to fix the problem. I shouldn't have to edit > system source in any event. > > Mark me frustrated. > > I don't see l-pdf.lua in my standalone . > TYPO: It's l-pdfview.lua sometimes my memory.... From my standalone (updated yesterday) ..[snip].. if os.type == "windows" then opencalls = { ['default'] = "pdfopen --rxi --file", ['acrobat'] = "pdfopen --rxi --file", ['fullacrobat'] = "pdfopen --axi --file", ['okular'] = 'start "test" "c:/data/system/kde/bin/okular.exe" --unique', -- todo! ['sumatra'] = 'start "test" "c:/data/system/sumatrapdf/sumatrapdf.exe" -reuse-instance', ['okular'] = 'start "test" "okular.exe" --unique', ['sumatra'] = 'start "test" "sumatrapdf.exe" -reuse-instance -bg-color 0xCCCCCC', } closecalls= { ['default'] = "pdfclose --file", ['acrobat'] = "pdfclose --file", ['okular'] = false, ['sumatra'] = false, } allcalls = { ['default'] = "pdfclose --all", ['acrobat'] = "pdfclose --all", ['okular'] = false, ['sumatra'] = false, } pdfview.method = "acrobat" -- no longer useful due to green pop up line and clasing reader/full pdfview.method = "sumatra" <=========================== runner = function(cmd) os.execute(cmd) -- .. " > /null" end else ..[snip].. Although I first discovered this when trying to use SciTE, it does the same thing if invoked from the command line. The pdf viewer does not appear in any of the SciTE *.properties files. -- Bill Meahan Westland, Michigan "The nice thing about standards is there are so many of them." --Henry Spencer --------------090501030501080001050105 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 6/26/2013 10:20 AM, luigi scarso wrote:



On Wed, Jun 26, 2013 at 3:53 PM, Bill Meahan <subscribed_lists@meahan.net> wrote:

How does one override the default pdf viewer for MKIV Standalone on Windows 7-64 so --autopdf starts Acrobat Reader instead of "sumatrapdf.exe"?

I don't have "sumatra" and do not wish to install it just to satisfy this one application. WTH is it anyway? (I know what it is, it's a rhetorical question). Making some obscure pdf viewer the default with no clear way to change it is not a good idea. For Windows, the vast majority of people have Acrobat Reader which is very often preinstalled. For Linux, it's less clear what the default should be but {xpdf |evince|acroread} are quite common. Can't speak to OSX as I've never used it but I'd bet a coffee Acrobat Reader is (or can be) there, too.

I have searched through the source and tried editing l-pdf.lua but that doesn't seem to fix the problem. I shouldn't have to edit system source in any event.

Mark me frustrated.

I don't see l-pdf.lua in my standalone .

TYPO: It's l-pdfview.lua sometimes my memory....

From my standalone (updated yesterday)

..[snip]..
if os.type == "windows" then

    opencalls = {
        ['default']     = "pdfopen --rxi --file",
        ['acrobat']     = "pdfopen --rxi --file",
        ['fullacrobat'] = "pdfopen --axi --file",
        ['okular']      = 'start "test" "c:/data/system/kde/bin/okular.exe" --unique', -- todo!
        ['sumatra']     = 'start "test" "c:/data/system/sumatrapdf/sumatrapdf.exe" -reuse-instance',
        ['okular']      = 'start "test" "okular.exe" --unique',
        ['sumatra']     = 'start "test" "sumatrapdf.exe" -reuse-instance -bg-color 0xCCCCCC',
    }
    closecalls= {
        ['default'] = "pdfclose --file",
        ['acrobat'] = "pdfclose --file",
        ['okular']  = false,
        ['sumatra'] = false,
    }
    allcalls = {
        ['default'] = "pdfclose --all",
        ['acrobat'] = "pdfclose --all",
        ['okular']  = false,
        ['sumatra'] = false,
    }

    pdfview.method = "acrobat" -- no longer useful due to green pop up line and clasing reader/full
    pdfview.method = "sumatra"   <===========================

    runner = function(cmd)
        os.execute(cmd) -- .. " > /null"
    end

else
 ..[snip]..

Although I first discovered this when trying to use SciTE, it does the same thing if invoked from the command line. The pdf viewer does not appear in any of the SciTE *.properties files.

--
Bill Meahan
Westland, Michigan

"The nice thing about standards is there are so many of them."  --Henry Spencer

--------------090501030501080001050105-- --===============1998436188== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1998436188==--