From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: How to write an exporter Date: Wed, 25 Jun 2008 10:47:09 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v924) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KBQer-0008Qe-4T for emacs-orgmode@gnu.org; Wed, 25 Jun 2008 04:47:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KBQeo-0008OK-LL for emacs-orgmode@gnu.org; Wed, 25 Jun 2008 04:47:16 -0400 Received: from [199.232.76.173] (port=45393 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBQeo-0008OA-Eq for emacs-orgmode@gnu.org; Wed, 25 Jun 2008 04:47:14 -0400 Received: from fg-out-1718.google.com ([72.14.220.154]:60441) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBQeo-0003eC-62 for emacs-orgmode@gnu.org; Wed, 25 Jun 2008 04:47:14 -0400 Received: by fg-out-1718.google.com with SMTP id l26so1353086fgb.30 for ; Wed, 25 Jun 2008 01:47:12 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Christian Egli Cc: emacs-orgmode@gnu.org On Jun 24, 2008, at 1:27 PM, Christian Egli wrote: > Hi > > I've been wanting to have an exporter for latex beamer and for > mediawiki. I thought that might be a nice summer project. How do I > write it? Do I use > > - the new mapping API > - or the "new" exporter engine from Bastien which is buried away > somewhere on a branch in git? > > I guess the mapping API is included in org-mode proper but only gives > me access to the headlines AFAIK. What is the status of the exporter > engine from Bastien? Is it ever going to be resurrected? Bastien has been quite busy lately, and I am not sure how this will develop in the future. The "new export engine" as far as I can see, is so far mostly a parser that converts an Org file into a structured hierarchy of property lists that give access to the entire content as well as all the meta data like tags, todo state, deadline date etc etc. I have pulled out org-export.el from the branch and placed a copy into the EXPERIMENTAL subdirectory of the master branch. Bastien, I fixed a bug which had to do with narrowing in a recursive procedure - the old restriction needs to be remembered. Also, I implemented a function that will remove the meta data (most of it anyway) from the content string, so maybe this is a useful thing? It is a separate function, so easily removed again. Looking at org-export.el, Bastien also planed to have filter functions, and then backend that will write the structure back to a file - I don't know how much of this works. Christian, you could simply experiment with the return value of org- export-parse. HTH - Carsten > > > Thanks > Christian > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode