Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 04:25 AM   #1
Siavahda
Addict
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
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?
Siavahda is offline   Reply With Quote
Old Yesterday, 01:32 PM   #2
Lukusaukko
Connoisseur
Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.
 
Posts: 82
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
Quote:
Originally Posted by Siavahda View Post
Don't know if I'm doing something wrong or if this just isn't doable as part of conversion?
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.
Lukusaukko is offline   Reply With Quote
Advert
Old Yesterday, 02:37 PM   #3
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: 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:
Originally Posted by Siavahda View Post
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?
Create a regex to deal with it. Then save the search and you can recall it every time you convert a Mobi to ePub. This is in the editor.
JSWolf is online now   Reply With Quote
Reply

Tags
conversion, pagebreak remove

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


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


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