From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Attributes on HTML tables? Date: Sat, 13 Apr 2013 11:38:41 +0800 Message-ID: <877gk7qev2.fsf@ericabrahamsen.net> References: <86bo9rnj6q.fsf@iro.umontreal.ca> <87ppy66eke.fsf@bzg.ath.cx> <878v4uxjp6.fsf@gmail.com> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQrCm-00021h-SJ for emacs-orgmode@gnu.org; Fri, 12 Apr 2013 23:32:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQrCl-0004Af-Kn for emacs-orgmode@gnu.org; Fri, 12 Apr 2013 23:32:44 -0400 Received: from plane.gmane.org ([80.91.229.3]:46559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQrCl-0004Ab-EC for emacs-orgmode@gnu.org; Fri, 12 Apr 2013 23:32:43 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UQrCj-0004bz-J7 for emacs-orgmode@gnu.org; Sat, 13 Apr 2013 05:32:41 +0200 Received: from 114.250.135.240 ([114.250.135.240]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Apr 2013 05:32:41 +0200 Received: from eric by 114.250.135.240 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Apr 2013 05:32:41 +0200 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: emacs-orgmode@gnu.org François Pinard writes: > Bastien writes: > >> Eric Abrahamsen 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. Okay, I've got a nearly-working patch for this, but I'm falling down hard on the defcustom. Here's what I thought to do: #+BEGIN_SRC emacs-lisp (defconst org-html-doctype-alist '((html4 . "") (html4-strict . " \"http://www.w3.org/TR/html4/strict.dtd\"") (xhtml . "") (html5 . "")) "An alist mapping (x)html flavors to specific doctypes.") (defcustom org-html-doctype 'xhtml "Document type definition to use for exported HTML files. Can be set with the in-buffer HTML_DOCTYPE property or for publishing, with :html-doctype." :group 'org-export-html :version "24.4" :package-version '(Org . "8.0") :type 'i-dont-know-how-to-work-this) #+END_SRC The end result I'm after is: the user can either set org-html-doctype to a symbol from among the cars org-html-doctype-alist, or he/she can set it directly to the doctype string. I don't know how to represent that in a defcustom. And of course, if anyone has any better approaches, then speak now or... speak later. Eric