|
|
#1 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 64
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
|
[Editor Plugin] Otter's Editing Toolbag
This started out as a personal fork of Diaps Editing Toolbag, and is now in a state where I feel others might benefit from it as well - so after checking in with DiapDealer and asking his opinion, this is now released to the public.
Disclosure: AI was used in the making of this plugin. The design decisions, iteration and testing is by humans. The plugin has four tools: expanded Span/Div tool; expanded Smarten Punctuation that has customizable apostrophe mapping and some tweaks to the underlying Smartypants engine; Cleanup tool that can clean up bad apostrophes, normalize ellipses with the ellipse character with several style options and optional wrapping of plain text inside <p> tags (useful for PG ebooks); and CSS Cleanup that cleans up some of my pet peeves in CSS, like stripping named font families, Adobe/vendor-prefixed properties, or explicit colors (for my grayscale e-ink device, most color choices are bad or mess up the night mode). Apostrophe mapping is something that has been on my mental wishlist for a long time, since smartening tools usually cannot do this properly - like render omitted letter contractions such as 'em with a closing single quote/apostrophe. They practically always render it with starting single quote. So this plugin has a feature where you can make specific rules about how to handle it: for example "@em -> ’em" converts all cases of em preceded by apostrophe-like character to closing single quote type apostrophe. You can also have different custom exception files so if you are working with something like Engiish Romantic poems you can define exceptions just for that and avoid accidentally changing words that could appear in normal text. It also has tweaks for things like class of '79, '68 Mustang, and '90s (Smartypants has a special rule for decades, but it's broken). It can also handle DOM-boundary cases like <i>John</i>'s where most smartening engines fail because they cannot connect the apostrope after the closing tag to the preceding word. So what else is different from Diaps Editing Toolbag: - Modernized codebase with QT layouts to draw the GUI (this makes it possible to hide and show elements from the UI, so that even relatively complex possibilities don't clutter up the UI unnecessarily) - Improved XHTML parsing and serialization with lxml, so even really messy documents with nasty case of deeply nested tag soup can be parsed reliably. Unless it's broken enough not to render in the first place, this should be able to deal with it. Many of the concepts, user workflows, and portions of the codebase originated in DiapDealer's plugin, so special thanks to DiapDealer for the original project and for giving me permission for releasing my fork to the public. More details can be found in the README included in the archive, and each tool has a comprehensive help button. Last edited by Lukusaukko; Today at 05:17 AM. Reason: Removed version number from file name |
|
|
|
|
|
#2 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 64
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
|
[reserved for future use]
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,503
Karma: 153744815
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You should (IMHO) change the UI so goes width instead of height like the original. Most screens are wider then they are high.
One other suggestion is to read the configuration from the original plugin and transfer the customizations to the new plugin. Last edited by JSWolf; Today at 10:48 AM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Editor Plugin] Editor Chains | capink | Plugins | 133 | 08-10-2026 05:22 PM |
| [Editor Plugin] Diap's Editing Toolbag | DiapDealer | Plugins | 215 | 06-06-2026 09:26 AM |
| [Editor Plugin] Bulk Image Resizer Plugin | eliteart | Plugins | 11 | 10-27-2024 03:47 PM |
| [Editor Plugin] - Enabling 'Customize plugin' dialog directly from the Editor | thiago.eec | Development | 7 | 01-09-2019 08:05 PM |
| Diaps Editing Toolbag.zip Index Error | phossler | Editor | 2 | 10-01-2014 08:05 PM |