|
|
#1 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 287
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
|
Transform html to remove pagebreaks = merging files
I want to remove any instances of <div class="mbp_pagebreak" id="calibre_pb_\d+"></div> as part of the conversion process.
But if I use the transform html tool/function, instead of the end epub having one chapter per file, a bunch of the files get merged together and it's a mess. I'm using 'if the tag has class mbp_pagebreak remove tag only'. I cannot stress enough that I don't know what I'm doing here, so possibly the issue is I'm using the wrong rule! I have experimented with other rules but they either don't remove the mbp_pagebreak or files get merged together. Don't know if I'm doing something wrong or if this just isn't doable as part of conversion? |
|
|
|
|
|
#2 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
|
It could be that the particular class is a marker for Calibre to split the MOBI file into separate chapter files (I think mpb_pagebreak only appears in MOBI conversions), and if you remove that before Calibre is finished with the conversion, it cannot reliably split the text.
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,054
Karma: 153791427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
![]() |
| Tags |
| conversion, pagebreak remove |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Importing HTML files causing unwanted merging and duplication of books | Axius27 | Calibre | 2 | 02-17-2024 08:06 AM |
| Remove page break between html files | Christrick | Editor | 2 | 07-09-2020 01:11 PM |
| Merging multiple HTML files into one HTML file | skoobwoman | Workshop | 45 | 07-11-2014 10:46 AM |
| Merging several Html files into one file | nesseainie | Calibre | 8 | 06-03-2009 02:06 PM |