From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76140 Path: news.gmane.org!not-for-mail From: Ian Lawrence Newsgroups: gmane.comp.tex.context Subject: Re: Simple rings with svg Date: Fri, 11 May 2012 10:10:48 +0100 Message-ID: References: <4FABD7F7.7070805@wxs.nl> <4FACC664.2070408@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1336727457 11479 80.91.229.3 (11 May 2012 09:10:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 May 2012 09:10:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 11 11:10:56 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 1SSlsG-000057-4d for gctc-ntg-context-518@m.gmane.org; Fri, 11 May 2012 11:10:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6DC91101E0; Fri, 11 May 2012 11:10:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BSAqvxQkBGug; Fri, 11 May 2012 11:10:53 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE2A4101E2; Fri, 11 May 2012 11:10:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 65D6F101E2 for ; Fri, 11 May 2012 11:10:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 1iDqYxoF+btJ for ; Fri, 11 May 2012 11:10:50 +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 E85D9101E0 for ; Fri, 11 May 2012 11:10:49 +0200 (CEST) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4B9AmZ2010197 for ; Fri, 11 May 2012 11:10:48 +0200 Original-Received: by eekb47 with SMTP id b47so1144513eek.14 for ; Fri, 11 May 2012 02:10:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=p6Ye5Mc/ahEJZXksDc6SeS1br7jHZNBxZkx9nWxUY0Q=; b=ILwJwXauD1izRd87MDmSgiRmWVOkGOMyeac4zV3FgbAufha3cWGXBuNYYXgRF1XoH5 057Ln83VNyTnzisRb12+JeYYNsBs4hTvhJgaLS0wj9nII0eTfocOJTaYzqqWe7cfdRzS W7sU4ZuqRqQl1te3wYdBn7S3YZ8G6d+hOE7UQceQqHOtZX4pBp5V1xwTOFJCXSI7Yqfo apQ6MZmr+XVDMsZ033CWeh+vw89l4EBl61DKonIsUSpL66ZYlLSBnyEtLOl9jG+dh78y BYLpMirl4sUPu+l2EWUS7epiCH5ussH0M257qvyL0M4YI/HyRZ49xskHqV/ZmFAV8m6y /4Mw== Original-Received: by 10.213.4.2 with SMTP id 2mr2157777ebp.49.1336727448419; Fri, 11 May 2012 02:10:48 -0700 (PDT) Original-Received: by 10.213.23.19 with HTTP; Fri, 11 May 2012 02:10:48 -0700 (PDT) In-Reply-To: <4FACC664.2070408@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; 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: 0QH8xaMfd - 2cc7152e9167 - 20120511 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:76140 Archived-At: Aha, Well, my contribution will be to adjust the wiki for simple minded people like me=85as I think my solution will be (if I decide for svg) to batch convert these before launching the context build process. Thanks to all On 11 May 2012 08:57, Hans Hagen wrote: > On 10-5-2012 18:50, Aditya Mahajan wrote: >> >> On Thu, 10 May 2012, Hans Hagen wrote: >> >>> On 10-5-2012 16:59, Aditya Mahajan wrote: >>>> >>>> On Thu, 10 May 2012, Ian Lawrence wrote: >>>> >>>>> I read on the wiki that now svg is natively supported. Hmm. >>>> >>>> >>>> No. You need to have inkscape installed (and in your PATH) for svg to >>>> pdf conversion to work. >>>> >>>>> FWIW, I cannot find the intermediate file >>>>> 'm_k_i_v_ChangingField_ILUC.pdf' on my disk either=85both graphics fi= les >>>>> are in the same location, both exist, both are named correctly=85. >>>> >>>> >>>> @Hans, could we change the conversion so that it checks for inkscape a= nd >>>> gives a more sensible warning if inkscape is absent? >>> >>> >>> so what is a robust check ... >> >> >> How about just implementing the unix which command in lua? >> >> (untested code) > > > Indeed -) > > It's more complicated as on windows there can be implicit 'exe', 'cmd', > 'bat' suffixes but some testing shows that a path checker is faster than > calling which/where so I've added an os.[which|where] to l-os.lua that we > can use. > > I've added a check to the graphic converter code but didn't test (not in = the > mood to rename/remove programs and/or make a test file). > > Hans > > > > ----------------------------------------------------------------- > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0Hans Hagen | PRAGMA ADE > =A0 =A0 =A0 =A0 =A0 =A0 =A0Ridderstraat 27 | 8061 GH Hasselt | The Nether= lands > =A0 =A0tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 | www.pragma-pod.nl > ----------------------------------------------------------------- > _________________________________________________________________________= __________ > 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 =A0: http://www.pragma-ade.nl / http://tex.aanhet.net > archive =A0: http://foundry.supelec.fr/projects/contextrev/ > wiki =A0 =A0 : http://contextgarden.net > _________________________________________________________________________= __________ ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________