emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: mail@nicolasgoaziou.fr
Cc: emacs-orgmode@gnu.org
Subject: Re: smart quotes and languages like en-gb
Date: Tue, 30 Nov 2021 20:37:17 +0100	[thread overview]
Message-ID: <87pmqhwi36.fsf@gmx.us> (raw)
In-Reply-To: <87bl24p2sp.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 28 Nov 2021 19:12:38 +0100")

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
> Rasmus <rasmus@gmx.us> writes:
>> I have noticed that smart quotes are not picked up for “long” languages,
>> like “en-gb”, since smart quotes are defined for “short” languages, like
>> “en”, in org-export-smart-quotes-alist.
>> The attached patch is an attempt at remedying this.  Not sure if it is the
>> best fix, though...
> IMO, this is a bit of a kludge. 
> "oc.el" parses language-region tags already, although it has not been
> factored out as an independent function yet. See
> `org-cite--get-note-rule'. Maybe moving this part to "org-macs.el" would
> be a better solution.

The patch is definitely dodgy. E.g. if I have rules for both en-gb and en
the smart quote would depend on the order of ‘org-export-smart-quotes-alist’.

So a better patch is needed, indeed.

Thanks for the reference to the oc function.  I will check it ASAP.


I feel emotional landscapes they puzzle me

      reply	other threads:[~2021-11-30 19:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-28 17:46 smart quotes and languages like en-gb Rasmus
2021-11-28 18:12 ` Nicolas Goaziou
2021-11-30 19:37   ` Rasmus [this message]

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:

  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=87pmqhwi36.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \


* 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


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