all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [BUG] Smart quotes do not work in export when language is en-gb
@ 2023-02-10  2:03 ch.emacs--- via General discussions about Org-mode.
  2023-02-11 10:41 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: ch.emacs--- via General discussions about Org-mode. @ 2023-02-10  2:03 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

When exporting a document to LaTeX with smart quotes enabled, I found 
that this had been ignored (e.g. "hello" vs ``hello'' in the output). I 
had the document language set to en-gb, which it seems disables smart 
quotes, as there is no corresponding entry in org-export-smart-quotes 
alist. This is inconsistent with org-latex-language-alist, which 
correctly handles the en-gb case for babel and polyglossia.

I did find some old discussion on the ML about how the algorithm may 
have to be adjusted to accommodate “British style” quoting (single outer 
and double inner quotes) but failing a consensus on that (I am British 
but personally do not use that style), I think it at least makes sense 
to replicate the en(-us) behaviour.

As far as I can tell, this applies to en-au and en-nz too.

Corin Hoad

Emacs  : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 
3.24.36, cairo version 1.16.0)
Package: Org mode version 9.6 (9.6-??-bed47b4 @ 
/home/corin/.emacs.d/.local/straight/build-28.2/org/)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] Smart quotes do not work in export when language is en-gb
  2023-02-10  2:03 [BUG] Smart quotes do not work in export when language is en-gb ch.emacs--- via General discussions about Org-mode.
@ 2023-02-11 10:41 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2023-02-11 10:41 UTC (permalink / raw)
  To: ch.emacs; +Cc: emacs-orgmode

ch.emacs--- via "General discussions about Org-mode."
<emacs-orgmode@gnu.org> writes:

> When exporting a document to LaTeX with smart quotes enabled, I found 
> that this had been ignored (e.g. "hello" vs ``hello'' in the output). I 
> had the document language set to en-gb, which it seems disables smart 
> quotes, as there is no corresponding entry in org-export-smart-quotes 
> alist. This is inconsistent with org-latex-language-alist, which 
> correctly handles the en-gb case for babel and polyglossia.

Patches welcome.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-11 10:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-10  2:03 [BUG] Smart quotes do not work in export when language is en-gb ch.emacs--- via General discussions about Org-mode.
2023-02-11 10:41 ` Ihor Radchenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.