Quote:
Originally Posted by lori87
I've uploaded a 1 page sample for everyone. This epub on my kobo is all the same seize, no large text, no bold, just the same all round. The .mobi is fine. If you open the files in sumatra on Windows, you'll get an idea of how it works.
Links here
https://www.sendspace.com/file/6bda3j
|
The attached screenshots are taken from my Glo HD. As with my previous example, there are differences, but, not really that much. I can see multiple font size, italics. There doesn't appear to be any bold text. The main differences is in line spacing and the indentation for quotes. As I stated a bit quickly above, some of this could be the font you are using. The two Kobo fonts at the bottom of the list do not work well with epubs. When you use them with epubs, you don't get bold or italic text. Using any of the other fonts should work. And if you are adding your own font, then you need to do this correctly. Again, a common error when adding fonts will mean no italics or bold text.
And I opened them in the calibre viewer. Again, there are difference, but not as much as you have described.
I don't have Sumatra installed, and am not likely to at this point. I'm not sure if you are saying the Sumatra displays both versions of the book the same or not. But, if it isn't showing the correct layout of the epub, then either it is a bad epub viewer, or you have changed options so that it ignores the CSS.
Also, when I first looked at these two files, I assumed the epub version was converted using calibre from the mobi. This was because of some comments above, and the post in the calibre forum. I was surprised by a couple of the differences (such as the colours). But, when I looked inside the epub, I realised that it was not the result of a conversion. It is a separate version and some of the difference are in the coding.
As the sample epub works here, a possibility is that the full epub has an error that breaks things. If it does have a stylesheet, then an error in the stylesheet can mean the stylesheet is ignored. And depending on exactly what is in that stylesheet, then what you describe could be what you see.
Based on the code in the sample, I don't think this is the case, but it could explain the problems described.
Edit:
The last paragraph is the answer. I have just left the rest as it explains other things that can be seen in the samples you posted.
I looked at the samples linked to above assuming they were representative of the full book. But, you sent me links to the full books. When I looked at the epub version, it bore
absolutely no relationship to the sample posted. The sample has no stylesheet and each tag has a style. The full book uses a stylesheet and each tag has a class.
The problem is that there are a lot of errors in the book. The fonts are invalid and the stylesheet has errors. Because of this, the stylesheet will be ignored and everything is styled using whatever defaults the device uses. If you fix the book, it will work. Open the epub in the calibre editor, run the error check and fix them.