Don't convert to Open Office or Libre Office!*
Open Office is dead, replaced by Libre Office. There is an odt conversion on Calibre, but I found an extra Save As in docx from Libre Office Writer works better and Kovid confirmed the docx input is better.
If you are using MS Word, open the docx and save as in Word 2007 or later docx with a different name. Open that with Calibre.
Also for CSS & HTML to work well the docx should use styles. Headings only when you want a page break. No headers, footers or page numbers. All images to be embedded, not external.
Lists should use a paragraph style that looks the same but without auto numbers, letters, Roman numerals or bullets. Type in the item ID manually. This is because while Word Processor lists will convert well to HTML for web pages, actual HTML list formatting (especially auto numbering) is poorly supported on actual physical ereaders.
I've been doing docx to epub with Calibre for years and style to CSS is perfect. I only need to edit some images' CSS if they are to be a percent of width or height (other property set to auto).
* Obviously convert docx to odt if editing in LO Writer, but an extra Save As in docx at the end for Calibre and don't edit that docx in LO Writer, only the odt.
|