From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Morgan Subject: Re: Bug: unconverted dashes in HTML export Date: Mon, 10 Feb 2014 10:33:44 +0100 Message-ID: <878utj71mv.fsf@azha.ziiuu.com> References: <87d2iykpwo.fsf@azha.ziiuu.com> <87ha8aymst.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCquk-0008Ta-R2 for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 08:28:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCqud-0007J9-Gf for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 08:28:46 -0500 Received: from mail-la0-f42.google.com ([209.85.215.42]:65113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCqud-0007Ir-9q for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 08:28:39 -0500 Received: by mail-la0-f42.google.com with SMTP id hr13so4846485lab.29 for ; Mon, 10 Feb 2014 05:28:37 -0800 (PST) In-Reply-To: <87ha8aymst.fsf@gmail.com> (Nicolas Goaziou's message of "Sat, 08 Feb 2014 10:29:54 +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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hi, Nicolas, > The new regexps still don't look right, as they can match an additional > dash: > > (string-match "---\\([^-]?\\)" "----") => 0 > > I'm not sure about the intent of this regexp, that is whether > consecutive mdashes or ndashes are allowed or not. > > A correct version could be either: > > ("---" . "—") > > or > > ("\\([^-]\\|^\\)---\\([^-]\\|$\\)" . "\\1—\\2") > > I think the former is on par with LaTeX behaviour. Good point, and I don't see any problem with your first version, though I don't understand the intent behind the original regexp, either. I had assumed the point was to avoid matching horizontal separator lines in tables, but that doesn't seem to be an issue. Thanks, Thomas