From mboxrd@z Thu Jan 1 00:00:00 1970 From: Coleman Gariety 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 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ac4a6d057e55c3f0" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ge2WU-0002Qb-0t for emacs-orgmode@gnu.org; Mon, 31 Dec 2018 13:42:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ge2WT-000568-0i for emacs-orgmode@gnu.org; Mon, 31 Dec 2018 13:42:45 -0500 Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]:42605) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ge2WS-0003XS-Pa for emacs-orgmode@gnu.org; Mon, 31 Dec 2018 13:42:44 -0500 Received: by mail-yb1-xb34.google.com with SMTP id q145so9304048ybq.9 for ; Mon, 31 Dec 2018 10:41:44 -0800 (PST) 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 --000000000000ac4a6d057e55c3f0 Content-Type: text/plain; charset="UTF-8" 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/) --000000000000ac4a6d057e55c3f0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
According to documentation (org-expo= rt-with-smart-quotes) should treat
"pairs of single quotes a= s secondary quotes." This text:

'foo'=

Should be exported to HTML as:

‘foo’

However, org-mode= 9.1.14 exports this text as:

’foo&r= squo;

This does not occur when a secondary pair of= quotations occurs within a
pair of primary quotations. This text= :

"'foo'"

Gets exported (properly) as:

“&ls= quo;foo’”

This also occurs whe= n exporting to pdf, latex and odt.

I was able to g= et 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 l= evel1-open) 'apostrophe)

Even with this line c= ommented out, apostrophes are properly
exported. (Even within pai= rs of primary and secondary quotations.)

Is someth= ing wrong with my configuration? Or is there a problem with the
o= rg-export--smart-quote-status function?

Thank you.=
Coleman

Emacs=C2=A0 : GNU Emacs 26.1 (b= uild 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
=C2=A0of 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/)

--000000000000ac4a6d057e55c3f0--