View Single Post
Old 11-16-2019, 05:11 PM   #170
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,958
Karma: 6361444
Join Date: Nov 2009
Device: many
Yes, Sigil is not a validator. Run epubcheck if you want that. Sigil doesn't need to use that mediatype until it has to update links because of a rename or a move. If you do not do either, the broken media type is just that. However once you rename or move, Sigil will be unable to update links in that file because it does not know what type of xml file it is.

Again, there is the only one place mediatypes are set, and that is in the OPF manifest. So if you see an unrecognized mediatype error message you should know to fix your OPF.

I am sure someone could easily create a plugin to validate all of the mediatypes in the opf against the file extensions and warn you about it. With .xml files that gets a bit hard but doable.

That said, only someone who knows what the contents of the xml is for, would know the correct way to fix it.

I will think about a mediatype checker plugin after Sigil 1.0 goes final.

KevinH
KevinH is online now   Reply With Quote