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

latex: index headings "Symbols" and "Numbers" not internationalized #5133

Closed
jfbu opened this issue Jun 30, 2018 · 0 comments
Closed

latex: index headings "Symbols" and "Numbers" not internationalized #5133

jfbu opened this issue Jun 30, 2018 · 0 comments

Comments

@jfbu
Copy link
Contributor

jfbu commented Jun 30, 2018

Consider following index.rst

==========
Index Test
==========


.. index:: état

.. index:: Deutschland

.. index:: 666

.. index:: **


When building with language set to German ('de') one gets this

capture d ecran 2018-06-30 a 15 09 04

When buildind with language set to Italian, one gets this:

capture d ecran 2018-06-30 a 15 11 24

Remark: the fact that word état starting with utf-8 letter ends up in Symbols is related to use of makeindex, this is other issue (see #5132 for related issue)

Problem

The problem is that Symbols and Numbers headings are not internationalized.

This originates in hard-coded

symhead_positive "{Symbols}"
numhead_positive "{Numbers}"

Environment info

  • OS: Mac
  • Python version: 3.6.5
  • Sphinx version: 1.7.x, master
  • TeXLive 2018
@jfbu jfbu added this to the 1.8.0 milestone Jun 30, 2018
jfbu added a commit to jfbu/sphinx that referenced this issue Jul 1, 2018
Also replaces ``\bigletter`` by ``\sphinxbigletter``, and define it via
``\providecommand``, not ``\def`` to allows customization via
environment ``sphinxtheindex``.

For transition, PDF builds will need a ``make clean`` before ``make
all-pdf`` in latex build repertory, or ``make clean latexpdf`` from conf
repertory, because the already existing files use ``\bigletter`` now
left undefined.
@jfbu jfbu closed this as completed in 46bc566 Jul 16, 2018
jfbu added a commit that referenced this issue Jul 16, 2018
Fix: #5133 via ``\sphinxsymbolsname``, ``\sphinxnumbersname``
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant