emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Adonay Felipe Nogueira <adfeno@hyperbola.info>
To: emacs-orgmode@gnu.org
Subject: Re: Nested smart quotes
Date: Thu, 05 Oct 2017 18:56:27 -0300	[thread overview]
Message-ID: <8760bt6yyc.fsf@hyperbola.info> (raw)
In-Reply-To: <CABUJmkDmvMN7vXH7gvL+9WUVeT0K7XuSa2krRhf6tPbRnHktPg@mail.gmail.com> (Martin Alsinet's message of "Thu, 05 Oct 2017 16:27:45 +0000")

What about using org-entities for these quotes?

\ldquo{}Hello \lsquo{}World\rsquo{}!\rdquo{}

This is Org mode syntax, not LaTeX.

Martin Alsinet <martin@alsinet.com.ar> 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 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:
>
> 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
>
>

-- 
- https://libreplanet.org/wiki/User:Adfeno
- Palestrante e consultor sobre /software/ livre (não confundir com
  gratis).
- "WhatsApp"? Ele não é livre. Por favor, veja formas de se comunicar
  instantaneamente comigo no endereço 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ão ODF), OGG, OPUS, PDF
  (apenas sem DRM), PNG, TXT, WEBM.

  parent reply	other threads:[~2017-10-05 21:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-05 16:27 Nested smart quotes Martin Alsinet
2017-10-05 17:22 ` Colin Baxter
2017-10-05 17:39   ` Martin Alsinet
2017-10-05 18:46 ` Nicolas Goaziou
2017-10-05 19:13 ` Nick Dokos
2017-10-05 19:41   ` Colin Baxter
2017-10-05 19:41   ` Martin Alsinet
2017-10-05 21:36     ` Nested smart quotes [fixed] Martin Alsinet
2017-10-05 21:56 ` Adonay Felipe Nogueira [this message]
2017-10-05 22:21   ` Nested smart quotes Martin Alsinet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8760bt6yyc.fsf@hyperbola.info \
    --to=adfeno@hyperbola.info \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).