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 page
maps, not the EPUB-standard page
list 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.)