From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Re: Babel support for Processing-language Date: Mon, 02 Feb 2015 13:07:59 +0200 Message-ID: <87k300sh9s.fsf@iki.fi> References: <87egvcvmif.fsf@syk.fi> <87lhpk4sdf.fsf@alphaville.bos.redhat.com> <87wq93euka.fsf@syk.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIErW-0004U0-S5 for emacs-orgmode@gnu.org; Mon, 02 Feb 2015 06:08:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIErR-00036H-S2 for emacs-orgmode@gnu.org; Mon, 02 Feb 2015 06:08:14 -0500 Received: from plane.gmane.org ([80.91.229.3]:41243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIErR-000364-L3 for emacs-orgmode@gnu.org; Mon, 02 Feb 2015 06:08:09 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YIErO-0002qg-9e for emacs-orgmode@gnu.org; Mon, 02 Feb 2015 12:08:06 +0100 Received: from host-137-163-18-130.edu.hel.fi ([137.163.18.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Feb 2015 12:08:06 +0100 Received: from jarmo.hurri by host-137-163-18-130.edu.hel.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Feb 2015 12:08:06 +0100 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: > Yep, I am going to start doing this if no-one is working on it yet. > > I woke up in the middle of the night to realize how amazingly easily > this can be done if I drop out the support for PDF export, that is, > only leave the option to export as HTML. There is no need to even > execute the code at export time to draw the image or the animation, > because in HTML you can just wrap the original Processing code in a > canvas element and the Processing.js code will draw it in the browser. > > http://en.wikipedia.org/wiki/Processing.js > > Let me repeat: by just exporting the code suitably embedded in the HTML > document, the _browser_ will draw the image or the animation. I just > tested it and it works perfectly. > > So I will implement this in Org/Babel so that > - executing Processing code will result in the image / animation being > shown in an external window via processing-java > - exporting the results of Processing code is only sensible in HTML > export, which will produce a web page with the code embedded as > described above; the browser does the drawing. > > These operations will require the availability of processing-java and > processing.js in the system where the code is executed/exported. I posted the quoted message a while back, indicating that I would start working on Processing support in org mode. I now have the time to start implementing it. I will take one of the other language support files as a basis. If anybody has anything they'd like to add to my idea at this time, feel free to do so. I will be working on this on and off, but this should be done by the end of the spring. I will need Processing support in the autumn in a project. All the best, Jarmo