emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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/)]
@ 2018-12-31 18:41 Coleman Gariety
  2019-01-01 15:46 ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Coleman Gariety @ 2018-12-31 18:41 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

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

end of thread, other threads:[~2019-01-08 10:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-31 18:41 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/)] Coleman Gariety
2019-01-01 15:46 ` 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

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