Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quotation and comma ordering #302

Open
henry2004y opened this issue Aug 28, 2022 · 3 comments
Open

Quotation and comma ordering #302

henry2004y opened this issue Aug 28, 2022 · 3 comments

Comments

@henry2004y
Copy link
Contributor

Hi,

I noticed a very strange rendering issue with single/double quotations and comma.

“hello”, “hola”, 'what',

will be rendered as

“hello,” “hola,” ‘what,’

in the html and PDF. If I append an extra whitespace between " and ,, the order will be respected. Is this a bug in pandoc? I haven't seen this in LaTeX.

@rikhuijzer
Copy link
Collaborator

Based on jgm/pandoc#7005, can you try putting lang=en-GB in your metadata.yml? That should fix it.

@henry2004y
Copy link
Contributor Author

I confirm it solves the issue. Maybe we should set this as the default? The current default setting is

# A setting for the PDF. I don't know whether it is important.
lang: en-US

@rikhuijzer
Copy link
Collaborator

Good idea!

henry2004y added a commit to henry2004y/Books.jl that referenced this issue Aug 30, 2022
The default locale in Pandoc is set to `en-US`, same as the lang settings in Books.jl. To avoid JuliaBooks#302, it may be better to switch to other options like `en-GB`. However, this may also have some side effects such as changes in date formats. As a temporary workaround, we can aware the users of this setting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants