Repository navigation
Description
Problem
-
the polyglossia French module has not been modified upstream to adapt to internal changes at xetex 0.99994 or later, in practice this means for people using TeXLive 2016 (it has xetex 0.99996 whereas TL2015 has xetex 0.99992) or derived TeX distributions, or TeXLive 2017.
-
for reference on this, see http://tug.org/pipermail/xetex/2017-December/027215.html
-
some expected typographical rules of French are broken by this.
Procedure to reproduce the problem
file index.rst:
Bienvenue
=========
Un point-virgule ; doit être précédé par une espace fine typographique.
Un point-virgule; doit être précédé par une espace fine typographique.in conf.py:
language = 'fr'
latex_engine = 'xelatex'
Then do make latexpdf.
Error logs / results
With TeXLive 2016 (XeTeX 3.14159265-2.6-0.99996 (TeX Live 2016)) PDF looks like this:
The two lines should be identical; but the top one, whose source had a space before the ; is wrong. It uses a too big space in output.
Expected results
Here is with TeXLive 2013's latex packages and xetex binary (XeTeX 3.1415926-2.5-0.9999.3-2013061817 (TeX Live 2013))
As is expected and correct the two lines are identical with a thin space before the semi-colon.
Environment info
- OS: Mac
- Python version: 3.5.4
- Sphinx version: 1.6.6+ (stable branch)
- TeXLive 2013 for good result, TeXLive 2016 for bad result.
How to fix ?
Possibly, Sphinx should use babel + french and not polyglossia + french when latex engine is xelatex or lualatex.
Memo:
-
independently of this polyglossia-french bug, the babel-french has more extensive support of French typographical rules, in particular for lists -- this babel-french customization is lacking in some aspects, but it does comply rather closely to official typography whereas polyglossia-french does nothing at all in this area.
-
babel-french is maintained, but polyglossia-french obviously much less though because the typographical issue reported here is consecutive to a change in XeTeX from 2016, and we are soon in 2018 and the problem is there,
-
the A
;in a literal block causes failed PDF build with xelatex, TL2015, and French language #3546 issue shows,-
if using polyglossia: with TeXLive 2015 or earlier, that means XeTeX 0.99992 or earlier. It may also show with XeTeX prior to 0.99996, but 0.99996 is the first version I can easily test (TeXLive 2016) and which avoids the A
;in a literal block causes failed PDF build with xelatex, TL2015, and French language #3546 issue. -
if using babel: with TeXLive 2014 or earlier, that means XeTeX 0.99991 or earlier. In particular the issue is avoided with TeXLive 2015, 16, 17.
To recap: if Sphinx uses babel for French with latex_engine set to
xelatex, the A;in a literal block causes failed PDF build with xelatex, TL2015, and French language #3546 issue is avoided with XeTeX 0.99992 or later, whereas with polyglossia, it fails with 0.99992 and the first known (to me) valid XeTeX is XeTeX 0.99996. (but some earlier one might work). -


Activity
jfbu commentedon Dec 3, 2017
Upstream issue: reutenauer/polyglossia#145
jfbu commentedon Dec 3, 2017
Actually the upstream issue reutenauer/polyglossia#145 is fixed upstream by merged PR reutenauer/polyglossia#178, but
the issue is still marked "Open",
the polyglossia v1.42.5 release which will contain the merge is still to be finalized and pushed to CTAN and TeX distributions.
Anyway, this means that Linux TeX distros from years 2016--2017 at least will have that problem in future.
LaTeX: for French and xelatex, use babel not polyglossia (fix: sphinx…
Merge pull request #5178 from jfbu/4272_xelatex_use_babel_for_french
jfbu commentedon Jul 16, 2018
Fixed at 3156981 by using babel+French and not polyglossia+French with xelatex engine.