From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69295 Path: news.gmane.org!not-for-mail From: "Reviczky, Adam" Newsgroups: gmane.comp.tex.context Subject: export: graphic url (special chars?) Date: Mon, 20 Jun 2011 06:37:32 +0100 Message-ID: <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" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308548365 5000 80.91.229.12 (20 Jun 2011 05:39:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2011 05:39:25 +0000 (UTC) To: "ntg-context@ntg.nl" Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 20 07:39:20 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 1QYXCi-0000l4-3s for gctc-ntg-context-518@m.gmane.org; Mon, 20 Jun 2011 07:39:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 99BD7CAD90; Mon, 20 Jun 2011 07:39:18 +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 a4ciy9rsqJ2u; Mon, 20 Jun 2011 07:39:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D3381CADC3; Mon, 20 Jun 2011 07:39:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 49C87CADC3 for ; Mon, 20 Jun 2011 07:39:14 +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 udcg7PpwzrXH for ; Mon, 20 Jun 2011 07:39:02 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id AF7E9CAD90 for ; Mon, 20 Jun 2011 07:39:02 +0200 (CEST) Original-Received: from mail1.bemta3.messagelabs.com (mail1.bemta3.messagelabs.com [195.245.230.34]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5K5d1iY006935 for ; Mon, 20 Jun 2011 07:39:02 +0200 Original-Received: from [195.245.230.131:27816] by server-8.bemta-3.messagelabs.com id BC/D9-05599-5FCDEFD4; Mon, 20 Jun 2011 05:39:01 +0000 X-VirusChecked: Checked X-Env-Sender: adam.reviczky@kcl.ac.uk X-Msg-Ref: server-7.tower-78.messagelabs.com!1308548340!36361969!1 X-StarScan-Version: 6.2.17; banners=-,-,- X-Originating-IP: [137.73.2.214] Original-Received: (qmail 32260 invoked from network); 20 Jun 2011 05:39:01 -0000 Original-Received: from outbound.kcl.ac.uk (HELO outbound.kcl.ac.uk) (137.73.2.214) by server-7.tower-78.messagelabs.com with DHE-RSA-AES256-SHA encrypted SMTP; 20 Jun 2011 05:39:01 -0000 Original-Received: from ml-relay1.kcl.ac.uk ([137.73.2.230] helo=plsap48.prd.int.kcl.ac.uk) by outbound.kcl.ac.uk outbound with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) id 1QYXAz-0001IG-Rc for ntg-context@ntg.nl; Mon, 20 Jun 2011 06:37:33 +0100 Original-Received: from [194.83.7.239] (helo=KCL-ETS03.ds.kcl.ac.uk) by plsap48.prd.int.kcl.ac.uk mlmx with esmtp id 1QYXAz-0001IC-I7 for ntg-context@ntg.nl; Mon, 20 Jun 2011 06:37:33 +0100 Original-Received: from KCL-HTS03.kclad.ds.kcl.ac.uk (10.12.7.210) by KCL-ETS03.ds.kcl.ac.uk (10.12.4.22) with Microsoft SMTP Server (TLS) id 8.3.83.0; Mon, 20 Jun 2011 06:37:33 +0100 Original-Received: from KCL-MAIL05.kclad.ds.kcl.ac.uk ([193.63.72.94]) by KCL-HTS03.kclad.ds.kcl.ac.uk ([10.12.7.210]) with mapi; Mon, 20 Jun 2011 06:37:32 +0100 Thread-Topic: export: graphic url (special chars?) Thread-Index: AQHMLwr9YZFXWI56fEetL7Ef4+fTOA== Accept-Language: en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=195.245.230.34; country=DE; region=05; city=Frankfurt Am Main; latitude=50.1167; longitude=8.6833; http://maps.google.com/maps?q=50.1167,8.6833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05EW5D1zq - b0a5672025e6 - 20110620 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:69295 Archived-At: Hi The following example results in a broken xml as well: -- \setupbackend[export=test.xml] \starttext \externalfigure[https://chart.googleapis.com/chart?cht=p3&chs=250x100&chd=t:60,40&chl=Hello\letterbar World][method=png,scale=4000] \stoptext --- XML Parsing Error: not well-formed Location: file:///home/reviczky/Downloads/test/test.xml Line Number 10, Column 74: The problem is with the name property: name='https://chart.googleapis.com/chart?cht=p3&chs=250x100&chd=t:60,40&chl=Hello|World' 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]} \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' Though I guess this is not really a problem. Adam ___________________________________________________________________________________ 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 ___________________________________________________________________________________