Yes that was the load warning for an unrecognized media type txt/css and the file name it applies to and info on where to fix it.
Yes, it does not detect the second error anymore since it is actually a valid mediatype, just not one that matches the file itself. Since the iana.org that registers mediatypes allows vnd. trees, it is is a valid mediatype clearly stated in the OPF manifest, and there just isn't an easy way to detect the mismatch that does not require a new one to many mapping since file extensions may have many valid mediatypes.
We only detected a problem before since the bad mediatype was not a perfect match for previously required adobe-page-template+xml but changes this year in the media type registrations structure of the iana.org means Sigil must now accept it as valid.
KevinH
Quote:
Originally Posted by snarkophilus
With 0.991-41 I now get this on loading the epub:
Code:
The OPF uses an unrecognized media type "txt/css" for file "stylesheet.css" - A temporary media type of "text/css" has been assigned. You should edit your OPF file to fix this problem.
I get no popups or messages of any kind renaming any file, including renaming the xpgt with the incorrect media-type. Was removing the invalid mediatype popup intentional? I missed that.
As I previously mentioned, EpubCheck didn't mention anything about the xpgt, but I just accidently ran FlightCrew (its quick launch button is next to EpubCheck's), and it did report something.
File: content.opf
Line: 114
Offset: 23784
Message: Error OPF bad item media type value : The <item> element's "media-type" attribute has value "application/vnd.adobe-page-map+xml", but the file's media type is "application/vnd.adobe-page-template+xml". near column 101
I'll bring this one up in the EpubCheck thread.
|