From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Oddie 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, 2 Oct 2015 12:36:38 -0700 Message-ID: References: <2E01BDFD-3AA8-4057-AAEC-2A642755D0D2@gmail.com> <87pp0xcjod.fsf@nicolasgoaziou.fr> <87eghdayqz.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi68M-0004BV-IP for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 15:36:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zi68H-0007Jx-Hb for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 15:36:46 -0400 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:36310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi68H-0007Jo-C2 for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 15:36:41 -0400 Received: by pablk4 with SMTP id lk4so113712797pab.3 for ; Fri, 02 Oct 2015 12:36:40 -0700 (PDT) Received: from [192.168.0.7] (71-35-100-207.tukw.qwest.net. [71.35.100.207]) by smtp.gmail.com with ESMTPSA id fb1sm13462637pab.9.2015.10.02.12.36.39 for (version=TLS1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 Oct 2015 12:36:39 -0700 (PDT) In-Reply-To: <87eghdayqz.fsf@nicolasgoaziou.fr> 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 Cc: emacs-orgmode@gnu.org Hello Nicolas, Thanks for your response. >> However, I could customize `org-export-smart-quotes-alist' to export >> outer quotes using single quote marks and inner quotes using double >> quote marks. >>=20 >> Is that about right? >=20 > Correct. However, `org-export-smart-quotes-alist' aims to be > typographically correct for all handled languages, so it is not > customizable. In British English, I believe standard typographical style uses single = quotation marks for normal quotations, and double quotation marks for = inner quotations. I can obtain this behaviour with Org 8.3 by evaluating the following = form in *scratch*: (push '("en-GB" (opening-single-quote :utf-8 "=93" :html "“" :latex "``" = :texinfo "``") (closing-single-quote :utf-8 "=94" :html "”" :latex "''" = :texinfo "''") (opening-double-quote :utf-8 "=91" :html "‘" :latex "`" = :texinfo "`") (closing-double-quote :utf-8 "=92" :html "’" :latex "'" = :texinfo "'") (apostrophe :utf-8 "=92" :html "’")) org-export-smart-quotes-alist) and then adding #+LANGUAGE: en-GB to my input org-mode file (sample = input and output below). Would a patch to this effect be acceptable for a future Org release? (I = would also be happy to contribute a documentation patch for the manual). Thanks, Jonathan =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D test.org input: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #+OPTIONS: ':t #+LANGUAGE: en-GB This is "a quotation." This is "a quotation with 'an inner quotation'". This sentence doesn't contain a contraction. This quotation "doesn't" contain a contraction. This "nested quotation 'doesn't' contain a contraction." This "nested quotation 'doesn't contain' a contraction." =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D UTF-8 output: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This is =91a quotation.=92 This is =91a quotation with =93an inner quotation=94=92. This sentence doesn=92t contain a contraction. This quotation =91doesn=92t=92 contain a contraction. This =91nested quotation =93doesn=92t=94 contain a contraction.=92 This =91nested quotation =93doesn=92t contain=94 a contraction.=92 > Also, this variable predates the new algorithm, so it introduces some > confusion in its entries: there, "opening-double-quote" should be > understood as "opening-outer-quote" and "opening-single-quote" as > "opening-inner-quote", or some such. >=20 > Regards,