09-08-2024, 11:38 AM | #1756 |
Enthusiast
Posts: 49
Karma: 26
Join Date: Jan 2022
Device: none
|
Any chance the "Arrange into Folders" feature from Editor > Tools could be implemented? I'm trying to find a bulk way to homogenize a bunch of disorganized epubs... Guh.
|
09-08-2024, 01:04 PM | #1757 |
Resident Curmudgeon
Posts: 77,538
Karma: 140804106
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Sigil has such a feature. So you can use Sigil to rearrange your ePub. From there you can continue to use Sigil or save the ePub and go back to the calibre editor.
|
09-08-2024, 01:14 PM | #1758 |
Well trained by Cats
Posts: 30,580
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
09-08-2024, 03:10 PM | #1759 |
Resident Curmudgeon
Posts: 77,538
Karma: 140804106
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
09-08-2024, 08:35 PM | #1760 |
Enthusiast
Posts: 49
Karma: 26
Join Date: Jan 2022
Device: none
|
lol yeah, that's why I was asking if it can be a feature for this plugin.
|
09-08-2024, 09:20 PM | #1761 |
null operator (he/him)
Posts: 21,227
Karma: 29110326
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
As I posted elsewhere, the Action Chains plugin can operate on multiple books within a calibre library, and it can interoperate with the Editor Chain plugin. The two plugins facilitate the automation of repetitive tasks.
BR Last edited by BetterRed; 09-08-2024 at 09:26 PM. |
09-09-2024, 12:46 AM | #1762 |
Enthusiast
Posts: 49
Karma: 26
Join Date: Jan 2022
Device: none
|
I'll look into that, thanks. Sorry for missing it (118 pages in after all).
|
09-09-2024, 01:14 AM | #1763 |
null operator (he/him)
Posts: 21,227
Karma: 29110326
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
My 'elsewhere' is in your thread in the Sigil forum - post #7.
BR |
09-09-2024, 01:53 AM | #1764 |
Enthusiast
Posts: 49
Karma: 26
Join Date: Jan 2022
Device: none
|
It works, thanks.
|
09-20-2024, 01:47 AM | #1765 |
Bibliophagist
Posts: 42,074
Karma: 161810714
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I updated to the calibre 7.18.100 preview and Modify ePub threw errors when I tried to use it on several ePubs. Traced it to enabling Smarten Punctuation which run into an error importing substitute_entites from chardet.py. That bit seems to have been removed from calibre's code in chardet.py.
I looked at the 7.18 chardet.py and the 7.18.100 chardet.py and added back in the code around substitute_entites (before _CHARSET_ALIASES) and ENTITY_PATTERN (after lazy_encoding_pats) lazy_encoding_pats = LazyEncodingPats() ==> added: ENTITY_PATTERN = re.compile(r'&(\S+?);') and ==> added: def substitute_entites(raw): ==> added: from calibre import xml_entity_to_unicode ==> added: return ENTITY_PATTERN.sub(xml_entity_to_unicode, raw) _CHARSET_ALIASES = {"macintosh" : "mac-roman", "x-sjis" : "shift-jis"} Last edited by DNSB; 09-20-2024 at 01:55 AM. Reason: Modified charset.py to allow importing substitute_entites |
09-29-2024, 08:34 AM | #1766 |
Calibre Plugins Developer
Posts: 4,694
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@DNSB - I'm not seeing any failures personally trying the Smarten Punctuation feature this just now, but not surprised there may be edge cases where this happens.
Can you please give this version a whirl - I have completely deferred to a calibre implementation: https://github.com/kiwidude68/calibr...fy_epub-v1.8.5 If people can let me know this is working ok for them I will make it the main release. |
09-29-2024, 05:16 PM | #1767 | |
Bibliophagist
Posts: 42,074
Karma: 161810714
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Edit: I removed line 22 in chardet.py: Code:
substitute_entities = substitute_entites = xml_replace_entities # for plugins that might use this Last edited by DNSB; 09-29-2024 at 05:22 PM. |
|
09-30-2024, 06:13 AM | #1768 |
Calibre Plugins Developer
Posts: 4,694
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Modify ePub v1.8.5
Release Notes
https://github.com/kiwidude68/calibr...fy_epub-v1.8.5 |
10-19-2024, 09:43 AM | #1769 |
Evangelist
Posts: 468
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Is there a setting so that the plugin does not save the original_epub? At this point I trust the plugin enough to just delete without checking the revised version.
Apologies if I've missed something obvious. |
10-19-2024, 03:08 PM | #1770 | |
Well trained by Cats
Posts: 30,580
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
ID: save_original_format When calibre does a conversion from the same format to the same format, for example, from EPUB to EPUB, the original file is saved, so that in case the conversion is poor, you can tweak the settings and run it again. By setting this to False you can prevent calibre from saving the original file. Similarly, by setting save_original_format_when_polishing to False you can prevent calibre from saving the original file when polishing. |
|
Tags |
modify epub |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1226 | 11-22-2024 09:27 AM |
[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 |