Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-18-2010, 04:35 PM   #1
stratman
Junior Member
stratman began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2010
Device: nook
HTML2EPUB Command Line for splitting chapters

I'm looking for the command line code to split chapters. The html code used for the chapter head is:

<p class=ChapterHeading-Digital>

Using the latest version of Calibre I successfully get chapter breaks using this XPath statement under structure detection:

//*[@class="ChapterHeading-Digital"]

What is the correct syntax for using this XPath string against the command line:

--content
stratman is offline   Reply With Quote
Old 01-19-2010, 02:21 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 24,762
Karma: 4369667
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
--chapter='//*[@class="ChapterHeading-Digital"]'
kovidgoyal is offline   Reply With Quote
Old 01-19-2010, 09:09 AM   #3
stratman
Junior Member
stratman began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2010
Device: nook
HTML2EPUB Command Line for splitting chapters

Thasnks for getting back to me -- that was a typo on my part: I meant --chapter

We have tried variations of this string without success, but I will try it exactly as displayed and let you know.
stratman is offline   Reply With Quote
Old 01-20-2010, 09:38 AM   #4
stratman
Junior Member
stratman began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2010
Device: nook
HTML2EPUB Command Line for splitting chapters

--chapter='//*[@class="ChapterHeading-Digital"]' did not work. The actual code from the html file is:
<p class=ChapterHeading-Digital>Chapter One</p>

Is this a syntax issue or could some other command line be interfering?
stratman is offline   Reply With Quote
Old 01-20-2010, 11:34 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 24,762
Karma: 4369667
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, that looks correct
kovidgoyal is offline   Reply With Quote
Old 01-22-2010, 09:20 AM   #6
stratman
Junior Member
stratman began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2010
Device: nook
HTML2EPUB Command Line for splitting chapters

Sorry, Kovid. That line of code did not split the chapters.
stratman is offline   Reply With Quote
Old 01-22-2010, 09:26 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 24,762
Karma: 4369667
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
First off the correct command is ebook-convert not html2epub (int the 0.6 series). And I suggest you read the section on conversion in the User Manual to understand how chapter splitting works.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where are the command line tools? PaulChernoch Calibre 17 10-23-2009 12:08 PM
Why use the command line? slantybard Calibre 6 07-22-2009 12:17 PM
html2epub: chapter splitting on more than 1 heading level Portnull Calibre 1 06-25-2009 09:17 AM
Errors on Command Line drnkusv Calibre 11 11-07-2008 02:59 PM


All times are GMT -4. The time now is 06:15 PM.


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