How to export a poorly flowed ID file to ePub?
I'm converting four long (200K word+), moderately complex books from ID 2021 to ebooks. The problem is that the designer did a lovely job designing for print, but the way the file is put together makes it a complete mess when I try to export to reflowable ePub:
- Each book is a single INDD file — not chapters bound into an INDB file
- There's no XML or article structure applied
- The body text is a single flow, from beginning to end
- However, the part and chapter heads are placed in free-floating text blocks
- Some of the images (50–100 per volume) are anchored, but many are not
- For those images that are anchored, the designer added blank paragraphs to create space rather than flowing the text (unfortunately, the text features breaks that the designer coded as simple double returns, so I can't just find-and-replace all of those)
- Some of the captions flow with the text, while others are, like the chapter heads, placed in free-floating text blocks
- Frequently, text is hand-formatted instead of having styles applied (ie, hard hairspaces added rather than using tracking, there are forced line breaks, or the paragraph style is just "Normal" with the typeface/font/tracking set by hand, rather than using an existing paragraph style)
- Also, there are a whole bunch of overly specific character styles
- All lists are manually formatted rather than having numbers/bullets applied
- All of the endnotes are unlinked — just superscripted numbers.
Again, the print editions are beautiful. But exporting to ePub? Not so pretty.
Most of this I can deal with easily enough. I've got an existing stylesheet that I've developed for this client's ebooks, so I'm going in and making sure that all of the style names and export tagging link up properly. Before export, I can apply lists styles and get rid of hairspaces and forced breaks. I can go through after export and use REGEX to create hyperlinks between the endnotes and the references, etc.
What's been the most frustrating are the free-floating image, caption, and header blocks, because when I export, they don't appear "based on the page layout" — they end up in completely different locations in unpredictable order. This means going through and placing them manually.
Now, I guess I don't mind doing that — it's just time, right? But there are four of these monsters, and I don't want to waste my time and my client's money.
I tried breaking the first book into chapters to make the search for missing art, captions, and heads a bit easier, but of course, the text simply reflowed — each "chapter" contained the whole book's body text.
I consider myself a moderately experienced InDesign user and a quite experienced ePub designer — but I can't think of a simple way to make sure that all of the elements/objects for each book actually export to where they're supposed to.
I have looked, but I can't seem to find any kind of a solution here or elsewhere. I spent some time looking at scripts, but couldn't find anythinig that seemed as if it would make those floating objects stay put.
Help? I'm sure I'm missing a simple solution, but can't think what it is.
