From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Re: [Patch] HTML export -- Allow to change the name of the global DIV Date: Mon, 14 Mar 2011 20:52:29 +0530 Message-ID: <81oc5d3ex6.fsf@gmail.com> References: <80y64nxgxr.fsf@somewhere.org> <874o7aoxxr.fsf@gnu.org> <87y64hludx.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=42541 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pz9ba-0001RY-TG for emacs-orgmode@gnu.org; Mon, 14 Mar 2011 11:22:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pz9bW-0003F6-Ri for emacs-orgmode@gnu.org; Mon, 14 Mar 2011 11:22:44 -0400 Received: from mail-qy0-f176.google.com ([209.85.216.176]:51663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pz9bW-0003Ew-N7 for emacs-orgmode@gnu.org; Mon, 14 Mar 2011 11:22:42 -0400 Received: by qyk30 with SMTP id 30so4756444qyk.0 for ; Mon, 14 Mar 2011 08:22:41 -0700 (PDT) In-Reply-To: <87y64hludx.fsf@fastmail.fm> (Matt Lundin's message of "Mon, 14 Mar 2011 09:11:06 -0400") 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: Matt Lundin Cc: Bastien , emacs-orgmode@gnu.org, =?iso-8859-1?Q?S=E9bastien?= Vauban (On a related note) As part of my odt exporter, I have factored out a generic exporter to which org-html.el and org-odt.el plugs in. The generic exporter is callback driven. I have included the typical callback that the odt exporter registers down below. The generic infrastructure is in place and very usable. Adding new callbacks or increasing the granularity of the 'entity' should only be a matter of time. I have probably jumped the queue here. Anyways, my formal patch for integration in to core is only few hours or atmost 1 day away and I am not kidding ... For more info checkout out my `staging' branch. Jambunathan K. (defvar org-odt-entity-control-callbacks-alist `((EXPORT . (org-odt-begin-export org-odt-end-export)) (DOCUMENT-CONTENT . (org-odt-begin-document-content org-odt-end-document-content)) (DOCUMENT-BODY . (org-odt-begin-document-body org-odt-end-document-body)) (ENVIRONMENT . (org-odt-begin-environment org-odt-end-environment)) (LEVEL . (org-html-begin-level org-html-end-level)) (FOOTNOTE-DEFINITION . (org-odt-begin-footnote-definition org-odt-end-footnote-definition)) (TABLE . (org-odt-begin-table org-odt-end-table)) (TABLE-ROWGROUP . (org-odt-begin-table-rowgroup org-odt-end-table-rowgroup)) (LIST . (org-odt-begin-list org-odt-end-list)) (LIST-ITEM . (org-odt-begin-list-item org-odt-end-list-item)) (SECTION . (org-odt-begin-section org-odt-end-section)) (PARAGRAPH . (org-odt-begin-paragraph org-odt-end-paragraph))) "") (defvar org-odt-entity-format-callbacks-alist `((EXTRA-TARGETS . org-html-format-extra-targets) (ORG-TAGS . org-html-format-org-tags) (SECTION-NUMBER . org-html-format-section-number) (HEADLINE . org-html-format-headline) (TOC-ENTRY . org-html-format-toc-entry) (TOC-ITEM . org-html-format-toc-item) (TAGS . org-odt-format-tags) (SPACES . org-odt-format-spaces) (TABS . org-odt-format-tabs) (LINE-BREAK . org-odt-format-line-break) (FONTIFY . org-odt-format-fontify) (TODO . org-html-format-todo) (LINK . org-odt-format-link) (INLINE-IMAGE . org-odt-format-inline-image) (ORG-LINK . org-odt-format-org-link) (HEADING . org-odt-format-heading) (ANCHOR . org-odt-format-anchor) (TABLE-ROW . org-odt-format-table-row) (TABLE-CELL . org-odt-format-table-cell) (FOOTNOTES-SECTION . ignore) (FOOTNOTE-REFERENCE . org-odt-format-footnote-reference) (HORIZONTAL-LINE . org-odt-format-horizontal-line) (COMMENT . org-html-format-comment) (PLAIN . org-odt-format-plain)) "") Jambunthan K.