Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 10-04-2026, 02:12 PM   #31
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 85,266
Karma: 154365101
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Lukusaukko View Post
Thanks for the bug report.

I'm now testing an additional option to also convert dashes that begin a block to a closed style (it needs to be an option, so I don't break a typical Finnish convention of beginning dialogue with em dash + space).

There was also another bug related to the same behaviour nearby: if a <p> element ended with space + em dash + </p> then the em dash wasn't normalized to closed style, because the code didn't take the closing tag into account.

I'll try to get a new testing version uploaded tomorrow.
The same bug prevents en-dashes being converted to en-dashes. regardless of a spaces or no space.

A better idea is to make it an option to do it the Finnish way since more people will want to do it as it should be working.

Last edited by JSWolf; 10-04-2026 at 02:15 PM.
JSWolf is offline   Reply With Quote
Old 10-04-2026, 02:57 PM   #32
Lukusaukko
Connoisseur
Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.
 
Posts: 92
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
Quote:
Originally Posted by JSWolf View Post
The same bug prevents en-dashes being converted to en-dashes. regardless of a spaces or no space.
Do you mean <p>—Word</p> not getting converted into <p>– Word</p> or something else? <p>–Word</p> vs <p>– Word</p>? If so, that's probably the result of too-strict conversion logic between dash types that gets thrown off-course at the beginning of a line. I'll check that one as well.

Last edited by Lukusaukko; 10-04-2026 at 03:04 PM.
Lukusaukko is offline   Reply With Quote
Advert
Old 10-04-2026, 03:21 PM   #33
Lukusaukko
Connoisseur
Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.
 
Posts: 92
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
There is now a new test version 0.6.1 that improves dash conversion behaviour and fixes some bugs involving it.
Lukusaukko is offline   Reply With Quote
Old 10-04-2026, 03:40 PM   #34
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 85,266
Karma: 154365101
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Lukusaukko View Post
Do you mean <p>—Word</p> not getting converted into <p>– Word</p> or something else? <p>–Word</p> vs <p>– Word</p>? If so, that's probably the result of too-strict conversion logic between dash types that gets thrown off-course at the beginning of a line. I'll check that one as well.
I mean <p>— Word not having the space removed. It also does the same thing if it's a <div> instead of <p>/
JSWolf is offline   Reply With Quote
Old 10-04-2026, 03:58 PM   #35
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 22,865
Karma: 34252730
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Dash (em and en) are used as dialogue markers in many languages, not just Finnish - e.g. Spanish, Russian, French, Italian, Portuguese, Romanian… etc.

And the usage of the dash as a dialogue marker is not consistent across languages, IIRC In Spanish, an em dash (raya) after a spoken word at the end of a paragraph indicates 'more to come'.

And James Joyce throws a spanner in the works by using em dash as a dialogue marker in his major works — Ulysses, Dubliners etc, which are written in English (sort of ).

BR
BetterRed is online now   Reply With Quote
Advert
Old 10-04-2026, 04:09 PM   #36
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 85,266
Karma: 154365101
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
0.6.1 needs to be fixed. The option Also apply dash style to leading dashes at the start of a paragraph is worded wrong because you are also doing it at the end of a paragraph as well. #

There is something that does need to be fixed. When you click the icon, I get the option screen. The option screen should be in the settings which should be when you click the arrow next tot he icon. Clicking the icon should just do it. It should not bring up an option screen to then make us click OK.

Last edited by JSWolf; 10-04-2026 at 04:13 PM.
JSWolf is offline   Reply With Quote
Old 10-06-2026, 12:42 PM   #37
Lukusaukko
Connoisseur
Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.
 
Posts: 92
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
End-of-paragraph dash behaviour was a bug with the dash conversion logic, while the start-of-paragraph behaviour was an attempted guard against changing dialogue-starting dashes. So the wording is more or less right, for a given value.

I'm currently working on a version that adds the possibility to use the icons as they are now, or tick a box that allows them to run the tool with the last-used settings (except Span/Div, which always needs active input in any case), with the settings accessible from the dropdown. I edit books in multiple languages with different typographical conventions, so I often need to check the settings before running the tools anyway, but this allows both workflows, according to taste.
Lukusaukko is offline   Reply With Quote
Old 10-06-2026, 03:42 PM   #38
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 85,266
Karma: 154365101
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Lukusaukko View Post
End-of-paragraph dash behaviour was a bug with the dash conversion logic, while the start-of-paragraph behaviour was an attempted guard against changing dialogue-starting dashes. So the wording is more or less right, for a given value.

I'm currently working on a version that adds the possibility to use the icons as they are now, or tick a box that allows them to run the tool with the last-used settings (except Span/Div, which always needs active input in any case), with the settings accessible from the dropdown. I edit books in multiple languages with different typographical conventions, so I often need to check the settings before running the tools anyway, but this allows both workflows, according to taste.
Sounds good. Are you going to have an option in the settings to bring up the settings or not when you click the icon? That to me would work with a settings option under the arrow.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 09:56 PM.


MobileRead.com is a privately owned, operated and funded community.