The first thing I do is remove all extra XHTML files like an internal ToC, reviews, list of other books, other publisher stuff and most of the time, the embedded fonts. Then I remove all extra CSS. If it's an eub 3, I fix it so it's an ePub 2. Then I add in my own body and p classes and from there I fix up the CSS. In most cases, it's very easy to do. Check for % in the CSS and replace that with more reasonable em umong other things,
When I am done, the code is fairly clean and the ePub is smaller.
|