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

polyglossia + lualatex: French punctuation spacing remains enabled after \textfrench{} #182

Closed
ndlecic opened this issue May 11, 2017 · 1 comment

Comments

@ndlecic
Copy link

ndlecic commented May 11, 2017

Hi,

Please take a look at this example:

\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{french}
\setmainfont{CMU Serif}
\begin{document}
Lorem: ipsum; dolor sit amet? Consectetur adipiscing elit!

\textfrench{Bonjour!}

%\directlua{polyglossia.desactivate_frpt()}

Sed: do; eiusmod: tempor; incididunt? Ut! Labore!?
et dolore magna aliqua. Ut: enim ad minim veniam; quis.
\end{document}

As you can see, after \textfrench{} spaces before punctuation don't disappear. If you uncomment the \directlua line, the spaces disappear.

Since this example works with xelatex as expected, it's either polyglossia's behaviour with lualatex, or lualatex itself. If it's the later, please let me know and I'll write to luatex ml.

@ndlecic ndlecic changed the title polyglossia + lualatex: French punctiation spacing remains enabled after \textfrench{} polyglossia + lualatex: French punctuation spacing remains enabled after \textfrench{} May 11, 2017
@ELLIOTTCABLE
Copy link

Ran into exactly this, today. Didn't realise it was a bug, spent a while banging my head against it.

https://tex.stackexchange.com/questions/389917/why-is-a-single-inline-french-quote-with-csquotes-causing-all-the-following-punc?noredirect=1#comment967897_389917

jgm added a commit to jgm/pandoc that referenced this issue Jan 3, 2019
* Use Babel for LuaTeX.  There are a number of bugs in Polyglossia under LuaLaTeX with common languages, e.g. <reutenauer/polyglossia#182>.

* Load xcolor. The `xcolor` package must be loaded before the `footnote` package, which we load to fix foonotes in tables. Closes #4861.

* Load xurl if available. This breaks URLs in more locations. Only available with TeX Live 2018 and later.

* Remove obsolete fixltx2e package

* Reindent. Use two spaces to be consistent internally and with other templates.

* Use `bookmark` if available. The `bookmark` package can sometimes correct the levels of headings where `hyperref` cannot: see <https://komascript.de/release3.26>.

* Update LaTeX tests
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