From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Alsinet Subject: Re: Nested smart quotes Date: Thu, 05 Oct 2017 17:39:38 +0000 Message-ID: References: <878tgpse53.fsf@yandex.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114b8b52068781055ad03607" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0A7m-00059B-5t for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 13:39:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0A7j-0002vP-2j for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 13:39:54 -0400 Received: from mail-wr0-f180.google.com ([209.85.128.180]:54465) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0A7i-0002uW-Se for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 13:39:51 -0400 Received: by mail-wr0-f180.google.com with SMTP id o44so9617108wrf.11 for ; Thu, 05 Oct 2017 10:39:50 -0700 (PDT) In-Reply-To: <878tgpse53.fsf@yandex.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: Colin Baxter Cc: emacs-orgmode@gnu.org --001a114b8b52068781055ad03607 Content-Type: text/plain; charset="UTF-8" Colin: The beauty of smart quotes is that I don't have to see the ugly LaTeX formatting in my org file, but the final document has the corresponding opening and closing quote characters. While I do sprinkle some LaTeX here and there in my org files, I think that would be going a little too far for my taste. Thanks anyway! Martin On Thu, Oct 5, 2017 at 12:22 PM Colin Baxter wrote: > >>>>> 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 > --001a114b8b52068781055ad03607 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Colin:

The beauty of smart quotes is th= at I don't have to see the ugly LaTeX formatting in my org file, but th= e final document has the corresponding opening and closing quote characters= . While I do sprinkle some LaTeX here and there in my org files, I think th= at would be going a little too far for my taste.

T= hanks anyway!

Martin

On Thu, Oct 5, 2017 at 12:22 P= M Colin Baxter <m43cap@yandex.com> wrote:
>>>>> = Martin Alsinet <martin@alsinet.com.ar> writes:


=C2=A0 =C2=A0 > #+TITLE: Smart quotes example #+OPTIONS: toc:nil ':t= #+LANGUAGE:
=C2=A0 =C2=A0 > en #+LATEX_CLASS: book She said to me: "Rick scream= ed, 'let's go
=C2=A0 =C2=A0 > together'"

=C2=A0 =C2=A0 > This gets exported to TeX as:

=C2=A0 =C2=A0 > She said to me: ``Rick screamed, `let's go together&= #39;''

=C2=A0 =C2=A0 > Which gets rendered as PDF as:

=C2=A0 =C2=A0 > The order of the closing quotes is wrong

=C2=A0 =C2=A0 > The order of the closing quotes gets reversed, it first = closes the
=C2=A0 =C2=A0 > outside double quotes and then the nested single quote.<= br>
=C2=A0 =C2=A0 > I have tried leaving a space between them, but that is a= rguably
=C2=A0 =C2=A0 > worse

=C2=A0 =C2=A0 > Org:

=C2=A0 =C2=A0 > She said to me: "Rick screamed, 'let's go t= ogether' "

=C2=A0 =C2=A0 > TeX:

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

=C2=A0 =C2=A0 > PDF:

=C2=A0 =C2=A0 > Internal quotes are ok, closing double quote is wrong
=C2=A0 =C2=A0 > In this case, the internal single quotes are rendered co= rrectly,
=C2=A0 =C2=A0 > but the closing quote is not converted into its "sm= art" version.

=C2=A0 =C2=A0 > If the nested quotes are in such a way that there are ot= her
=C2=A0 =C2=A0 > characters between the quotes, that is they are not toge= ther at
=C2=A0 =C2=A0 > the start or the end of the quote, they get rendered cor= rectly.

=C2=A0 =C2=A0 > Thanks in advance

=C2=A0 =C2=A0 > Martin

What about

She said to me: \lq\lq Rick screamed, \lq let's go together\rq\nbsp{}\r= q\rq


--
Colin Baxter
m43cap@yandex.com
--001a114b8b52068781055ad03607--