From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37724 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: SVG support Date: Thu, 06 Dec 2007 10:47:45 +0100 Message-ID: <4757C541.5000900@wxs.nl> References: <47556084.9090102@aluzina.org> <47557F73.7040301@wxs.nl> <47574617.6030907@aluzina.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1196937028 30367 80.91.229.12 (6 Dec 2007 10:30:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2007 10:30:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 06 11:30:36 2007 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 1J0E04-0008RJ-KB for gctc-ntg-context-518@m.gmane.org; Thu, 06 Dec 2007 11:30:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DEBA01FC90; Thu, 6 Dec 2007 11:29:31 +0100 (CET) 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 26900-01-8; Thu, 6 Dec 2007 11:28:33 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9DD551FAFF; Thu, 6 Dec 2007 11:27:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D1ABC1FBFD for ; Thu, 6 Dec 2007 11:27:26 +0100 (CET) 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 26900-01-6 for ; Thu, 6 Dec 2007 11:26:43 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id 0C05A1FBE8 for ; Thu, 6 Dec 2007 10:48:24 +0100 (CET) Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 1409 for ; Thu, 06 Dec 2007 10:48:17 +0100 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <47574617.6030907@aluzina.org> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 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:37724 Archived-At: Zeus G=F3mez Marmolejo wrote: > I've done some tests with "rlxtools" and I've found that the conversion f= rom SVG = > to PDF is done really bad now. It passes through PS (with the inkscape co= mmand = > line) and then the ghostscript is executed to produce the PDF. But I've f= ound a = > better way to do it. before i look into this ... what version of inkscape? when i wrote the = code ps was the only way that could be trusted (successive version of = inkscape were broken etc) > I've modified the file "graphics/inkscape" (it's a ruby source code). At = line 69 = > was: > resultpipe =3D "--without-gui --print=3D\">#{tmpfilename}\" 2>#{logfile= }" > = > and now: > resultpipe =3D "--without-gui --export-pdf=3D\"#{outfilename}\" 2>#{logfi= le}" > = > After this, all these lines can be commented out: > = > # ghostscript =3D GhostScript.new(@logger) > = > # ghostscript.setvariable('inputfile',tmpfilename) > # ghostscript.setvariable('outputfile',outfilename) > = > # report("converting #{tmpfilename} to #{outfilename}") > = > # ghostscript.convert > = > # begin > # File.delete(tmpfilename) > # rescue > # end > = > The difference is that inkscape can export directly to pdf and the conver= sion is = > done much better, with transparencies and all the stuff. > = > Also, I noticed that at first it didn't work for me because at line 44 = > (logfile=3DSystem.null), I don't know why but this strings is "/dev/null/= " in my = > system and when executing the command a message was echoed: > "sh: /dev/null/ is a directory" and nothing was produced. Now I've modifi= ed the = > caller to pass explictly "/dev/null" as logfile (in pstopdf.rb source, li= ne 401) = > and now all is working perfectly. > = > I hope you can solve these little bugs. > = > Regards, > Zeus. > = > = > Hans Hagen escribi=F3: >> Zeus G?mez Marmolejo wrote: >> = >>> Hi all, >>> >>> I'm working with Inkscape and I would like to embed some figures >>> directly in vector format. How do I do that?? >>> >>> I'm trying this: >>> >>> \externalfigure[system][type=3Dsvg][scale=3D1000] >>> >>> But a "dummy" image appears. Is there any svg support in context?! >>> = >> >> \usemodule[res-08] \setups[rl:manipulate] >> >> \setupexternalfigures[conversion=3Dpdf] >> >> \starttext >> >> \externalfigure[system.svg] >> >> \stoptext >> >> if you're lucky, it works, otherwise you need to look into how rlxtools >> works >> >> ----------------------------------------------------------------- >> Hans Hagen | PRAGMA ADE >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >> tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com >> | 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ -- = ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________