08-19-2019, 11:57 AM | #1 |
Zealot
Posts: 105
Karma: 6368
Join Date: Nov 2018
Location: Italy
Device: Kindle P.white3/Kobo Clara 2E
|
Converting odt to ePub
Hi!
I've been trying to convert to epub an odt document (LibreOffice 6.1.3.2), but it gives me the following error. How could I fix? Thanks!! |
08-19-2019, 12:29 PM | #2 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
moved this thread to a more appropriate place.
|
08-19-2019, 12:36 PM | #3 |
Guru
Posts: 657
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
FWIW I gave up odt -> epub after I tried the docx-plugin for Sigil.
So, I just save from LibreOffice in docx, and open it with the plugin in Sigil. Works very nicely. |
08-19-2019, 12:40 PM | #4 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
I did try the ODT to ePub and I find the programmer made a lot of assumptions and does not follow the actual source well. I consistently get better results using Atlantis Word Processor to convert to ePub.
Dale |
08-19-2019, 09:56 PM | #5 |
null operator (he/him)
Posts: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Jane Eyre - if you save it as DOCX you can either use Sigil's DOCXImport plugin which offers the possibility of mapping the Writer Styles to ePub CSS styles, or you can use calibre conversion (or editor) to convert DOCX to ePub, which will preserve your Writer styles the ePub's CSS, but it won't retain the style names, and it will flatten any hierarchical structure.
BR |
08-20-2019, 07:24 PM | #6 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
File > Export As > Export As EPUB I would also recommend downloading the latest LibreOffice for feature/bug fixes (latest as of today is v6.3.0 or v6.2.6). It still has quite a lot of kinks though, so you may want to try other methods as well. Quote:
Calibre also takes ODT directly. |
||
08-20-2019, 08:01 PM | #7 |
null operator (he/him)
Posts: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Calibre's DOCX conversion is usually yields better results. The DOCX Input module is actively maintained by Kovid - afaik the ODT input module is on life support. IMO the only reasons for using calibre's ODT conversions is because you're using an ancient version of Writer or political/religious/cultural bias.
BR |
08-21-2019, 08:11 AM | #8 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
The filter still doesn't support lists in epub2/epub3 files and generates invalid epub2/epub3 books. HTML files in Epub2 books still contain duplicate <title/> tags and stand-alone <br/> tags. HTML files in Epub3 books still contain no <title></title> tags and style sheets contain direction: ltr; declarations, which are not allowed in epub3 books. Also, the LibreOffice epub export filter generates CSS declarations with in and pt values. Last edited by Doitsu; 08-21-2019 at 08:50 AM. |
|
10-28-2019, 06:48 PM | #9 |
Gregg Bell
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
What's wrong with saving the .odt as an .html in LibreOffice and then opening the .html in Sigil, where it can be saved as an .epub?
|
10-28-2019, 08:43 PM | #10 |
Bibliophagist
Posts: 35,431
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
For me, the docx export and then import to Sigil or calibre produces cleaner code (i.e. I have less cleanup and tweaking to do). LibreOffice's html export leaves too much cruft.
|
10-28-2019, 08:59 PM | #11 |
Gregg Bell
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Thanks David. I feel like I don't have a lot of cruft because they're my files and I used the LO styles making them, but anyway, I'd need a Sigil plugin to try your way (which I will). What's the name of the plugin I would need or have a link?
|
10-29-2019, 01:13 AM | #12 | |
Bibliophagist
Posts: 35,431
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
As for the cruft, most of the odt files I've dealt with were created by would-be authors who have no idea of how to use styles. The type of user who says "You mean I don't have to hit enter at the end of each line of text?". |
|
10-29-2019, 04:53 AM | #13 | |
the rook, bossing Never.
Posts: 11,161
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
I find Calibre very simple as I don't need to edit the eBook. Sigil is a more flexible approach when you need something the Wordprocessor can't do. I'm just converting wordprocessor novels, or webpages pasted & edited in WP, some novels with the odd illustration. Calibre is producing epub, then dual mobi & AZW from the epub, that look the same as the WP WYSIWG view changed to a 6" x 8.5" page with small margins with no headers or footers. So docx -> epub2 Then epub2 -> Dual Mobi & AZW/KF8 |
|
10-29-2019, 02:08 PM | #14 | |
Gregg Bell
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Quote:
|
|
10-29-2019, 04:55 PM | #15 |
null operator (he/him)
Posts: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
If you have MS Word 2007 or later you can use Toxaris's eBook add-in for Word to create ePub 2 files with nothing in between.
Calibre always flattens the CSS, including those from WP styles in DOCXes. The Mammoth tool (the Sigil plugin is a Mammoth wrapper) requires mapping of DOCX styles to CSS entries, which means inheritance (cascade), and style names can be preserved. If you don't provide the mapping you'll lose most of the styling - which can be useful at times. BR |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre converting portrait odt to landscape epub | MarjaE | Conversion | 4 | 11-20-2017 09:35 AM |
Attributes lost from hierarchical custom style when converting from ODT to EPUB | bgiroud | Conversion | 6 | 07-27-2015 03:43 AM |
little issue converting from odt to epub (top and bottom margin) | superanima | Calibre | 1 | 02-15-2010 04:15 PM |
Strange behavior converting from ODT to EPUB, lots of page-break | superanima | Calibre | 0 | 01-25-2010 02:57 AM |
Converting ODT to EPUB/LRF | banjomike | Calibre | 2 | 10-03-2009 04:32 PM |