|
[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
|