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

epub 3 validation error 'Duplicate ID 'idN'', with sphinx i18n #3002

Closed
hhsprings opened this issue Oct 2, 2016 · 2 comments
Closed

epub 3 validation error 'Duplicate ID 'idN'', with sphinx i18n #3002

hhsprings opened this issue Oct 2, 2016 · 2 comments

Comments

@hhsprings
Copy link
Contributor

hhsprings commented Oct 2, 2016

rst:

As we can see above, the API is pretty straightforward.  The only bit of magic
involves the ``DEFAULT`` section which provides default values for all other
sections [1]_.  Note also that keys in sections are
case-insensitive and stored in lowercase [1]_.

If we don't use locale, it's okey:

<p>As we can see above, the API is pretty straightforward.  The only bit of magic
involves the <code class="docutils literal"><span class="pre">DEFAULT</span></code> section which provides default values for all other
sections <a class="footnote-reference" href="#id14" id="id1">[1]</a>.  Note also that keys in sections are
case-insensitive and stored in lowercase <a class="footnote-reference" href="#id14" id="id2">[1]</a>.</p>

But when we use locale, sphinx i18n generates like this:

<p>上の例からわかるように、API はとても直感的です。唯一の魔術は、 
<code class="docutils literal"><span class="pre">DEFAULT</span></code> セクションが
他の全てのセクションのためのデフォルト値を提供していることです <a class="footnote-reference brackets" href="#id14" id="id2">1</a> 。
 また、セクション内の各キーは大文字小文字を区別せず、
全て小文字で保存されていることにも注意してください <a class="footnote-reference brackets" href="#id14" id="id2">1</a></p>

EpubCheck 4.0.1 complains it is error:

ERROR(RSC-005): Error while parsing file 'Duplicate ID 'id2''.
@hhsprings
Copy link
Contributor Author

hhsprings commented Oct 2, 2016

Note.
The fact that [1]_ appears twice is not essential. For example, genindex-all will always have duplication id=記号 (msdid: Symbols) if we use i18n.

@tk0miya tk0miya added this to the 1.8.0 milestone Sep 5, 2018
@tk0miya tk0miya modified the milestones: 1.8.0, 1.8.1 Sep 9, 2018
@tk0miya tk0miya modified the milestones: 1.8.1, 1.8.2 Sep 20, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue Oct 30, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue Oct 30, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue Oct 31, 2018
tk0miya added a commit that referenced this issue Oct 31, 2018
Fix #3002: i18n: multiple footnote_references referring same footnote causes duplicated node_ids
@tk0miya
Copy link
Member

tk0miya commented Oct 31, 2018

Fixed by #5571.
Thank you for reporting!

@tk0miya tk0miya closed this as completed Oct 31, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 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

3 participants