02-28-2011, 01:05 AM | #1 |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
Step-Step-Guide to ePub creation from InDesignCS3
Caveat: This is the way I do it, there are plenty of other and probably better methods, but I don't care, because it works for me
Prerequisites A working knowledge of InDesign. I will not be describing how to make a style sheet InDesign CS3 TextWranger (or another text editor which saves as UTF-8 and supports regular expressions) Dreamweaver CS3 Photoshop (or another image editor) InDesign: Tip: Every style change must have a style sheet applied to it
Unzip the sample.epub changing the name to sample.zip The folder Structure will look something like this: File clean up I like to replace the "Cover-fmt.jpeg" in the Images folder with the "Cover.jpg" I made earlier, also adding in the "Cover_kindle.jpg" to the images folder. TextWrangler Open the Content.opf file. This is what they will typically look like after the conversion. You will notice that although there are only two images in the epub. The Content.opf file duplicates these image for every xhtml file in the manifest section. You have to remove these except for one set. I like to keep the top set under the Cover.xhtml file Tip: this problem is fixed in InDesign CS5 Once you've done that you need to:
PHP Code:
Next in the <manifest> section PHP Code:
Next in <spine> section PHP Code:
Then at the bottom, between the </spine></package> insert PHP Code:
Tip: If you don't have a content.xhtml file then remove the table of contents line So you should end up with a file looking like this: Save and close The TOC.NCX file you can leave, unless you change order of the files, but if you had them set correctly to begin with then this will be ok. Dreamweaver
Now you are ready to start opening your xhtml files in Dreamweaver. I open the Cover, Title page and any other file with a full page image. I select the image and set the max height to 100% I then move onto the Chapter files and go though each one, to make sure nothing strange has happened and everything is where it should be. Next, I open the contents file, and set up my TOC linking (I didn't bother with it in InDesign because the process is a real hit and miss PITA. It's much easier and faster IMO to do it from here.) All you do is select, say, Chapter One. In the "link" pallet at the bottom, click on the Folder icon and choose Chapter_01.xhtml. And that's it...Rinse and repeat for the remaining chapter entries in your Contents file. To link you chapters BACK to the Contents.xhtml file, then you need to open each chapter and select the text you want the hyperlink to be on, in this case it's Chapter One. Click on the folder icon next to the "link" window at the bottom. and select the content.xhtml. Once you are happy with what you have, then you need to compress the epub folder back up. I do this by dragging the folder onto an Applescript which you can find here: https://www.mobileread.com/forums/sho...light=epub+zip Once you have the filename.epub I go to the three press website and run it through the validater http://www.threepress.org/document/epub-validate/ Ok. I think that's it. This is just a guide on how I make epub files from InDesign CS3. It is NOT to start a debate on the the quality of the CSS code as it is what InDesign generates and for that reason I've left it as is... I hope people will find this useful. If I have made some glaring mistakes, please feel free to let me know and I'll fix up my post. Last edited by Adjust; 03-01-2011 at 06:26 PM. |
02-28-2011, 03:56 AM | #2 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
That's a damned expensive way to create an ePub book! InDesign, Dreamweaver, Photoshop? How much is that little lot going to cost someone?
|
Advert | |
|
02-28-2011, 04:06 AM | #3 |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
If theys have InDesign CS3 there's a good chance they will have the CS3 package which include Photoshop and Dreamweaver, But as I mentioned this is how I do it.
|
02-28-2011, 05:37 PM | #4 |
Guru
Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
And, if you're a publisher who is already using ID for the print version, it is desirable to be able to create the epub (and other formats) from the same ID master files that contain all revisions, etc.
|
02-28-2011, 10:25 PM | #5 | |
Media Bloke
Posts: 2,381
Karma: 113956855
Join Date: Oct 2010
Location: NSW - Australia
Device: iOS
|
Entering Metadata from InDesign
Quote:
Nice work Marcus. This should help a few InDesign users. A bit more about adding the metadata to the InDesign file for export to ePub. If anyone was wondering how it is entered - here's how. After creating the chapter files and adding them to a new book. Select the file you created all your paragraph and character styles from the book window. With that file open select FILE INFO from the FILE menu and add the title, author, copyright data etc. It will export that data to the content.opf file in the ePub as metadata. As mentioned above you'll need to edit the <dc:date /> because CS3 & 4 don't have a field to enter it and the ePub wont validate without it. Ensure your source file with the info and styles in it has been checked in the style source box in the book window before exporting. |
|
Advert | |
|
02-28-2011, 10:45 PM | #6 | |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
Quote:
I left that out on purpose because, as I have to edit the date field in anyway, I just have a dummy text file sitting on my desktop with all the generic copy and paste info ready to go... Hopefully what I wrote is not too confusing? |
|
04-13-2011, 12:45 PM | #7 |
Member
Posts: 10
Karma: 10
Join Date: Apr 2011
Device: none
|
Picture sections?
Great post this was really helpful, thanks! Was wondering if you had any experience with exporting picture sections? I'm working on some books with picture sections now and after I export the book to digital editions the pictures get pushed to the front of the book and the some/all of the chapters are missing. If anyone has any advice about this I'd love to hear it!
|
04-14-2011, 01:19 AM | #8 |
Media Bloke
Posts: 2,381
Karma: 113956855
Join Date: Oct 2010
Location: NSW - Australia
Device: iOS
|
Hi Fiona
I think this attachment can explain it better than I can. Another tip. Existing books might have artwork created in the inDesign file with vector tools etc which will be discarded. Zoom in on the existing art with high quality display on and do a screen dump and work with that. Oh! Welcome to the forum |
04-14-2011, 03:41 AM | #9 |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
I'll have more time tomorrow to explain how I do it...
I'm assuming your image section is in ID? |
04-14-2011, 05:10 AM | #10 |
Member
Posts: 10
Karma: 10
Join Date: Apr 2011
Device: none
|
Hi Mark, thanks for the attachment and for the welcome so glad I found this forum!
@Adjust, Yeah my image section is in ID CS3, if you have any tips that would be great! |
04-14-2011, 09:51 PM | #11 |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
So basically when I get an illo section to do, it's in a separate ID document.
InDesign CS3 And looks a little like this: You then need to, if you haven't already, apply a caption Paragraph style the caption text... Then. All I do is rearrange the caption boxes to be underneath the photos. And then group Photo box with the Caption Box. That's it. Export to digital editions: TextWrangler Open the both the Contents.opf files of the newly created illo Section and the eBook .opf file the illo section is going into. And just copy the Image information inside the manifest section, into the main OPF manifest Dreamweaver Open the illo section .CSS file, and insert the page break line to the caption style. Then copy it into the "book" template.css Then open the illo .xhtml file. and cop and paste all the stuff inside the <body></body> tags, and past it where you want it to go inside you book .xhtml files... So after a bit of fine tuning the code you should end up with something looking like this: And from the design view: I hope this all makes sense. Adjust |
04-14-2011, 10:15 PM | #12 |
Media Bloke
Posts: 2,381
Karma: 113956855
Join Date: Oct 2010
Location: NSW - Australia
Device: iOS
|
@adjust - Excuse me if I've missed the bleedin' obvious but why wouldn't you just keep the illustration sections in the same document as the rest of the book so you don't have to cut and paste the manifest etc?
|
04-14-2011, 10:35 PM | #13 | |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
Quote:
It also gets printed at different times, hence the need for a separate, ID Document. Why I didn't include it into the ID "Book" as a separate file and call it Pic section? It's because my clients want it to appear as close to where it falls in the printed edition as possible. This mean that it needs to go inside a chapter. As pic sections very very rarely fall in between chapters. |
|
04-14-2011, 11:13 PM | #14 |
Media Bloke
Posts: 2,381
Karma: 113956855
Join Date: Oct 2010
Location: NSW - Australia
Device: iOS
|
OK, I get that. However, I would have opened the colour picture file, which you have shown us above, and copied it all and then opened the chapter you need to insert them into and paste them into the correct location of that chapter? The last page text box will overflow. You know how many pages you just pasted so add that many pages to the chapter and Bobs your uncle.
I'm not telling you how to suck eggs Marcus but wouldn't that be easier than your work-around mate? |
04-15-2011, 12:08 AM | #15 |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
No you are correct. In my case I never get both text and illo files at the same time, so I have to do both separately.
You would still have to Group the images to the captions and then copy and paste them into the main text thread to ensure they are in the correct position after epub conversion. I find it easier to manage to do it this way... Last edited by Adjust; 04-15-2011 at 12:17 AM. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
creating epub: updating file | marcostt | ePub | 7 | 12-13-2010 12:05 PM |
Creating epub books by hand | RobW | ePub | 9 | 12-12-2010 02:04 PM |
Apple: Creating ePub files with Pages | kjk | Apple Devices | 1 | 08-26-2010 06:46 PM |
Creating ePub files | crutledge | Calibre | 4 | 12-29-2009 09:48 AM |
Tips on creating EPUB | Student1 | ePub | 3 | 03-22-2009 01:41 AM |