02-16-2020, 07:43 PM | #16 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
To be honest, I don't think the plugin should handle cases where the eBook fails epubcheck. If the plugin fails when the eBook passes epubcheck, sure, fix it. But not if the eBook fails to validate.
|
02-16-2020, 11:08 PM | #17 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
But, one of the points of ScrambleEbook is to be able to share broken books with others to work out what is wrong with them. And there are plenty of books that fail epubcheck that will work fine on lots of ereaders.
|
Advert | |
|
05-02-2020, 09:36 AM | #18 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
ScrambleEbook upgrade 0.4.5
Plugin should now work with both calibre current production version (v4.15) and calibre python3 beta versions v4.99.x. If any problems, please report them here. |
12-21-2020, 03:37 PM | #19 |
Zealot
Posts: 141
Karma: 2382428
Join Date: Feb 2013
Location: California
Device: OnePlus 6 phone, Kobo Clara HD, Libra H2O
|
I notice that some of the metadata in the opf file of an epub does not get scrambled.
Code:
<dc:creator id="id">... ...</dc:creator> <dc:identifier>isbn:...</dc:identifier> <dc:identifier>google:...</dc:identifier> <dc:identifier>goodreads:...</dc:identifier> <dc:identifier>amazon:...</dc:identifier> <dc:identifier>kobo:...</dc:identifier> <dc:identifier>calibre:...</dc:identifier> <dc:identifier>uuid:...-...-...-...-...</dc:identifier> <dc:identifier id="uid">...</dc:identifier> <dc:source id="src-id">urn:isbn:...</dc:source> <dc:description>*removed*</dc:description> <dc:publisher>... </dc:publisher> Anyway, I thought I'd point it out. Had I not looked within the file, I'd have unintentionally posted unscrambled identifying data. I'd vote for scrambling the <dc:description> content instead of removing it, at least if the amount of work is not disproportional to the value of preserving that data. No need for anyone to do any of this on my account, of course. Mainly I wanted to alert people that opf content may not get scrambled, so be aware. |
12-21-2020, 03:45 PM | #20 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Not scrambining OPF content is not a problem.
|
Advert | |
|
12-21-2020, 04:30 PM | #21 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
They did request that some calibre metadata was removed including calibre custom metadata and description to be on the safe side. Here are a couple of relevant Mod posts: https://www.mobileread.com/forums/sh...5&postcount=63 https://www.mobileread.com/forums/sh...&postcount=120 If you run the plugin from the commandline there is an option to set stricter rules for metadata removal. In all honesty I'm not sure how many users ever do this. Last edited by jackie_w; 12-21-2020 at 04:33 PM. |
|
12-21-2020, 04:42 PM | #22 | |
Zealot
Posts: 141
Karma: 2382428
Join Date: Feb 2013
Location: California
Device: OnePlus 6 phone, Kobo Clara HD, Libra H2O
|
Quote:
|
|
12-21-2020, 06:16 PM | #23 | |
null operator (he/him)
Posts: 20,587
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Curious - what are the options for stricter rules, I don't have the PI installed. BR |
|
12-21-2020, 07:39 PM | #24 | ||
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Quote:
The boxes already checked in the [Change rules*] pop-up widget are the default "MR scramble rules". The [View metadata *] button lets you peek at the OPF's content for <package> tag and <metadata> section, Before vs. After scrambling. |
||
12-22-2020, 01:16 AM | #25 |
null operator (he/him)
Posts: 20,587
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I used the old standalone scrambler a bit in calibre 3 times, and I'd forgotten you had to scrap it when calibre 4 was released - I assumed there'd be cmdline options.
There was an inkling of an idea behind wanting know about the options. Looks like if I uncheck everything, except "Remove some descriptive metadata", it might get rid of dc:description, dc:subject and dc:identifiers, but leave the the book unscrambled - which is what I was hoping for. BR |
12-22-2020, 11:57 AM | #26 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Having said that ... Did you try temporarily installing the plugin and running it from the commandline using a test book with edited scramble rules as per your inkling? Did it give you a modified OPF which you'd be happy with? If so, there is still some standalone residual code in the plugin which could be very simply hacked in your personal copy of the plugin's scrambleebook.py file to permanently remember your new personal scramble rules. If you want to pursue this then let me know and I can tell you what needs to be done. However, IMHO, if you wanted to go down the hack-an-existing-plugin route I suspect hacking one of Modify Epub's metadata options might be more fruitful, especially if you want to bulk modify OPFs. |
|
12-22-2020, 03:37 PM | #27 |
null operator (he/him)
Posts: 20,587
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Thanks, I'll install the PI in a portable to see if it behaves as I suggested, but I won't be hacking it or Modify. Hacks and elaborate customisation are yet more clutter I don't need.
Truth is, I will probably continue to do what I do now: delete the superfluous DC metadata (description, subjects etc) with Sigil's metadata editor when I'm doing final edits. BR |
09-05-2021, 05:45 PM | #28 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Unfortunately, due to unexpected issues at home, I am unable to provide any support for this plugin for the forseeable future.
Hopefully the current version will continue to work OK in calibre 5.xx |
05-14-2022, 11:04 PM | #29 |
Junior Member
Posts: 4
Karma: 10
Join Date: May 2022
Device: Boox Onyx Note Air
|
Does there happen to be a GitHub repo I can sent PRs to? I want to add support for CJK scrambling (which should be fairly trivial -- you just have to handle which Unicode blocks are which kind of CJK character and then just pick one from the same block). Since jackie_w said they're unable to work on this for the forseeable future maybe it should be put somewhere where more than one person can try to work on it?
|
05-14-2022, 11:16 PM | #30 |
Grand Sorcerer
Posts: 12,175
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Or you can just edit the plugin you've downloaded from here... A plugin is just a zip file of the source code.
Sent from my Pixel 4a using Tapatalk |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] DjVuMaker - converts Postscript books to Djvu | TheWizard | Plugins | 20 | 04-14-2024 10:39 PM |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 492 | 10-25-2022 08:13 AM |
How to get a list of books corresponding to the selected tag in the GUI plugin? | esvorontsov | Development | 6 | 09-29-2015 10:06 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |