View Single Post
Old 01-17-2024, 10:44 PM   #8
FacetiousKnave
Unconscionable
FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.
 
FacetiousKnave's Avatar
 
Posts: 89
Karma: 25000
Join Date: Sep 2022
Location: Helsinki
Device: Kindle
Quote:
Originally Posted by DNSB View Post
That is mostly since Kovid does not like adding the .DOCTYPE for unknown reasons and the cover generation/insertion routine does not add the required lines for an ePub 2 file. The first code block is what calibre uses, the second code block is what Sigil modifies it to for ePub 2 and the third block is Sigil modifies it to for ePub 3. For me, it's not worth the time and effort to argue about this, I just use Sigil to modify the code.

Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
The other item is if you should be using epubcheck not the built in checker in both Sigil and calibre. If an ePub passes epubcheck, most publishers will accept it otherwise they tend to bounce for any reported error.
Thank you, but I still think that is not the issue. I'll tell you why: even after Sigil made those amendments and included the <!DOCTYPE html>, Amazon was still rejecting the file.

However, something curious happened a minute ago. I sent the unmodified epubs to my phone with AirDrop and then sent them to Kindle. They went straight to the Amazon cloud without any issue.

The bottom line of all this is: I do not have a clue what could be causing the rejection of the ebooks.
FacetiousKnave is offline   Reply With Quote