![]() |
#16 |
The Couch Potato
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,509
Karma: 230999999
Join Date: Aug 2015
Device: Kobo Glo, Kobo Touch, Archos 9, Onyx Boox C67ML Carta
|
Thanks for the great work, GeoffR. Patches are working fine on my Glo.
|
![]() |
![]() |
![]() |
#17 | |
I need a chapter break
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
|
Quote:
i didn't get an error in the old version. can someone test it on Aura HD\H2O please. Last edited by oren64; 12-09-2015 at 09:27 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
I've included the `Freedom to advanced fonts control` patch in the zip attaced to post #1, and I've updated the zip again just now to make the `Custom page refresh options (1,2,3,...,12)` patch enabled by default instead of the `Custom page refresh options (1,2,4,8,16,32,64,128)` alternative.
Quote:
I haven't seen anyone else report a problem with the new fonts though, and it is easy enough for me to avoid the problem just by not using them. (Edit: I see now a few others with Touch/Glo are reporting problems with the Kobo Tsukushi Mincho font.) Quote:
Quote:
If you have two incompatible options uncommented then you should get an error about mismatched data when you try to build the patch. Last edited by GeoffR; 12-09-2015 at 10:01 AM. |
|||
![]() |
![]() |
![]() |
#19 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
I updated the zip in post #1 again, to add the new `ePub full justification default` patch, and to re-arrange the `ePub fixed/adjustable top/bottom margins` and `ePub disable built-in body padding-bottom` patches to make it clearer that they are mutually incompatible altrnatives.
Edit: Sorry, I realised that the `ePub full justification default` patch wasn't of any use because the justify button works differently for ePubs. Unlike in KePubs, there is no advantage to avoiding the use of the button in ePubs. Last edited by GeoffR; 12-09-2015 at 11:25 AM. Reason: removed unnecessary `ePub full justification default` patch |
![]() |
![]() |
![]() |
#20 |
Connoisseur
![]() ![]() Posts: 68
Karma: 152
Join Date: Jun 2015
Device: Kobo Glo HD
|
So i just applied the patch, but something is wrong:
http://static.tweakers.net/ext/f/oxk...GrzwZ/full.jpg As you see part of the first and last line is missing. Do you have any idea what in the patch could cause this? Ill also keep looking! |
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
If you only read KePubs then you might want to edit the `My 15 line spacing values` patch to remove some of the low line spacing values and add some more high ones. There is a note at the end of the patch about this. |
|
![]() |
![]() |
![]() |
#22 | |
Connoisseur
![]() ![]() Posts: 68
Karma: 152
Join Date: Jun 2015
Device: Kobo Glo HD
|
Quote:
On 3.18 i did not have this problem, yet i used your 15 line patch without any changes: Code:
<Patch> patch_name = `My 15 line spacing values` patch_enable = `yes` # load val1 from new table replace_bytes = 5E80CC, 00 23 00 22 C3 F6 F0 73, 00 46 40 A3 D3 E9 00 23 # load val5 from new table replace_bytes = 5E8124, 43 F2 33 33 4F F0 33 32, 2C A3 D3 E9 00 23 00 46 replace_bytes = 5E812C, C3 F6 F3 73, 00 46 00 46 # load val7 from new table replace_bytes = 5E8152, 00 23 00 22 C3 F6 F8 73, 00 46 22 A3 D3 E9 00 23 # load val10 from new table replace_bytes = 5E8190, 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 = 5E81A4, 48 A3 D3 E9 00 23 07 F1, 48 A7 00 26 D7 E9 00 23 replace_bytes = 5E81AC, 80 01 20 46 61 E9 0A 23, 20 A9 31 44 61 E9 0A 23 replace_bytes = 5E81B4, 11 F6 5C EF 45 A3 D3 E9, 20 46 11 F6 5C EF 08 36 replace_bytes = 5E81BC, 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 = 5E81C4, 61 E9 08 23 11 F6 52 EF, 0A A3 D3 E9 00 23 17 E0 # new table, inial values 1.0, 1.2, 1.5, 2.0, 3.0 replace_bytes = 5E81D0, 00 23 07 F1 80 01 20 46, 00 00 00 00 00 00 F0 3F replace_bytes = 5E81D8, 61 E9 06 23 11 F6 48 EF, 33 33 33 33 33 33 F3 3F replace_bytes = 5E81E0, 3F A3 D3 E9 00 23 07 F1, 00 00 00 00 00 00 F8 3F replace_bytes = 5E81E8, 80 01 20 46 61 E9 04 23, 00 00 00 00 00 00 00 40 replace_bytes = 5E81F0, 11 F6 3E EF 00 23 00 22, 00 00 00 00 00 00 08 40 # # 15 values for replacement: replace_float = 5E81D0, 1.0, 0.9 replace_float = 5E8298, 1.05, 0.95 replace_float = 5E82A0, 1.07, 1.0 replace_float = 5E82A8, 1.1, 1.05 replace_float = 5E81D8, 1.2, 1.1 replace_float = 5E82B0, 1.35, 1.05 replace_float = 5E81E0, 1.5, 1.1 replace_float = 5E82B8, 1.7, 1.15 replace_float = 5E82C0, 1.8, 1.2 replace_float = 5E81E8, 2.0, 1.25 replace_float = 5E82C8, 2.2, 1.30 replace_float = 5E82D0, 2.4, 1.35 replace_float = 5E82D8, 2.6, 1.4 replace_float = 5E82E0, 2.8, 1.45 replace_float = 5E81F0, 3.0, 1.5 # # 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 # </Patch> Code:
Patch> patch_name = `My 15 line spacing values` patch_enable = `yes` # load val1 from new table replace_bytes = 616124, 00 23 00 22 C3 F6 F0 73, 00 46 40 A3 D3 E9 00 23 # load val5 from new table replace_bytes = 61617C, 43 F2 33 33 4F F0 33 32, 2C A3 D3 E9 00 23 00 46 replace_bytes = 616184, C3 F6 F3 73, 00 46 00 46 # load val7 from new table replace_bytes = 6161AA, 00 23 00 22 C3 F6 F8 73, 00 46 22 A3 D3 E9 00 23 # load val10 from new table replace_bytes = 6161E8, 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 = 6161FC, 48 A3 D3 E9 00 23 07 F1, 48 A7 00 26 D7 E9 00 23 replace_bytes = 616204, 80 01 20 46 61 E9 0A 23, 20 A9 31 44 61 E9 0A 23 replace_bytes = 61620C, FC F5 46 EC 45 A3 D3 E9, 20 46 FC F5 46 EC 08 36 replace_bytes = 616214, 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 = 61621C, 61 E9 08 23 FC F5 3C EC, 0A A3 D3 E9 00 23 17 E0 # new table, inial values 1.0, 1.2, 1.5, 2.0, 3.0 replace_bytes = 616228, 00 23 07 F1 80 01 20 46, 00 00 00 00 00 00 F0 3F replace_bytes = 616230, 61 E9 06 23 FC F5 32 EC, 33 33 33 33 33 33 F3 3F replace_bytes = 616238, 3F A3 D3 E9 00 23 07 F1, 00 00 00 00 00 00 F8 3F replace_bytes = 616240, 80 01 20 46 61 E9 04 23, 00 00 00 00 00 00 00 40 replace_bytes = 616248, FC F5 28 EC 00 23 00 22, 00 00 00 00 00 00 08 40 # # 15 values for replacement, change these to suit: replace_float = 616228, 1.0, 0.7 replace_float = 6162F0, 1.05, 0.75 replace_float = 6162F8, 1.07, 0.8 replace_float = 616300, 1.1, 0.82 replace_float = 616230, 1.2, 0.84 replace_float = 616308, 1.35, 0.86 replace_float = 616238, 1.5, 0.88 replace_float = 616310, 1.7, 0.9 replace_float = 616318, 1.8, 0.92 replace_float = 616240, 2.0, 0.94 replace_float = 616320, 2.2, 0.96 replace_float = 616328, 2.4, 0.98 replace_float = 616330, 2.6, 1.0 replace_float = 616338, 2.8, 1.05 replace_float = 616248, 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> ..apparently you did, ill change the values back as they were in your 3.18 patch and see if that fixes it. /edit: now i think about it, i [s]might[/s] have changed those values myself in your 3.18 patch. /edit 2: editting the values to slightly higher ones did fix the problem. Cheers! Last edited by outlandos; 12-09-2015 at 01:03 PM. |
|
![]() |
![]() |
![]() |
#23 |
Lang lebe die DigiBib!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 41
Karma: 184980
Join Date: Sep 2013
Location: Regensburg (Ratisbona)
Device: Kobo Libra 2 (und andere)
|
Perfect! I use the patch without any changes. For me (and my H2O) just perfect. Thanks a lot GeoffR!
|
![]() |
![]() |
![]() |
#24 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
I think I have found a bug, but it seems only to affect KePubs in full-screen mode (i.e. using the unofficial FullScreenReading=true feature setting.) It happens with or without patches, and I tried a number of KePub books with the same result. Can someone else using full-screen mode feature reproduce this?
1. Untick the "Show header and footer" reading setting 2. Open a KePub book 3. Swipe or tap until you get to the next chapter 4. Try to change the margins from the Aa menu I found that once I had read past a chapter break I could no longer change the margins at all. The problem remained until I closed and re-opened the book. This didn't affect KePubs in normal reading mode, or ePubs in either reading mode. |
![]() |
![]() |
![]() |
#25 | |
Lang lebe die DigiBib!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 41
Karma: 184980
Join Date: Sep 2013
Location: Regensburg (Ratisbona)
Device: Kobo Libra 2 (und andere)
|
Quote:
|
|
![]() |
![]() |
![]() |
#26 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
|
![]() |
![]() |
![]() |
#27 |
No Comment
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,240
Karma: 23878043
Join Date: Jan 2012
Location: Australia
Device: Kobo: Not just an eReader, it's an adventure!
|
I've updated the first post of the Direct Links to Kobo Firmware thread to include this thread.
|
![]() |
![]() |
![]() |
#28 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 8892
Join Date: Feb 2011
Device: Sony Daily Edition PRS-950SC
|
First of all, thanks for your hard work in providing these amazing patches for us, Geoff. However, I'm having trouble with the "custom reading footer style" patch in the latest release on my H2O. I would like the footer height to be what I was previously using on the 3.17.3 firmware, but setting those values creates an output error. In fact, uncommenting the default values for "# Example replacement footer height values: AuraHD/H2O/GloHD" in your patch and leaving everything else in all three patch files at default values causes an output error as well. So, this:
# Example replacement footer height values: AuraHD/H2O/GloHD replace_string = 001A, `footerMargin: 105;`, `footerMargin: 170;` replace_string = 002D, `min-height: 70px;`, `min-height: 52px;` replace_string = 003F, `max-height: 70px;`, `max-height: 52px;` causes an output error. My H2O was previously on the 3.17.3 patched firmware and I was using this value for that patch without any errors: # Replacement footer height values: AuraHD/H2O/GloHD replace_string = 00DA, `min-height: 120px;`, `min-height: 036px;` replace_string = 00EE, `max-height: 120px;`, `max-height: 036px;` I've also left the font size untouched at 26px for the H2O in both patches and did not uncomment anything else in that particular patch. Help to get the new patch to approximate my previous values would be greatly appreciated. Thanks, again |
![]() |
![]() |
![]() |
#29 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
The patch has changed a bit, there is no way around that because the firmware changed and I had to adapt. But it should be possible to get the same result with the new patch I think.
The patch has some example values set for the Glo/Aura. When you uncomment the AuraHD/H2O/GloHD example then you need to comment out the Glo/Aura example. i.e. change: Code:
# Example replacement footer height values: Touch/Mini #replace_string = 001A, `footerMargin: 105;`, `footerMargin: 105;` #replace_string = 002D, `min-height: 70px;`, `min-height: 32px;` #replace_string = 003F, `max-height: 70px;`, `max-height: 32px;` # Example replacement footer height values: Glo/Aura replace_string = 001A, `footerMargin: 105;`, `footerMargin: 105;` replace_string = 002D, `min-height: 70px;`, `min-height: 40px;` replace_string = 003F, `max-height: 70px;`, `max-height: 40px;` # Example replacement footer height values: AuraHD/H2O/GloHD #replace_string = 001A, `footerMargin: 105;`, `footerMargin: 170;` #replace_string = 002D, `min-height: 70px;`, `min-height: 52px;` #replace_string = 003F, `max-height: 70px;`, `max-height: 52px;` Code:
# Example replacement footer height values: Touch/Mini #replace_string = 001A, `footerMargin: 105;`, `footerMargin: 105;` #replace_string = 002D, `min-height: 70px;`, `min-height: 32px;` #replace_string = 003F, `max-height: 70px;`, `max-height: 32px;` # Example replacement footer height values: Glo/Aura #replace_string = 001A, `footerMargin: 105;`, `footerMargin: 105;` #replace_string = 002D, `min-height: 70px;`, `min-height: 40px;` #replace_string = 003F, `max-height: 70px;`, `max-height: 40px;` # Example replacement footer height values: AuraHD/H2O/GloHD replace_string = 001A, `footerMargin: 105;`, `footerMargin: 170;` replace_string = 002D, `min-height: 70px;`, `min-height: 52px;` replace_string = 003F, `max-height: 70px;`, `max-height: 52px;` Code:
replace_string = 002D, `min-height: 70px;`, `min-height: 52px;` replace_string = 003F, `max-height: 70px;`, `max-height: 52px; Code:
replace_string = 002D, `min-height: 70px;`, `min-height: 36px;` replace_string = 003F, `max-height: 70px;`, `max-height: 36px; |
![]() |
![]() |
![]() |
#30 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
I see now that I did change the `Custom reading footer style` patch options for the margin-top and font-family, I didn't mean to do that I just forgot to change them back from when I was testing the patch.
At the end of the patch, the original options were set like this: Code:
# # Replacement caption top margin value for all devices: # (A negative top margin moves the caption text upwards, # further from the bezel and closer to the page content.) replace_string = 001A, `margin-top: 00px;`, `margin-top:-10px;` # # Uncomment to use a fixed replacement caption font family, for all devices: # (You can change Avenir to another font name of your choice, but Avenir or # Georgia are recommended because other fonts may not be loaded when the book # is first opened and so might cause problems. Unlike other strings it is OK # if this replacement string is a bit longer or shorter than the original.) #replace_string = 00D7, `#caption[qApp_localeName="ja_JP"] {font-family: Sans-SerifJP;}`, `#caption {font-family: Amasis;} Code:
# # Replacement caption top margin value for all devices: # (A negative top margin moves the caption text upwards, # further from the bezel and closer to the page content.) #replace_string = 001A, `margin-top: 00px;`, `margin-top:-10px;` # # Uncomment to use a fixed replacement caption font family, for all devices: # (You can change Avenir to another font name of your choice, but Avenir or # Georgia are recommended because other fonts may not be loaded when the book # is first opened and so might cause problems. Unlike other strings it is OK # if this replacement string is a bit longer or shorter than the original.) replace_string = 00D7, `#caption[qApp_localeName="ja_JP"] {font-family: Sans-SerifJP;}`, `#caption {font-family: Georgia;} Last edited by GeoffR; 12-10-2015 at 04:02 PM. Reason: Doh! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.17.0 | GeoffR | Kobo Developer's Corner | 49 | 08-16-2015 05:20 AM |
Instructions for patching firmware 3.16.0 | GeoffR | Kobo Developer's Corner | 74 | 08-12-2015 02:12 PM |
Instructions for patching firmware 3.11.0 | GeoffR | Kobo Developer's Corner | 226 | 06-01-2015 05:32 AM |
Instructions for patching firmware 3.3.x, 3.4.x, 3.5.x | GeoffR | Kobo Developer's Corner | 285 | 08-27-2014 10:06 AM |
Instructions for patching firmware 3.1.1 | GeoffR | Kobo Developer's Corner | 64 | 04-18-2014 01:23 PM |