Epub Formatting Kindle to Epub Prep Phase
NOTE: This Epub formatting guide will use a Kindle file you may have made here or elsewhere as the foundation. If you want to start with epub formatting from scratch, head to the other epub formatting guide on my website for that.
Step 1: Ready the Kindle version folder of your book or project, the same folder we used to create the Kindle book.
- This will be the base from which we will create our epub file. It’s basically the same except for a few tweaks.
Step 2: Create new ePub Folder
- Right click on the Desktop screen and click New Folder. Name it whatever you want, but the way I do it is to name it with the title of book or its initials and add “epub” at the end.
- Some people create an ibooks version and a general epub version (I do that). iBooks doesn’t approve books with names of other retailers in the source file so if say, your back matter asks for reviews for different sites that accept epubs or if you’re advertising books from different sites than it’s best to create separate iBooks and general epub editions. Name them appropriately if so.
- Save on the Desktop for easy referral. This makes the file a lot easier to find for the formatting program. This Tutorial assumes you saved it to the Desktop.
Step 3: Create Directory in ePub Folder
- It’s easier than it sounds. Follow these instructions exactly or else there might be formatting issues. Make sure to capitalize or not capitalize when needed to.
- Inside ePub Folder, create a new folder titled: OEBPS
- Inside ePub Folder, create another folder named: META-INF
Step 4: From the Kindle version folder, copy and paste the Font, images, stylesheet, Text, opf file, and toc.ncx file into the OEBPS Folder.
- Everything found in the Kindle version folder should be in the OEBPS folder.
- We will modify this in the Task Phase.
Step 5: Create container.xml file
- Open Notepad++ and create a file named container.xml. Don’t forget the file extension.
- Head to bbebooksthailand.com (scroll down to the bottom of website, click Developers link, click on Epub 2.0.1 Boilerplate), copy template. You can also copy and paste this one (use Kindle for PC to copy and paste):
<?xml version=”1.0″ encoding=”UTF-8″?>
<container version=”1.0″ xmlns=”urn:oasis:names:tc:opendocument:xmlns:container”>
<rootfile full-path=”OEBPS/insertnamehere.opf” media-type=”application/oebps-package+xml”/> </rootfiles>
Modify the rootpath to the name of your opf file (third pacman symbol line). Since the file path is the same, put your file name after OEBPS/ in OEBPS/insertnamehere.opf.
Step 6: Create mimetype file.
- Open Notepad++, create a new file and save as mimetype. The mimetype should be among the META-INF and OEBPS folders and not inside them.
- Make sure it’s just the word “mimetype” (without quotations) – Notepad adds a .txt file extension at the end. Get rid of it.
- Make sure there’s no .txt file extension. It wont work if it’s a txt file.
- In the first line of mimetype file, put in these words:
Has to be exactly 21 characters. Copy it exactly with no misspellings of errors.
- The application/epub+zip can also be found at the bbebooksthailand.com site also under Developers and Epub 2.0.1 Boilerplate.
Step 7: We have now created the ePub Folder!
Step 8: Download and install zip.exe into your computer.
- This will allow us to create epub files using command line DOS.
- Found at stahlworks.com. in the line where it says “to create zip files on the command line.”
- There are tutorials on the internet on how to use the command line. Make sure you know how to use the command line because we’ll be using it to create the epub file.
- Put zip.exe program in the Computer File or wherever you wish. I like to put it in the computer file for easy reference.
- You can put the program wherever you want, but then you’ll have to direct the command line to wherever it is you put it, possibly having to scour through more folders.
Step 9: Download Adobe Digital Editions
- This will allow us to read and review epub files.
- Head to the Adobe Digital Editions website and download the free Adobe Digital Editions software.
Step 10: Prep phase is complete. Optional break here.