Hi,
That is not easy to do in the current plugin interface without deleting and re-adding the file specifying the correct media-type. That said, text/html is not a valid media-type in an epub so, it may be possible to change the launcher code to auto-correct that type of failure.
Your plugin might be something better done as an input plugin that fixes things it needs to on the way into Sigil.
Let me think about it. We have already added spell checking via hunspell to the plugin interface for the next release so adding even more should not be an issue.
Kevin
|