From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Babel support for Processing-language Date: Mon, 15 Sep 2014 15:05:00 -0400 Message-ID: <87lhpk4sdf.fsf@alphaville.bos.redhat.com> References: <87egvcvmif.fsf@syk.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTbaY-0002GZ-3J for emacs-orgmode@gnu.org; Mon, 15 Sep 2014 15:05:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTbaS-0001oN-CH for emacs-orgmode@gnu.org; Mon, 15 Sep 2014 15:05:25 -0400 Received: from plane.gmane.org ([80.91.229.3]:47862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTbaS-0001oA-6A for emacs-orgmode@gnu.org; Mon, 15 Sep 2014 15:05:20 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XTbaL-00085G-QC for emacs-orgmode@gnu.org; Mon, 15 Sep 2014 21:05:13 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Sep 2014 21:05:13 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Sep 2014 21:05:13 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Jarmo Hurri writes: > ... > I just installed Processing 2 and the Emacs mode in Fedora 20 and they > work together like a charm. > > However, I have _no idea_ what kind of work supporting output capture of > both static mode (image) and active mode (animation) would > require. Ideally, Babel support for Processing output would mean that in > the case of > 1. an animation > - HTML export it would export the entire animation > - PDF export it would export, e.g., the first frame from the > animation > 2. a static picture, the picture would be exported. > > I think I might be asking for a lot. I am willing to work on this, but I > don't know what kind of an approach I should take. The command-line > support for Processing 2 (the program 'processing-java') runs the output > in a separate window. Would I have to capture the output of the window > with something like ffmpeg? Sounds like a huge hassle. > Here's a possible starting point in your research: http://orgmode.org/worg/org-contrib/babel/languages.html#develop My next step would be to find an ob-.el that is as similar as possible to what Processing does and what I'd want to achieve and go from there. The link above mentions ob-template.el which might be a good beginning too. It's probably best to leave animations for last, but if the animation can be stored in a file, then having a link that will play the file seems like an easy thing to do. All this is untainted by any knowledge of Processing, let alone any kind of hands-on testing or actual practice, so treat it with the appropriate size grain (boulder?) of salt. Nick