From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Alsinet Subject: Re: Nested smart quotes Date: Thu, 05 Oct 2017 19:41:14 +0000 Message-ID: References: <87wp49tnla.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114b8b52db160e055ad1e841" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0C1R-0005Cb-CD for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 15:41:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0C1O-0000yU-7c for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 15:41:29 -0400 Received: from mail-wr0-f175.google.com ([209.85.128.175]:53371) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0C1O-0000wS-1V for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 15:41:26 -0400 Received: by mail-wr0-f175.google.com with SMTP id y44so3938589wry.10 for ; Thu, 05 Oct 2017 12:41:25 -0700 (PDT) In-Reply-To: <87wp49tnla.fsf@alphaville.usersys.redhat.com> 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 , emacs-orgmode@gnu.org --001a114b8b52db160e055ad1e841 Content-Type: text/plain; charset="UTF-8" Hello Nick. First, thank you so much for your detailed answer. On Thu, Oct 5, 2017 at 2:16 PM Nick Dokos wrote: > > 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 > > She said to me: "Rick screamed, 'let us go together'" > > which when export to TeX becomes: > > She said to me: ``Rick screamed, `let us go together''' > > and TeX misinterprets the three closing single quotes as (closing > double quote, closing single quote) instead of (closing single quote, > closing double quote). > > I was beginning to suspect that, I didn't see it at first, but after writing and explaining the problem, it dawned on me that it could be LaTeX that cannot correctly parse the three consecutive single quotes. > > > > Internal > > > > 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. > > I'm not sure whether smart quotes can be made smarter, perhaps by > detecting the problem and inserting the small space \, to resolve the > ambiguity; but the manual space solution should have worked: what > version of org are you using? > > FWIW, mine is latest master: Org mode version 9.1.2 > (release_9.1.2-84-geeaf9a @ /home/nick/src/emacs/org/org-mode/lisp/) > I am using Org mode version 8.2.10, I will update my version and try again. Martin --001a114b8b52db160e055ad1e841 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Nick. First, thank you so much for your detailed ans= wer.

On Thu, Oct 5, 2017= at 2:16 PM Nick Dokos <ndokos@gmail= .com> wrote:

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 consi= dering

=C2=A0 =C2=A0 She said to me: "Rick screamed, 'let us go together&= #39;"

which when export to TeX becomes:

=C2=A0 =C2=A0 She said to me: ``Rick screamed, `let us go together''= ;'

and TeX misinterprets the three closing single quotes as (closing
double quote, closing single quote) instead of (closing single quote,
closing double quote).


I was beginning to suspect that, I did= n't see it at first, but after writing and explaining the problem, it d= awned on me that it could be LaTeX that cannot correctly parse the three co= nsecutive single quotes.
=C2=A0
>
> Internal
>
> In this case, the internal single quotes are rendered correctly, but t= he 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.

I'm not sure whether smart quotes can be made smarter, perhaps by
detecting the problem and inserting the small space \, to resolve the
ambiguity; but the manual space solution should have worked: what
version of org are you using?

FWIW, mine is latest master: Org mode version 9.1.2
(release_9.1.2-84-geeaf9a @ /home/nick/src/emacs/org/org-mode/lisp/)
=C2=A0
I am using Org mode version 8.2.10, I will = update my version and try again.


Ma= rtin

--001a114b8b52db160e055ad1e841--