Added application/x-font-ttf to the list of allowed media types#1614
Added application/x-font-ttf to the list of allowed media types#1614
Conversation
|
Sorry, I forgot to mention that the result file (resource.feature in the parent directory) also needs changing because there's an additional non-preferred media type - it's bumped from 6 to 7 info messages returned because of this addition. I've pushed a fix for that. The file you reference in the href attribute doesn't matter in a package document-only test. Epubcheck is restricted in this mode to only verifying the package document itself. It doesn't do any further checks on whether there are actual resources associated with the document, etc. But one oddity of adding this media type is that the test that foreign font types are exempt (you can find it at line 151 of the feature file) now passes because it was using (FYI, you can always test if your changes are good by running |
Thanks
Is |
The best I can find is to switch it to
It's the Apache Maven build tool. I don't think it's exclusively for java, but that's how epubcheck is designed to be compiled. |
|
There are some brief instructions on building epubcheck in the repository's readme. |
|
Note: w3c/epub-specs#2726 has been merged, this PR has therefore become relevant... |
This is a proactive implementation of something planned in EPUB 3.4. See w3c/epub-specs#667 and w3c/epub-specs#2726 Fix #1612 Co-authored-by: Romain Deltour <rdeltour@gmail.com>
7ba32d8 to
66e5254
Compare
These are the possible changes following w3c/epub-specs#667 and w3c/epub-specs#2726.
I followed the advice of @mattgarrish for the files to be changed (w3c/epub-tests#307 (comment) and w3c/epub-tests#307 (comment)). Note, however, that I was not sure what is expected in the two OPF files, mostly what the value of the
hrefattribute should be. I probably got it wrong, it certainly needs a review... But I hope that, nevertheless, this PR helps...Note that this change is related to EPUB 3.4. I was looking for a label for 3.4, but have not found any (and I did not want to create one, I am just a guest...). I hope I got the other labels right.