emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jonathan Oddie <j.j.oddie@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: Exporting smart single quotes in Org 8.3 seems broken [8.3.2 (8.3.2-elpa @ /Users/jonathan/.emacs.d/elpa/org-20150929/)]
Date: Fri, 2 Oct 2015 12:36:38 -0700	[thread overview]
Message-ID: <C00AB628-82D9-4349-B457-311F6424C8BA@gmail.com> (raw)
In-Reply-To: <87eghdayqz.fsf@nicolasgoaziou.fr>

Hello Nicolas,

Thanks for your response.

>> However, I could customize `org-export-smart-quotes-alist' to export
>> outer quotes using single quote marks and inner quotes using double
>> quote marks.
>> 
>> Is that about right?
> 
> Correct. However, `org-export-smart-quotes-alist' aims to be
> typographically correct for all handled languages, so it is not
> customizable.

In British English, I believe standard typographical style uses single quotation marks for normal quotations, and double quotation marks for inner quotations.

I can obtain this behaviour with Org 8.3 by evaluating the following form in *scratch*:

    (push
     '("en-GB"
       (opening-single-quote :utf-8 "“" :html "&ldquo;" :latex "``" :texinfo "``")
       (closing-single-quote :utf-8 "”" :html "&rdquo;" :latex "''" :texinfo "''")
       (opening-double-quote :utf-8 "‘" :html "&lsquo;" :latex "`" :texinfo "`")
       (closing-double-quote :utf-8 "’" :html "&rsquo;" :latex "'" :texinfo "'")
       (apostrophe :utf-8 "’" :html "&rsquo;"))
     org-export-smart-quotes-alist)

and then adding #+LANGUAGE: en-GB to my input org-mode file (sample input and output below).

Would a patch to this effect be acceptable for a future Org release?  (I would also be happy to contribute a documentation patch for the manual).

Thanks,

Jonathan

==========
test.org input:
==========

#+OPTIONS: ':t
#+LANGUAGE: en-GB

This is "a quotation."

This is "a quotation with 'an inner quotation'".

This sentence doesn't contain a contraction.

This quotation "doesn't" contain a contraction.

This "nested quotation 'doesn't' contain a contraction."

This "nested quotation 'doesn't contain' a contraction."

==========
UTF-8 output:
==========

This is ‘a quotation.’

This is ‘a quotation with “an inner quotation”’.

This sentence doesn’t contain a contraction.

This quotation ‘doesn’t’ contain a contraction.

This ‘nested quotation “doesn’t” contain a contraction.’

This ‘nested quotation “doesn’t contain” a contraction.’




> Also, this variable predates the new algorithm, so it introduces some
> confusion in its entries: there, "opening-double-quote" should be
> understood as "opening-outer-quote" and "opening-single-quote" as
> "opening-inner-quote", or some such.

> 
> Regards,

  reply	other threads:[~2015-10-02 19:36 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01 22:45 Bug: Exporting smart single quotes in Org 8.3 seems broken [8.3.2 (8.3.2-elpa @ /Users/jonathan/.emacs.d/elpa/org-20150929/)] Jonathan Oddie
2015-10-02 16:35 ` Nicolas Goaziou
2015-10-02 17:32   ` Jonathan Oddie
2015-10-02 18:53     ` Nicolas Goaziou
2015-10-02 19:36       ` Jonathan Oddie [this message]
2015-10-02 20:13         ` Rasmus
2015-10-02 21:55           ` Nicolas Goaziou
2015-10-02 22:24             ` Rasmus
2015-10-03  7:30               ` Nicolas Goaziou
2015-12-06 13:55                 ` lipidic man
2015-12-06 15:28                   ` Rasmus
2015-12-06 17:45                     ` Nicolas Goaziou
2015-12-06 18:21                     ` lipidic man
2016-09-15  6:59                 ` Suvayu Ali
2016-09-15 13:29                   ` Nicolas Goaziou
2016-09-16  7:08                     ` Suvayu Ali
2016-09-16 16:40                       ` 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=C00AB628-82D9-4349-B457-311F6424C8BA@gmail.com \
    --to=j.j.oddie@gmail.com \
    --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).