Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 09-29-2017, 02:27 AM   #1
rickhan
Enthusiast
rickhan began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Jul 2010
Device: PC
Converting from HTML to EPUB, no toc

My zip file is full of HTM files and JPG files. There is no toc or index.
I can import to Calibre, but converting misses most of the files (like all but one). File size of the new EPUB is tiny compared to the zip file size.

Do I have to create a toc or index file before I add to Calibre?
And if so, how?
rickhan is offline   Reply With Quote
Old 09-29-2017, 02:56 AM   #2
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, https://manual.calibre-ebook.com/faq...specific-order
kovidgoyal is offline   Reply With Quote
Old 09-30-2017, 12:26 AM   #3
rickhan
Enthusiast
rickhan began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Jul 2010
Device: PC
Thank you.
Also found a cmd script on stackoverflow that I modified:

@echo off
echo ^<html^> > toc
for %%i in (*.htm) do echo ^<a href="./%%~nxi"^>%%~ni^</a^>^<br/^> >> toc
for %%i in (*.jpg) do echo ^<a href="./%%~nxi"^>%%~ni^</a^>^<br/^> >> toc
echo ^</html^> >> toc
ren toc toc.html
pause

Makes it much faster to get the basic file. Then edit with notepad++ and rename the toc.html file to author-title.html, and then import the file into Calibre.
rickhan is offline   Reply With Quote
Reply

Tags
html conversion, toc creation


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
html toc with epub 3.0 jasonjmb Sigil 15 04-18-2017 01:34 AM
Out of Order Converting HTML Files with a TOC PeterPark Conversion 3 03-03-2012 08:36 PM
Need help with html>epub ToC Cthulhu Inc Conversion 2 03-26-2011 04:18 PM
HTML Book + non HTML TOC to epub aarcane Calibre 4 03-02-2010 02:58 AM
TOC error when converting HTML poloman Calibre 2 12-14-2008 04:05 PM


All times are GMT -4. The time now is 12:17 AM.


MobileRead.com is a privately owned, operated and funded community.