Getting Started


Introduction: What is an EPUB?

An EPUB is a collection of content, distributed as a single file using ZIP format.
See the official W3C EPUB 3 Overview document for a more in-depth overview.


Step 1: Export EPUB from Indesign

  1. Open the main title contents indd file in Indesign
  2. Anchor images in the text so that they are in the right place when you export the EPUB.
    1. Find your image in the Indesign document
    2. Click the little blue square in the upper right corner of the image and drag it to the place in the text where you want the image to be placed in the text.
  3. Review the Paragraph and Character Styles
    1. Reviewing the paragraph styles will give you a good idea of what types of CSS classes you will need.
    2. Any styles that are not necessary (like “no_break”, or “keep_together”) can be removed in Indesign before exporting.
  4. Export as EPUB (⌘E)
    1. Under General, make sure Version is set to “EPUB 3.0”
    2. Under General, set Cover to “None”
    3. Under Text > Options, check “Remove Forced Line Breaks”
    4. Under Text > Lists, set Bullets and Numbers to “Convert to Text”
    5. Under Conversion settings, set Format to “PNG” and resolution to 150 PPI
    6. Under HTML & CSS > Additional CSS, click “Add Style Sheet” and add epub3.css from your local machine
  5. Unzip the .epub file that Indesign exported.
  6. Rename the decompressed directory to the ISBN

Step 2: Pull Metadata from Firebrand

  1. Find the ISBN of the title (usually in JIRA or wherever the title was assigned to you).
  2. Use the Create Firebrand OPF Applescript to create content.opf. Note: When using the Create Firebrand OPF script, use the ISBN-13 number for the ePub without dashes.
  3. If the title is fixed-layout (such as a cookbook, coffee table book, and some children’s books), add the necessary tags to the content.opf.
  4. Review the opf metadata style guide and ensure compliance

Step 3: File Cleanup

  1. Remove the following files completely (some will be added back later in a better format.)
    • META-INF/encryption.xml
    • OEBPS/cover.xhtml
    • OEBPS/toc.ncx
    • OEBPS/toc.xhtml
  2. Rename the /image/ directory to /img/
  3. Copy all of the fonts from the Document fonts folder in the source files to the /font/ directory
    • We do this because when Indesign exports an EPUB, it encrypts the fonts. We need the unencrypted fonts to move forward with development.
    • If any of the original fonts have been replaced with fonts found in the Universal Type Client, they can be collected from UTC.
    • If Adobe fonts are included in the ePub, they should remain encrypted, and the encryption.xml file is retained.
    • See the Font Style Guide for more information

Step 4: Export Cover Image from Indesign

  1. Open the main cover indesign file
  2. Export the cover page as a a JPG. (Be sure to follow the Cover Image Style Guide.)
  3. Add the cover image to the Content.opf manifest

Step 5: Export Title Page Image from Indesign

  1. Open the main content indesign file
  2. Export the title page as a PNG. (Be sure to follow the Title Page Style Guide.)
  3. Create the file text/DS01_frontmatter01.xhtml from the content file template
  4. Add the image in a full page <div>
  5. Be sure the titlepage image is included in the OPF manifest

Step 6: Markup Cleanup

InDesign adds all kinds of CSS classes to the markup to do styling, but as with any auto-generated markup/CSS it’s not written in the cleanest and most efficient way. We need to work through the content and clean up the extraneous CSS classes and markup tags.

  • Separate each chapter of the content into <section> tags and files.
    • Each section should be put in it’s own DS02_chapterxx.xhtml file so that page breaks render properly on all devices.
    • Each file’s opening <body> tag should have an epub:type attribute with a value from the EPUB Document Sections Style Guide.
  • If there are <p> tags that are styled as headers, they should be re-formatted as <h1-h6> tags, following the Headings Style Guide (be sure to note the styles and keep what is needed retain the look of the header)
  • Images should be exported from Indesign following the Image Style Guide
  • Tables should be formatted according to the Table Style Guide and be added to the list of tables in toc.xhtml
  • Endnotes or footnotes should be formatted as links according to the Notes Style Guide.
  • Add page breaks to align the content with the print version. See the Page Break Style Guide for more details.
  • Convert all symbols to numerical entities (see the Entity References Style Guide).
  • Use Regex to find and fix all empty tags, multiple spans, and self closing tags
  • Add format() to all CSS font definitions
  • Find and remove any CharOverride and ParaOverride classes in the xhtml
  • Remove unused CSS (including the CharOrverride and ParaOverride rules)

Step 7: Create the OPF Manifest and Spine

  1. List the font files used in the manifest.
  2. List the CSS files used in the manifest.
  3. List the images used (including the cover) in the manifest.
  4. List the text files used in the manifest.
  5. Add the navigation files to the manifest
  6. Populate the <spine> tag from the table of contents. (be sure to include the toc.xhtml).

Step 8: Build the Table of Contents

  1. Create a new OEBPS/toc.xhtml file from the TOC template
  2. Build a Table of Contents list in the nav#toc element.
  3. Build a page list in the nav[EPUB:type="page-list"] element.
    • Every page number that exists in the print version should be included in this list and linked to the pagebreak in the content files.
    • See the Page List Style Guide
  4. Add the list of images and list of tables
  5. Create a new OEBPS/toc.ncx file from the NCX template
  6. Fill in the meta data in OEBPS/toc.ncx
  7. Use the Table of Contents list to build the <navMap>

Step 9: Package your EPUB

  1. Zip your EPUB using your method of choice.
  2. Validate your EPUB using EPUB checker
  3. Run additional validation on your EPUB with FlightDeck (Access FlightDeck through the FireBrand record for the title)
Optional: Create a CHO version of the EPUB
  1. Copy the EPUB directory and rename to the CHO version ISBN
  2. Replace the ISBN in all locations in the EPUB (content.opf, toc.ncx, copyright page, etc.)
  3. Make sure that the LIN is listed properly on the copyright page
  4. Zip the CHO version as a separate EPUB to upload

Step 10: Prepare Additional Files and Upload

  1. Prepare any additional files listed in the current Deliverables Style Guide
  2. Upload files to Alfresco
Optional: Add Content Platform (CP) enhancements
  1. Login to Content Platform with your LifeWay ID using the following URL: https://content.lifeway.com/ (Must be on VPN)
  2. Search for the specific title by ISBN, GUID, LIN, or Title using the search box/drop-down in the top left of the screen. Search Feature
  3. Click on the title needing enhancement and select the Enhance Content button from the modal window. Enhance Content Button
  4. A new browser window will open displaying the ePub itself with options at the top. Begin by selecting Workbook from the drop-down menu. Index Dropdown
  5. Next, choose the chapter that you want to begin enhancing by using the TOC on the left. When you’re ready to begin, click the rectangular button next to the drop-down menu. Question Button
  6. To create a workbook enhancement, select a question in the body of the text. Once the text is selected a new modal window will appear on the left side of the screen. Click the Save button and an icon will appear after the selected text indicating a workbook enhancement has been added. Save Question Modal
  7. Once you’ve finished and are ready to move on to the next chapter, click the small rectangular icon next to the drop-down menu at the top. This will allow you to access the TOC to move to the next chapter needing enhancements. Add Question Button
  8. If you need to delete an individual enhancement, click on the enhancement icon in the body of the text and click Delete. The icon should no longer be visible in the content. Delete Question Button
  9. When all the enhancements have been made for a title, click the orange Workbook button (which is the drop-down). This should change the color to green indicating the status has successfully changed in Content Platform. Save Workbook Button