From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: New html exporter and filters Date: Mon, 4 Mar 2013 15:58:18 -0500 Message-ID: <20130304205818.GB89075@BigDog.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCcSj-0006kv-GK for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 15:58:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCcSh-0006wS-7m for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 15:58:21 -0500 Received: from [204.62.15.78] (port=45129 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCcSh-0006wM-4k for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 15:58:19 -0500 Received: from BigDog.local (pool-72-89-40-63.nycmny.fios.verizon.net [72.89.40.63]) by mail.rickster.com (Postfix) with ESMTPS id 5316822158 for ; Mon, 4 Mar 2013 15:58:19 -0500 (EST) Content-Disposition: inline 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 This may be a question for Nicolas --- I seem to have reached the limit of my emacs-fu. I am looking at adding XOXO output to the S5 exporter (S5 has built-in support for XOXO structured documents) and was trying to use an element (headline) filter to modify the document structure. I am also trying to change the div id to make them more friendly to the deck.js goto function (which accumulates and displays the ids as a menu). When i look at the `contents' passed to the filter in edebug, i can see the element properties (level, raw-title, etc) in the output but I cannot figure out how to access them. On the other hand, it would be easier if ox-html were modified so that org-html-headline uses a variable (or callback) for the format of the wrapper (currently "
and
instead of generic ). The structure of the new exporter has made if very easy for me to add new html based exporters using the derived backends. Minor changes to ox-html would make this even more flexible. I am willing make the changes to ox-html if the approach is agreeable. tia, rick