Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-02-2021, 12:22 AM   #1
Jarno
Junior Member
Jarno began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2021
Device: Kindle
HTML to MOBI to ePUB?!?

Hi guys,

Thanks for reading my first post.

I just wanted to ask some advice on to how to "publish" my book.

I have everything in HTML files, and I'm using some of my own software to convert it to MOBI. It actually works!! I can view it in Kind Previewer 3 without too many problems.

I did all that some time ago, and now I found out that Amazon will drop the MOBI format in August (in favor of ePUB?).

So, I can see two ways forward:

1. Convert MOBI to ePUB
2. Or somehow import the HTML files, and generate an ePUB file

My book is fairly simple, and I like the idea of going from HTML straight to ePUB, but how does it work when I change some of my HTML files, will I then have to convert it all over again then?

Would you consider a conversion from MOBI to ePUB "safe"? Metadata, etc.

Any thoughts on this?

Kind regards,
Jarno
Jarno is offline   Reply With Quote
Old 07-02-2021, 03:03 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
If you could write your own HTML-to-MOBI converter, an HTML-to-EPUB converter should be a piece of cake (in case you don't want to use already existing software like Sigil or calibre). ePub is just a zipped collection of (X)HTML files, plus a couple of XML metadata files. Modifying the HTML in an ePUB is just a matter of replacing the zipped file inside.

If you don't have the original HTML files or you are concerned about the metadata, you could give calibre's ebook-convert a try. I haven't tried it myself, but I guess it'll be pretty decent.

PS. But I don't think Amazon will use ePub, they'll probably use some concoction like AZW3...
Jellby is offline   Reply With Quote
Old 07-02-2021, 04:57 AM   #3
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,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You are best to convert your HTML to ePub and then use that as the source for sending to Amazon. Going HTML > Mobi > ePub is the long way round for a shortcut.
JSWolf is offline   Reply With Quote
Old 07-02-2021, 07:40 AM   #4
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,095
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
I agree with Jellby - If you have the original HTML files, just add them to Sigil (or Calibre). Using that software when you update the html files will automagically create the proper files for ePub. If you only have the mobi files, then use Calibre's convert option to change mobi->ePub, then use Sigil/Calibre to clean up or update.

I do remember hearing that you should NOT use a raw Calibre converted ePub to submit to kindle for some reason (I don't remember why), but if you clean it up and run epubcheck then it works fine. Hopefully someone else can fill in the details.

Welcome to MR!
Turtle91 is offline   Reply With Quote
Old 07-02-2021, 10:31 AM   #5
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by Jellby View Post
PS. But I don't think Amazon will use ePub, they'll probably use some concoction like AZW3...
The issue is that Amazon will no longer be accepting MOBI files from publishers. Only EPUB, KPF, and DOC/DOCX are allowed to be submitted for publishing. See the thread MOBI support for reflowable files ending... for more information.

Amazon will themselves convert the publisher format into the various Kindle formats needed for Kindle apps and devices.

Quote:
Originally Posted by JSWolf View Post
You are best to convert your HTML to ePub and then use that as the source for sending to Amazon. Going HTML > Mobi > ePub is the long way round for a shortcut.
I agree with the others that converting (really packaging) HTML to EPUB is the way to go.

If you start from MOBI you may be missing some of the formatting that was present in your original HTML files since MOBI only supports a subset of HTML 3 and any MOBI converter would have had to take that into account, unless your files were already HTML 3.

Packaging HTML into an EPUB is fairly easy, but keep in mind is that EPUB does not support everything that can be done in HTML and that Amazon's support for EPUB is not 100% complete. You should check Amazon's Kindle Publishing Guidelines to see which HTML features are supported and update your HTML files accordingly.
jhowell is offline   Reply With Quote
Old 07-03-2021, 11:10 AM   #6
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
I have for years cleaned up Word docs as html files (most recently using NoteTab Pro) and pasting the html file into a new epub2 document on Sigil. I add a standard style sheet, link to it, and then split the epub into chapters. I've been uploading the epubs to Kindle Direct Publishing since 2012 and have never had a problem. I then add a cover and upload an otherwise identical epub to Draft2Digital. I've never fussed with the so-called "mobi" file.
Notjohn is offline   Reply With Quote
Old 07-05-2021, 03:02 AM   #7
Jarno
Junior Member
Jarno began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2021
Device: Kindle
Yay, it works... (sort of)

Hi guys,

I just wanted to say a quick "thank you" for all your suggestions, and encouragements.

After some toying around with the HTML to EPUB conversion, I was finally able to get something working in Calibre, and it was really cool to see my book as an EPUB.

I had no idea idea that epub is just a zip file with (X)HTML files. I was able to re-use a lot of files, etc. There are some issues I need to fix, but I think it will work.

I ran an online epub validator on it, which showed some interesting issues.

1. Mimetype file entry is missing or is not the first file in the archive.

Strange, because I insert it first (uncompressed), and it's definitely there.

2. Error while parsing file: value of attribute "id" is invalid; must be an XML name without colons

Okay, my bad. Some of my IDs start with a number. I will need to change that.

3. Error while parsing file: element "u" not allowed anywhere

Argh!! Now I have to replace <u> with something like <span class="u">, etc. That doesn't look good at all. Who came up with that idea?!?

Is this perhaps because my html files say they're xml? Should I remove that line?

This is what I have now:

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">

(From a template I used)

4. Error while parsing file: element "img" missing required attribute "alt"

Sigh... Okay, no idea what I'm going to put in there yet.

---

I think all that is doable, and Calibre is displaying it properly already anyway.

I came across Draft2Digital before as well. That looks really promising.

Anyway, now you know how it went.

Kind regards,
Jarno
Jarno is offline   Reply With Quote
Old 07-05-2021, 03:04 AM   #8
Jarno
Junior Member
Jarno began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2021
Device: Kindle
P.S.

Oh, and I lost my cover page. I will need to add another page for that...
Jarno is offline   Reply With Quote
Old 07-05-2021, 11:53 AM   #9
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,464
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Jarno View Post
4. Error while parsing file: element "img" missing required attribute "alt"

Sigh... Okay, no idea what I'm going to put in there yet.

---
At a minimum, alt="". I prefer to put something meaningful in there such as alt="Map of Nedersturm" for the benefit of those who are not able to see the map when using text to speech for example. There is quite a bit of information on epubs and accessibility available for a quick web search.
DNSB is offline   Reply With Quote
Reply

Tags
epub, html, mobi


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word to HTML to .Epub to .mobi ralphiedee Conversion 1 10-16-2012 09:41 PM
What to use to convert Epub or HTML to Mobi? Artha Kindle Formats 2 08-24-2011 07:47 AM
html/ePub to mobi superscript problem DarkElf Conversion 1 08-23-2011 11:18 AM
Converting Mobi or HTML file to Epub Patuba ePub 7 07-19-2011 12:11 PM
epub to mobi - Displays Html tags stevec1409 Conversion 7 02-14-2011 03:41 PM


All times are GMT -4. The time now is 04:20 PM.


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