View Single Post
Old 12-15-2017, 01:25 PM   #4
Vwow
Member
Vwow began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jun 2017
Device: Kobo Aura H2O
Many thanks for your works,GeoffR and oren64.你们是全球所有Kobo电子书爱好者的幸运之神,对你一直以来的辛苦付出,从一个最普通的电 子书爱好者的角度,请收下我发自内心的最真挚的感谢和最诚挚的祝福!

It works better for chinese language.In the patch `My 24 line spacing values`Or `My 10 line spacing values` of libnickel.so.1.0.0.patch.

<Patch>
patch_name = `My 10 line spacing values`
patch_enable = `no`
# patch_group = `Line spacing values alternatives`
#
## This patch changes the values on the line spacing adjustment slider,
## reducing the number of spacing options from 15 to 10, but allowing
## much narrower spacing values to be set.
#
# Bypass code-constructed values 1.0, 1.2, 1.5, 2.0, 3.0
replace_bytes = 65D2AC, BE F5 6E ED, 00 46 00 46
replace_bytes = 65D302, BE F5 44 ED, 00 46 00 46
replace_bytes = 65D32C, BE F5 2E ED, 00 46 00 46
replace_bytes = 65D368, BE F5 10 ED, 00 46 00 46
replace_bytes = 65D3CE, BE F5 DE EC, 00 46 00 46
#
#
# 10 values for replacement, change these replace_float values to suit:
base_address = 65D468
replace_float = 0000, 1.05, 1.3
replace_float = 0008, 1.07, 1.35
replace_float = 0010, 1.1, 1.4
replace_float = 0018, 1.35, 1.425
replace_float = 0020, 1.7, 1.45
replace_float = 0028, 1.8, 1.475
replace_float = 0030, 2.2, 1.5
replace_float = 0038, 2.4, 1.525
replace_float = 0040, 2.6, 1.55
replace_float = 0048, 2.8, 1.75
</Patch>


<Patch>
patch_name = `My 24 line spacing values`
patch_enable = `yes`
# patch_group = `Line spacing values alternatives`
#
## This patch changes the values on the line spacing adjustment slider,
## increasing the number of spacing options from 15 to 24, and allowing
## much narrower spacing values to be set.
#
# save r5, initialise loop counter
replace_bytes = 65D2AC, BE F5 6E ED 6D A3, A9 46 00 25 ED 00
# loop to load 14 vals from new table
replace_bytes = 65D2B2, D3 E9 00 23 07 F1, 20 46 04 A1 29 44
replace_bytes = 65D2B8, 80 01 20 46, BE F5 68 ED
replace_bytes = 65D2BC, 61 E9 1C 23 BE F5, 08 35 70 2D F7 D1
# jump over new table
replace_bytes = 65D2C2, 64 ED 6A A3 D3 E9, 7C E0 00 BF 00 BF
# new table: 14 8-aligned doubles
base_address = 65D2C8
replace_bytes = 0000, 00 23 07 F1 80 01 20 46, 00 00 00 00 00 00 F0 3F
replace_bytes = 0008, 61 E9 1A 23 BE F5 5A ED, 00 00 00 00 00 00 F0 3F
replace_bytes = 0010, 67 A3 D3 E9 00 23 07 F1, 00 00 00 00 00 00 F0 3F
replace_bytes = 0018, 80 01 20 46 61 E9 18 23, 00 00 00 00 00 00 F0 3F
replace_bytes = 0020, BE F5 50 ED 43 F2 33 33, 00 00 00 00 00 00 F0 3F
replace_bytes = 0028, 4F F0 33 32 C3 F6 F3 73, 00 00 00 00 00 00 F0 3F
replace_bytes = 0030, 07 F1 80 01 20 46 61 E9, 00 00 00 00 00 00 F0 3F
replace_bytes = 0038, 16 23 BE F5 44 ED 5E A3, 00 00 00 00 00 00 F0 3F
replace_bytes = 0040, D3 E9 00 23 07 F1 80 01, 00 00 00 00 00 00 F0 3F
replace_bytes = 0048, 20 46 61 E9 14 23 BE F5, 00 00 00 00 00 00 F0 3F
replace_bytes = 0050, 3A ED 00 23 00 22 C3 F6, 00 00 00 00 00 00 F0 3F
replace_bytes = 0058, F8 73 07 F1 80 01 20 46, 00 00 00 00 00 00 F0 3F
replace_bytes = 0060, 61 E9 12 23 BE F5 2E ED, 00 00 00 00 00 00 F0 3F
replace_bytes = 0068, 55 A3 D3 E9 00 23 07 F1, 00 00 00 00 00 00 F0 3F
base_address = 00000000
# initialise loop counter
replace_bytes = 65D3BC, 00 23 00 22, 00 BF 00 25
# loop to load 10 vals from old table
replace_bytes = 65D3C0, C4 F2 08 03 07 F1, 20 46 29 A1 29 44
replace_bytes = 65D3C6, 80 01 20 46, BE F5 E2 EC
replace_bytes = 65D3CA, 61 E9 02 23 BE F5, 08 35 50 2D F7 D1
# restore r5
replace_bytes = 65D3D0, DE EC, 4D 46
# continue at 65D3D2
#
#
# Replacement value: the number of initial line spacing values to exclude from
# the line spacing slider; minimum 0, maximum 13. E.g. 9 will result in a
# slider with 15 positions, starting from the 10th replace_float value below.
replace_int = 65D2AE, 0, 0
#
# 24 replacement line spacing values: change these replace_float values to suit
# your device and preferences:
#
base_address = 65D2C8
replace_float = 0000, 1.0, 1.3
replace_float = 0008, 1.0, 1.35
replace_float = 0010, 1.0, 1.4
replace_float = 0018, 1.0, 1.42
replace_float = 0020, 1.0, 1.44
replace_float = 0028, 1.0, 1.46
replace_float = 0030, 1.0, 1.48
replace_float = 0038, 1.0, 1.5
replace_float = 0040, 1.0, 1.52
replace_float = 0048, 1.0, 1.54
replace_float = 0050, 1.0, 1.56
replace_float = 0058, 1.0, 1.58
replace_float = 0060, 1.0, 1.6
replace_float = 0068, 1.0, 1.62
base_address = 65D468
replace_float = 0000, 1.05, 1.64
replace_float = 0008, 1.07, 1.66
replace_float = 0010, 1.1, 1.68
replace_float = 0018, 1.35, 1.7
replace_float = 0020, 1.7, 1.72
replace_float = 0028, 1.8, 1.74
replace_float = 0030, 2.2, 1.76
replace_float = 0038, 2.4, 1.78
replace_float = 0040, 2.6, 1.8
replace_float = 0048, 2.8, 1.82
#
# The first 14 replacement 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 smaller font size and/or a lower resolution
# device you might find that increasing the slider one step at a time doesn't
# always result in a line spacing increase at each step. In that case, you
# might want to use replacement values that are not quite so close together.
#
# For example: (I use these values on my 758x1024 Glo)
#
# 0.7 0.725 0.75 0.775 0.8 0.825 0.85 0.875 0.9 0.925 0.95 0.975 1.0 1.025 ...
#
# or: (these might better suit the 600x800 Touch)
#
# 0.6 0.633 0.667 0.7 0.733 0.767 0.8 0.833 0.867 9.0 9.33 9.67 1.0 1.025 ...
#
</patch>


详细见Hi PDA论坛帖子,mobileread不会用啊。

[2017.12.16更新]Kobo H2O 24阶行间距调化。附自用最新全能4.7.10413优化补丁、字体等

https://www.hi-pda.com/forum/viewthr...a=#pid41466085

Last edited by Vwow; 12-15-2017 at 10:00 PM.
Vwow is offline   Reply With Quote