Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-03-2018, 08:25 AM   #1
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,278
Karma: 14242649
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.
Attached Files
File Type: epub demo_epub2.epub (11.0 KB, 58 views)
File Type: epub demo_epub3.epub (11.5 KB, 50 views)
Doitsu is offline   Reply With Quote
Old 01-04-2018, 03:13 AM   #2
Bertrand
Connoisseur
Bertrand began at the beginning.
 
Posts: 86
Karma: 10
Join Date: Dec 2008
Location: Paris, France
Device: None
Wow, what a soup ...
Good luck if you need to edit the code outside Libreoffice.
Bertrand is offline   Reply With Quote
Advert
Old 01-04-2018, 04:10 AM   #3
Sarmat89
Zealot
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 147
Karma: 2100000
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.
Sarmat89 is offline   Reply With Quote
Old 01-04-2018, 12:48 PM   #4
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,050
Karma: 12294898
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.
DaleDe is offline   Reply With Quote
Old 01-04-2018, 12:54 PM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 52,387
Karma: 47516399
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by Sarmat89 View Post
Well, EPUB is not a semantic markup format, and it cannot be created with a text editor
Actually, ePub can be created with a text editor. It's not all that easy, but it can be done.
JSWolf is offline   Reply With Quote
Advert
Old 01-04-2018, 01:28 PM   #6
arjaybe
Guru
arjaybe ought to be getting tired of karma fortunes by now.arjaybe ought to be getting tired of karma fortunes by now.arjaybe ought to be getting tired of karma fortunes by now.arjaybe ought to be getting tired of karma fortunes by now.arjaybe ought to be getting tired of karma fortunes by now.arjaybe ought to be getting tired of karma fortunes by now.arjaybe ought to be getting tired of karma fortunes by now.arjaybe ought to be getting tired of karma fortunes by now.arjaybe ought to be getting tired of karma fortunes by now.arjaybe ought to be getting tired of karma fortunes by now.arjaybe ought to be getting tired of karma fortunes by now.
 
arjaybe's Avatar
 
Posts: 775
Karma: 5350002
Join Date: Aug 2013
Location: Canada
Device: Sony PRS-650
Quote:
Originally Posted by DaleDe View Post
Better to use Atlantis word processor as it creates very nice compact ePub files.
It has poor ODT support and is only for Windows.
arjaybe is offline   Reply With Quote
Old 01-04-2018, 01:36 PM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 52,387
Karma: 47516399
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by arjaybe View Post
It has poor ODT support and is only for Windows.
And those points are an issue why?
JSWolf is offline   Reply With Quote
Old 01-05-2018, 11:35 AM   #8
mobama
Addict
mobama ought to be getting tired of karma fortunes by now.mobama ought to be getting tired of karma fortunes by now.mobama ought to be getting tired of karma fortunes by now.mobama ought to be getting tired of karma fortunes by now.mobama ought to be getting tired of karma fortunes by now.mobama ought to be getting tired of karma fortunes by now.mobama ought to be getting tired of karma fortunes by now.mobama ought to be getting tired of karma fortunes by now.mobama ought to be getting tired of karma fortunes by now.mobama ought to be getting tired of karma fortunes by now.mobama ought to be getting tired of karma fortunes by now.
 
Posts: 290
Karma: 2091894
Join Date: Aug 2017
Device: Pocketbook Inkpad 2, Onyx T76ML, Kobo H2O Edition 1
@Doitsu
How does it compare with the epub plugin in the earlier version of Libreoffice?
mobama is offline   Reply With Quote
Old 01-05-2018, 11:37 AM   #9
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,480
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Quote:
Originally Posted by Sarmat89 View Post
Well, EPUB is not a semantic markup format, and it cannot be created with a text editor, so this is expected.
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.
Toxaris is offline   Reply With Quote
Old 01-05-2018, 01:30 PM   #10
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,278
Karma: 14242649
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by mobama View Post
@Doitsu
How does it compare with the epub plugin in the earlier version of Libreoffice?
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.
Attached Files
File Type: epub writer2html_epub2_demo.epub (22.0 KB, 41 views)
File Type: epub writer2html_epub3_demo.epub (22.5 KB, 40 views)
Doitsu is offline   Reply With Quote
Old 01-05-2018, 06:06 PM   #11
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 1,060
Karma: 6000097
Join Date: Jul 2012
Device: Nook
Quote:
Originally Posted by Doitsu View Post
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.
This EPUB support is still in the barebones stages. I found out about it on the LibreOffice Wiki for v6.0:

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:
Originally Posted by JSWolf View Post
Quote:
Originally Posted by arjaybe View Post
It has poor ODT support and is only for Windows.
And those points are an issue why?
Because many people use ODT documents and are on non-Windows OSes?

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.
Tex2002ans is offline   Reply With Quote
Old 01-07-2018, 09:01 AM   #12
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,195
Karma: 500000
Join Date: Dec 2012
Device: Kindle
Quote:
Originally Posted by DaleDe View Post
Better to use Atlantis word processor as it creates very nice compact ePub files.
Thanks for that information! I collect votes on behalf of purpose-built softwares like Atlantis, Jutoh, Scirvener, Vellum etc, since I don't use any of them myself.
Notjohn is offline   Reply With Quote
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,302
Karma: 2385865
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, 31 views)

Last edited by roger64; 02-13-2018 at 08:24 PM.
roger64 is offline   Reply With Quote
Old 02-21-2018, 10:25 AM   #14
Sarmat89
Zealot
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 147
Karma: 2100000
Join Date: Nov 2015
Device: none
Your ODF file contains 18 embedded fonts.
Sarmat89 is offline   Reply With Quote
Old 04-22-2018, 05:59 PM   #15
Apparition B5
Connoisseur
Apparition B5 ought to be getting tired of karma fortunes by now.Apparition B5 ought to be getting tired of karma fortunes by now.Apparition B5 ought to be getting tired of karma fortunes by now.Apparition B5 ought to be getting tired of karma fortunes by now.Apparition B5 ought to be getting tired of karma fortunes by now.Apparition B5 ought to be getting tired of karma fortunes by now.Apparition B5 ought to be getting tired of karma fortunes by now.Apparition B5 ought to be getting tired of karma fortunes by now.Apparition B5 ought to be getting tired of karma fortunes by now.Apparition B5 ought to be getting tired of karma fortunes by now.Apparition B5 ought to be getting tired of karma fortunes by now.
 
Apparition B5's Avatar
 
Posts: 82
Karma: 2245322
Join Date: Sep 2013
Location: Pennsylvania, U.S.A.
Device: Kindle Voyage and iPad Pro
According to the update in this blog post, EPUB support has been substantially approved in the LibreOffice master trunk.
Apparition B5 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 12:02 AM.


MobileRead.com is a privately owned, operated and funded community.