[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: smart quotes and languages like en-gb
From: |
Rasmus |
Subject: |
Re: smart quotes and languages like en-gb |
Date: |
Tue, 30 Nov 2021 20:37:17 +0100 |
User-agent: |
Emacs Gnus |
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.
Thanks,
Rasmus
--
I feel emotional landscapes they puzzle me