Quote:
Originally Posted by Lukusaukko
There is an option to remove spaces around em dashes in Cleanup (it's intentional - smartening does the inital sweep and is close to what Calibre's internal smartening or Diaps original smartening does; it basically passes the text to Smartypants with some tweaks), but further fixing is delegated to Cleanup. But you are right, the wording is not obvious: if you select em dash, closed style then Remove markers and use ordinary spaces, it removes whitespace from em dashes. It doesn't support removing spaces from around en dashes, because that could introduce ambiguity in the text; is "word<en dash>word" a parenthetical dash or a range (e.g. "London–Glasgow route"). Maybe I could support that and then leave it to the user. Em dash <-> en dash could be a new option, with the same caveat; you might end up accidentally converting something like "10–12" to "10 — 12" or to "London–Glasgow route" to "London — Glasgow route".
|
What I've tested of Cleanup is working well. I'll test it some more.
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:
|
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.
|
I was hoping it would be not too difficult to do this. I just wish the UK would standardize on the US was and be done with it.