From mboxrd@z Thu Jan 1 00:00:00 1970 From: Colin Baxter Subject: Re: Nested smart quotes Date: Thu, 05 Oct 2017 20:41:06 +0100 Message-ID: <87y3opqt65.fsf@yandex.com> References: <87wp49tnla.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0C1F-000578-Ul for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 15:41:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0C1C-0000fa-Sl for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 15:41:17 -0400 Received: from forward106j.mail.yandex.net ([5.45.198.249]:56872) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e0C1C-0000db-C2 for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 15:41:14 -0400 In-Reply-To: <87wp49tnla.fsf@alphaville.usersys.redhat.com> (Nick Dokos's message of "Thu, 05 Oct 2017 15:13:21 -0400") 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" To: Nick Dokos Cc: emacs-orgmode@gnu.org >>>>> Nick Dokos writes: > Martin Alsinet writes: >> ... I have found that the smart-quotes option of org-mode does >> not export properly the quotes when they are nested (single >> quotes inside double quotes), but only when they coincide at the >> start or the end of the quote. >> >> Maybe the problem will be clearer with an example: >> >> #+TITLE: Smart quotes example #+OPTIONS: toc:nil ':t #+LANGUAGE: >> en #+LATEX_CLASS: book She said to me: "Rick screamed, 'let's go >> together'" >> > This example has the additional problem of the apostrophe in > "let's", which basically causes more mayhem. Let's simplify the > example a bit by considering > Going back to the original string with the apostrophe, I don't see > any way that org or TeX can deal with it except by really > understanding what is being said: having the apostrophe be denoted > by the same symbol as the closing quote is bound to introduce > ambiguities. In these days of Unicode, I think the only solution > is to use xelatex or another Unicode-cognizant TeX system and to > use a proper apostrophe. > -- Nick TeX/LaTeX were after all designed primarily for mathematics. That said, it might be worth looking at the upquote package: https://ctan.org/pkg/upquote. -- Colin Baxter m43cap@yandex.com --------------------------------------------------------------------- GnuPG fingerprint: 68A8 799C 0230 16E7 BF68 2A27 BBFA 2492 91F5 41C8 --------------------------------------------------------------------- "There is no more common error than to assume that, because prolonged and accurate mathematical calculations have been made, the application of the result to some fact of nature is absolutely certain." A. N. Whitehead