09-29-2017, 03:27 AM | #1 |
Enthusiast
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? |
09-29-2017, 03:56 AM | #2 |
creator of calibre
Posts: 44,542
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
Advert | |
|
09-30-2017, 01:26 AM | #3 |
Enthusiast
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. |
Tags |
html conversion, toc creation |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
html toc with epub 3.0 | jasonjmb | Sigil | 15 | 04-18-2017 02:34 AM |
Out of Order Converting HTML Files with a TOC | PeterPark | Conversion | 3 | 03-03-2012 09:36 PM |
Need help with html>epub ToC | Cthulhu Inc | Conversion | 2 | 03-26-2011 05:18 PM |
HTML Book + non HTML TOC to epub | aarcane | Calibre | 4 | 03-02-2010 03:58 AM |
TOC error when converting HTML | poloman | Calibre | 2 | 12-14-2008 05:05 PM |