![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 937
Karma: 53902736
Join Date: Jun 2015
Device: multiple
|
How to reformat an epub so I can split it at each chapter?
Hi,
I have an epub which I can't split at each chapter. Reading previous posts, I need to add formatting before I can split it. What formatting, and is there any easy way to do this without too much formatting? |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I simply find a 'trap-able' phrase/sequence in the book and selectively insert
(the trap may be triggered in some other locations. Thus find or Replace next, is used) My split 'trigger' <div class="split_here"> </div> Then I use the split at multiple locations on the trigger |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Or are you trying to use the split at cursor tool at the bottom of the preview pane? Using the split at cursor tool, I've split epubs at random points and no issues if the epub does not have pre-existing errors. If the epub has errors, fix them and then try splitting again |
|
![]() |
![]() |
![]() |
#4 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
|
If the book already has a chapter heading with some unique style, there is no problem using the split at multiple locations tool. Even if there is some searchable way of finding such split points, it is easy to use regex S&R to put in splitable code, like looking for <p>"CHAPTER something"</p> and changing the <p> to <p class="chapter">, then using the split tool on that.
But if I have to search through the document for split points, it is easier to just split the file manually, using the preview pane tool, as I go through it to find the boundaries. This also has the advantage of letting me spot rocks I might miss trying a more automated approach. |
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 937
Karma: 53902736
Join Date: Jun 2015
Device: multiple
|
I've tried cursor and multiple, neither one would work with the epub. Judging by earlier posts on the issue, ebook-edit requires more formatting, such as code for chapter breaks, and this one only has text and <br/>.
Even adding the "split here," the cursor split doesn't work, nothing happens, and I don't understand how to use the multiple to select the middle of that code. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
|
Quote:
Once you have that, you will find you can break it with one of the methods mentioned...the files can only be split on <p>s or <div>s or <hn>s, I think. And from there, you can style it any way you like. Last edited by retiredbiker; 05-17-2020 at 08:21 PM. |
|
![]() |
![]() |
![]() |
#7 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 937
Karma: 53902736
Join Date: Jun 2015
Device: multiple
|
Thank you, that fixes it.
|
![]() |
![]() |
![]() |
Tags |
ebook-edit |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] ReworkChapterHeads - Add, replace and reformat chapter headings | slowsmile | Plugins | 87 | 08-03-2023 05:04 AM |
Page Break vs Chapter Split | Trane | Sigil | 35 | 12-16-2016 02:14 PM |
Aura HD Last paragraph in chapter gets split | Nick Payne | Kobo Reader | 9 | 02-16-2014 02:49 AM |
Overdrive audiobooks - split by chapter? | democrite | Audiobook Hardware & Software | 0 | 09-10-2011 09:01 PM |
Find, replace, split chapter? | laelaps | Sigil | 8 | 01-20-2011 04:01 PM |