|  05-05-2022, 10:57 PM | #76 | 
| Bibliophagist            Posts: 48,088 Karma: 174315300 Join Date: Jul 2010 Location: Vancouver Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos | |
|   |   | 
|  05-06-2022, 06:21 AM | #77 | 
| Groupie            Posts: 159 Karma: 182076 Join Date: Aug 2017 Device: Kobo Libra 2 | |
|   |   | 
|  05-06-2022, 08:32 AM | #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. | |
|   |   | 
|  05-06-2022, 09:33 AM | #79 | 
| Grand Sorcerer            Posts: 13,693 Karma: 79983758 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 | 
|   |   | 
|  05-06-2022, 11:05 AM | #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    | 
|   |   | 
|  05-06-2022, 11:16 AM | #81 | 
| Bibliophagist            Posts: 48,088 Karma: 174315300 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.
		 | 
|   |   | 
|  05-06-2022, 11:31 AM | #82 | ||
| Grand Sorcerer            Posts: 6,267 Karma: 16544702 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 | ||
|   |   | 
|  05-06-2022, 01:06 PM | #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. | |
|   |   | 
|  05-06-2022, 03:04 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. | |
|   |   | 
|  05-08-2022, 05:09 PM | #85 | 
| Grand Sorcerer            Posts: 6,267 Karma: 16544702 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.
		 | 
|   |   | 
|  05-08-2022, 07:33 PM | #86 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 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?
		 | 
|   |   | 
|  05-08-2022, 08:05 PM | #87 | 
| Bibliophagist            Posts: 48,088 Karma: 174315300 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.
		 | 
|   |   | 
|  05-08-2022, 08:08 PM | #88 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 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.
		 | 
|   |   | 
|  05-08-2022, 08:12 PM | #89 | 
| Bibliophagist            Posts: 48,088 Karma: 174315300 Join Date: Jul 2010 Location: Vancouver Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos | |
|   |   | 
|  05-11-2022, 05:52 PM | #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?
		 | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| 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 | Buhaj | 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 |