Quote:
Originally Posted by JimmXinu
I assumed you'd split into a cover image and then a reduced title page. Or put in a page break--I think that's a thing you can do in epub...  Yep, looks like page-break-before: always; CSS works.
|
page-break-before: always; isn't supported by all reader apps/devices.
Quote:
That's probably not a bad solution for this whole issue either--customized title page and CSS.
|
My code basically produces the title_page.xhtml which looks like as:
Code:
<h1><a href="https://linktostory">The title</a></h1>
<p class="titleBy">by</p>
<p class="author"><a class="authorlink" href="https://linktoauthor">Some Author</a></p>
With appropriate classes in the stylesheet. On the device, that is readable even in the smaller thumbnail size. And doesn't look to bad in calibre.
The rest of the metadata goes into info.xhtml. That has a h2 heading so it is in the ToC, though the style doesn't show it. I also separate each metadata line to a paragraph with a style so it is spread out a little. One of my other changes is that all chapter titles are changed to h2 (though I don't remember if that is done for FFF sourced books, or one of the other places I sometimes get books from).
My plugin isn't just for FFF books. I started it a long time before that because Modify ePub didn't support replacing the stylesheet and @kiwidude didn't agree it was a good idea. Then I added some common changes that I was doing in the editor (heading level, add chapter title for some sections that didn't have them, set the language to UK or AU English when needed) and things that I was doing elsewhere (creating an identifier from the URL in the book, running Count Pages). It is highly personalised to how I want the books and the source.
Quote:
I thought we were talking about an image--just one that's generated by Calibre from rendering the first page of the epub.
If you're not including the generated image and letting your device render the first page, why were you being concerned about the aspect of that image fitting your device?
|
I missed a bit. With the Kobo devices, the drivers can send the cover images to the device. This uses the cover in the library. There are also two main formats: epub, for which the device renders the first page as the cover, and kepub, for which the device looks for an image. With the driver that produces the latter, I have calibre send the covers so that I don't need to include them in the books when there isn't a real cover image.