05-06-2012, 04:38 AM | #91 | ||
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
|
Quote:
Quote:
|
||
05-06-2012, 05:14 AM | #92 | ||
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
Quote:
Now arguably someone might want an option to do an update metadata which only does non calibre specific stuff and does not insert all the junk like custom column data. However the calibre code offers no such granularity, which would mean I have to replicate it into this plugin and maintain it. Which I can't be bothered with, since few people on this earth are bothered by metadata cruft, and those that are can choose either not to use the Update metadata option, or can do a Remove non dc: metadata pass after it. |
||
Advert | |
|
05-06-2012, 08:33 AM | #93 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
I don't believe this is true. I've used both Mantano and Coolreader apps on my Android phone. Both of them understand the Series and series_index fields, which I believe are Calibre-specific opf metadata fields.
|
05-06-2012, 10:12 AM | #94 |
Well trained by Cats
Posts: 29,818
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I see no problem with leaving properly formatted Sigil or Calibre Metadata.
An argument could be made that removing this after using the program to create or modify the book, is similar to removing the copyright/branding in the source code of the program. The program is just signing its work. |
05-06-2012, 01:47 PM | #95 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
There are definitely certain calibre metadata items I'd prefer not to have transferred to my epubs, namely some of my custom columns, but I don't know whether that could be done by a plugin or whether it would need to be in main calibre. Perhaps a checkbox for each custom column. Just an idea, but I don't know how many people would be bothered to use it.
|
Advert | |
|
05-07-2012, 04:33 AM | #96 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.1.2 Released
Changes in this release:
Last edited by kiwidude; 05-07-2012 at 06:01 AM. Reason: Fix version number |
05-07-2012, 06:00 AM | #97 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.1.3 Released
Changes in this release:
|
05-07-2012, 11:29 AM | #98 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.1.4 Released
Changes in this release:
|
05-07-2012, 11:11 PM | #99 |
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
|
Replacing a CSS file
Kiwidude,
With all the changes you have been making recently, it has prompted me to ask for something that has been in my mind for a while... Something I frequently do with epubs I download from a couple of site is to replace the CSS file with my version of it. I can do this via "Tweak ePub" or Sigil, but as I simply want to replace the existing file with one I prepared earlier, it seems like something that Modify ePub could do. The changes that would be needed are: - Option to say to replace the CSS file - Someway to specify the CSS file - a field plus a filepicker or a prompt when pressing OK. - Storing the options and file name for the next time The only other question would be what to do if there are multiple CSS files in the ePub. Does it replace based on name, first, all or none of them. Or prompt to pick which one to replace. Replacing the same named one is the safest, but if there is only one, replacing its contents is not unreasonable. Any chance of this? Anyone else want it? |
05-08-2012, 09:50 PM | #100 |
Well trained by Cats
Posts: 29,818
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Kiwidude
removing xpgt files and links (using the PI) leaves the manifest entry which then fails 'missing manifest files' Code:
Manifest file missing from ePub: OEBPS/page-template.xpgt |
05-09-2012, 03:40 AM | #101 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
... and wait for it...
That's what happens when you don't work on a plugin for a long time and resort to copy/pasting from the first other "delete" example you find in your code... which in this case would have been the "Remove *unmanifested* files" which simply ensures the file doesn't get zipped back up again... Remove unused images will probably have the same issue. I'll push up a new version shortly. At least you have a function in the plugin to complete the job in a second pass in the meantime... Edit: Remove unused images is fine, it appears only the xpgt files function was affected. Last edited by kiwidude; 05-09-2012 at 04:45 AM. |
05-09-2012, 05:14 AM | #102 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.1.5 Released
Changes in this release:
|
05-09-2012, 09:14 PM | #103 | |
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
|
Quote:
|
|
05-09-2012, 10:39 PM | #104 | |
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
|
Quote:
In the cases I am doing this, the epubs are coming from a couple of different sites. Each site uses the same CSS for all their epubs. What I have done is take a copy of of the CSS file and made some minor changes. Now, each time I download a new epub from the sites, I replace the CSS file with mine. Having an option in Modify ePub to do this is safe. |
|
05-10-2012, 04:21 AM | #105 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@davidfor - I'm afraid that functionality is just way too niche to consider for this plugin. There is such a small range of use cases where it would work. I would suggest the majority of users get their ebooks from a wide range of sources/publishers, which makes it impossible to do such a substitution without doing irreperable harm to the ebook.
I think you would be better off having a bespoke plugin that does specifically just this function. Or possibly even having it as a Sigil plugin (though this is not possible yet, but might be one day if it ever gets a plugin API). |
Tags |
modify epub |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1184 | 04-17-2024 06:17 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Manage Series | kiwidude | Plugins | 166 | 02-13-2024 11:31 AM |
Modify ePub plugin dev thread | kiwidude | Development | 346 | 09-02-2013 05:14 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |