09-08-2024, 10: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, 12:04 PM | #1757 |
Resident Curmudgeon
Posts: 76,038
Karma: 134368292
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, 12:14 PM | #1758 |
Well trained by Cats
Posts: 30,405
Karma: 58055234
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, 02:10 PM | #1759 |
Resident Curmudgeon
Posts: 76,038
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
09-08-2024, 07: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, 08:20 PM | #1761 |
null operator (he/him)
Posts: 20,952
Karma: 27620688
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 08:26 PM. |
09-08-2024, 11:46 PM | #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, 12:14 AM | #1763 |
null operator (he/him)
Posts: 20,952
Karma: 27620688
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, 12:53 AM | #1764 |
Enthusiast
Posts: 49
Karma: 26
Join Date: Jan 2022
Device: none
|
It works, thanks.
|
09-20-2024, 12:47 AM | #1765 |
Bibliophagist
Posts: 39,798
Karma: 154147706
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 12:55 AM. Reason: Modified charset.py to allow importing substitute_entites |
09-29-2024, 07:34 AM | #1766 |
Calibre Plugins Developer
Posts: 4,678
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, 04:16 PM | #1767 | |
Bibliophagist
Posts: 39,798
Karma: 154147706
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 04:22 PM. |
|
09-30-2024, 05:13 AM | #1768 |
Calibre Plugins Developer
Posts: 4,678
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 |
Tags |
modify epub |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1198 | 10-05-2024 01:14 AM |
[GUI Plugin] Manage Series | kiwidude | Plugins | 167 | 07-28-2024 03:07 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 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 |