01-03-2018, 08:25 AM | #1 |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
LilbreOffice 6.0 epub2/epub3 output test
Since the upcoming LibreOffice 6.0 version will have epub2/epub3 output support, I tested a LibreOffice 6.0 pre-release version with a demo file originally created by Kovid Goyal to test the Calibre DOCX filter.
I wasn't exactly impressed by the output. The epub2 version had duplicate header title tags in each file and both versions had one broken link. The converter also couldn't handle footnotes and endnotes and, most annoyingly, all generated HTML files contained inline styles. |
01-04-2018, 03:13 AM | #2 |
Zealot
Posts: 124
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
|
Wow, what a soup ...
Good luck if you need to edit the code outside Libreoffice. |
Advert | |
|
01-04-2018, 04:10 AM | #3 |
Evangelist
Posts: 495
Karma: 2267928
Join Date: Nov 2015
Device: none
|
Well, EPUB is not a semantic markup format, and it cannot be created with a text editor, so this is expected.
Plus, the LibreOffice has a one-trick pony XHTML exporter, which doesn't even try to simplify the output. |
01-04-2018, 12:48 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
|
Better to use Atlantis word processor as it creates very nice compact ePub files.
|
01-04-2018, 12:54 PM | #5 |
Resident Curmudgeon
Posts: 75,815
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
Advert | |
|
01-04-2018, 01:28 PM | #6 |
Wizard
Posts: 1,033
Karma: 12018368
Join Date: Aug 2013
Location: Canada
Device: Sony PRS-650, Kobo Clara
|
|
01-04-2018, 01:36 PM | #7 |
Resident Curmudgeon
Posts: 75,815
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
01-05-2018, 11:35 AM | #8 |
Evangelist
Posts: 432
Karma: 2303460
Join Date: Aug 2017
Device: Pocketbook Inkpad 3, Onyx T76ML, Kobo H2O Edition 1, Kobo Mini
|
@Doitsu
How does it compare with the epub plugin in the earlier version of Libreoffice? |
01-05-2018, 11:37 AM | #9 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Yes it can. If I can write an add-in that does it (for Word, granted), than they can do it as well. The other example given in this thread, Atlantis, is a fine Word processor and it can do it as well with reasonable results.
|
01-05-2018, 01:30 PM | #10 | |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
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. |
|
01-05-2018, 06:06 PM | #11 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
https://wiki.documentfoundation.org/....0#New_filters This also linked to the author's blog post about adding EPUB3 support. This is a good first step. Quote:
As the LibreOffice EPUB Import/Export grows, there will be less of a need for a lot of the third-party solutions now (Save as DOCX and run through Calibre, etc., etc.). And maybe some of the libraries used in LibreOffice will tangentially lead to better ODT input on Calibre's side of things. |
||
01-07-2018, 09:01 AM | #12 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
|
02-13-2018, 09:47 AM | #13 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
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... Last edited by roger64; 02-13-2018 at 08:24 PM. |
|
02-21-2018, 10:25 AM | #14 |
Evangelist
Posts: 495
Karma: 2267928
Join Date: Nov 2015
Device: none
|
Your ODF file contains 18 embedded fonts.
|
04-22-2018, 05:59 PM | #15 |
Zealot
Posts: 108
Karma: 2245322
Join Date: Sep 2013
Location: Pennsylvania, U.S.A.
Device: Kindle Oasis 3 and iPad Air 5
|
According to the update in this blog post, EPUB support has been substantially approved in the LibreOffice master trunk.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epub3 to epub2 | AlanHK | Sigil | 11 | 08-09-2017 05:06 AM |
Convert from epub3 to epub2 (yes, backwards) | BKh | Sigil | 23 | 05-15-2017 04:53 PM |
How to solve EPUB3/EPUB2 rendering issue on Ipad | E-Books | ePub | 2 | 05-16-2013 07:07 AM |
Confused! XHTML, HTML, HTML5, EPUB2, EPUB3??? | carlosbcg | ePub | 29 | 02-23-2013 07:32 PM |
JAVASCRIPT support in ePub2/ePub3 | Raja1205 | ePub | 7 | 09-03-2012 06:48 AM |