View Single Post
Old 05-31-2016, 01:51 PM   #140
oren64
I need a chapter break
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
Quote:
Originally Posted by Josieb1 View Post
. I copied the code over but I can't get the bat file to generate a new target zip. When I double click (using windows 7) it appears to flash but it goes away immediately.

jackie_w post only part of the patch.

Edit:copy/replace the patch to libnickel.so.1.0.0.patch.

Or you can disable the patch, patch_enable = `no` .

Spoiler:
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.8
replace_float = 616FF8, 1.05, 0.85
replace_float = 617000, 1.07, 0.9
replace_float = 617008, 1.1, 0.92
replace_float = 616F38, 1.2, 0.94
replace_float = 617010, 1.35, 0.96
replace_float = 616F40, 1.5, 0.98
replace_float = 617018, 1.7, 1.0
replace_float = 617020, 1.8, 1.02
replace_float = 616F48, 2.0, 1.05
replace_float = 617028, 2.2, 1.1
replace_float = 617030, 2.4, 1.15
replace_float = 617038, 2.6, 1.2
replace_float = 617040, 2.8, 1.25
replace_float = 616F50, 3.0, 1.3
#
# 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>

Last edited by oren64; 05-31-2016 at 02:19 PM.
oren64 is offline   Reply With Quote