← Back to DAGDA | Support | Source: https://github.com/sphinx-doc/sphinx/issues/4272
Skip to content

PDF builds of French projects have issues with XeTeX from TL2016 or 2017 #4272

Closed

Description

@jfbu

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:

capture d ecran 2017-12-03 a 14 34 21

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))

capture d ecran 2017-12-03 a 14 33 24

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,

    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

  1. jfbu commented on Dec 3, 2017

    @jfbu
    ContributorAuthor
  2. added this to the 1.7 milestone on Dec 3, 2017
  3. jfbu commented on Dec 3, 2017

    @jfbu
    ContributorAuthor

    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.

  4. modified the milestones: 1.7, on Jan 13, 2018
  5. added 2 commits that reference this issue on Jul 15, 2018
    799c0af
    3156981
  6. jfbu commented on Jul 16, 2018

    @jfbu
    ContributorAuthor

    Fixed at 3156981 by using babel+French and not polyglossia+French with xelatex engine.

  7. locked as resolved and limited conversation to collaborators on Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions