emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Nested smart quotes
@ 2017-10-05 16:27 Martin Alsinet
  2017-10-05 17:22 ` Colin Baxter
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Martin Alsinet @ 2017-10-05 16:27 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1969 bytes --]

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
<https://emacs.stackexchange.com/questions/35942/nested-smart-quotes-in-org-mode>
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]
<https://i.stack.imgur.com/7QHh7.png>

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]
<https://i.stack.imgur.com/cqbzj.png>

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

[-- Attachment #2: Type: text/html, Size: 11089 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-10-05 22:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` Nested smart quotes Adonay Felipe Nogueira
2017-10-05 22:21   ` Martin Alsinet

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).