![]() |
#1 |
Junior Member
![]() 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! Last edited by BetterRed; 05-30-2021 at 06:18 PM. |
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |