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 07-29-2016, 06:12 AM   #1
pucicu
Junior Member
pucicu began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2016
Device: none
ebook-convert options do not work

Hello,
I need to change the structure identification in html files during conversion. I only need to identify chapters by H1 tag but not H2 tag. I have tried to change it using

ebook-convert filein.html fileout.epub --chapter "//*[name()='h1']"

but it does not work. What is wrong with the option? I have also tried other variants, but the documentation for ebook-convert does not contain any example.

Thanks for help!
Pucicu
pucicu is offline   Reply With Quote
Old 07-29-2016, 06:42 AM   #2
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,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Try ebook-convert filein.html fileout.epub --chapter "//h:h1"
jackie_w is offline   Reply With Quote
Advert
Old 07-29-2016, 09:39 AM   #3
pucicu
Junior Member
pucicu began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2016
Device: none
Quote:
Originally Posted by jackie_w View Post
Try ebook-convert filein.html fileout.epub --chapter "//h:h1"
Thanks, jackie! But the H2 tags are still identified as new chapters.
pucicu is offline   Reply With Quote
Old 07-29-2016, 10:18 AM   #4
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,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Plan B. Try
Code:
ebook-convert filein.html fileout.epub --chapter "//h:h1" --page-breaks-before "/"
jackie_w is offline   Reply With Quote
Old 07-29-2016, 10:25 AM   #5
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,187
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by pucicu View Post
Thanks, jackie! But the H2 tags are still identified as new chapters.
Then open the ebook using ebook edit then use a regex S&R.

bernie
gbm is offline   Reply With Quote
Advert
Old 07-29-2016, 10:28 AM   #6
pucicu
Junior Member
pucicu began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2016
Device: none
Quote:
Originally Posted by jackie_w View Post
Plan B. Try
Code:
ebook-convert filein.html fileout.epub --chapter "//h:h1" --page-breaks-before "/"
Yes, great! This works! Thank you very much!
pucicu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bulk Convert - Unable to find Input Format Options Raphael Conversion 9 12-17-2013 09:14 AM
select single book - why 2 convert options cybmole Conversion 5 01-24-2011 10:47 AM
ebook-convert won't work in a batch file since 0.6.17 mbovenka Calibre 20 01-13-2011 07:03 PM
ebook-convert don't work in ubuntu 9.10 vakya Calibre 2 10-26-2009 04:36 PM
Command Line Options for ebook-convert godel10 Calibre 14 08-08-2009 08:28 AM


All times are GMT -4. The time now is 06:43 AM.


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