Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 04-30-2022, 03:09 PM   #31
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by MGlitch View Post
I’d really appreciate it if it became a patch. Easier to manage from a user perspective, and no need to reimport books.
It should be possible with the caveat that it will be in the libnickel.so.1.0.0.yaml file within PatchGroup: KePub stylesheet additions alternatives. This means that in fw 4.32.19501 you would only be able to enable one of these:
  1. KePub stylesheet additions - text justify
  2. KePub stylesheet additions - optimizeSpeed
  3. KePub stylesheet additions - optimizeLegibility
  4. KePub stylesheet additions - word-spacing

Since I'm currently planning to retire patches 2 & 3 at the next fw upgrade you'd be choosing between 1 & 4 in future.

P.S. In case you haven't already noticed, I added a couple of screenshots to my earlier post to show the effect of setting word-spacing: -0.05em in a kepub.

Here's a beta for the proposed new patch. It should work in fw 4.32.19501 (with the above caveat). Just copy it into your existing libnickel.so.1.0.0.yaml file and enable it in the normal way.
Spoiler:
Code:
KePub stylesheet additions - word-spacing:
  - Enabled: no
  - PatchGroup: KePub stylesheet additions alternatives
  - Description: Reduces the space between words in KePubs.
  - FindBaseAddressString: ".KBSearchResult, .KBAnnotation, .KBHighlighting {"
  # *** Don't change anything in the 4 ReplaceString lines below ***
  - ReplaceString: {Find: ".KBSearchResult, .KBAnnotation, .KBHighlighting { font-size: 100% !important; -webkit-text-combine: inherit !important; }\n", Replace: ".KBSearchResult,.KBAnnotation,.KBHighlighting{font-size:100%!important;-webkit-text-combine:inherit!important}.KBAnnotatio", MustMatchLength: yes}
  - ReplaceString: {Offset: 122, Find: ".KBAnnotation[writingMode=\"horizontal-tb\"] { border-bottom: 2px solid black !important; }\n", Replace: "n[writingMode=\"horizontal-tb\"]{border-bottom:2px solid #000!important}.KBAnnotation[writin", MustMatchLength: yes}
  - ReplaceString: {Offset: 212, Find: ".KBAnnotation[writingMode=\"vertical-rl\"] { border-right: 2px solid black !important; }\n", Replace: "gMode=\"vertical-rl\"]{border-right:2px solid #000!important}.KBAnnotation[writingMode=\"v", MustMatchLength: yes}
  - ReplaceString: {Offset: 299, Find: ".KBAnnotation[writingMode=\"vertical-lr\"] { border-left: 2px solid black !important; }", Replace: "ertical-lr\"]{border-left:2px solid #000!important}/*********************************/", MustMatchLength: yes}
  # *** Don't change anything in the 4 ReplaceString lines above ***
  #
  # Customise the -0.05 value if you prefer.
  # N.B. Be careful, if it's too big some words may get joined together.
  - FindReplaceString: {Find: "/*********************************/", Replace: "body{word-spacing:-0.05em         }", MustMatchLength: yes}

Do let me know if you spot any unpleasant side-effects!

Last edited by jackie_w; 04-30-2022 at 03:42 PM. Reason: Added beta kobopatch for kepub word-spacing
jackie_w is offline   Reply With Quote
Old 04-30-2022, 03:22 PM   #32
MGlitch
Wizard
MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.
 
Posts: 2,847
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
Quote:
Originally Posted by jackie_w View Post
It should be possible with the caveat that it will be in the libnickel.so.1.0.0.yaml file within PatchGroup: KePub stylesheet additions alternatives. This means that in fw 4.32.19501 you would only be able to enable one of these:
  1. KePub stylesheet additions - text justify
  2. KePub stylesheet additions - optimizeSpeed
  3. KePub stylesheet additions - optimizeLegibility
  4. KePub stylesheet additions - word-spacing

Since I'm currently planning to retire patches 2 & 3 at the next fw upgrade you'd be choosing between 1 & 4 in future.

P.S. In case you haven't already noticed, I added a couple of screenshots to my earlier post to show the effect of setting word-spacing: -0.05em in a kepub.
I had noticed, thanks for adding them. For me personally this would just mean using this patch group again since I’m using the kobo config method with optimize legibility.

As I understand it I’d still be able to use both the config file and the proposed word spacing patch. With the understanding that the results I get might not be quite the same as if I were using just the word spacing patch.
MGlitch is offline   Reply With Quote
Old 04-30-2022, 03:23 PM   #33
ZodWallop
Gentleman and scholar
ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.
 
ZodWallop's Avatar
 
Posts: 11,228
Karma: 110205705
Join Date: Jun 2015
Location: Space City, Texas
Device: Clara HD; Nook ST w/Glowlight, (2015) Glowlight Plus, Paperwhite 3
Quote:
Originally Posted by jackie_w View Post
It should be possible with the caveat that it will be in the libnickel.so.1.0.0.yaml file within PatchGroup: KePub stylesheet additions alternatives. This means that in fw 4.32.19501 you would only be able to enable one of these:
  1. KePub stylesheet additions - text justify
  2. KePub stylesheet additions - optimizeSpeed
  3. KePub stylesheet additions - optimizeLegibility
  4. KePub stylesheet additions - word-spacing

Since I'm currently planning to retire patches 2 & 3 at the next fw upgrade you'd be choosing between 1 & 4 in future.
Why retire #3? I really like the ligatures.
ZodWallop is offline   Reply With Quote
Old 04-30-2022, 03:51 PM   #34
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by MGlitch View Post
As I understand it I’d still be able to use both the config file and the proposed word spacing patch.
Yes, you can combine enabling the proposed patch KePub stylesheet additions - word-spacing with adding the new Kobo config option
Code:
[Reading]
webkitTextRendering=optimizelegibility
which removes the need for the existing patch KePub stylesheet additions - optimizeLegibility.

I added the beta patch to my earlier post #31.
jackie_w is offline   Reply With Quote
Old 04-30-2022, 03:57 PM   #35
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by ZodWallop View Post
Why retire #3? I really like the ligatures.
You won't need to lose your kepub ligatures. We now have a new option for the Kobo config file.

The discussion started in the main fw 4.32.19501 thread (post #308) about a week ago but I summarised here in the main kobopatch thread.

Last edited by jackie_w; 04-30-2022 at 04:13 PM. Reason: Added details summary link
jackie_w is offline   Reply With Quote
Old 04-30-2022, 04:10 PM   #36
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 11,046
Karma: 227000002
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by jackie_w View Post
Yes, you can combine enabling the proposed patch KePub stylesheet additions - word-spacing with adding the new Kobo config option
Code:
[Reading]
webkitTextRendering=optimizelegibility
which removes the need for the existing patch KePub stylesheet additions - optimizeLegibility.

I added the beta patch to my earlier post #31.
Can it be combined with the OptimizeSpeed option or are they basically the same?
Sirtel is offline   Reply With Quote
Old 04-30-2022, 04:19 PM   #37
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by Sirtel View Post
Can it be combined with the OptimizeSpeed option or are they basically the same?
The new kobopatch KePub stylesheet additions - word-spacing can be combined with the optimizeSpeed option as long as you
  1. Disable patch KePub stylesheet additions - optimizeSpeed
  2. Add
    Code:
    webkitTextRendering=optimizespeed
    to the existing [Reading] section of your .kobo/Kobo eReader.conf file
jackie_w is offline   Reply With Quote
Old 04-30-2022, 04:29 PM   #38
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 11,046
Karma: 227000002
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by jackie_w View Post
The new kobopatch KePub stylesheet additions - word-spacing can be combined with the optimizeSpeed option as long as you
  1. Disable patch KePub stylesheet additions - optimizeSpeed
  2. Add
    Code:
    webkitTextRendering=optimizespeed
    to the existing [Reading] section of your .kobo/Kobo eReader.conf file
Thank you! Can't wait to test your patch.
Sirtel is offline   Reply With Quote
Old 04-30-2022, 04:35 PM   #39
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by Sirtel View Post
Thank you! Can't wait to test your patch.
Wait no more! I added it to post #31
jackie_w is offline   Reply With Quote
Old 04-30-2022, 04:44 PM   #40
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 11,046
Karma: 227000002
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by jackie_w View Post
Wait no more! I added it to post #31
I saw, yes, and already saved your post.
Sirtel is offline   Reply With Quote
Old 04-30-2022, 04:51 PM   #41
MGlitch
Wizard
MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.
 
Posts: 2,847
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
Added the beta patch, a quick comparison for a full page of text before and after shows I've gained about two lines of text. Which is by no means a small feat considering all the other efforts I've made to cram as much text at a comfortable reading setting onto a screen.

Interestingly the space between words doesn't appear drastically changed, obviously it has changed since two lines of text don't just decided "welp I've had enough of being on this page I think I'll go join my mates on an earlier page" and run off to do so. I'll settle in to do some reading today to see if I find any issues.
MGlitch is offline   Reply With Quote
Old 04-30-2022, 11:20 PM   #42
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 75,739
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Is there any way to create a patch to fix the bug where you can get part of the first line of the next page on the bottom of the current page?
JSWolf is offline   Reply With Quote
Old 05-01-2022, 12:29 AM   #43
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 11,046
Karma: 227000002
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by JSWolf View Post
Is there any way to create a patch to fix the bug where you can get part of the first line of the next page on the bottom of the current page?
Of course you can just adjust line-spacing to lose the half-line.
Sirtel is offline   Reply With Quote
Old 05-01-2022, 12:43 AM   #44
MGlitch
Wizard
MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.
 
Posts: 2,847
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
Quote:
Originally Posted by Sirtel View Post
Of course you can just adjust line-spacing to lose the half-line.
Tbf it’s sometimes more than one line spacing. But I believe that if you don’t patch line 10/24 spacing it’s less likely to be an issue you see. If that’s the case I’d be surprised if there was a patch to fix this issue since it’d either be one created or at least exacerbated by the user. I also think it’s further exacerbated by using your own fonts.

I might actually take a look at Literata Books line spacing and see if it’s done properly, I suspect it is thought I’d also have thought Bookerly would have been as well. I’d look at Charink but I trust Jon is fastidious enough to have set them correctly. I also didn’t notice this being an issue with my settings for charink.
MGlitch is offline   Reply With Quote
Old 05-01-2022, 12:44 AM   #45
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 75,739
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Sirtel View Post
Of course you can just adjust line-spacing to lose the half-line.
But that's not what I want. I don't want a larger space between lines. I want a way to fix the bug.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

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 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


All times are GMT -4. The time now is 12:06 AM.


MobileRead.com is a privately owned, operated and funded community.