04-26-2011, 10:59 AM | #1 |
Member
Posts: 10
Karma: 10
Join Date: Apr 2011
Device: kindle
|
Cover for In Design EPUB
I'm working on a book in Adobe In Design, consisting of about 20 separate chapter files. ID creates an epub, but it doesn't include a cover. I've got the cover jpeg created (600x800) and I want to add it, and I'm doing it as instructed here: http://code.google.com/p/sigil/wiki/BasicTutorial
This works fine in version .0.3.4, but I need to use the Release Candidate (.0.4.0) because it preserves the elaborate TOC that In Design creates. When I perform that procedure in 0.4.0 the book won't open in Adobe Digital Editions. When I do it in 0.3.4, it will. Same procedure, keystroke for keystroke: open file, place cursor at head of first chapter, Insert Image, Insert Chapter. Save. Open in Digital Editions. Anybody have any ideas why that might be? Thanks very much, Steve |
04-26-2011, 11:15 AM | #2 |
Guru
Posts: 688
Karma: 150000
Join Date: Feb 2010
Device: none
|
Sigil 0.4.0RC1 seems to corrupt the content.opf file under certain conditions. Does your finished epub pass FlightCrew checks?
See this thread: https://www.mobileread.com/forums/sho...d.php?t=126369 |
Advert | |
|
04-26-2011, 12:52 PM | #3 |
Member
Posts: 10
Karma: 10
Join Date: Apr 2011
Device: kindle
|
testing with FlightCrew
Good idea, thanks.
If I edit the file in Sigil 3.4, it validates, but tells me that the file refers to some fonts that it doesn't embed. That's expected. I get the same message before and after adding a cover. But with 4.0RC I get some new messages. I've attached a screenshot. Hopefully that'll come through. The first five errors appear with both versions. The last four only appear with version 4. Thanks, Steve |
04-26-2011, 01:33 PM | #4 |
Connoisseur
Posts: 56
Karma: 1234
Join Date: Apr 2011
Device: kindle
|
I do not know that this is your issue, but I wanted to give you a heads up. I'm nearly finished converting a dozen books from Indesign, and in doing so, discovered a mistake in the tutorial you linked to that cost me half a days work sorting out.
My original post is here: https://www.mobileread.com/forums/sho....php?p=1511554 Summary: If you follow the tutorial's directions in adding the cover, you can accidentally mess up your headers (the new cover page will 'steal' the title of the first page) and this will break multiple ereaders including kindle -- the first page will no longer display and the TOC will have errors. |
04-26-2011, 05:30 PM | #5 |
Member
Posts: 10
Karma: 10
Join Date: Apr 2011
Device: kindle
|
That is certainly related to the problem, thanks.
But following the procedure there, doesn't solve it. If I do this: After inserting the image, press ENTER to create a paragraph break between the image and the text. With the cursor on the right-hand side of the image use the Insert -> Chapter Break command from the menu bar (or press CTRL-ENTER)." Then save, then try to open the book with Adobe Digital Editions, it won't open. This is with Sigil 4. With version 3, all is well. But I need 4 because it preserves the TOC. Steve |
Advert | |
|
04-26-2011, 06:58 PM | #6 | |
Connoisseur
Posts: 56
Karma: 1234
Join Date: Apr 2011
Device: kindle
|
Quote:
this is mine, yours will be some variant: <h2 id="heading_id_2" title="Title Page"></h2> (note that this is set up to put "Title Page" in the TOC w/o it showing up on the page itself.) My long term solution skips the tutorial technique altogether. After converting from Indesign to epub, i now just run a bunch of regex search/replaces that mark up all chapter heads with sigil breaks -- the indesign doc is prepped so that even the title page has a 'chapter head'. Because the first page has a chapter head, and then gets a chapter split marker, when i do the split i end up with a 'blank' file at the beginning. I add the cover to that and avoid this problem altogether. Last edited by affa; 04-26-2011 at 07:03 PM. |
|
04-27-2011, 11:30 AM | #7 |
Member
Posts: 10
Karma: 10
Join Date: Apr 2011
Device: kindle
|
Well, er, that sounds like what I want to do. I can do the search/replace and I understand the structure of an epub. But I couldn't follow all that. If you could be more specific, it would be great.
All I want to do is add a cover to the In Design epub. How could it be so hard? Is there a sample somewhere of proper XML for the cover? Steve |
04-27-2011, 05:27 PM | #8 | |
Connoisseur
Posts: 56
Karma: 1234
Join Date: Apr 2011
Device: kindle
|
Quote:
If it's the quick way, add the image, then split the file just like the tutorial says. Then go into the cover file in Sigil, look to see if it 'stole' the header file, and if so, copy and paste it back to the file you split the cover from. Ultimately, your code will look something like this: Code:
<?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>The Name of my Book</title> <link href="../Styles/template.css" rel="stylesheet" type="text/css" /> </head> <body style=""> <div id="the-name-of-my-book"> <div class="story"> <p class="generated-style"><img alt="" src="../Images/cover.jpg" /></p> </div> </div> </body> </html> However, if you simply follow the tutorial, as previously mentioned, you'll likely have an extra header line in the body that you need to cut and paste into the file you split from. |
|
04-27-2011, 05:38 PM | #9 |
Connoisseur
Posts: 56
Karma: 1234
Join Date: Apr 2011
Device: kindle
|
sorry, double post
|
04-27-2011, 08:10 PM | #10 |
Member
Posts: 10
Karma: 10
Join Date: Apr 2011
Device: kindle
|
Thanks for sticking with this.
Keep in mind that it's a multi-chapter book. Shouldn't the cover be referenced by it's own separate text file? Steve |
04-27-2011, 09:59 PM | #11 | |
Well trained by Cats
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
It does need an Anchor point if it is not a separate file (implied anchor at the start) I prefer a file per book section. |
|
04-29-2011, 12:52 PM | #12 |
Member
Posts: 10
Karma: 10
Join Date: Apr 2011
Device: kindle
|
Okay, thanks.
|
04-29-2011, 01:09 PM | #13 |
Connoisseur
Posts: 56
Karma: 1234
Join Date: Apr 2011
Device: kindle
|
That's definitely how I do it. The first file is just bare bones html housing the single image. Both file and image are marked as Cover via Sigil's 'add semantics' option.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DOs and DON'Ts of ebook cover design | amoroso | Writers' Corner | 37 | 07-27-2011 03:17 AM |
Design your own M-edge Cover | Hoyt Clagwell | Deals and Resources (No Self-Promotion or Affiliate Links) | 5 | 03-20-2011 08:28 PM |
Cover Design | jaxx6166 | Writers' Corner | 79 | 07-03-2010 11:01 PM |
Disappointed with my new Oberon Design cover | sayhello | Sony Reader | 31 | 02-27-2010 09:39 PM |
Accessories Help Design My Kindle 2 Cover/Case | moxy789 | Amazon Kindle | 11 | 02-24-2009 11:37 PM |