From mboxrd@z Thu Jan 1 00:00:00 1970 From: Colin Baxter Subject: Re: Nested smart quotes Date: Thu, 05 Oct 2017 18:22:48 +0100 Message-ID: <878tgpse53.fsf@yandex.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e09rN-0006A5-Ou for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 13:22:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e09rK-00027P-IV for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 13:22:57 -0400 Received: from forward102j.mail.yandex.net ([5.45.198.243]:39064) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e09rK-000262-1j for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 13:22:54 -0400 In-Reply-To: (Martin Alsinet's message of "Thu, 05 Oct 2017 16:27:45 +0000") 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: Martin Alsinet Cc: emacs-orgmode@gnu.org >>>>> Martin Alsinet writes: > #+TITLE: Smart quotes example #+OPTIONS: toc:nil ':t #+LANGUAGE: > en #+LATEX_CLASS: book She said to me: "Rick screamed, 'let's go > together'" > This gets exported to TeX as: > She said to me: ``Rick screamed, `let's go together''' > Which gets rendered as PDF as: > The order of the closing quotes is wrong > The order of the closing quotes gets reversed, it first closes the > outside double quotes and then the nested single quote. > I have tried leaving a space between them, but that is arguably > worse > Org: > She said to me: "Rick screamed, 'let's go together' " > TeX: > She said to me: ``Rick screamed, `let's go together' " > PDF: > Internal quotes are ok, closing double quote is wrong > In this case, the internal single quotes are rendered correctly, > but the closing quote is not converted into its "smart" version. > If the nested quotes are in such a way that there are other > characters between the quotes, that is they are not together at > the start or the end of the quote, they get rendered correctly. > Thanks in advance > Martin What about She said to me: \lq\lq Rick screamed, \lq let's go together\rq\nbsp{}\rq\rq -- Colin Baxter m43cap@yandex.com