I am trying to compile my novel into ePUB format (Mac 3.1.2). When I try to view the file with Kindle Previewer 3, I get a conversion error message with a log of errors which make no sense to me.
My novel has images on 6 pages but otherwise it’s a fairly standard text format for novels with footnotes on the occasional page.
Has anybody else encountered this problem when compiling for ePUB? How did you get around it? I’m guessing my problem is not unique so any advice would be most helpful.
Attached screenshot of the log of errors.
If I use iBooks to open the file, I get various errors in chapters. Most are incomprehensible to me:
“error on line 17 at column 29: Opening and ending tag mismatch: div line 0 and p”
Has anybody else had similar issues when compiling ebooks?
Since the original error log points to an issue in the ToC, I’d go back and review the instructions provided in the user manual, under §22.2, Contents in Ebooks—particularly those in the yellow tip box.
One quick way to determine if this is the source of the problem is to remove your custom ToC section from the Draft and let Scrivener generate one automatically. If that passes inspection, then it’s very likely there is an issue with the formatting in the custom ToC.
That might not be the only problem though. Really the best way to examine these is to open your .epub file in an editor, like Sigil or Calibre, and follow where the error messages take you. They should point to an internal file name, line number and sometimes column number, but once you get to the general area if there are problems with the HTML, it should be easy to spot them, and then trace back to the original project and see if there is something in the editor that may cause that problem.
I’d also suggest using a better validation tool, as it looks like Kindle Previewer’s log lists problems by its own internal temporary conversion system rather than the actual .epub file you gave it. ePubCheck is a good one (though it needs Java installed). There are online checkers based on that tool.
Given the great quantity of potential variables involved, it’s really hard to say what’s going on from over here. Like I say, it’s often best to look at the source itself in Sigil. Apple’s Books isn’t really a debugging environment.
actually, is there a way to remove all the spans altogether? I have no need for selecting color etc since it’s going to an epub. IOW, is there a way to strip all such formatting from within scrivener ?
Update: Ahh, yes, I selected the text and chose “Text Color → Remove Color” from the context menu, and that solved the problem. Thanks!!
Option number 2 is choosing “Remove text color” during compile
I should point out that these are workarounds for only issues with span that’s related to color. I’ve since (already) run into issues where color isn’t the problem, and the span is causing issues elsewhere (in lists)