Re: [O] [PATCH] export to various flavors of (X)HTML

2013-05-06 Thread Eric Abrahamsen
Carsten Dominik carsten.domi...@gmail.com writes: Hi Eric, Rick, Francois and others, Nicolas commented to me about this patch that he was wondering if it would not be better to have a separate backend for html5, i.e. ox-html5.el that could be derived from ox-html.el and make it easier in

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-05-06 Thread Carsten Dominik
Hi Eric, thanks for the reply. OK, I am going with the patch for now, let's push more thinking about HTML5 further down the line. Thanks for working this out! - Carsten On 6.5.2013, at 09:36, Eric Abrahamsen e...@ericabrahamsen.net wrote: Carsten Dominik carsten.domi...@gmail.com writes:

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-05-06 Thread Eric Abrahamsen
Carsten Dominik carsten.domi...@gmail.com writes: Hi Eric, thanks for the reply. OK, I am going with the patch for now, let's push more thinking about HTML5 further down the line. Thanks for working this out! My pleasure, I hope I haven't stifled debate... On 6.5.2013, at 09:36, Eric

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-05-06 Thread Rick Frankel
On Mon, May 06, 2013 at 02:05:18AM -0700, Eric Abrahamsen wrote: Carsten Dominik carsten.domi...@gmail.com writes: Hi Eric, thanks for the reply. OK, I am going with the patch for now, let's push more thinking about HTML5 further down the line. Thanks for working this out! My

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-05-05 Thread Carsten Dominik
Hi Eric, Rick, Francois and others, Nicolas commented to me about this patch that he was wondering if it would not be better to have a separate backend for html5, i.e. ox-html5.el that could be derived from ox-html.el and make it easier in the future to build it out to take full advantage of

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-05-03 Thread Carsten Dominik
Thanks, I will look at this patch next week. - Carsten On 2.5.2013, at 23:07, Eric Abrahamsen e...@ericabrahamsen.net wrote: Rick Frankel r...@rickster.com writes: On Tue, Apr 30, 2013 at 08:26:52PM -0700, Eric Abrahamsen wrote: Rick Frankel r...@rickster.com writes: Whoops. Wrong key.

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-05-02 Thread Eric Abrahamsen
Rick Frankel r...@rickster.com writes: On Tue, Apr 30, 2013 at 08:26:52PM -0700, Eric Abrahamsen wrote: Rick Frankel r...@rickster.com writes: Whoops. Wrong key. Patch actually attached to this email... rick Great, I'll consolidate all these -- would it be better to mush them into one

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-05-01 Thread Rick Frankel
On Tue, Apr 30, 2013 at 08:26:52PM -0700, Eric Abrahamsen wrote: Rick Frankel r...@rickster.com writes: Whoops. Wrong key. Patch actually attached to this email... rick Great, I'll consolidate all these -- would it be better to mush them into one big patch, or to keep them separate (I

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-30 Thread Rick Frankel
On 29.04.2013 02:02, Eric Abrahamsen wrote: Rick Frankel r...@rickster.com writes: On Fri, Apr 26, 2013 at 10:14:17AM -0700, Eric Abrahamsen wrote: Rick Frankel r...@rickster.com writes: See the discussions of polyglot markup @ http://en.wikipedia.org/wiki/Polyglot_markup and

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-30 Thread Rick Frankel
Whoops. Wrong key. Patch actually attached to this email... rick From d95a365f547fdc681c530c9088f775b30a37d9aa Mon Sep 17 00:00:00 2001 From: Rick Frankel r...@rickster.com Date: Tue, 30 Apr 2013 10:35:14 -0400 Subject: [PATCH] Modify processing of xhtml declaration. * lisp/ox-html.el

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-30 Thread Eric Abrahamsen
Rick Frankel r...@rickster.com writes: Whoops. Wrong key. Patch actually attached to this email... rick Great, I'll consolidate all these -- would it be better to mush them into one big patch, or to keep them separate (I suppose for ease of rollback, if something goes wrong)? E

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-29 Thread Nicolas Goaziou
Hello, Eric Abrahamsen e...@ericabrahamsen.net writes: Tangential coding question: I've noticed that setting HTML_HTML5_FANCY to nil at the top of the export file results in `(plist-get info :html-html5-fancy)' returning the string nil, ie true. Not right, obviously, and it makes it

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-28 Thread Eric Abrahamsen
Rick Frankel r...@rickster.com writes: On Fri, Apr 26, 2013 at 10:14:17AM -0700, Eric Abrahamsen wrote: Rick Frankel r...@rickster.com writes: Therefore, `org-html-close-tag' should check that the doctype is not a flavor of html4 rather than a flavor of xhtml. An alternative would be to

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-26 Thread Rick Frankel
On 25.04.2013 17:20, Eric Abrahamsen wrote: Who knew this would turn out to be such a fraught issue! All I wanted was that little green checkmark from the W3C... Here's what I think should be an acceptable final patch. I dropped the CDATA mess, and came up with a slightly different

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-26 Thread Eric Abrahamsen
Rick Frankel r...@rickster.com writes: On 25.04.2013 17:20, Eric Abrahamsen wrote: Who knew this would turn out to be such a fraught issue! All I wanted was that little green checkmark from the W3C... Here's what I think should be an acceptable final patch. I dropped the CDATA mess, and

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-26 Thread Rick Frankel
On Fri, Apr 26, 2013 at 10:14:17AM -0700, Eric Abrahamsen wrote: Rick Frankel r...@rickster.com writes: Therefore, `org-html-close-tag' should check that the doctype is not a flavor of html4 rather than a flavor of xhtml. An alternative would be to add (xhtml5 . !DOCTYPE html) to the

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-25 Thread Eric Abrahamsen
François Pinard pin...@iro.umontreal.ca writes: Christian Wittern cwitt...@gmail.com writes: On 2013-04-23 21:09, François Pinard wrote: If I remember well [...] Well, in this case you are misremembering, empty elements, aka as self-closing tags are one of the innovations of XML. Just my

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-24 Thread François Pinard
Christian Wittern cwitt...@gmail.com writes: On 2013-04-23 21:09, François Pinard wrote: If I remember well [...] Well, in this case you are misremembering, empty elements, aka as self-closing tags are one of the innovations of XML. Just my nit to pick, A friendly nit-picking is always a

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-23 Thread Carsten Dominik
On 23.4.2013, at 06:57, Samuel Wales samolog...@gmail.com wrote: As a non-expert HTML user, I'd want whatever works on the most browsers, even old ones, as my audience is likely to include many who have old browsers in addition to many who have new ones, mobile ones, and

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-23 Thread Eric Abrahamsen
Carsten Dominik carsten.domi...@gmail.com writes: On 23.4.2013, at 06:57, Samuel Wales samolog...@gmail.com wrote: As a non-expert HTML user, I'd want whatever works on the most browsers, even old ones, as my audience is likely to include many who have old browsers in addition to many who

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-23 Thread François Pinard
Eric Abrahamsen e...@ericabrahamsen.net writes: I read that as just a better statement of what I was trying to say earlier: self-closing tags will render in HTML4, but they're not _strictly correct_ HTML4. I do not understand this assertion. I thought that HTML, up to but excluding HTML5,

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-23 Thread Christian Wittern
On 2013-04-23 21:09, François Pinard wrote: If I remember well, self-closing tags date back to SGML, not requiring (but also not forbidding) an introducing space to the closing slash. SGML does allow for closing tags to be optionally omitted (and for opening tags as well) but such optional

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-22 Thread Rick Frankel
On Sat, Apr 20, 2013 at 10:59:32AM +0800, Eric Abrahamsen wrote: The / style doesn't validate for html4, that's what I was going on. It certainly doesn't make my browser explode, but I wanted that little green checkmark! If we can live with that, that's fine, or I can try to come up with a

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-22 Thread Eric Abrahamsen
Rick Frankel r...@rickster.com writes: On Sat, Apr 20, 2013 at 10:59:32AM +0800, Eric Abrahamsen wrote: The / style doesn't validate for html4, that's what I was going on. It certainly doesn't make my browser explode, but I wanted that little green checkmark! If we can live with that,

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-19 Thread Rick Frankel
On 19.04.2013 05:57, Eric Abrahamsen wrote: I'm starting a new thread for this since the previous discussion was buried in with something tangential. I'm not proud of some of the implementation (self-closing vs non-self-closing tags are ugly, and I wish org-html-html5-p and org-html-xhtml-p

Re: [O] [PATCH] export to various flavors of (X)HTML

2013-04-19 Thread Eric Abrahamsen
Rick Frankel r...@rickster.com writes: On 19.04.2013 05:57, Eric Abrahamsen wrote: I'm starting a new thread for this since the previous discussion was buried in with something tangential. I'm not proud of some of the implementation (self-closing vs non-self-closing tags are ugly, and I