08-29-2019, 09:31 AM | #1 |
Member
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! |
08-29-2019, 09:54 AM | #2 | |
The Grand Mouse 高貴的老鼠
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
I'd recommend Sigil for creating the ePub itself. Creating good quality contents for the ePub is a lot harder. |
|
Advert | |
|
08-29-2019, 10:02 AM | #3 |
Member
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. |
08-29-2019, 10:10 AM | #4 |
The Grand Mouse 高貴的老鼠
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.
|
08-29-2019, 10:11 AM | #5 |
The Grand Mouse 高貴的老鼠
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.
|
Advert | |
|
08-29-2019, 10:33 AM | #6 |
Member
Posts: 18
Karma: 10
Join Date: Oct 2017
Device: PW
|
Ok, thank you for the precision.
|
08-29-2019, 01:12 PM | #7 |
mostly an observer
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.
|
08-29-2019, 03:38 PM | #8 |
Resident Curmudgeon
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. |
08-30-2019, 03:34 AM | #9 |
Connoisseur
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> 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. |
08-30-2019, 07:21 AM | #10 |
Resident Curmudgeon
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.
|
08-30-2019, 10:13 AM | #11 | |
Connoisseur
Posts: 97
Karma: 200000
Join Date: Aug 2019
Device: none
|
Quote:
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. |
|
08-30-2019, 10:17 AM | #12 | |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
Quote:
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. |
|
08-30-2019, 10:53 AM | #13 | |
Resident Curmudgeon
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:
|
|
08-31-2019, 01:28 PM | #14 |
Member
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? |
08-31-2019, 01:37 PM | #15 |
A Hairy Wizard
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. |
|
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 |