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 02-20-2012, 08:05 AM   #1
kindleren
Member
kindleren began at the beginning.
 
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 !!!
kindleren is offline   Reply With Quote
Old 02-21-2012, 02:21 AM   #2
kindleren
Member
kindleren began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jan 2012
Device: kindle 4
Quote:
Originally Posted by kindleren View Post
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 !!!
I shoud have't expressed my question.
I mean how to set the Table of Contents for the output file?
kindleren is offline   Reply With Quote
Advert
Old 02-21-2012, 08:06 AM   #3
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
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
but if you want to specify the <h2> then I think the command is
Code:
ebook-convert rss.html rss.mobi --chapter //h:h2
The CLI conversion options are in the User manual
jackie_w is offline   Reply With Quote
Old 02-21-2012, 09:53 PM   #4
kindleren
Member
kindleren began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jan 2012
Device: kindle 4
Quote:
Originally Posted by jackie_w View Post
If your chapters are defined by <h2> tags then a simple default conversion should work

Code:
ebook-convert rss.html rss.mobi
but if you want to specify the <h2> then I think the command is
Code:
ebook-convert rss.html rss.mobi --chapter //h:h2
The CLI conversion options are in the User manual
Think you .Problem solved .
kindleren is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 01:54 AM.


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