From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/11805 Path: news.gmane.org!not-for-mail From: Ivan Lazar Miljenovic Newsgroups: gmane.text.pandoc Subject: Re: Graphviz python filter without using pygraphviz Date: Tue, 20 Jan 2015 23:05:51 +1100 Message-ID: References: <229bfb34-a5bd-4b31-8511-ef9573585990@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1421755553 3216 80.91.229.3 (20 Jan 2015 12:05:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2015 12:05:53 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBC2L5ZPTZEOBBIEJ7GSQKGQE5RFTAGY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jan 20 13:05:53 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-yh0-f61.google.com ([209.85.213.61]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YDXZB-0002RF-0T for gtp-pandoc-discuss@m.gmane.org; Tue, 20 Jan 2015 13:05:53 +0100 Original-Received: by mail-yh0-f61.google.com with SMTP id 29sf534373yhl.6 for ; Tue, 20 Jan 2015 04:05:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe; bh=jQBBe9t7hGRQvPqq+2RaBagaIux0HulqJVNYC0bU72Q=; b=MB+N0C2hu5n4AIuYoUrSE8bbmc2tafJm6iXiRAfuJ1afR3tiSeYYpf0f5NBKtW9aqn MH4ub2vYJ5zVCdiLTCvgye+Xrb9fxAiSUja9osahNyf28s+47HHmcX2QiiYnw0iIq+/N 7kFHVqNQ7vNLbZ2JBsesdfya5mNinTIcR+CzX9Zl+VghQ5gQJU/51m4hcEnE7kooBk/k FtprL8VOZn5U3I5wLgaMr3nwvoIUwvfhTfNp2do7NhC0Ko++knh9mXDo4fOZdgrKTsq+ Lj4zz1lB/b9BQYuVxBU7EKzw/ZajTnWUrrCAkHQRC50yjHe1I35ud+7sfq2IXU6s+fv9 Owbg== X-Received: by 10.50.239.165 with SMTP id vt5mr326948igc.5.1421755552361; Tue, 20 Jan 2015 04:05:52 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.50.6 with SMTP id y6ls1766600ign.23.gmail; Tue, 20 Jan 2015 04:05:51 -0800 (PST) X-Received: by 10.50.119.5 with SMTP id kq5mr7484803igb.6.1421755551977; Tue, 20 Jan 2015 04:05:51 -0800 (PST) Original-Received: from mail-pd0-x22b.google.com (mail-pd0-x22b.google.com. [2607:f8b0:400e:c02::22b]) by gmr-mx.google.com with ESMTPS id v6si1809030pdo.2.2015.01.20.04.05.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Jan 2015 04:05:51 -0800 (PST) Received-SPF: pass (google.com: domain of ivan.miljenovic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400e:c02::22b as permitted sender) client-ip=2607:f8b0:400e:c02::22b; Original-Received: by mail-pd0-f171.google.com with SMTP id fp1so21224083pdb.2 for ; Tue, 20 Jan 2015 04:05:51 -0800 (PST) X-Received: by 10.68.226.69 with SMTP id rq5mr43441962pbc.116.1421755551656; Tue, 20 Jan 2015 04:05:51 -0800 (PST) Original-Received: by 10.70.42.47 with HTTP; Tue, 20 Jan 2015 04:05:51 -0800 (PST) In-Reply-To: <229bfb34-a5bd-4b31-8511-ef9573585990-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: ivan.miljenovic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ivan.miljenovic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400e:c02::22b as permitted sender) smtp.mail=ivan.miljenovic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dkim=pass header.i=@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:11805 Archived-At: What does the graphviz filter do? Just take the raw Dot code and run it through dot/neato? I would beware of using the STDIN for dot though: unless osmething has changed in recent versions it can chew up a _lot_ of memory doing so, so it's better to use a temporary file. Maybe have a look at my Haskell graphviz library: http://hackage.haskell.org/package/graphviz (though using this would require parsing the Dot code just to immediately print it again, so I'm not sure how helpful it would be). On 20 January 2015 at 22:47, Mohammed Haris Minai wrote: > Hello, > > I am interested in using the graphviz filter in pandocfilters. However, > currently it uses pygraphviz which unfortunately does not have a windows > binary. Unfortunately I am constrained to use a windows system for now. > Would it be a simple task to make a python graphviz filter for pandoc > without using pygraphviz? > > I had a look at the filter and it does use "os." and "sys." calls. I guess > there should be an easy way to simply issue the dot command on the enclosed > code. graphviz (dot command) does take STDIN as input and output can be > redirected to a file. > > Thanks. > Mohammad Haris Minai > > -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/229bfb34-a5bd-4b31-8511-ef9573585990%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Ivan Lazar Miljenovic Ivan.Miljenovic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://IvanMiljenovic.wordpress.com