07-08-2012, 11:32 AM | #1 |
Connoisseur
Posts: 94
Karma: 110
Join Date: Sep 2010
Device: Kindle Fire HD
|
HTMLZ Output
In all htmlz files the actual html file is just called index. When doing a bulk conversion of epubs or pdfs to html this means one has to go into each individual html file and rename it to actual book name.
Calibre is constantly doing so many helpful updates. Isnt there some way you could get yourself to update this feature that the html file name would show the name of the book and not read as just "index"? It would be very very helpful in mass conversion. Many thanks in advance. |
03-05-2013, 04:14 AM | #2 | |
Junior Member
Posts: 7
Karma: 11514
Join Date: Mar 2013
Device: KOBO GLO
|
Quote:
Based on Kovidgoyal's pointer to calibredb ADD function as solution to my import cover.jpg's question I was hoping to find similar functionality with: calibredb EXPORT that would allow me to control the name of the index.html within the HTMLZ archive. The closest I found is: Code:
--template The template to control the filename and directory structure of the saved files. Default is “{author_sort}/{title}/{title} - {authors}” which will save books into a per-author subdirectory with filenames containing title and author. Available controls are: {publisher, series_index, isbn, pubdate, rating, series, author_sort, authors, last_modified, timestamp, title, id, tags} Ideally, I would be able to use windows search (or equivalent Flatten in Xplorer2) to find all .HTMLZ files within the the exported directory structure (or within the Calibre Library folder structure itself) and right-click drag to a target single folder and use 7-Zip's [Extract Here]. Currently, of course the names collide and the best I can do is use 7-zip's [Auto-rename] and wind up with index.html, index_1.html, ... ,index_nnn.html |
|
03-05-2013, 05:15 PM | #3 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
But an htmlz file created from a another format usually contains more than just the index.html file. There will also be the stylesheet (style.css), the metadata file (metadata.opf) and, quite possibly, a cover jpg and other images in an images subdirectory. If you got rid of the stylesheet, all you would be left with is something which may as well have been converted to TXT in the first place, rather than HTMLZ.
As you've already found you can use the template language to give the htmlz's meaningful names, but I don't understand how flattening them all would be useful. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
htmlz to epub? | shootist | Other formats | 1 | 03-19-2012 10:28 PM |
HTMLZ Output | Mamaijee | Conversion | 2 | 11-06-2011 04:44 PM |
HTMLZ Output | Mamaijee | Conversion | 1 | 06-23-2011 07:00 PM |
HTMLZ - Single HTML File Output | user_none | Calibre | 22 | 05-19-2011 02:33 AM |
HTMLZ | Ortep | Calibre | 21 | 05-09-2011 10:27 PM |