From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42093 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: Include SVG pictures with ConTeXt Date: Thu, 3 Jul 2008 13:11:26 +0200 Message-ID: References: <48602E09.9000803@laposte.net> <48643BAB.6090408@laposte.net> <4866F30A.6090601@laposte.net> <48673D4C.6000401@elvenkind.com> <4867E681.6020105@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v924) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215083869 27047 80.91.229.12 (3 Jul 2008 11:17:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2008 11:17:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 03 13:18:31 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KEMpY-0004Yb-PX for gctc-ntg-context-518@m.gmane.org; Thu, 03 Jul 2008 13:18:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C91451FE17; Thu, 3 Jul 2008 13:17:35 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29221-03; Thu, 3 Jul 2008 13:16:53 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 41FEB1FDF0; Thu, 3 Jul 2008 13:12:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 03B2F1FDE7 for ; Thu, 3 Jul 2008 13:12:02 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26395-01-15 for ; Thu, 3 Jul 2008 13:11:28 +0200 (CEST) Original-Received: from lvps87-230-27-118.dedicated.hosteurope.de (fiee.net [87.230.27.118]) by ronja.ntg.nl (Postfix) with ESMTP id DD5E11FE42 for ; Thu, 3 Jul 2008 13:11:27 +0200 (CEST) Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys Original-Received: (qmail 5416 invoked from network); 3 Jul 2008 13:11:27 +0200 Original-Received: from 51-0.62-81.cust.bluewin.ch (HELO ?10.128.9.9?) (81.62.0.51) by fiee.net with (AES128-SHA encrypted) SMTP; 3 Jul 2008 13:11:27 +0200 In-Reply-To: <4867E681.6020105@wxs.nl> X-Mailer: Apple Mail (2.924) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:42093 Archived-At: Am 2008-06-29 um 21:46 schrieb Hans Hagen: > \usemodule[res-08] \setups[rl:manipulate] > > \setupexternalfigures[location=local,directory=.,conversion=pdf] % > lowres,prefix=lowres/] > > \starttext > > \externalfigure[svg/ausmap.svg][frame=on] > > \stoptext > > it assumes inkscape being present Just wikified that and added a lot of links to SVG resources: http://wiki.contextgarden.net/SVG Since Adobe Reader supports SVG graphics natively - perhaps we could just include them in the PDF? Here's a sample script in Perl: http://www.kevlindev.com/utilities/index.htm and Python: http://jan.kollhof.net/projects/svg/svgpdf/ I didn't look at them for I don't know the internals anyway, but I guess one could use this technique in Lua, too? An other way would be Cairo graphics library (also used by Mozilla) to convert SVG: http://cairographics.org There's even a Lua binding for Cairo: http://www.dynaset.org/dogusanh/download.html#cairopad But I don't really understand if Cairo is suitable to convert SVG to other than pixel graphics for screen rendering. Apache's Batik library claims to support SVG to PDF conversion: http://xmlgraphics.apache.org/batik/ So perhaps someone more qualified than me could make SVG integration for ConTeXt... Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________