From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: [patch][ox-html] Stylistic changes Date: Sun, 16 Mar 2014 01:33:12 +0100 Message-ID: <874n2z3ruf.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOz1B-00081o-Kn for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 20:33:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOz16-0002CS-FV for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 20:33:33 -0400 Received: from plane.gmane.org ([80.91.229.3]:51359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOz16-0002At-93 for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 20:33:28 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WOz13-0006ys-0y for emacs-orgmode@gnu.org; Sun, 16 Mar 2014 01:33:25 +0100 Received: from dynamic-adsl-94-39-222-239.clienti.tiscali.it ([94.39.222.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Mar 2014 01:33:25 +0100 Received: from rasmus by dynamic-adsl-94-39-222-239.clienti.tiscali.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Mar 2014 01:33:25 +0100 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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi, Here's a couple of minor changes for ox-html. First, I dropped the references to HTML5 hgroup since apparently W3 did the same¹. Second, for some reason ox-html replaces a couple of entities by itself—rather than letting org-entities do it—but uses hex references (or whatever), rather than a "nice" HTML character entity. The second patch fixes this. (I naively assume that there is not a reason for not using the pretty references). —Rasmus Footnotes: ¹ e.g. http://html5doctor.com/the-hgroup-element/ -- May the Force be with you --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Remove-reference-to-hgroup-in-ox-html.patch >From 8325901e959e16d34546ca7bf74d7efbc8e16825 Mon Sep 17 00:00:00 2001 From: Rasmus Date: Sun, 16 Mar 2014 00:36:21 +0100 Subject: [PATCH 1/2] Remove reference to hgroup in ox-html * ox-html.el (org-html-html5-elements): Drop reference to hgroup. --- lisp/ox-html.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index a8c924f..cb95161 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -169,10 +169,8 @@ "progress" "section" "video") "New elements in html5. -
is not included because it's currently impossible to -wrap special blocks around multiple headlines. For other blocks -that should contain headlines, use the HTML_CONTAINER property on -the headline itself.") +For blocks that should contain headlines, use the HTML_CONTAINER +property on the headline itself.") (defconst org-html-special-string-regexps '(("\\\\-" . "­") ; shy -- 1.9.0 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0002-Proper-HTML-entities-for-dashes-dots-in-ox-html.patch >From bd096d2040d4ffaa517466ac85c4e0da08863bec Mon Sep 17 00:00:00 2001 From: Rasmus Date: Sun, 16 Mar 2014 00:54:11 +0100 Subject: [PATCH 2/2] Proper HTML entities for dashes, dots in ox-html * ox-html.el (org-html-special-string-regexps): Use HTML entities. --- lisp/ox-html.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index cb95161..8e22df6 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -173,10 +173,10 @@ For blocks that should contain headlines, use the HTML_CONTAINER property on the headline itself.") (defconst org-html-special-string-regexps - '(("\\\\-" . "­") ; shy - ("---\\([^-]\\)" . "—\\1") ; mdash - ("--\\([^-]\\)" . "–\\1") ; ndash - ("\\.\\.\\." . "…")) ; hellip + '(("\\\\-" . "­") ; shy + ("---\\([^-]\\)" . "—\\1") ; mdash + ("--\\([^-]\\)" . "–\\1") ; ndash + ("\\.\\.\\." . "…")) ; hellip "Regular expressions for special string conversion.") (defconst org-html-scripts -- 1.9.0 --=-=-=--