From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Org mode and "shunt" exporters? Date: Thu, 12 Dec 2013 21:53:15 -0500 Message-ID: References: <87lhzpkg15.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b111d194df33704ed6190a0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrIsQ-0005CO-HJ for emacs-orgmode@gnu.org; Thu, 12 Dec 2013 21:53:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrIsP-0003WU-3Q for emacs-orgmode@gnu.org; Thu, 12 Dec 2013 21:53:18 -0500 Received: from mail-pb0-x22e.google.com ([2607:f8b0:400e:c01::22e]:54871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrIsO-0003WM-Nb for emacs-orgmode@gnu.org; Thu, 12 Dec 2013 21:53:17 -0500 Received: by mail-pb0-f46.google.com with SMTP id md12so1681449pbc.19 for ; Thu, 12 Dec 2013 18:53:15 -0800 (PST) In-Reply-To: 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: Matt Price Cc: Brett Viren , "emacs-orgmode@gnu.org" --047d7b111d194df33704ed6190a0 Content-Type: text/plain; charset=ISO-8859-1 I tried this code but I get a JSON readtable error even with the examples in the code. John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Thu, Dec 12, 2013 at 2:58 PM, Matt Price wrote: > On Thu, Dec 12, 2013 at 2:50 PM, Aaron Ecay wrote: > > 2013ko abenudak 12an, John Kitchin-ek idatzi zuen: > >> > >> I wouldn't hold your breath waiting for my solution, it's currently a > >> constructive procrastination project to see if it is possible ;) > >> > >> I made this: > >> > >> https://github.com/jkitchin/jmax/blob/prelude/ox-json.el > >> > >> which does give some output that vaguely resembles json for a very > simple > >> org-file (no quotes, no effort to make compliant json, or pretty print > it, > >> for example). This handles headlines, italic, bold text, links, > paragraphs, > >> and plain text. > > > > Emacs has a json library since 2008 (C-h f json-encode), and > > pretty-printing in that library since last year, so you (or someone else > > who has procrastination time on their hands...) should be able to solve > the > > quoting and formatting problems that way. > > > > -- > > Aaron Ecay > > I am pretty ignorant and may have missed a referene o this in the > thread, but this (very outdated) code is on the emacswiki: > > http://www.emacswiki.org/emacs/org-json.el > > not sure if it will actually help you. > > Matt > > > --047d7b111d194df33704ed6190a0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I tried this code but I get a JSON readtable error even wi= th the examples in the code.

John

-----------------------------------
John Kitch= in
Associate Professor
Doherty Hall A207F
Department of Chemical Enginee= ring
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803<= br>http://k= itchingroup.cheme.cmu.edu



On Thu, Dec 12, 2013 at 2:58 PM, Matt Pr= ice <moptop99@gmail.com> wrote:
On Thu, Dec 12, 2013 at 2:50 PM, Aa= ron Ecay <aaronecay@gmail.com= > wrote:
> 2013ko abenudak 12an, John Kitchin-ek idatzi zuen:
>>
>> I wouldn't hold your breath waiting for my solution, it's = currently a
>> constructive procrastination project to see if it is possible ;) >>
>> I made this:
>>
>> https://github.com/jkitchin/jmax/blob/prelude/ox-json.= el
>>
>> which does give some output that vaguely resembles json for a very= simple
>> org-file (no quotes, no effort to make compliant json, or pretty p= rint it,
>> for example). This handles headlines, italic, bold text, links, pa= ragraphs,
>> and plain text.
>
> Emacs has a json library since 2008 (C-h f json-encode), and
> pretty-printing in that library since last year, so you (or someone el= se
> who has procrastination time on their hands...) should be able to solv= e the
> quoting and formatting problems that way.
>
> --
> Aaron Ecay

I am pretty ignorant and may have missed a referene o this in t= he
thread, but this (very outdated) code is on the emacswiki:

ht= tp://www.emacswiki.org/emacs/org-json.el

not sure if it will actually help you.

Matt
>

--047d7b111d194df33704ed6190a0--