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

epubcheck notes "ERROR" for rule OPF-093 in generated EPUB3 #702

Open
jbrugge opened this issue Aug 23, 2023 · 4 comments
Open

epubcheck notes "ERROR" for rule OPF-093 in generated EPUB3 #702

jbrugge opened this issue Aug 23, 2023 · 4 comments
Labels

Comments

@jbrugge
Copy link

jbrugge commented Aug 23, 2023

Expected Behavior

When running the dtbook-to-epub3 script on DAISY books that have pagebreaks in them, the EPUB3 result should have an OPF file that passes epubcheck.

Actual Behavior

Running epubcheck against the generated EPUB3 output produces a report noting an issue with a link item in the OPF.
{ "ID": "OPF-093", "severity": "ERROR", "message": "The \"media-type\" attribute is required for linked resources located in the EPUB container", "additionalLocations": 0, "locations": [ { "url": { "opaque": false, "hierarchical": true }, "path": "EPUB/package.opf", "line": 2, "column": 3387, "context": null } ], "suggestion": null },

Steps to Reproduce

The sample book in #699 exhibits this issue, so refer to the EPUB3 output from that.

The epubcheck report was then generated with this:
epubcheck --json Charlottes_Web-epubcheck.json output-dir/Charlotte_s_Web.epub

Details

Since the zedai-mods.xml are not included in the EPUB3 package, it seems like the element should not be in the OPF at all.

Environment

  • Operating system: Linux 64-bit
  • DAISY Pipeline 2 version: 1.14.7
  • Interface: web service API
  • epubcheck : 5.0.1

Logs

epubcheck JSON report

@bertfrees
Copy link
Member

I will need the sample book to further investigate this issue.

@bertfrees
Copy link
Member

@jbrugge Would it be possible to email me the "Charlotte_s_Web.xml" file please?

@bertfrees
Copy link
Member

@jbrugge Could you test this with version >= 1.14.18? When I run EPUBCheck (5.1.0) on the EPUB that you sent me, I don't get the OPF-093 error, but I get another warning:

WARNING(RSC-007w): /Users/bert/Desktop/Charlotte_s_Web.epub/EPUB/package.opf(2,3468): Referenced resource "EPUB/zedai-mods.xml" could not be found in the EPUB.

This is an issue that should have been fixed in 1.14.18 (see daisy/pipeline-modules@efb1b61). I didn't get the DTBook from you so I can't check whether there are any other issues.

@bertfrees bertfrees removed their assignment Jul 10, 2024
@jbrugge
Copy link
Author

jbrugge commented Jul 30, 2024

@bertfrees We don't have the 1.14.18 release deployed yet, but I can test again once we upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: In Progress
Development

No branches or pull requests

2 participants