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 05-30-2021, 04:22 PM   #1
vik2005
Junior Member
vik2005 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2021
Device: kindle
html -> epub: splitting doesn't work

Hi,

I executed the command

ebook-convert freedom.html .epub -vv --language "en-US" --chapter '//*[@class="ChapterNo"]' --level1-toc '//*[@class="ChapterNo"]' --disable-font-rescaling --extra-css "Styles.css" --no-default-epub-cover

and got an epub with a single html fle inside. (all details are in the attachment)

How to convert the original html to an epub where each chapter is in a separate html?

Thanks in advance for any advice!

Moderator Notice

Copyright violation - attachment removed

See Guideline #8

BR

Last edited by BetterRed; 05-30-2021 at 06:18 PM.
vik2005 is offline   Reply With Quote
Old 05-30-2021, 06:13 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,705
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Try using the GUI to do an EPUB to EPUB Conversion with appropriate Structure Detection-> Detect chapters at (XPath expression): settings - there a tool to help you do that.

BR

Last edited by BetterRed; 05-30-2021 at 06:21 PM.
BetterRed is offline   Reply With Quote
Advert
Old 05-31-2021, 08:17 AM   #3
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 13,933
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Paste into LO Writer, fix styles, edit as ODT, final save as also as docx. Convert docx to epub.
Works perfectly. Some sites need images pasted and text pasted as "unformatted text" to avoid stupid hard to remove web styles.

Use pagebreak before and level styles for Chapter headings.
Quoth is offline   Reply With Quote
Old 05-31-2021, 09:18 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,660
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Delete the ToC. Delete the <a id> in the chapter header line. Then change the <p></p> to <h2></h2> for all headers for the different sections/chapters. Then Calibre will easily be able to convert as you want.
JSWolf is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre 5.0: Copying HTML/rich text in ePub doesn't work anymore barro350 Viewer 3 09-25-2020 10:01 AM
Clicking on an epub-link doesn't work mmat1 EPUBReader 2 10-25-2018 08:35 AM
Sigil epub doesn't work on Nook EditorOne Barnes & Noble NOOK 31 08-21-2013 05:53 PM
Calibre ePub doesn't work on LuLu? Geremia Conversion 1 03-09-2013 10:15 PM
Does splitting EPUB among more HTML files improve Performance? purcelljf ePub 2 10-01-2010 01:15 AM


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


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