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

The fallback attribute of the item in the manifest #45

Open
taiyuuki opened this issue Jun 4, 2024 · 0 comments
Open

The fallback attribute of the item in the manifest #45

taiyuuki opened this issue Jun 4, 2024 · 0 comments

Comments

@taiyuuki
Copy link

taiyuuki commented Jun 4, 2024

Some EPUB OPF files are structured as follows

...
  <manifest>
    <item id="id1" href="cover.svg" media-type="image/svg+xml" properties="cover-image"/>
    <item id="id2" href="a_1_1.svg" media-type="image/svg+xml" fallback="id3"/>
    <item id="id3" href="a_1_1.xhtml" media-type="application/xhtml+xml"/>
    <item id="id4" href="a_1_2.svg" media-type="image/svg+xml" fallback="id5"/>
    <item id="id5" href="a_1_2.xhtml" media-type="application/xhtml+xml"/>
  </manifest>
  <spine toc="ncx" page-progression-direction="rtl">
    <itemref idref="id2"/>
    <itemref idref="id4"/>
  </spine>
...

The spines are reference "id2" and "id4". However, in the manifest, items id2 and id4 reference items id3 and id5 via the fallback attribute. I'm not sure why it behaves like this, or if this is in accordance with the EPUB standard. Could you ensure that the "spine" refers to the correct "item"?

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

1 participant