07-03-2015, 11:12 PM | #961 | |
Wizard
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
|
Quote:
The stripkobo routine normalizes the code to make detection of the Kobo remnants more reliable. I am, to put it mildly, disinclined to remove the normalization component so that I can then rewrite the remnant removal code to compensate for that removal. It's a whole lot of work for no benefit, and I have more than enough work on my plate as it is. |
|
07-04-2015, 01:30 AM | #962 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2013
Device: Kobo Aura HD
|
Quote:
|
|
Advert | |
|
07-05-2015, 03:46 PM | #963 |
Calibre Plugins Developer
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
New release
Changes in this release:
Version 1.3.13 - Added option to disable the confirmation prompt each time to update the epub. Use at your own risk - if you make simultaneous other changes to the book record they may get lost. - Fix for Cancel on the progress dialog (submitted by Raúl) |
07-05-2015, 08:58 PM | #964 |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
07-05-2015, 10:24 PM | #965 |
Well trained by Cats
Posts: 30,454
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
you can clean 'excess' as much as you want.
So much so, that the book no longer functions You have been advised (You would think we were back in the early PDA as reader days, squeaking every word possible into tiny RAM. Forget extras like formatting.) You can save more storage by shrinking the cover to 300x450 (from that hi-res monster, than removing all the excess anchors |
Advert | |
|
07-06-2015, 06:08 PM | #966 | ||
Wizard
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
|
Quote:
Quote:
Anyway, Modify ePub is about cleaning out excess code, not mindlessly stripping out useful code. |
||
07-06-2015, 06:50 PM | #967 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
@theducks,
This PI is not necessarily about saving every scrap of memory possible. It is primarily focused on simplifying the code, scraping out mindlessly loopy code that can have unpredictable ramifications, etc. -- i.e. a cleaner and more elegant ebook. Removing a perfectly useful but possibly oversized cover may indeed be a desirable thing (depending on the person) but it is also completely missing the point of this PI, and discussion about it probably belongs elsewhere. |
07-08-2015, 04:53 AM | #968 |
Guru
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
|
|
07-08-2015, 11:55 AM | #969 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Last edited by eschwartz; 07-08-2015 at 11:58 AM. |
07-08-2015, 01:05 PM | #970 |
Wizard
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
|
So I'm looking at one of my Google Play books' use of GBS anchors for page mapping, and it's a mess.
First of all, there are far more GBS anchors in the text than are used by the page map, and no apparent pattern to distinguish them. Second, the page map claims that the book has 128 pages, whereas Amazon lists 304... so what is the map relating to? Clearly not the printed book, which is the point of using a page map. Third, of course, the "page map" file is an Adobe extension, not part of the EPUB specs. Fourth, at least some of the mapped anchors appear in nonsense places - such as in the middle of an attribution line on a Praise blurb, where no sane designer would put an actual page break. This supports my belief that the GBS anchors and accompanying page map file are algorithmically generated nonsense. They may be of some use in a Google reader app, but not beyond that. I am strongly tempted to simply junk the Google Play page-map file altogether. That simplifies the GBS anchor problem tremendously (kill 'em all) while losing something that appears to be of no value. Tweaking the cleanup routine to detect a GBS-based page map and remove it is a little more involved than some of my other cleanup, but not insurmountably so. Are there any contrary opinions, or some counterbalancing evidence that I should see? |
07-08-2015, 02:31 PM | #971 |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Is it possible that the 'excess' Google anchors are used to keep track of book progress in Google Play Books - a bit like the kobospans in the Kobo apps?
|
07-08-2015, 03:00 PM | #972 | |
Wizard
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
|
Quote:
|
|
07-08-2015, 04:53 PM | #973 |
Guru
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
|
(Thanks for the pageList/page-map links!)
I remove the whole non-standard page-map in Sigil as well - I'd forgotten about that. It causes no apparent problems when I read the book on my Kobo (ACCESS renderer) but maybe there's something subtle I've missed. So I vote for the nuclear option as well. |
07-08-2015, 07:38 PM | #974 |
Wizard
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 01:35 PM. |
07-08-2015, 08:01 PM | #975 | |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
Tags |
modify epub |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1214 | 11-14-2024 12:05 PM |
[GUI Plugin] Manage Series | kiwidude | Plugins | 167 | 07-28-2024 04:07 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 09:39 AM |
Modify ePub plugin dev thread | kiwidude | Development | 346 | 09-02-2013 06:14 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |