View Single Post
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