emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rick Frankel <rick@rickster.com>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Attributes on HTML tables?
Date: Sat, 13 Apr 2013 16:42:59 -0400	[thread overview]
Message-ID: <20130413204259.GA66764@BigDog.local> (raw)
In-Reply-To: <8738uvq9ne.fsf@ericabrahamsen.net>

On Sat, Apr 13, 2013 at 01:31:17PM +0800, Eric Abrahamsen wrote:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> 
> > François Pinard <pinard@iro.umontreal.ca> writes:
> >
> >> Bastien <bzg@gnu.org> writes:
> >>
> >>> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> >>
> >>>> The first step is probably to research the differences between xhtml and
> >>>> html 5.
> >>
> >>> Well, I would even skip this step and just hack something usable.
> 
> 
> 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.
> 
> Barring actual bugs or poor design decisions, what's left to do is:
> 
> 1. Make sure that inlined script and style chunks are escaped correctly,
> I seem to remember reading that the commenting/escaping syntax for these
> chunks varies according to html flavor.
> 
> 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" . "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">")
> +    ("html4-strict" . "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">
> +\"http://www.w3.org/TR/html4/strict.dtd\"")
> +    ("xhtml" . "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"
> +\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">")
> +    ("html5" . "<!DOCTYPE HTML>"))

I believe that should be (note the lowercase "html"):

  ("xhtml" . "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"
> +\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">")
  ("html5" . "<!DOCTYPE html>")

See http://www.w3schools.com/tags/tag_doctype.asp for a fairly
complete list of valid doctypes.

rick

  reply	other threads:[~2013-04-13 20:43 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-07  2:55 Attributes on HTML tables? François Pinard
2013-04-07  6:27 ` Bastien
2013-04-07 14:42   ` Christian Moe
2013-04-07 18:46     ` Nicolas Goaziou
2013-04-07 20:39       ` Christian Moe
2013-04-07 20:48         ` Nicolas Goaziou
2013-04-08 21:09           ` Christian Moe
2013-04-10 17:44             ` François Pinard
2013-04-12  2:06               ` Eric Abrahamsen
2013-04-12  5:42                 ` Bastien
2013-04-12  6:01                   ` Eric Abrahamsen
2013-04-12  8:46                     ` Bastien
2013-04-12 14:36                       ` François Pinard
2013-04-13  3:38                         ` Eric Abrahamsen
2013-04-13  5:31                           ` Eric Abrahamsen
2013-04-13 20:42                             ` Rick Frankel [this message]
2013-04-14 10:13                               ` Eric Abrahamsen
2013-04-14 18:01                                 ` Rick Frankel
2013-04-15 18:03                                 ` Rick Frankel
2013-04-13 17:10                 ` Rick Frankel
2013-04-14  8:41                   ` Bastien
2013-04-10 19:37             ` Nicolas Goaziou
2013-04-11  8:28               ` Christian Moe
2013-04-11 10:55                 ` Nicolas Goaziou
2013-04-11 12:14                   ` Christian Moe
2013-04-11 15:34                   ` Bastien
2013-04-11 17:29                     ` Nicolas Goaziou

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=20130413204259.GA66764@BigDog.local \
    --to=rick@rickster.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=eric@ericabrahamsen.net \
    /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).