From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Exporting smart single quotes in Org 8.3 seems broken [8.3.2 (8.3.2-elpa @ /Users/jonathan/.emacs.d/elpa/org-20150929/)] Date: Fri, 02 Oct 2015 18:35:46 +0200 Message-ID: <87pp0xcjod.fsf@nicolasgoaziou.fr> References: <2E01BDFD-3AA8-4057-AAEC-2A642755D0D2@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi3Hf-0005sC-0K for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 12:34:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zi3Hd-0004ZG-PD for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 12:34:10 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:53029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi3Hd-0004WN-I3 for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 12:34:09 -0400 In-Reply-To: <2E01BDFD-3AA8-4057-AAEC-2A642755D0D2@gmail.com> (Jonathan Oddie's message of "Thu, 1 Oct 2015 15:45:38 -0700") 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: Jonathan Oddie Cc: emacs-orgmode@gnu.org Hello, Jonathan Oddie writes: > (This is a duplicate of a Stackexchange question posted at=20 > http://emacs.stackexchange.com/questions/17061/is-exporting-of-smart-sing= le-quotes-broken-in-org-8-3) > > I cannot seem get single quotes to export as 'smart' quotes under Org > 8.3.2. Here is a minimal file that reproduces the problem: > > #+OPTIONS: ':t > #+LANGUAGE: en > > This is 'within single quotes'. This is "within double quotes". > > Expected behavior: from "emacs -Q", under which "M-x org-version" > reports 8.2.10, the output when exporting to UTF-8 plaintext is: > > This is =E2=80=98within single quotes=E2=80=99. This is =E2=80=9Cwith= in double quotes=E2=80=9D > > and the output when exporting to LaTeX is: > > This is `within single quotes'. This is ``within double quotes''. > > If I load the most recent version of org-mode (starting from "emacs -Q", > typing "M-x package-initialize RET", and "M-x load-library RET org > RET"), "org-version" reports 8.3.2, and the output no longer correctly > translates single quotes. In UTF-8 text, the result is: > > This is =E2=80=99within single quotes=E2=80=99. This is =E2=80=9Cwith= in double quotes=E2=80=9D. > > In LaTeX, the result is: > > This is 'within single quotes'. This is ``within double quotes''. > > Thanks in advance for any advice, The smart quotes algorithm changed. Now "..." are always level 1 quotes, and '...' and always level 2. IOW, '...' are not treated as smart quotes if they are not located within "...". Note that for a given language, "..." can still be treated as single quotes and '...' as double quotes. Regards, --=20 Nicolas Goaziou