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

altimg (mathml attr) triggers errors #1492

Closed
TzviyaSiegman opened this issue Mar 24, 2023 · 2 comments · Fixed by #1508
Closed

altimg (mathml attr) triggers errors #1492

TzviyaSiegman opened this issue Mar 24, 2023 · 2 comments · Fixed by #1508
Assignees
Labels
type: not an issue The issue is rejected (not an actual issue or not relevant)
Milestone

Comments

@TzviyaSiegman
Copy link
Collaborator

Images used in the altimg attr for mathml are throwing errors:

<message id="RSC-007" severity="error">RSC-007, ERROR, [Referenced resource "OPS/MATH4EQ_0198.png" could not be found in the EPUB.], OPS/f04.xhtml (37-248)</message>

sample file sent to @rdeltour

@rdeltour rdeltour self-assigned this Apr 13, 2023
@rdeltour rdeltour added this to the Next maintenance release milestone Apr 13, 2023
@rdeltour rdeltour added type: bug The issue describes a bug status: accepted Ready to be further processed labels Apr 13, 2023
@rdeltour
Copy link
Member

I could reproduce the error but it does not look like a bug in EPUBCheck after all.

In the XHTML content documents, alternative MathML images are defined like this:

<math display="block" overflow="scroll" xmlns="http://www.w3.org/1998/Math/MathML"
                alttext="2.468 multiplication 10 cubed" altimg="MATH1EQ_0492.png">

But all the images are located at OPS/images/ in the EPUB container, and the XHTML files at OPS/.

So the altimg attribute should be "images/MATH4EQ_0198.png".

@rdeltour rdeltour added type: not an issue The issue is rejected (not an actual issue or not relevant) and removed type: bug The issue describes a bug status: accepted Ready to be further processed labels Apr 22, 2023
@rdeltour
Copy link
Member

I'm closing as not an issue, but feel free to keep commenting here or reopen 😊

@rdeltour rdeltour closed this as not planned Won't fix, can't repro, duplicate, stale Apr 22, 2023
rdeltour added a commit that referenced this issue Apr 28, 2023
@rdeltour rdeltour linked a pull request Apr 28, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: not an issue The issue is rejected (not an actual issue or not relevant)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants