-
Notifications
You must be signed in to change notification settings - Fork 36
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
Whitespace is swallowed after italic #14
Labels
Comments
Thanks for reporting this issue! I have looked, and can confirm the issue. I'll fix it sometime this week. |
This should be fixed in release v1.3.6 now. |
Many thanks. I confirm that it is fixed for the epub I reported. It should
be the case for all other epubs from this source. If not, I will allow
myself to let you know when a problem pops up.
Cheers,
Lyderic
…On Fri, Jan 5, 2018 at 10:40 PM, Patrick G ***@***.***> wrote:
This should be fixed now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE01db4-RgnD1WeYahyuX8VblcMc7tNrks5tHqTugaJpZM4RPtX_>
.
|
pgaskin
added a commit
that referenced
this issue
Jan 14, 2020
- Improved robustness - More is implemented directly in the HTML parser and renderer (see my fork of x/net/html) - Better support for XHTML and HTML5 (rather than using a bunch of workarounds) - No more regexps for modifying HTML - Better smart punctuation - More punctuation supported - More robust (won't apply to everything unconditionally) - Now off by default - Faster and more efficient (15-30% faster, 50-70% less memory) - Less memory allocations and copies due to use of readers and writers rather than storing rhe entire file in memory multiple times - Stack-based span adding algorithm (rather than recursive, which has more runtime and memory overhead) - Use byte arrays or runes rather than strings where possible - Better parallel processing of content files - Eliminated memory, goroutine, and file descriptor leaks - Cleaner and better code - Easier to extend - More stable API - More complete unit tests - More accurate sentence splitting and segment numbering (checked against 3 recent free books) - Better match Kobo's behavior by preserving, but not wrapping (in a koboSpan) TextNodes with only whitespace. Previous versions of kepubify used to collapse it to a single space, which still works, but is less efficient to do and is slightly different than what Kobo does (although it results in the same thing during rendering). - Fixed some edge cases where the segment counter could be incorrectly incremented. - Also increment paragraph counter for tables (this case was missing before). - Don't increment paragraph counter if spans were added (i.e. an empty or only whitespace paragraph element) (this case was missing before). - Smaller binary size - Also run tests on Windows closes #47, fixes #45, fixes #35 better fix for #36, #29, #28, #26, #21, #14, #10, #5, and #2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
kepub files produced with kepubify "swallow" whitespaces after words in italic.
For example, I used it with the French epub file found here:
https://www.ebooksgratuits.com/newsendbook.php?id=2610&format=epub
In the "Préface" (foreword), whenever the italic word Belgica is used, the following word becomes glued right next to it, without whitespace, for example:
...l'exploration de la Belgicaprécède...
instead of:
...l'exploration de la Belgica précède...
I am using version 1.3.5 under Linux. I have also build the current "dev" version from source, it didn't help.
Thanks for this fantastic tool!
Cheers,
L.
The text was updated successfully, but these errors were encountered: