emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Rasmus <rasmus@gmx.us>
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, 02 Oct 2015 23:55:23 +0200	[thread overview]
Message-ID: <874mi9aqb8.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87k2r5rptv.fsf@gmx.us> (rasmus@gmx.us's message of "Fri, 02 Oct 2015 22:13:48 +0200")

Rasmus <rasmus@gmx.us> writes:

> Jonathan Oddie <j.j.oddie@gmail.com> writes:
>
>> 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).
>
> I think this would be nice.  In ox-latex, 'en-GB' is recognized by both
> babel or polyglossia.

I agree.

Also, I think it would be clearer to rename `opening-double-quote' to
`opening-primary-quote' and `opening-single-quote' to
`opening-secondary-quote'. WDYT?

Regards,

  reply	other threads:[~2015-10-02 21:53 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
2015-10-02 20:13         ` Rasmus
2015-10-02 21:55           ` Nicolas Goaziou [this message]
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=874mi9aqb8.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /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).