From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: HTML5 presentations Date: Fri, 17 Jun 2011 08:20:33 +0530 Message-ID: <81tybpkw7a.fsf@gmail.com> References: <871uz54diw.fsf@member.fsf.org> <4DFA5480.1070502@sift.info> <87y611bmmr.fsf@gmail.com> <814o3pcy3d.fsf@gmail.com> <4DFA7A8B.6060601@sift.info> <878vt1bbzz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXP98-00011e-Tw for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 22:51:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXP97-0006zN-4g for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 22:50:58 -0400 Received: from mail-pz0-f51.google.com ([209.85.210.51]:49657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXP96-0006zF-Px for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 22:50:57 -0400 Received: by pzk26 with SMTP id 26so1569119pzk.38 for ; Thu, 16 Jun 2011 19:50:55 -0700 (PDT) In-Reply-To: <878vt1bbzz.fsf@gmail.com> (Eric Schulte's message of "Thu, 16 Jun 2011 16:19:28 -0700") 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: Eric Schulte Cc: Org Mode , rpgoldman@sift.info > Admittedly I don't know what transformation are required by the html5 > presentation mechanism, however I would think that an approach like that > taken in org-export-as-s5 [1], in which the existing org-export-as-html > is simply wrapped in a let-form which sets variable values uses hooks to > post-process, should be the simplest and would leverage as much of the > existing machinery as possible. To strengthen my argument for the generic backend agnostic driver in org-odt branch, here are few concrete examples from org-s5. org-s5 requires an insider understanding (see [1]) of what org does in the background. Using my exporter wouldn't place such a huge responsibility on the user part. With [2] in mind, `org-export-content-div' on the current org-html.el be "redefined". [3] could also be elegantly handled with the new driver. Let me re-iterate, I strongly urge that such one-off solutions be built on top of html exporter in org-odt branch. It will help make the new backend-agnostic driver evolve and more usable. Everyone would benefit. While we are on the topic of presentations, let me add that with my new exporter building a html/odt presentations along OpenOffice lines [4] would be quite easy. That is one can make a generic presentation driver out of the existing document driver. IMHO let's not fallback on hacks when elegant solutions are readily available. Let me note that I am not interested in presentations so much as to build a patch for or improve org-s5/org-html5. In effect, my argument is for embracing and extending the org-html/org-odt and help it evolve in more useful ways. ps: I recognize that org-s5 creates useful presentations and gets the job done. Footnotes: [1] Snippet of org-s5 --8<---------------cut here---------------start------------->8--- (org-export-preprocess-hook (list (lambda () (let ((class "slide")) (org-map-entries (lambda () (save-excursion (org-back-to-heading t) (when (= (car (org-heading-components)) 1) (put-text-property (point-at-bol) (point-at-eol) 'html-container-class class))))))))) --8<---------------cut here---------------end--------------->8--- [2] --8<---------------cut here---------------start------------->8--- (lambda () (save-excursion (replace-regexp (regexp-quote "
") (let ((info `(("author" . ,author) ("title" . ,title) ("date" . ,(substring date 0 10))))) (join `("
" "
" "
" "
" "
" ,(org-fill-template org-s5-title-string-fmt info) "
" "
" "" "
" ,(org-fill-template org-s5-title-page-fmt info))))))) --8<---------------cut here---------------end--------------->8--- [3] (lambda () (save-excursion (replace-regexp (regexp-quote "
") "
"))) [4] http://wiki.services.openoffice.org/wiki/Documentation/OOoAuthors_User_Manual/Impress_Guide/Creating_slides_from_an_outline > > Best -- Eric > > Footnotes: > [1] https://github.com/eschulte/org-S5/blob/master/org-export-as-s5.el#L17 --