From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74484 Path: news.gmane.org!not-for-mail From: Ian Lawrence Newsgroups: gmane.comp.tex.context Subject: A bit more help with referencing local filenames Date: Wed, 15 Feb 2012 10:18:32 +0000 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1329301132 13179 80.91.229.3 (15 Feb 2012 10:18:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2012 10:18:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 15 11:18:49 2012 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 1Rxbwk-0002Yo-28 for gctc-ntg-context-518@m.gmane.org; Wed, 15 Feb 2012 11:18:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D1737CB230; Wed, 15 Feb 2012 11:18:45 +0100 (CET) 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 D72XC0Yv+ae8; Wed, 15 Feb 2012 11:18:39 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BB106CB222; Wed, 15 Feb 2012 11:18:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B0268CB21C for ; Wed, 15 Feb 2012 11:18:38 +0100 (CET) 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 WR2JXSlQhhSB for ; Wed, 15 Feb 2012 11:18:33 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 3CA01CB222 for ; Wed, 15 Feb 2012 11:18:33 +0100 (CET) Original-Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1FAIWSX000933 for ; Wed, 15 Feb 2012 11:18:32 +0100 Original-Received: by eaag11 with SMTP id g11so336462eaa.14 for ; Wed, 15 Feb 2012 02:18:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=Tw0eTiYUzxK0NV6alNNrUMIdPKX3Wpc0l+qBaZUU7is=; b=llUCn9//pPQ2etVeYyyYBHYgaxyKX5F7ehLlDf6aKz5Xo6zVkjoWztRLe4gWLloirM lN88h3me3mBdNBhxJtbNA/V3E33WMQtCBTZL1wpTYd2oT8rD51/CK9Fqybww0PXlMcof V0HnIXKcu0tC5MLhxAx5p6Z2GlCumNduGP4BU= Original-Received: by 10.213.27.145 with SMTP id i17mr135422ebc.125.1329301112332; Wed, 15 Feb 2012 02:18:32 -0800 (PST) Original-Received: by 10.213.101.18 with HTTP; Wed, 15 Feb 2012 02:18:32 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0HGyaiwaz - 7e4af2b7ba23 - 20120215 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:74484 Archived-At: At the moment I have two bits of code that conspire to build a link to a file that is on a website. So, variables set on a per-document basis, giving the folder: swfURLPath={http://some location or other/PN01_media/}, supportURLPath={http://some location or other/PN01_support/}, These combine with a macro, ending with: [url(\swflocation#1/#1.swf)]} and a piece in the actual file that gives the filename to be retrieved \PlaceSWF{ModelACircuit} What I'd like to do is be able to alter swfURLPath to designate a local folder for retrieving the swf and launching it in a browser Same thing for the supportURLPath, which always opens PDFs in a browser. I tried stuff like: swfURLPath={\\PN01_media/}, supportURLPath={\\PN01_support/}, And have trawled the context wiki and documentation, but cannot find anything authoritative on linking to local files using relative references, as you might in html. I'm keen not to try and use the same hooks so that I can switch back and forth between remote and local access to the supporting files. There is a good reason for this - honest. Thanks in anticipation. Ian ___________________________________________________________________________________ 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 ___________________________________________________________________________________