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 punctuation spacing persists after ending the language environment #201

Closed
svenper opened this issue Mar 15, 2018 · 5 comments
Closed

Comments

@svenper
Copy link

svenper commented Mar 15, 2018

I am not sure if this is could be a fontspec issue, but an educated guess with otfinfo tells us that there is no French locl features that could linger.

otfinfo --scripts $(locate -i sourcecodepro-regular.otf)
DFLT		Default
cyrl		Cyrillic
cyrl.SRB	Cyrillic/Serbian
grek		Greek
latn		Latin
latn.NSM	Latin/Northern Sami
latn.SKS	Latin/Skolt Sami
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Source Code Pro}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{french}
\def\somepunct{a! b? c; d: e! \languagename\hfill}
\begin{document}

{\begin{english}\somepunct\end{english}}

{\begin{french}\somepunct\end{french}}

{\begin{english}\somepunct\end{english}}

\end{document}

1

@eg9
Copy link
Contributor

eg9 commented Mar 15, 2018

@svenper

I cannot reproduce it.

screen shot 2018-03-15 at 23 36 45

@svenper
Copy link
Author

svenper commented Mar 16, 2018

That's odd. I tried with xelatex instead of the usual lualatex and it worked as expected. Is this really a problem with LuaLaTeX then?

@reutenauer
Copy link
Owner

Most likely with the Polyglossia code for LuaTeX. Thanks for the report, I’ll try to have a look.

@svenper
Copy link
Author

svenper commented Dec 29, 2018

automaticspacesaroundguillemets=false seems like it should disable this, but it does not, either for XeTeX or LuaTeX. Only Lua currently does not reset it for other languages, however.

For anyone with the same problem, a temporary workaround that completely disables french punctuation spacing (put after first loading the language):

\makeatletter
\def\noextras@french{}
\def\blockextras@french{}
\def\inlineextras@french{}
\makeatother

@adunning
Copy link

adunning commented Jan 1, 2019

This is a duplicate of #49, #66, #68, #153, and #182

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

5 participants