From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: Attributes on HTML tables? Date: Sat, 13 Apr 2013 16:42:59 -0400 Message-ID: <20130413204259.GA66764@BigDog.local> References: <87mwtavzgv.fsf@gmail.com> <86fvyy1dsp.fsf@iro.umontreal.ca> <87ehegtsde.fsf@ericabrahamsen.net> <87a9p4e24e.fsf@bzg.ath.cx> <87li8os2w9.fsf@ericabrahamsen.net> <87wqs8b0g7.fsf@bzg.ath.cx> <8661zr7r5a.fsf@iro.umontreal.ca> <877gk7qev2.fsf@ericabrahamsen.net> <8738uvq9ne.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UR7Hs-0002g6-6V for emacs-orgmode@gnu.org; Sat, 13 Apr 2013 16:43:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UR7Hp-0001ox-NA for emacs-orgmode@gnu.org; Sat, 13 Apr 2013 16:43:04 -0400 Received: from [204.62.15.78] (port=56050 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UR7Hp-0001or-Jm for emacs-orgmode@gnu.org; Sat, 13 Apr 2013 16:43:01 -0400 Content-Disposition: inline In-Reply-To: <8738uvq9ne.fsf@ericabrahamsen.net> 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 Abrahamsen Cc: emacs-orgmode@gnu.org On Sat, Apr 13, 2013 at 01:31:17PM +0800, Eric Abrahamsen wrote: > Eric Abrahamsen writes: >=20 > > Fran=E7ois Pinard writes: > > > >> Bastien writes: > >> > >>> Eric Abrahamsen writes: > >> > >>>> The first step is probably to research the differences between xht= ml and > >>>> html 5. > >> > >>> Well, I would even skip this step and just hack something usable. >=20 >=20 > I sort of fudged on the below. The upside is that it should be pretty > forgiving now: you can set all kinds of strings as your :html-doctype, > and it will do a reasonably good job of guessing how to handle it. >=20 > Barring actual bugs or poor design decisions, what's left to do is: >=20 > 1. Make sure that inlined script and style chunks are escaped correctly= , > I seem to remember reading that the commenting/escaping syntax for thes= e > chunks varies according to html flavor. >=20 > 2. I'd like to add the possibility to put an arbitrary :html-container > #+BEGIN_SRC emacs-lisp > #+TITLE: HTML 5 Test > #+DATE: {{{modification-time(%Y-%m-%d)}}} > #+HTML_DOCTYPE: html5 > #+BIND: org-html-divs ((preamble "header" "preamble") (content "section= " "content") (postamble "footer" "postamble")) > * Org HTML5 Test > #+ATTR_HTML: :options html-container article note that you just just set #+HTML_CONTAINER: article in the head of the file if you want all the containers to be "article"s. > +(defconst org-html-doctype-alist > + '(("html4" . "") > + ("html4-strict" . " > +\"http://www.w3.org/TR/html4/strict.dtd\"") > + ("xhtml" . " +\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">") > + ("html5" . "")) I believe that should be (note the lowercase "html"): ("xhtml" . " +\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">") ("html5" . "") See http://www.w3schools.com/tags/tag_doctype.asp for a fairly complete list of valid doctypes. rick