-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Space added after italicized words #23
Comments
I've only ever noticed that on Practical Guide (which, indeed, this quote is referencing). It's something to do with how the whitespace is getting normalized, I think, but I haven't tracked down //exactly// what it is. The relevant source, for later debugging reference: |
I actually just downloaded the new version (mine was a year old or so) and the problem no longer occurs. So it looks like you already fixed it! Thanks again |
I was mistaken, this issue still often occurs. Reopening for awareness, although it isn't a huge issue. |
Devised an easier fix using regexp strings with Calibre for anyone else who is interested in fixing this in their copies (instances in the hundreds in some ebooks so can be an annoying issue). You can either (1) edit the epub directly, or (2) have the changes apply during conversion (recommended, works with single or batch) (2) I recommend instead applying this during conversion, so the original epub is intact if anything gets messed up. Calibre allows for the loading of CSR files (fancy txt files) for batch search/replace. I have attached my code for this below. Files below have the wrong extension, and probably need to be corrected before use (.json or .csr) |
Most of the time, but not always, a space is inserted after an italicized word that is followed by a comma.
Example
“I cannot mean otherwise , Elvera.”
Abigail , she told herself
“ Enough ,” - this one looks like it may have added a space before the word too.
Thanks for this awesome work!
The text was updated successfully, but these errors were encountered: