Quote:
Originally Posted by LadyKate
That is exactly what I want to do. The "cover" of this book is a titlepage (black and white with title, author and the publishers logo etc). This titlepage is not displayed again. So, I want to ADD a cover.
|
With all due respect... not so much. What you want to do is "demote" the existing cover to become the first internal page, then add a new cover at the beginning. (It may not sound like much of a difference, but it is. It's all about the structure; the "cover page" is a special thing and gets treated differently from other documents.)
Quote:
Originally Posted by LadyKate
I would really like to be able to select an option to add a cover without replacing anything.
|
Unfortunately, while that's not exactly the most arduous of tasks, there are too many variables involved for it to really fit into Modify's scope and architecture.
Now, if I were doing this by hand, here's how I'd go about it. In this example, suppose I have the "real" cover as a prepped JPG image...
1. Open the EPUB in the Calibre editor.
2. Open the cover page, probably named titlepage.xhtml.
3. Click somewhere in the HTML code and hit Control-A Control-C to select everything and copy it to the clipboard.
4. At the bottom of the HTML preview panel on the right, look for the "split" icon and click that button. Hovering over the preview should result in a colored line showing up above the pointer.
5. Click somewhere in that preview - doesn't matter where - to split the existing page. You should now have two open HTML pages, and you're looking at the code for one of them - the new one, I think.
6. Hit Control-A Control-V to replace the "split" code with the original code, then close the tab. You should now be back in the original document's tab.
7. Hit Control-A Control-V again. You now have two identical "cover pages" - but only one's the real cover, and it should be the one that's open, the first one in the list. (You can identify it by the little "book" icon next to the filename.) If that's
not true, right-click the first page in the file list (which should be bold and italic, as it's the active tab) and
make it the cover page.
8. Rename the new, not-cover page to something like tp.xhtml and the not-cover image to something similar. Doesn't really matter what you call 'em, as long as the names don't match anything else in the book, but "tp" for "title page" makes sense and is short.

9. Import the new cover image into the book and rename it if you need to. Right-click it and mark it as the cover image.
10. Look back up at the code in the open tab. See where it's got the title image's name? Change that to the newly-added image's name. If all goes well, you should see the preview pane change to show the new cover image. (If you see an empty box instead, there may be a folder problem to sort out. If there was a folder or path before the not-cover image's filename, rename the real-cover image to start with that same path. Alternately, erase the real-cover filename from the code and start typing it. Calibre should auto-complete it and handle the path stuff on its own.)
11. Save the book and try it out in your favorite reader!
There may be a plugin that'll take care of that for you, but if nothing else, now you know why this isn't as simple as you might've thought.