From: Nicolas Goaziou <n.goaziou@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: New html exporter and filters
Date: Tue, 05 Mar 2013 09:16:16 +0100 [thread overview]
Message-ID: <87y5e2tg6n.fsf@gmail.com> (raw)
In-Reply-To: <20130304205818.GB89075@BigDog.local> (Rick Frankel's message of "Mon, 4 Mar 2013 15:58:18 -0500")
Hello,
Rick Frankel <rick@rickster.com> writes:
> 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).
I'm not sure about what you mean here.
> 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.
You cannot access them. You have access to the full parse tree with
(plist-get info :parse-tree), but not to the parsed current headline.
Filters only give you access to strings produced by the back-end.
Anyway, you still can modify headline div attributes from there.
> 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 "<div id=\"%s...") and a callback for the div id
> generation. This would add flexibility for inherited backends as well
> as allow for more "html5ish" structures (e.g., <section> and <article>
> instead of generic <divs>).
Wouldn't it be simpler to just fork `org-html-headline' in your back-end
in order to replace the divs with something you need?
On the other hand, there are a couple of variables providing a way to
modify divs ids in ox-html.el. I suppose one more doesn't hurt. It may
be even better to collect them in a single defcustom.
What do you think?
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2013-03-05 8:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-04 20:58 New html exporter and filters Rick Frankel
2013-03-05 8:16 ` Nicolas Goaziou [this message]
2013-03-05 23:05 ` Rick Frankel
2013-03-06 11:37 ` Jambunathan K
2013-03-06 19:45 ` Jambunathan K
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y5e2tg6n.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).