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

French quotes (guillemets) and non-breaking spaces #8

Open
fuhrmanator opened this issue Jul 27, 2022 · 2 comments
Open

French quotes (guillemets) and non-breaking spaces #8

fuhrmanator opened this issue Jul 27, 2022 · 2 comments

Comments

@fuhrmanator
Copy link

In French, guillemets usually have a non-breaking space « inside them ». That is, the line:

    fr          = {'«',  '»',     '‹',  '›'    },

produces a change of quotes to «inside them» (no spaces). Non-breaking is important so you don't get a line wrap with a single guillemet as a word.

So, the line could probably be:

    fr          = {'« ',' »',     '‹',  '›'    },

(the line actually has non-breaking spaces). This is how Microsoft Word works, as well as LaTeX's babel (and csquotes) if I'm not mistaken.

The change works great in a copy of the filter I installed, and I wonder if it should be changed here (I've begun using git submodules for the pandoc filters so it's easier to update them in my projects). Interestingly, I didn't see in csquotes that it's handled for any other languages: https://github.com/josephwright/csquotes/blob/bfd47ca66d07dc939d3ce37c3aefe1348996470c/csquotes.def#L594-L625

I also realize I could just override it with the YAML option, but haven't tried it.

@badumont
Copy link

badumont commented Aug 3, 2023

Actually, it should be:

fr          = {'« ',' »',     '“',  '”'    }

@odkr
Copy link
Owner

odkr commented Aug 4, 2023

Thanks for letting me know!

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

3 participants