View Single Post
Old 08-04-2019, 06:49 AM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
these is because these are not HTML files, but HTML fragments, for example k0a.html contains:

Code:
<h1>Den kristna dagvisan</h1>

<p>Den signade dag, som vi nu här se
<br>av himmelen till oss nedkomma,
<br>han blive oss säll, han låte sig te
<br>oss allom till glädje och fromma.
<br>Ja, Herren, den högste, oss alla i dag
<br>för synder och sorger bevare.

<p>Men såsom en fågel mot himmelens höjd
<br>sig lyfter på lediga vingar,
<br>han lovar sin gud, är glad och förnöjd,
<br>när han över jorden sig svingar,
<br>så lyfter sig själen i hjärtelig fröjd
<br>till himlen med lovsång och böner.

<p>Ack, låtom oss lova och bedja vår Gud,
<br>när stunderna växla och skrida,
<br>så skola vi stärkas att hålla hans bud
<br>och vaka och tåligen lida.
<br>Ja, låtom oss verka med allvar och flit,
<br>så länge oss dagen förunnas.

<p>sv. Ps. 424: 1, 5, 6
calibre will look for an <html> tag and if it does not find it, will assume the file is not html and not add it to the spine. However since index.html is added to the spine, by virtue of being the top level file, the EPUB conversion will follow links in it and auto-fix the HTML framgments making them proper files. However this happens in random order.

So you need to either fix the files to be proper html yourself, just adding an opening <html> tag to the start of the file should be enough, or edit the opf file inside the calibre produced zip file and add all the extra html files to the <spine> section and then convert.
kovidgoyal is offline   Reply With Quote