|
|
#16 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
|
There is now a new version with various fixes, some additions and UI clarifications. See the first two posts in this thread for the plugin, changes from last public release, and feature list.
Normalization now recognizes non-Unicode whitespace, and can itself use either narrow non-breaking space or non-breaking space to attach ellipses or dashes to preceding word to prevent line wrapping at the whitespace when using open style. Also supports adding non-braking whitespace between nested quote characters. I experimented with thin space and hair space in that role as well, but those are breaking whitespace and could result in in awkward line breaks in some circumstances. I'm still on the fence if I should add support for word joiners to attach closed em dashes to preceding words - on one hand, em dashes often result in ugly line breaks with em dash starting a new line; on the other hand, this should really be something for the renderer to handle, and invisible control characters are rarely a good idea in text, plus it might result in even more awkward word spacing because em dash is quite wide. |
|
|
|
|
|
#17 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
|
New hotfix version 0.5.6: Previous 0.5.5 ellipse normalization inserted a thin space instead of a normal space after ellipses when the ellipse was at a DOM boundary ("word… <em>word</em>) and the attachment marker dropdown had narrow style selected - even if it was inactive and the attachment style was without markers.
This is now fixed, and hopefully didn't introduce any other regressions. Last edited by Lukusaukko; 09-13-2026 at 08:56 AM. |
|
|
|
| Advert | |
|
|
|
|
#18 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,925
Karma: 153791427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Why is this not in the list of plugins in calibre?
|
|
|
|
|
|
#19 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
|
I was thinking that until I'm fairly sure the basic functionality is guaranteed to work as intended, it would not be a good idea to include it there because people who do not read Mobileread would not know about possible issues. I'm assuming people who install it from the forums would be interested enough in providing feedback and help ironing out the bugs, so that once it's installable from Calibre's plugin browser, it would not have any showstoppers.
|
|
|
|
|
|
#20 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,925
Karma: 153791427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Last edited by JSWolf; 09-13-2026 at 11:15 AM. |
|
|
|
|
| Advert | |
|
|
|
|
#21 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,925
Karma: 153791427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
After testing the smarten punctuation, it could use some work.
The ellipses support and em dash support could use need fixing. You should have options to remove spaces around em dashes and ellipses. Also, an option to go from en dash to em dash. Punctuation support could use an option to go from UK style quotes to US style quotes and US style to UK style. After these fixes are done, it's ready to go. Last edited by JSWolf; 09-13-2026 at 11:14 AM. |
|
|
|
|
|
#22 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
|
Quote:
Supporting quote conversion could be trickier, because the UK single primary quote style is easily confused with apostrophes when you are running an automatic conversion - there are a lot of edge cases where you need to figure out whether something is a closing quote or an apostrophe. Not impossible, I think, but something that merits a deeper look than it appears on the surface. Last edited by Lukusaukko; 09-13-2026 at 11:58 AM. |
|
|
|
|
|
|
#23 | ||
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,925
Karma: 153791427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
There is one annoyance with both Smarten and Cleanup. I find it annoying that the option window opens when I press the icon. I'd rather pressing the icon just do it and the arrow have the option to change the settings. Like Edit Spans & Divs does. Oh and there should be a separate option for en-dash and em-dash intead of having to keep changing the setting. Quote:
|
||
|
|
|
|
|
#24 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
|
Discovered a few new and exciting bugs, but it will take a bit of time to fix and test. Maybe towards the end of the week.
These are something that occur in relatively rare circumstances, but still worth fixing. Once these potentially destructive bugs are squashed, I will probably put this up into the index so it can be installed via the plugin manager interface. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Editor Plugin] Editor Chains | capink | Plugins | 137 | 09-07-2026 04:03 AM |
| [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 |