emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>, rpgoldman@sift.info
Subject: Re: HTML5 presentations
Date: Fri, 17 Jun 2011 08:20:33 +0530	[thread overview]
Message-ID: <81tybpkw7a.fsf@gmail.com> (raw)
In-Reply-To: <878vt1bbzz.fsf@gmail.com> (Eric Schulte's message of "Thu, 16 Jun 2011 16:19:28 -0700")


> 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 "<div id=\"content\">")
     (let ((info `(("author" . ,author)
                   ("title" . ,title)
                   ("date" . ,(substring date 0 10)))))
       (join `("<div class=\"layout\">"
               "<div id=\"controls\"><!-- no edit --></div>"
               "<div id=\"currentSlide\"><!-- no edit --></div>"
               "<div id=\"header\"></div>"
               "<div id=\"footer\">"
               ,(org-fill-template org-s5-title-string-fmt info)
               "</div>"
               "</div>"
               ""
               "<div class=\"presentation\">"
               ,(org-fill-template org-s5-title-page-fmt info)))))))
--8<---------------cut here---------------end--------------->8---

[3]

(lambda ()
  (save-excursion
    (replace-regexp
     (regexp-quote "<div id=\"table-of-contents\">")
     "<div id=\"table-of-contents\" class=\"slide\">")))

[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



-- 

  reply	other threads:[~2011-06-17  2:51 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-07 18:56 HTML5 presentations Vinh Nguyen
2011-06-07 20:01 ` Tassilo Horn
2011-06-07 20:35   ` Eric Schulte
2011-06-08  7:21     ` Jambunathan K
2011-06-15 18:19     ` Eric S Fraga
2011-06-15 19:35       ` Eric Schulte
2011-06-15 20:57       ` Joost Kremers
2011-06-16  7:45         ` Eric S Fraga
2011-06-15 22:07       ` Juan Pechiar
2011-06-16  7:44         ` Eric S Fraga
2011-06-16 15:49       ` Achim Gratz
2011-06-17 19:35         ` Eric S Fraga
2011-06-18  7:09           ` Achim Gratz
2011-06-16 19:07   ` Robert Goldman
2011-06-16 19:29     ` Eric Schulte
2011-06-16 19:35       ` Robert Goldman
2011-06-16 20:36       ` Jambunathan K
2011-06-16 21:50         ` Robert Goldman
2011-06-16 23:19           ` Eric Schulte
2011-06-17  2:50             ` Jambunathan K [this message]
2011-06-17  1:09           ` Jambunathan K
2011-06-07 22:05 ` Christian Moe
2011-06-08  7:24   ` Tassilo Horn
2011-06-08 11:27     ` Rainer M Krug
2011-06-08 13:01       ` Tassilo Horn
2011-06-08 13:13         ` Rainer M Krug
2011-06-08 13:45           ` Tassilo Horn
  -- strict thread matches above, loose matches on Subject: below --
2011-08-24 15:33 Matt Price
2011-08-25 22:38 ` Eric Schulte
2011-08-26 10:58   ` zwz

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=81tybpkw7a.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rpgoldman@sift.info \
    --cc=schulte.eric@gmail.com \
    /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).