![]() |
#1 |
Enthusiast
![]() Posts: 35
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? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#3 |
Enthusiast
![]() Posts: 35
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 |
|
![]() |
||||
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 |