From: Coleman Gariety <garietyc@reed.edu>
To: emacs-orgmode@gnu.org
Subject: Bug: Secondary smart quotes are exported as apostrophes. [9.1.14 (9.1.14-1-g4931fc-elpa @ /home/coleman/.emacs.d/elpa/org-9.1.14/)]
Date: Mon, 31 Dec 2018 10:41:33 -0800 [thread overview]
Message-ID: <CAJdAXQwzRMN9cp2rmYhiMKO0rVjioQkmEKtpd4NkRCD7CTGn5w@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1160 bytes --]
According to documentation (org-export-with-smart-quotes) should treat
"pairs of single quotes as secondary quotes." This text:
'foo'
Should be exported to HTML as:
‘foo’
However, org-mode 9.1.14 exports this text as:
’foo’
This does not occur when a secondary pair of quotations occurs within a
pair of primary quotations. This text:
"'foo'"
Gets exported (properly) as:
“‘foo’”
This also occurs when exporting to pdf, latex and odt.
I was able to get org to export smart quotes as expected by commenting
out line `5505` of `ox.el`:
5503 ;; Not already in a level 1 quote: this is an
5504 ;; apostrophe.
5505 ;; ((not level1-open) 'apostrophe)
Even with this line commented out, apostrophes are properly
exported. (Even within pairs of primary and secondary quotations.)
Is something wrong with my configuration? Or is there a problem with the
org-export--smart-quote-status function?
Thank you.
Coleman
Emacs : GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
of 2018-07-05
Package: Org mode version 9.1.14 (9.1.14-1-g4931fc-elpa @
/home/coleman/.emacs.d/elpa/org-9.1.14/)
[-- Attachment #2: Type: text/html, Size: 1787 bytes --]
next reply other threads:[~2018-12-31 18:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-31 18:41 Coleman Gariety [this message]
2019-01-01 15:46 ` Bug: Secondary smart quotes are exported as apostrophes. [9.1.14 (9.1.14-1-g4931fc-elpa @ /home/coleman/.emacs.d/elpa/org-9.1.14/)] Nicolas Goaziou
2019-01-02 21:51 ` Coleman Gariety
2019-01-03 11:21 ` Nicolas Goaziou
2019-01-06 3:51 ` Coleman Gariety
2019-01-08 10:13 ` Nicolas Goaziou
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=CAJdAXQwzRMN9cp2rmYhiMKO0rVjioQkmEKtpd4NkRCD7CTGn5w@mail.gmail.com \
--to=garietyc@reed.edu \
--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).