View Single Post
Old 02-26-2020, 10:29 PM   #5
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,589
Karma: 14328510
Join Date: Nov 2019
Device: none
I'm also puzzled by your setup of the file; I do the chapter per file thing when redoing a book from project gutenberg and I use sigil's starting file and my files look like this:

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="en" xml:lang="en">
<head>
  <title>The prince and the pauper</title>
  <link href="../Styles/reset_blitz.css" type="text/css" rel="stylesheet"/>
  <link href="../Styles/stylesheet-2020-01-22.css" type="text/css" rel="stylesheet"/>
</head>

<body>
  <header>
    <h2>Chapter One <span>The birth of the Prince and the Pauper.</span></h2>
  </header>

  <p>In the ancient city of London, on a certain autumn day in the second quarter of the sixteenth
Yours contains neither the xml version nor the doctype lines, and you don't have the outer html tag which mine has the xmlns on; yours has it on the section. I've never seen a chapter set up that way; maybe it works but you might try using sigil and put what's between the section tags in the files created by sigil, between the body tags. (I've also configured sigil to use EPUB 3.)

https://www.mobileread.com/forums/sh...d.php?t=327196

Each time you start/add a new chapter go to the File menu and select Add -> Blank HTML File.

That's sending you off in an entirely new direction rather than solving your existing problem but I'm wondering if your problem isn't that your files are malformed. You could at least use sigil to see what a proper epub looks like, and install the epub check plugin to verify its correctness.

https://www.mobileread.com/forums/sh...d.php?t=248186

Last edited by hobnail; 02-26-2020 at 10:34 PM.
hobnail is offline   Reply With Quote