View Single Post
Old 02-25-2016, 11:31 AM   #122
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: 80,143
Karma: 148951761
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 jscris View Post
Should there be a problem implementing the "My 15 line spacing values" patch on a kobo aura h20? The error I get is: ERROR(b) wrong value in 'My 15 line spacing values' (position 616F30) I haven't changed any of the values, only allowed the patch. I'm new to kobo but so far all the patches I've used have worked well, including the one for the larger dictionary fonts and the freedom to advanced fonts control, among others. Just wondering what I could be doing wrong.
It sounds like you've changed something accidentally.

This is the patch as I use it for my H2O.

Code:
<Patch>
patch_name = `My 15 line spacing values` 
patch_enable = `yes`
#
## This patch changes the line spacing set by the line spacing adjustment
## slider, allowing much narrower line spacing to be set. It is recommended to
## select your own custom spacings by editing the replace_float lines at the
## bottom of this patch, as the defaults will not suit everyone.
#
# load val1 from new table
replace_bytes = 616E2C, 00 23 00 22 C3 F6 F0 73, 00 46 40 A3 D3 E9 00 23
# load val5 from new table
replace_bytes = 616E84, 43 F2 33 33 4F F0 33 32, 2C A3 D3 E9 00 23 00 46
replace_bytes = 616E8C, C3 F6 F3 73, 00 46 00 46
# load val7 from new table
replace_bytes = 616EB2, 00 23 00 22 C3 F6 F8 73, 00 46 22 A3 D3 E9 00 23
# load val10 from new table
replace_bytes = 616EF0, 00 22 4F F0 80 43, 15 A3 D3 E9 00 23
# load val11-val14 from old table in a loop to make room for new table
replace_bytes = 616F04, 48 A3 D3 E9 00 23 07 F1, 48 A7 00 26 D7 E9 00 23
replace_bytes = 616F0C, 80 01 20 46 61 E9 0A 23, 20 A9 31 44 61 E9 0A 23
replace_bytes = 616F14, FC F5 48 E8 45 A3 D3 E9, 20 46 FC F5 48 E8 08 36
replace_bytes = 616F1C, 00 23 07 F1 80 01 20 46, 08 37 20 2E F2 D1 00 AF
# load val15 from new table, jump over new table
replace_bytes = 616F24, 61 E9 08 23 FC F5 3E E8, 0A A3 D3 E9 00 23 17 E0
# new table, inial values 1.0, 1.2, 1.5, 2.0, 3.0
replace_bytes = 616F30, 00 23 07 F1 80 01 20 46, 00 00 00 00 00 00 F0 3F
replace_bytes = 616F38, 61 E9 06 23 FC F5 34 E8, 33 33 33 33 33 33 F3 3F
replace_bytes = 616F40, 3F A3 D3 E9 00 23 07 F1, 00 00 00 00 00 00 F8 3F
replace_bytes = 616F48, 80 01 20 46 61 E9 04 23, 00 00 00 00 00 00 00 40
replace_bytes = 616F50, FC F5 2A E8 00 23 00 22, 00 00 00 00 00 00 08 40
#
# 15 values for replacement, change these to suit:
replace_float = 616F30, 1.0, 0.7
replace_float = 616FF8, 1.05, 0.73
replace_float = 617000, 1.07, 0.75
replace_float = 617008, 1.1, 0.8
replace_float = 616F38, 1.2, 0.84
replace_float = 617010, 1.35, 0.86
replace_float = 616F40, 1.5, 0.88
replace_float = 617018, 1.7, 0.9
replace_float = 617020, 1.8, 0.92
replace_float = 616F48, 2.0, 0.94
replace_float = 617028, 2.2, 0.96
replace_float = 617030, 2.4, 0.98
replace_float = 617038, 2.6, 1.0
replace_float = 617040, 2.8, 1.05
replace_float = 616F50, 3.0, 1.1
#
# The 15 line spacing values above should allow the line spacing to be adjusted
# in increments of one pixel when using a medium sized font on a high resolution
# device. If you use a small font size and/or a lower resolution device you may
# find that increasing the slider one step at a time doesn't always result in a
# line spacing change at each step. In that case, you might want to use 15
# replacement values that are not quite so close together. For example:
#
#   0.7 0.75 0.8 0.825 0.85 0.875 0.9 0.925 0.95 0.975 1.0 1.05 1.1 1.15 1.2
#
# Also note that the KEPUB reader has problems when the line spacing value is
# set too low, depending on the font used. Most of the built-in fonts are okay
# down to about 0.9. If you only read KePub books then you might want to remove
# some of the lower values and add some more of the higher ones. For example:
#
#   0.9 0.925 0.95 0.975 1.0 1.025 1.05 1.075 1.1 1.15 1.2 1.25 1.3 1.35 1.4
#
</Patch>
JSWolf is offline   Reply With Quote