Quote:
Originally Posted by AZed
Not for broken mime-type detection itself; that's an issue with a different module entirely. However, your e-reader unpacks should now be showing up with the correct mime type, and the API itself allows you to override anything detected.
|

My ereader unpack's mime detection still appears broken i.e. uses "text/html" instead of "text/x-oeb1-document" or "application/xhtml+xml".
I converted this ereader file,
CIA_World_Factb-PalmReader.pdb and this is what I got:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE package PUBLIC "+//ISBN 0-9673008-1-9//DTD OEB 1.2 Package//EN" "http://openebook.org/dtds/oeb-1.2/oebpkg12.dtd">
<package unique-identifier="UUID" xmlns="http://openebook.org/namespaces/oeb-package/1.0/">
<metadata>
<dc-metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:Identifier scheme="UUID" id="UUID">3C9B0719-6C62-1014-A78D-C24A0A15AF9A</dc:Identifier>
<dc:Identifier scheme="ISBN">ISSN 1553-8133</dc:Identifier>
<dc:Title>CIA World Factbook 2009</dc:Title>
<dc:Publisher>Central Intelligence Agency</dc:Publisher>
<dc:Language>en</dc:Language>
<dc:Rights>© 2009 - The Factbook is in the public domain.</dc:Rights>
</dc-metadata>
<x-metadata>
<output encoding="utf-8" content-type="text/x-oeb1-document"/>
</x-metadata>
</metadata>
<manifest>
<item media-type="text/html" href="CIA_World_Factb-PalmReader.html" id="text-main"/>
</manifest>
<spine>
<itemref idref="text-main"/>
</spine>
</package>
Aside: I noticed a slight issue with the
<div style="text-align: center"> running on and not having a properly placed end (</div>) and making all the text afterwards centred. It happened on another large file conversion I tried so don't think it was encoded that way.
The
<div> .. </div> pairs match in total numbers, just not closing the "center" properly sometimes. I think it happens when multiple <div> pairs are nested within each other.