Attach, I have put my split up html files which is what I give to ebook-convert. You can see that it orders the partNNN.html files in order.
But the output has them mixed up. It puts them out roughly in the order they are read:
toc.html
part000.html
part001.html
part019.html
part002.html
part005.html
part004.html
...
The script I'm using is:
Code:
#!/bin/sh
rm -rf debug-output
mkdir debug-output
/usr/bin/ebook-convert \
toc.html \
test.epub \
-v -v -v -v \
--flow-size 1000000 \
--debug-pipeline debug-output \
--output-profile nook \
--max-levels 2 \
--level1-toc '//h:h2[@class="epub-toc"]' \
--level2-toc '//h:h3[@class="epub-toc"]' \
--level3-toc '//h:h4[@class="epub-toc"]' \
--dont-split-on-page-breaks \
--language en \
--authors "Ian Hickson, David Hyatt, et. al." \
--pubdate "$( date '+%b %d, %Y' )" \
--publisher WhatWg.org
The --flow-size option I add / remove depending up which set of bugs I want :-)
Note, I have also tried adding a file like this (below) and used it as the input file to ebook-convert:
Code:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Web Applications 1.0</title>
</head>
<body>
<a href="part000.html"> </a>
<a href="part001.html"> </a>
<a href="part002.html"> </a>
<a href="part003.html"> </a>
<a href="part004.html"> </a>
<a href="part005.html"> </a>
<a href="part006.html"> </a>
<a href="part007.html"> </a>
<a href="part008.html"> </a>
<a href="part009.html"> </a>
<a href="part010.html"> </a>
<a href="part011.html"> </a>
<a href="part012.html"> </a>
<a href="part013.html"> </a>
<a href="part014.html"> </a>
<a href="part015.html"> </a>
<a href="part016.html"> </a>
<a href="part017.html"> </a>
<a href="part018.html"> </a>
<a href="part019.html"> </a>
</body>
</html>
It has the same problem. Part 019 comes very early in the book.
Any advice on how to work around this?