From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Alsinet Subject: Nested smart quotes Date: Thu, 05 Oct 2017 16:27:45 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114422bceb09c8055acf3483" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e090D-0005VQ-Aa for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 12:28:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e090A-00062J-2A for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 12:28:01 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:43456) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0909-000615-NI for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 12:27:57 -0400 Received: by mail-wm0-f52.google.com with SMTP id m72so2261094wmc.0 for ; Thu, 05 Oct 2017 09:27:57 -0700 (PDT) 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: emacs-orgmode@gnu.org --001a114422bceb09c8055acf3483 Content-Type: text/plain; charset="UTF-8" Hello! My name is Martin and I use org-mode every day. This is my first message to the mailing list, and I wanted to ask if somebody could help me with a problem I encountered when exporting a document with nested smart quotes. I have submitted the same question to the emacs Stack Exchange, and someone suggested there to send a message to this list. I assume many people here reads their email inside emacs, and since this email has embedded images, you might see it better formatted in SO. 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 gets exported to TeX as: She said to me: ``Rick screamed, `let's go together''' Which gets rendered as PDF as: [image: 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: [image: 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 --001a114422bceb09c8055acf3483 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello!

=

My name is = Martin and I use org-mode every day. This is my first message to the mailin= g list, and I wanted to ask if somebody could help me with a problem I enco= untered when exporting a document with nested smart quotes.

I have submitted the same question to the emacs Stack Exchange, and someone s= uggested there to send a message to this list. I assume many people here re= ads their email inside emacs, and since this email has embedded images, you= might see it better formatted in SO.

I have found that the= smart-quotes option of org-mode does not export properly the quotes when t= hey are nested (single quotes inside double quotes), but only when they coi= ncide at the start or the end of the quote.

Maybe the problem will be cl= earer with an example:

#+TIT=
LE: Smart quotes example
#+OPTIONS: toc:nil ':t
#+LANGUAGE: en
#+LATEX_CLASS: book
She said to me: "Rick screamed, 'let's go together'"=
=20

<= code style=3D"margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,= Monaco,"Lucida Console","Liberation Mono","DejaVu = Sans Mono","Bitstream Vera Sans Mono","Courier New"= ;,monospace,sans-serif;font-style:inherit;font-variant-caps:inherit;font-st= retch:inherit;line-height:inherit;vertical-align:baseline;white-space:inher= it">She said to me: ``Rick screamed, `let's go together'''

3D"The

The order of th= e closing quotes gets reversed, it first closes the outside double quotes a= nd then the nested single quote.

I have tried leaving a space between them, but tha= t is arguably worse

Org:

She said to=
 me: "Rick screamed, 'let's go together' "=20

She said to me: ``Ric= k screamed, `let's go together' "

<= a href=3D"https://i.stack.imgur.com/cqbzj.png" rel=3D"nofollow noreferrer" = style=3D"margin:0px;padding:0px;border:0px;font-family:inherit;font-size:in= herit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;lin= e-height:inherit;vertical-align:baseline;color:rgb(99,131,170);text-decorat= ion:none">3D"Internal

In this case, the internal s= ingle 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 th= ere 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

<= /div>

Martin



--001a114422bceb09c8055acf3483--