View Single Post
Old 05-14-2015, 10:39 AM   #24
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,928
Karma: 6361444
Join Date: Nov 2009
Device: many
No, you are incorrect ...

If you load an epub into Sigil that has bad media types it may end up storing the file in the incorrect location for an epub in Sigil. Or it may place it in the correct place but with an incorrect media- type. If either of these happen, the user can do one of two things depending on their skill level.

1) Delete the font files in Sigil and re-add them and Sigil will automatically put them in the right place (as I repeatedly have pointed out).

OR

2) Use CodeView to directly edit the content.opf and change just the media-types.


If you want to accomplish something similar in the plugin, simply use the correct bookcontainer API calls as directed earler.

No one is saying the problem does not exist. We are simply pointing out that if you add fonts using Sigil, they will be assigned the correct media-types which in turn leads directly to approach 1) above and the API approach we pointed out in the plugin.

Hope this makes things clearer.

KevinH

Quote:
Originally Posted by rubeus View Post
There are books created outside Sigil and often they do have an incorrect media type. Sigil itself does not offer any help here, it only flags the error and i need to manipulate the content.opf manually. I guess i was telling this more than three times, why is there always the hint that Sigil is inserting fonts correctly? I never said that Sigil is inserting fonts incorrectly. But others do. At least one person out of 8 billion would like to have something helpful here. thats why i created this plugin.
KevinH is offline   Reply With Quote