Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-29-2019, 09:31 AM   #1
Fstab
Member
Fstab began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Oct 2017
Device: PW
How to create a clean ePub? (total beginner)

Hello,

I want to create an ePub, and if possible, with a good method to have a well-made and clean ePub.
So I have started to look for a guide and have found a lot of tools and methods with Sigil, LibreOffice, writer2epub, writer2xhtml, Amanuensis, and others.

But I am lost in the middle of all this, because some tools are old (Amanuensis 2011, writer2epub 2014), some are abandoned (writer2xhtml will not have new version), some are maybe not good enough (apparently, LibreOffice did not made clean code in version 6.0, is it still the case with the 6.3 version?), and I don't know where to start.

What do you think about the LibreOffice export with the 6.3 version? Is it clean compared to 6.0 and 6.1?

Do you think I can use old tools or are they some improvements in the past few years?

Maybe Sigil is the best way, but I was reading on the website it was not updates for years.

My main computer is on Windows, but I use also OSX and several GNU-Linux, mainly Debian-based. I want to create mostly text only ebooks (plus cover), but also some with a few pictures in them.

All guides I have seen are years old, I don't know if they are still useful.

Thank you for your help!
Fstab is offline   Reply With Quote
Old 08-29-2019, 09:54 AM   #2
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by Fstab View Post
Maybe Sigil is the best way, but I was reading on the website it was not updates for years.
The most recent release of Sigil was just 19 days ago on 10th August 2019.

I'd recommend Sigil for creating the ePub itself. Creating good quality contents for the ePub is a lot harder.
pdurrant is offline   Reply With Quote
Advert
Old 08-29-2019, 10:02 AM   #3
Fstab
Member
Fstab began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Oct 2017
Device: PW
Thank you pdurrant.
I was writing about the history of Sigil.
Ok, thanks for your recommendation, I will look further into Sigil.
I have read I can import an ODT (LibreOffice) with ODTImport. I don't know if it is the same as creating the file straight in Sigil.
Fstab is offline   Reply With Quote
Old 08-29-2019, 10:10 AM   #4
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Sigil is an excellent way to create an ePub with valid structure. Creating clean, valid XHTML and CSS files is rather up to you. A simple import of any kind of word processing document is unlikely to produce clean results, unless the author has applied styles incredibly consistently, and even then the CSS is very likely to need adjustments.
pdurrant is offline   Reply With Quote
Old 08-29-2019, 10:11 AM   #5
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Sigil was taken over by new developers some time ago. It now has a forum here on MobileRead, and a github repository.
pdurrant is offline   Reply With Quote
Advert
Old 08-29-2019, 10:33 AM   #6
Fstab
Member
Fstab began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Oct 2017
Device: PW
Ok, thank you for the precision.
Fstab is offline   Reply With Quote
Old 08-29-2019, 01:12 PM   #7
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,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
No word processor makes clean html, though I'm told that Atlantis Word Processor ($40 or so) is better than most. Personally, I finish up writing my books in Word 2007, then I run the Word doc through Word2CleanHtml online, which produces gloriously clean html to open in Sigil and there massage. There are many other ways to achieve the same end, including a Word plug-in by Toxaris who regularly posts here.
Notjohn is offline   Reply With Quote
Old 08-29-2019, 03:38 PM   #8
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: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
If the formatting is not complex, then exporting the text from the word processor as text could be a lot easier to work with then the mess you can sometimes get from a word processor.

I've seen HTML Word documents where a text export and then message it from there in Sigil would be so much easier.
JSWolf is offline   Reply With Quote
Old 08-30-2019, 03:34 AM   #9
AliceWonder
Connoisseur
AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.
 
Posts: 97
Karma: 200000
Join Date: Aug 2019
Device: none
I recently started the same journey. I am not using software, other than a text editor. I may go that route but I want to manually do things first to help me understand it better.

Understanding how to properly do metadata within the .opf file has been my personal most time consuming task, especially the Dublin Core stuff. Have to use one tag to define a creator and that creator has to have a unique ID and then you need a second meta tag to refine the dc:creator tag and associate the unique ID with the type of creator. e.g.

Code:
    <dc:creator id="editor">Alice Wonder</dc:creator>
    <dc:creator id="author0">Alice Wonder</dc:creator>
    <dc:creator id="author1">Enchantrix Brighton</dc:creator>
    <!-- princess andi illustration 1 -->
    <dc:creator id="illustrator01">Annabelle Brito</dc:creator>
    <!-- french maid with dusting brush -->
    <dc:creator id="illustrator02">Robert DeJesus</dc:creator>
    <!-- Misaki Ayuzawa portrait -->
    <dc:creator id="illustrator03">Kayleigh Vaughn</dc:creator>
    <!-- Rem Portrait -->
    <dc:creator id="illustrator04">Professor Purrv</dc:creator>
    <!-- princess andi illustration 2 -->
    <dc:creator id="illustrator05">Placeholder</dc:creator>
    <!-- back page illustration -->
    <dc:creator id="illustrator99">Gustavo Rezende</dc:creator>
      <!-- http://www.loc.gov/marc/relators/relacode.html -->
      <meta refines="#editor" property="role" scheme="marc:relators">edt</meta>
      <meta refines="#author0" property="role" scheme="marc:relators">aut</meta>
      <meta refines="#author1" property="role" scheme="marc:relators">ctb</meta>
      <meta refines="#illustrator01" property="role" scheme="marc:relators">ill</meta>
      <meta refines="#illustrator02" property="role" scheme="marc:relators">ill</meta>
      <meta refines="#illustrator03" property="role" scheme="marc:relators">ill</meta>
      <meta refines="#illustrator04" property="role" scheme="marc:relators">ill</meta>
      <meta refines="#illustrator05" property="role" scheme="marc:relators">ill</meta>
      <meta refines="#illustrator99" property="role" scheme="marc:relators">ill</meta>
I made comments to myself so I'd know who was what, etc. and so I could always find the URL with the marc:relators that are needed to refine the dc:creator tags.

Using the ePubCheck validator has GREATLY helped. It would give me errors and I could search google for the error string and 90% of the time find an explanation for the error and then have a better understanding of how ePub works.

I do use the editor that came with Calibre to run the ePubCheck validator (as a plugin) and I may at some point use that editor instead of just a text editor once I better understand ePub.

But anyway, understand the metadata was the biggest hurdle for me, the rest seems fairly easy to grasp.
AliceWonder is offline   Reply With Quote
Old 08-30-2019, 07:21 AM   #10
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: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The first thing to learn is HTML/CSS. Then from there you can learn the technical stuff to do with ePub.
JSWolf is offline   Reply With Quote
Old 08-30-2019, 10:13 AM   #11
AliceWonder
Connoisseur
AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.
 
Posts: 97
Karma: 200000
Join Date: Aug 2019
Device: none
Quote:
Originally Posted by JSWolf View Post
The first thing to learn is HTML/CSS. Then from there you can learn the technical stuff to do with ePub.
Good point - one thing many don't get is that there is a difference between XML and HTML and then XHTML muddies the water as it is sometimes served w/ HTML mime type instead of XML mime type.

With HTML certain tags MUST have a child node, even if the child node is empty - examples are a and script and style. That means they can not be self-closing in HTML.

With XML any node can be self closing and be legal. Not all make sense to be, but they can be.

With XHTML though - those tags where HTML requires a child node can only be self closing IF served with an XML mime type. WordPress for example does this, it uses XHTML but is served with HTML mime type so the HTML rules apply, not the XML rules.

But with ePub since an XML mime type is specified in the .opf, the XML rules apply, any tag can be self closing so you don't have to use a separate closing tag unless it has a child node (including text) and some tags that don't have to be closed in HTML (like br and img and hr) do have to be self closing in ePub.

Also - with HTML tags are not case sensitive but with XML they are, so with ePub since XML mime type is specified, only use lower case tags for the XHTML and I think the .opf also only ever uses lower case tags.
AliceWonder is offline   Reply With Quote
Old 08-30-2019, 10:17 AM   #12
lumpynose
Wizard
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
Quote:
Originally Posted by JSWolf View Post
The first thing to learn is HTML/CSS. Then from there you can learn the technical stuff to do with ePub.
You have to be careful though, most if not all web sites or books about HTML/CSS are targeted at making web pages and include lots of stuff that won't work with an epub. And that's not including all the javascript stuff they probably talk about.

I would love to find a web site about making epubs, epub2 vs epub3, what to watch out for for the different ereaders, and making good epubs that convert well into kindle formats, etc.
lumpynose is offline   Reply With Quote
Old 08-30-2019, 10:53 AM   #13
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: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by lumpynose View Post
You have to be careful though, most if not all web sites or books about HTML/CSS are targeted at making web pages and include lots of stuff that won't work with an epub. And that's not including all the javascript stuff they probably talk about.

I would love to find a web site about making epubs, epub2 vs epub3, what to watch out for for the different ereaders, and making good epubs that convert well into kindle formats, etc.
Keep it simple. That's what works in most cases. Don't use any extra code in the CSS. Don't leave any unused classes. That's what works in most cases. Don't try to be fancy where you don't need to be.
JSWolf is offline   Reply With Quote
Old 08-31-2019, 01:28 PM   #14
Fstab
Member
Fstab began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Oct 2017
Device: PW
Thank you all!

@Notjohn
Ok, good to know there is different tools working. I still prefer to use recent and free tools.

@JSWolf
Seems better to export only the text, but I suppose it is a lot more work for the layout?
I have to make some tests before, because for now I don't know the process.
And I did not know it is better to know HTML and CSS (which I know a little) to make good ePub.

@AliceWonder
Ok, I like text editors like those for coding but I don't know if it takes a lot more time to manage the layout after, because it seems more efficient in a word processor like LibreOffice Writer (or maybe I don't understand well, because I am not fluent in English).

@lumpynose
I would like to see this kind of website myself too! ^^

To begin, I don't want to have some personal fonts, only to use what is provided by the devices. Maybe it will be simple that way?
Fstab is offline   Reply With Quote
Old 08-31-2019, 01:37 PM   #15
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,099
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
There are a few tutorials here in the MR wiki. There are also many examples in our library that you can use to learn.

I probably would stay away from the pure text method - that is a lot of extra work going back and re-inserting all the formatting tags. JSWolf's comment was "If the formatting is not complex" meaning very few uses of italics, bold, or small-caps, etc. Otherwise you can use Toxaris' Word plugin that does an excellent job of cleaning up all the crud from word....it'll even save as a basic epub that you can open with Sigil and fine-tune.
Turtle91 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
beginner question about epub to kindle codrutp Workshop 2 10-22-2018 08:17 PM
Convert to clean EPUB Narga Conversion 3 07-25-2013 03:24 AM
Request of suggestions for a strategy to create a CLEAN Calibre library RotAnal Library Management 5 09-24-2012 01:01 AM
903 A total wipe clean? jekvb PocketBook 5 03-04-2012 10:31 AM
Create clean custom Yahoo Rss feed 77ja55 Recipes 1 01-17-2011 09:33 AM


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


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