![]() |
#76 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,245
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#77 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 182076
Join Date: Aug 2017
Device: Kobo Libra 2
|
|
![]() |
![]() |
Advert | |
|
![]() |
#78 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 1000
Join Date: Aug 2016
Device: Kindle Voyage - Tolino Vision 4 HD - Kobo Sage
|
@jackie_w
This is the KEPUB code: Quote:
What I do not understand is why the algorithm is insisting on that specific sequence (Ma...)? Why not adding spaces within other words? I think it can be related to periods interpreted as single words, because usually it is a separator of words. Last edited by CyberPaul; 05-06-2022 at 09:15 AM. |
|
![]() |
![]() |
![]() |
#79 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,529
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Have you tried replacing the ... by a Unicode character?
Sent from my Pixel 4a using Tapatalk |
![]() |
![]() |
![]() |
#80 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 1000
Join Date: Aug 2016
Device: Kindle Voyage - Tolino Vision 4 HD - Kobo Sage
|
No, I would like to avoid editing books before reading them
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#81 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,245
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
As far as I can tell, the original text is using an ellipsis (…) and not 3 periods. I suspect using the numeric entity for a … ( & # x2026; ) would have the same results since it appears that all 3 characters inside <span class="koboSpan" id="kobo.91.2">Ma… </span> are having extra white space added.
|
![]() |
![]() |
![]() |
#82 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
Quote:
![]() If you're asking why the kepub creation algorithm chooses to fragment paragraphs the way it does - it's for koboSpan purposes. It tries to create (at least) one per sentence. However a koboSpan must only contain text, not other tags, so it has to end the old one and start a new one when it encounters inline tags such as <i>, <em>, <span>, ... etc. in the middle of a sentence. On top of that, the algorithm used to determine what will be considered 'end of sentence' is a somewhat simplistic list of punctuation characters (period, colon, ellipsis, ... etc) in a regex search. With current tools, books using a lot of any of the following will have a lot of unnecessary (IMO) koboSpan fragmentation during kepub creation:
Last edited by jackie_w; 05-06-2022 at 11:37 AM. Reason: typo |
||
![]() |
![]() |
![]() |
#83 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 1000
Join Date: Aug 2016
Device: Kindle Voyage - Tolino Vision 4 HD - Kobo Sage
|
Quote:
Last edited by CyberPaul; 05-06-2022 at 06:47 PM. |
|
![]() |
![]() |
![]() |
#84 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 1000
Join Date: Aug 2016
Device: Kindle Voyage - Tolino Vision 4 HD - Kobo Sage
|
Quote:
Could you please share your customized plugin? I would like to try converting my epub using your version optimized to create less spans. Last edited by CyberPaul; 05-06-2022 at 03:10 PM. |
|
![]() |
![]() |
![]() |
#85 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
I'm afraid it's not really suitable for sharing. In addition to the koboSpans stuff, I've added several other non-standard features (aimed only at my personal whims) plus I've removed/changed existing KTE features I didn't like. I'll be happy to share what I've done with the official KTE developers/maintainers if they ask.
|
![]() |
![]() |
![]() |
#86 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,760
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
@jackie_w, does your version of KePub work better then KePub from the official driver?
|
![]() |
![]() |
![]() |
#87 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,245
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
For @jackie_w, it does. For others it may not. And probably a rather important consideration is that just perhaps @jackie_w does not want to be responsible for supporting a public fork of the KoboTouchExtended driver.
|
![]() |
![]() |
![]() |
#88 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,760
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I'm curious and if it does work better, maybe the official plugin can then be improved. It's just a thought.
|
![]() |
![]() |
![]() |
#89 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,245
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#90 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 1000
Join Date: Aug 2016
Device: Kindle Voyage - Tolino Vision 4 HD - Kobo Sage
|
How do they know of those improvements of nobody tells them?
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adjusting 'text weight' on Kindle Paperwhite | susmoka | Amazon Kindle | 8 | 03-07-2016 09:51 PM |
EPUB to KEPUB line spacing | Buhaj47 | Conversion | 1 | 12-07-2015 04:00 PM |
Aura epub, kepub, hyphenation and word-spacing | pblasi | Kobo Reader | 5 | 08-22-2014 05:13 AM |
Left-justified text in a right-justified box | Skeezix | Conversion | 4 | 11-15-2011 08:44 PM |
Justified word paragraph not wrapping in mobi | wlloydw | Conversion | 0 | 03-05-2011 03:03 PM |