Aug 142015

In order to fix EPUB Check Errors there is a method that can be run in Microsoft Word to clear out formatting problems, using the replace function.  In all steps EXCEPT #4, replace all until 0 changes are made.

  1. Remove spaces before and after paragraph returns.  In the Find area, type “^p ” (a paragraph return followed by a space) without the quotes.  In the Replace area, put ^p on its own.  Repeat this step by typing ” ^p” in the Find area without the quotes.
  2. Remove all non-breaking spaces.  Find: ^s — Replace with nothing.
  3. Replace all soft returns with hard returns.  Find: ^l (that’s a lowercase L) — Replace: ^p
  4. Replace all section breaks with page breaks.  Find: ^12 — Replace: ^12 (Yes, this is the same code, but it works.  Unless you have no section/page breaks to start with, replacing all will never get to 0 changes made.)  You only neesd to perform this step once.
  5. Remove all manual tabs.  Find: ^t — Replace with nothing.
  6. Save the .doc file as “Web Page, Filtered” and add “-fix” at the end of the filename (excluding the extension) to keep it distinct.  This will cut out all excess formatting data that are not being used.  Any images in the .doc file will be placed in a folder in the directory you’ve saved to.
  7. Close the .doc file.
  8. In the “Recent File” menu in Word, open the .html file into Word.  If you have “Show/Hide” activated, you should see a mess of degree symbols; these are non-breaking spaces.
  9. Repeat Step 2.  If you have images in your book, proceed to Step 10, otherwise skip to Step 12.
  10. Your images will appear to be present in the document — this is sort of true.  What you are seeing are links to your images.  If you try to submit the document at this point, all the images will be replaced with black boxes with red X’s in the epub version, because the links don’t exist.
  11. Open the folder that holds your document’s images.  In Word, navigate to each image’s location (Find: ^g) and remove it, replacing it immediately with the identical image from the image folder via drag-and-drop (the default alignment should be “in line with text”).
  12. Save this file as a “Word 97-2003 Document” or .doc file (this should still be the file that ends in “-fix”).  On average, a 20-30% drop in file size from the original .doc file is normal, though extremely bloated files have seen drops of 90% or more.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>