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

Option for including list of all resources + media types in output [enhancement] #517

Closed
bitsgalore opened this issue Mar 13, 2015 · 0 comments
Labels
type: improvement The issue suggests an improvement of an existing feature
Milestone

Comments

@bitsgalore
Copy link

Would it be possible to add an option to include a list of all manifest resources (including their media types) in Epubcheck's output? This would enable one to screen files for the presence of user-defined media types. Currently I'm looking into ways to screen Epubs for foreign resources and DTBook content (neither are well supported by readers). This information is already present in the manifest:

<manifest>
    <item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" />
    <item href="Images/pdfVenn.jp2" id="pdfVennJP2" media-type="image/jp2" fallback="pdfVennPNG" />
    <item href="Images/pdfVenn.png" id="pdfVennPNG" media-type="image/png" />
    <item href="hauy-2005-1.xml" id="opf3" media-type="application/x-dtbook+xml" />
</manifest>

For some more context to what I'm trying to do here, also have a look at this blog post I wrote about assessing EPUBs against a technical profile using Epubcheck:

Policy-based assessment of EPUB with Epubcheck

@bitsgalore bitsgalore changed the title Option for including list of all resources + media types in output Option for including list of all resources + media types in output [enhancement] Mar 13, 2015
tledoux added a commit to tledoux/epubcheck that referenced this issue Feb 13, 2016
This commits changes the generation of XML reports to use regular Java
libraries avoiding bad output.
It also checks for not UTF-8 characters and escapes them.
Finally, it adds the list of media-types included in the epub.

The tests have been enhanced to better compare the actual and
expected results.
Some tests cases have been added to test for encrypted or obfuscated
epubs.

Fixes w3c#670.
Fixes w3c#517.
@tofi86 tofi86 added this to the Next milestone Oct 4, 2016
@tofi86 tofi86 added the type: improvement The issue suggests an improvement of an existing feature label Oct 4, 2016
@tofi86 tofi86 modified the milestones: Next, 4.0.2 Dec 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement The issue suggests an improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

3 participants