From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Bug: Italics support fails after non-breaking space [8.2.6 (8.2.6-67-g9e09b2-elpa @ /home/crculver/.emacs.d/elpa/org-20140602/)] Date: Mon, 09 Jun 2014 09:51:14 +0800 Message-ID: <87d2eirgtp.fsf@ericabrahamsen.net> References: <87ioob2cad.fsf@aura.christopherculver.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wtogn-0002MP-Ez for emacs-orgmode@gnu.org; Sun, 08 Jun 2014 21:48:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wtogg-0000UV-UC for emacs-orgmode@gnu.org; Sun, 08 Jun 2014 21:47:57 -0400 Received: from plane.gmane.org ([80.91.229.3]:35382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wtogg-0000UL-Nh for emacs-orgmode@gnu.org; Sun, 08 Jun 2014 21:47:50 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wtogf-000867-8B for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 03:47:49 +0200 Received: from 114.248.0.25 ([114.248.0.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Jun 2014 03:47:49 +0200 Received: from eric by 114.248.0.25 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Jun 2014 03:47: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: emacs-orgmode@gnu.org Christopher Culver writes: > Remember to cover the basics, that is, what you expected to happen and > what in fact did happen. You don't know how to make a good report? See > > http://orgmode.org/manual/Feedback.html#Feedback > > Your bug report will be posted to the Org-mode mailing list. > ------------------------------------------------------------------------ > > The code for changing the font face to italics assumes that the opening > slash in text surrounded by /.../ will be preceded by a plain > space. However, authors preparing documents with LaTeX or HTML output in > mind may employ a non-breaking space before the text in italics (the > Unicode character U+00A0 NO-BREAK SPACE). > > I encountered this bug with the text "Fi. /mennä/", where the only space > is a non-breaking space (as it must be in any output to a typesetter for > my needs). Emacs keeps the text within slashes in the normal font face > instead of changing it to italics. Check the variable org-emphasis-regexp-components -- the first two elements specify what characters are allowed before and after an emphasis delimiter. You could add the non-breaking space to both of those elements, and it ought to work. I can't speak to potental gotchas that might arise because of this, or whether this ought to be part of the default value... Hope that helps, Eric