View Single Post
Old 06-22-2016, 12:45 PM   #10
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by beccaa View Post
... I lost my original html file for my ebook. I have the .mobi and .ebub files within Calibre and would love to know whether there's any way that I can extract the full original html file from either of those, or perhaps elsewhere in Calibre.
...
Not likely.

The original HTML doesn't not exist in the .MOBI. It would have been altered by the conversion process. Anything that you unpack from the .MOBI, if possible, would be this altered HTML or xHTML file.

The ePUB might contain the original HTML, but it is quite unlikely that it does. If the ePUB was created by a conversion to ePUB process then the HTML or xHTML in the ePUB would be somewhat different from the original.

As stated in another post, if (and that's a big IF) the original HTML was added to calibre before conversion to the other formats it would normally be wrapped up as a ZIP archive when added to the library. That ZIP would contain the original HTML, but no product of a conversion to another format (e.g. ePUB, MOBI, AZW3, ...) would contain an exact copy of the original HTML. Even when the target format for a conversion contains HTML file(s) the HTML code will have been altered by the conversion process so that it complies with the target format's limitations.
dwig is offline   Reply With Quote