From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69314 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: export: graphic url (special chars?) Date: Mon, 20 Jun 2011 10:17:20 -0400 (EDT) Message-ID: References: <7B4626C28B06A7418E938BF73D6DEE18F9F571EF39@KCL-MAIL05.kclad.ds.kcl.ac.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308579467 23443 80.91.229.12 (20 Jun 2011 14:17:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2011 14:17:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 20 16:17:38 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QYfII-0005aL-Fe for gctc-ntg-context-518@m.gmane.org; Mon, 20 Jun 2011 16:17:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CA025CADFF; Mon, 20 Jun 2011 16:17:33 +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 41vHzsb7mVHj; Mon, 20 Jun 2011 16:17:28 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 53B63CADCD; Mon, 20 Jun 2011 16:17:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 86D09CADCD for ; Mon, 20 Jun 2011 16:17:26 +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 zu8pNRhtbrCw for ; Mon, 20 Jun 2011 16:17:24 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 33F1CCADC7 for ; Mon, 20 Jun 2011 16:17:24 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5KEHMGb007657 for ; Mon, 20 Jun 2011 16:17:23 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096681357.dsl.bell.ca [65.94.7.141]) By hackers.mr.itd.umich.edu ID 4DFF5670.9DB7C.22472 ; Authuser adityam; 20 Jun 2011 10:17:20 EDT In-Reply-To: <7B4626C28B06A7418E938BF73D6DEE18F9F571EF39@KCL-MAIL05.kclad.ds.kcl.ac.uk> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rEWehmDG - 2c986987a9cc - 20110620 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:69314 Archived-At: On Mon, 20 Jun 2011, Reviczky, Adam wrote: > Further, if the url has a "%" symbol then the name property stops at that, see: > --- > \setupbackend[export=test.xml] > \enabledirectives[schemes.cleanmethod=md5] > \def\googlechart > {\begingroup > \setcatcodetable\vrbcatcodes > \dodoubleempty\dogooglechart} > \def\dogooglechart[#1][#2]% > {\endgroup > \externalfigure[#1][method=png,#2]} You could try (untested) \def\googlechart[#1][#2]% {\externalfigure[#1][...]% \endgroup} or \def\dogooglechart[#1][#2]% {\useexternalfigure[googlechart][#1]% \endgroup \externalfigure[googlechart][...]} > \starttext > \googlechart[http://chart.apis.google.com/chart?chs=350x220&cht=p3&chd=s:G99p&chdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1|1|2|2|1|1|1|2|1|1&chdlp=b&chp=0.1&chl=fsharp|gettext|gettext-base|Others%20%2824%29&chma=95,95&chtt=Launchpad+Statistics+for+%7Ereviczky+-+ppa&chts=676767,13.5][factor=max] > \stoptext > --- > > gives: > name='http://chart.apis.google.com/chart?chs=350x220&cht=p3&chd=s:G99p&chdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1|1|2|2|1|1|1|2|1|1&chdlp=b&chp=0.1&chl=fsharp|gettext|gettext-base|Others' Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________