View Single Post
Old 02-13-2018, 09:47 AM   #13
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by Doitsu View Post
I no longer have the old version installed, but since its converter was based on writer2html, I converted the same test file to epub2 and epub3 files using the standalone version of writer2html.

IMHO, the results are much better. It also created lots of inline styles*, but at least footnotes and lists survived the conversion.
If I had to pick one, I'd definitely pick the old converter.

* Inline styles can be easily converted to classes with KevinH's RemoveInLineStyles Sigil plugin.
writer2xhtml can create directly quite clean Epub2 or 3 without any inline style if you select carefully its -little convoluted- configuration options. The source odt is expected to be written using styles that writer2xhtml obviously cannot invent on behalf of the user.

I opened the source docx file with LO6 and converted it to odt format. Then I used odtImport (a Sigil plugin) to export directly an Epub3. In the joint zip file you'll find the odt and the Epub3.

I only batch renamed the html files to xhtml. Everything else is straight from the converter. Epubcheck reports a missing image . writer2xhtml displays all four images because there are two green dots which are the same image, which it displays with different relative settings.

This version of writer2xhtml is an alpha version 1.6. compiled by Doitsu from the source repository.

Edit: for reasons I fail to explain, the odt file has a 4.3 MB size but the resulting Epub has a 32 k size...
Attached Files
File Type: zip demo writer2xhtml.zip (4.09 MB, 254 views)

Last edited by roger64; 02-13-2018 at 08:24 PM.
roger64 is offline   Reply With Quote