02-20-2012, 08:05 AM | #1 |
Member
Posts: 24
Karma: 10
Join Date: Jan 2012
Device: kindle 4
|
how to set the index of the file using calibre CLI
how to Set the index of the file using calibre CLI.
my input file is rss.html and the output file is rss.mobi,I want use the CLI to convert the files and set the index for the output file. I want to set the index by the <h2> tags that contained in the rss.html file. Now i use the command like this "ebook-convert rss.html rss.mobi --series-index //*[name()='h2']".but it dosed work. How should I do?? thinks for advance !!! |
02-21-2012, 02:21 AM | #2 | |
Member
Posts: 24
Karma: 10
Join Date: Jan 2012
Device: kindle 4
|
Quote:
I mean how to set the Table of Contents for the output file? |
|
Advert | |
|
02-21-2012, 08:06 AM | #3 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
If your chapters are defined by <h2> tags then a simple default conversion should work
Code:
ebook-convert rss.html rss.mobi Code:
ebook-convert rss.html rss.mobi --chapter //h:h2 |
02-21-2012, 09:53 PM | #4 | |
Member
Posts: 24
Karma: 10
Join Date: Jan 2012
Device: kindle 4
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Set all available file types for plugin | dinya | Plugins | 1 | 11-26-2011 09:03 PM |
Index: Making a linked index in epub | virtual_ink | ePub | 21 | 10-19-2011 11:23 PM |
how to set an alternate reader as default for some file types? | zed88 | Calibre | 3 | 04-21-2011 04:21 PM |
calibre, windows index, android and covers | koskol | Calibre | 2 | 02-28-2011 04:56 PM |
Bulk metadata edit, set cover from ebook file | Stampercam | Calibre | 2 | 01-13-2011 04:43 PM |