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

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 06-28-2020, 05:44 PM   #1
arooni
Addict
arooni began at the beginning.
 
Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
how to remove the annoying original pagebreaks from an epub?

So I have an epub that seems to have this

Code:
<span> epub:type="pagebreak"
every page the book was originally printed for. You can see attachments. It prints the original page number on the right margin and it gets annoying after awhile.

Questions:

Is there any way to disable that behavior via a built-in tweak somehow? Or must I create a css rule to selector out every epub:type="pagebreak" and disable it? I already tried using the tweak disable publisher pagebreaks as well as disable publisher styling and I still see this. I also tried using different layout options on the bottom menu (web/static/book/etc).

If I must create a book specific tweak, how do I write a rule that would disable this behavior? And do people just do this on their kindle? Or they typically ssh in and drop the rule in some koreader folder?
Attached Thumbnails
Click image for larger version

Name:	IMG_0573.jpg
Views:	248
Size:	468.5 KB
ID:	180263   Click image for larger version

Name:	IMG_0574.jpg
Views:	232
Size:	970.4 KB
ID:	180264  

Last edited by arooni; 06-28-2020 at 05:50 PM.
arooni is offline   Reply With Quote
Old 06-28-2020, 06:13 PM   #2
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
I'd get out the big sledge hammer and delete those spans from the epub. You can open the epub in Sigil and it has a plugin called TagMechanic (both of which you can download from here) and in TagMechanic you can specify a tag and its class to delete. Remember in the book list on the left to select all of the files/chapters you want the plugin to modify. I use it all the time for junk like that, e.g, spans for a drop cap, useless divs, etc.
hobnail is offline   Reply With Quote
Advert
Old 06-28-2020, 06:21 PM   #3
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by arooni View Post
So I have an epub that seems to have this

Code:
<span> epub:type="pagebreak"
every page the book was originally printed for. You can see attachments. It prints the original page number on the right margin and it gets annoying after awhile.

Questions:

Is there any way to disable that behavior via a built-in tweak somehow? Or must I create a css rule to selector out every epub:type="pagebreak" and disable it? I already tried using the tweak disable publisher pagebreaks as well as disable publisher styling and I still see this. I also tried using different layout options on the bottom menu (web/static/book/etc).

If I must create a book specific tweak, how do I write a rule that would disable this behavior? And do people just do this on their kindle? Or they typically ssh in and drop the rule in some koreader folder?
But the "page break" doesn't do a page break, so the style tweak seems to be working. I think it has to do with readerPageMap, which is an epub3 thingy IIRC. I never played with them but you should see a submenu called "reference pages" on the navigation menu (below TOC and bookmarks). I think you can disable them there.
pazos is offline   Reply With Quote
Old 06-30-2020, 01:57 PM   #4
arooni
Addict
arooni began at the beginning.
 
Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
Quote:
Originally Posted by pazos View Post
But the "page break" doesn't do a page break, so the style tweak seems to be working. I think it has to do with readerPageMap, which is an epub3 thingy IIRC. I never played with them but you should see a submenu called "reference pages" on the navigation menu (below TOC and bookmarks). I think you can disable them there.
Ding ding ding !! We have a winner ! Today I learned about (yet another) cool koreader feature. Thanks !!!
arooni is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PW4 Script to remove annoying message? booklover6 Kindle Developer's Corner 36 02-17-2019 12:09 PM
EPub to PDF, Orphans and Pagebreaks mmat1 Conversion 2 03-26-2015 05:39 PM
How to remove annoying top menu bar when reading books on K4 NT? mig_akira Amazon Kindle 5 09-04-2012 08:15 PM
I hope this will remove that annoying msg Pegasus49 Introduce Yourself 11 09-26-2010 01:05 PM
Epub and pagebreaks mtravellerh Calibre 3 11-02-2008 05:30 PM


All times are GMT -4. The time now is 04:47 AM.


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