Quote:
Originally Posted by Lukusaukko
The problem here is that DOCX as a format does not support cascading formatting. That is, unlike with HTML (EPUB is just a container for HTML), you can't tell it to format all paragraphs inside section/div A like this, and all paragraphs inside section/div B like this - it can only deal with paragraph or character level formatting. And that's why the conversion fails (and also because the conversion is mainly concerned with turning other documents into something for e-readers, so converting e-reader formats to something else isn't a high priority).
So what to do if you both need a well-formatted EPUB and would like to produce equally well-fomatted DOCX out of it? To be honest, I don't really know, to me that sounds like it's the wrong way around - I would first make everything as a Word doc, and then convert the final result to epub.
However, if epub > docx is the correct workflow for whatever reason, I don't think there is any way to avoid inserting empty paragraphs where the break should be. However, this should be fairly easy to do with a simple search and replace: just search for "</div><div class="block5">" and replace it with "</div><p class="break"><br/></p><div class="block5">" and adjust to rest of the styles so the overall look remains the same.
Hopefully that's of some help, even if that's not the answer you were hoping for.
|
Thank you. This is more or less what I did. I got just what I needed so I'll call this great success! Thank you for your time and patience!