From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Superscripts and subscripts Date: Sat, 20 Apr 2013 21:11:10 +0200 Message-ID: <87haj1kofl.fsf@gmail.com> References: <87d2tv3s5b.fsf@bzg.ath.cx> <87k3nynzzv.fsf@gmail.com> <877gjy9wvg.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTdBr-0008PN-Vq for emacs-orgmode@gnu.org; Sat, 20 Apr 2013 15:11:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTdBq-00048S-Tp for emacs-orgmode@gnu.org; Sat, 20 Apr 2013 15:11:15 -0400 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:54214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTdBq-00048K-M2 for emacs-orgmode@gnu.org; Sat, 20 Apr 2013 15:11:14 -0400 Received: by mail-wi0-f180.google.com with SMTP id h11so2402427wiv.13 for ; Sat, 20 Apr 2013 12:11:14 -0700 (PDT) In-Reply-To: (Christian Moe's message of "Sat, 20 Apr 2013 07:26:49 +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: Christian Moe Cc: Achim Gratz , emacs-orgmode@gnu.org, "Thomas S. Dye" Hello, Christian Moe writes: >>> Nicolas Goaziou writes: >>>> Of course, we could work around this with a new rule saying "the longest >>>> match wins", which, in this case, is the underline. But it would be >>>> better to find a more elegant solution, one which would remove the sole >>>> ambiguity, AFAICT, in Org syntax. > > How did this work before? I never tried subscript after whitespace. But > we had both superscript-after-whitespace and > underlining-with-underscores working at the same time, without the > ambiguity causing problems as far as I remember. Simple: underline text was always handled (i.e. protected for further transformation) before subscript. But this doesn't remove the ambiguity. It just adds another parameter: the parsing order. Regards, -- Nicolas Goaziou