From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus 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 22:13:48 +0200 Message-ID: <87k2r5rptv.fsf@gmx.us> References: <2E01BDFD-3AA8-4057-AAEC-2A642755D0D2@gmail.com> <87pp0xcjod.fsf@nicolasgoaziou.fr> <87eghdayqz.fsf@nicolasgoaziou.fr> 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]:44140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi6iN-0004Io-9o for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 16:14:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zi6iK-0007F4-1V for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 16:13:59 -0400 Received: from plane.gmane.org ([80.91.229.3]:60900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi6iJ-0007Eb-Qn for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 16:13:55 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zi6iI-0003Ay-3S for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 22:13:54 +0200 Received: from 46.166.188.239 ([46.166.188.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Oct 2015 22:13:54 +0200 Received: from rasmus by 46.166.188.239 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Oct 2015 22:13:54 +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 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. >>> >>> Is that about right? >> >> 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 "“" :html "“" :latex "``" :texinfo "``") > (closing-single-quote :utf-8 "”" :html "”" :latex "''" :texinfo "''") > (opening-double-quote :utf-8 "‘" :html "‘" :latex "`" :texinfo "`") > (closing-double-quote :utf-8 "’" :html "’" :latex "'" :texinfo "'") > (apostrophe :utf-8 "’" :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). I think this would be nice. In ox-latex, 'en-GB' is recognized by both babel or polyglossia. Rasmus -- And I faced endless streams of vendor-approved Ikea furniture. . .