From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adonay Felipe Nogueira Subject: Re: Nested smart quotes Date: Thu, 05 Oct 2017 18:56:27 -0300 Message-ID: <8760bt6yyc.fsf@hyperbola.info> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0E8C-00054m-Dn for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 17:56:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0E89-0003YM-BA for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 17:56:36 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:59817) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e0E89-0003WN-5o for emacs-orgmode@gnu.org; Thu, 05 Oct 2017 17:56:33 -0400 Received: from adfeno-pc1 (unknown [181.221.159.64]) (Authenticated sender: adfeno@hyperbola.info) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 734C7A80CF for ; Thu, 5 Oct 2017 23:56:29 +0200 (CEST) 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: emacs-orgmode@gnu.org What about using org-entities for these quotes? \ldquo{}Hello \lsquo{}World\rsquo{}!\rdquo{} This is Org mode syntax, not LaTeX. Martin Alsinet writes: > 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 someo= ne > 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'"=20 > > 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' "=20 > > 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 > > --=20 - https://libreplanet.org/wiki/User:Adfeno - Palestrante e consultor sobre /software/ livre (n=C3=A3o confundir com gratis). - "WhatsApp"? Ele n=C3=A3o =C3=A9 livre. Por favor, veja formas de se comun= icar instantaneamente comigo no endere=C3=A7o abaixo. - Contato: https://libreplanet.org/wiki/User:Adfeno#vCard - Arquivos comuns aceitos (apenas sem DRM): Corel Draw, Microsoft Office, MP3, MP4, WMA, WMV. - Arquivos comuns aceitos e enviados: CSV, GNU Dia, GNU Emacs Org, GNU GIMP, Inkscape SVG, JPG, LibreOffice (padr=C3=A3o ODF), OGG, OPUS, PDF (apenas sem DRM), PNG, TXT, WEBM.