View Single Post
Old 07-08-2026, 02:41 AM   #41
Siavahda
Addict
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
Posts: 206
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
Quote:
Originally Posted by DNSB View Post
I downloaded the scrambled file and it is a total mess. Epubcheck was very unhappy with it and even calibre's ebook-editor check was not happy.

Anyhow, I did some regex to correct most of the errors and embedded a monospace font set. The monospace now appears on when the book is sent to my Kobo as an epub. If sent as an .kepub.epub, I need to select Publisher default as the font and then it works. The file I generated is not pretty and I did very little cleanup after my experimenting.

The majority of the errors were when a blockquote was followed by a <b>. Which is legitimate for most web browsers but the ePub spec wants to see a block level element there.

A quick list of block level elements:
Spoiler:
<address>
<article>
<aside>
<blockquote>
<canvas>
<dd>
<div>
<dl>
<dt>
<fieldset>
<figcaption>
<figure>
<footer>
<form>
<h1>-<h6>
<header>
<hr>
<li>
<main>
<nav>
<noscript>
<ol>
<p>
<pre>
<section>
<table>
<tfoot>
<ul>
<video>
Thank you (and to everyone else!) for looking over it! I had no idea this was a mess; it always displayed perfectly on my Kindle. And the ebook was retail, so I really wouldn't have expected it to be a disaster. I did run the bug check from the Calibre Editor, but that wasn't flagging issues for me. I guess I must acquire and learn to use epubcheck!
Siavahda is offline   Reply With Quote