View Single Post
Old 07-08-2015, 06:38 PM   #974
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Okay, let's see how this works. I've been tinkering with "unpretty" and the execution sequence where multiple modules are called, but the big experiment in this beta version is the Google Play stuff. Removing the GBS.xxxx.yy anchors is trivial, but taking the pagemap out is a little more involved. Google Play removal is built into the "stripkobo" routine, on the grounds that no book should have both Google Play and Kobo markers, so there's no point in separating those into different routines.

I would especially appreciate feedback on this version, especially considering the following notes:

- Please test this on copies of books, so you can recover if there's a problem!
- Books with pagemaps that do NOT come from Google play should retain those maps.
- In the strange case where a book has both a "real" pagemap file and a Google-generated one, only the Google-generated one should be affected. (If you have such a book, please let me know!)
- This affects pagemaps, not the EPUB-standard pagelist feature.
- Previously "cleaned" non-Google Play books should be unaffected, except possibly for some minor code formatting due to the "unpretty" changes. EPUB3 books should be affected, but in a positive way.

I think that covers everything, but again: proceed with caution!

(EDIT, 8/26: Found a bug with the GBS code, so removed the old beta version. New beta available here.)

Last edited by Rev. Bob; 08-26-2015 at 12:35 PM.
Rev. Bob is offline   Reply With Quote