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 23:55:23 +0200 Message-ID: <874mi9aqb8.fsf@nicolasgoaziou.fr> References: <2E01BDFD-3AA8-4057-AAEC-2A642755D0D2@gmail.com> <87pp0xcjod.fsf@nicolasgoaziou.fr> <87eghdayqz.fsf@nicolasgoaziou.fr> <87k2r5rptv.fsf@gmx.us> 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]:43271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi8Gu-0003iI-EE for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 17:53:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zi8Gt-0005Ny-GI for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 17:53:44 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:46411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi8Gt-0005NG-9r for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 17:53:43 -0400 In-Reply-To: <87k2r5rptv.fsf@gmx.us> (rasmus@gmx.us's message of "Fri, 02 Oct 2015 22:13:48 +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: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > Jonathan Oddie writes: > >> 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 q= uotation marks for normal quotations, and double quotation marks for inner = quotations. >> >> I can obtain this behaviour with Org 8.3 by evaluating the following for= m in *scratch*: >> >> (push >> '("en-GB" >> (opening-single-quote :utf-8 "=E2=80=9C" :html "“" :latex "= ``" :texinfo "``") >> (closing-single-quote :utf-8 "=E2=80=9D" :html "”" :latex "= ''" :texinfo "''") >> (opening-double-quote :utf-8 "=E2=80=98" :html "‘" :latex "= `" :texinfo "`") >> (closing-double-quote :utf-8 "=E2=80=99" :html "’" :latex "= '" :texinfo "'") >> (apostrophe :utf-8 "=E2=80=99" :html "’")) >> org-export-smart-quotes-alist) >> >> and then adding #+LANGUAGE: en-GB to my input org-mode file (sample inpu= t 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). > > I think this would be nice. In ox-latex, 'en-GB' is recognized by both > babel or polyglossia. I agree. Also, I think it would be clearer to rename `opening-double-quote' to `opening-primary-quote' and `opening-single-quote' to `opening-secondary-quote'. WDYT? Regards,