03-02-2019, 05:04 PM | #181 |
Wizard
Posts: 2,735
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Patches v42 with 4 SmartLink customization patches
I have released v42 with 4 new patches to change the behaviour of the SmartLink on the home screen (the changing link on the bottom-right) as well as a few bug fixes.
Set visible SmartLink (by @geek1011): This patch allows you to force the SmartLink to show a specific link. See the list at the bottom of this post for the options. Only show Pocket SmartLink (by @geek1011): This patch makes the SmartLink only show Pocket. It also changes the text to be more fitting for being always displayed. Only show stats SmartLink (by @geek1011): This patch always shows the stats link. Never show Kobo Plus, wishlist, and points SmartLinks (by @geek1011): This patch removes the Kobo Plus, wishlist, and points links from the rotation, which cannot be made to disappear without taking the action (like signing up for Kobo Plus, spending your points, and adding something to your wishlist). For reference, here are the patches: Spoiler:
Here are the things I figured out about the SmartLinks while working on these patches: Spoiler:
|
03-11-2019, 03:54 AM | #182 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
ePub default multi-column thresholds (testing)
This patch changes the default thresholds that the ePub reader uses to decide how many columns to display on a page. It doesn't affect the KePub reader.
Paste into librmsdk.so.1.0.0.yaml: Spoiler:
If you reduce these threshold values then the reader should switch to multi-column mode at a larger font size setting. If you Increase these threshold values then a smaller font size setting should be required before the number of columns increases. If the thresholds are made very large then only a single column should be used for all font size settings. Note that the patch just sets the default thresholds, the publisher can still override them in the book's XPGT stylesheet. You might want to use the "Modify ePub" Calibre plugin to remove the xpgt stylesheets from books before sideloading them. (Also note that the font-size threshold is based on the size set by the device font-size slider, which is not necessarily the font size used for paragraph text since the publisher might have changed the paragraph font-size in the book's CSS stylesheet.) I haven't tested this much, just a little on my Glo with firmware 4.8.11073, but it should work the same on any firmware version. Last edited by GeoffR; 03-11-2019 at 06:38 AM. Reason: added PatchGroup line |
Advert | |
|
03-11-2019, 06:36 AM | #183 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
ePub 1/1, 1/2 and 2/3 portrait/landscape columns (testing)
Variations on the previous patch: instead of choosing the number of columns based on font size, these patches will use a fixed number of columns regardless of fonts size, depending only on whether the screen orientation is portrait or landscape.
1P/1L = single column in either orientation. 1P/2L = 1 column portrait, 2 columns landscape 2P/3L = 2 columns portrait, 3 columns landscape I haven't tested these, maybe someone with a Forma or other landscape-enabled device could try them out. Paste the patch for your device into librmdsk.so.1.0.0.yaml, and test on an ePub book that doesn't have an embedded XPGT stylesheet. 1P/1L, All devices: Spoiler:
1P/2L, 2P/3L, Daylight devices (Forma, AuraOne): Spoiler:
1P/2L, 2P/3L, Dragon devices (Clara, H2O, GloHD, AuraHD) Spoiler:
1P/2L, 2P/3L, Phoenix devices (Glo, Aura, Aura2) Spoiler:
1P/2L, 2P/3L, Trilogy devices (Mini, Touch, Touch2) Spoiler:
|
03-11-2019, 11:10 AM | #184 | |
Groupie
Posts: 159
Karma: 27950
Join Date: Nov 2018
Device: Kobo Aura One, Kobo Forma
|
Quote:
And I did try to search XPGT keyword in my epub file using Calibre's editing feature, and I'm sure the file contains no XPGT stylesheet. Last edited by codychan; 03-11-2019 at 11:14 AM. |
|
03-12-2019, 01:52 PM | #185 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
I tested the above patch on my Forma with a standard epub. It works fine for me. Here's a screenshot in landscape.
|
Advert | |
|
03-12-2019, 06:35 PM | #186 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Thanks codychan and jackie_w for trying it out.
Sorry codychan I don't know why it doesn't work for you, but one thing I thought of that might prevent it working is if you had the `Ignore ePub book Adobe XPGT stylesheet` patch enabled too? From a PM request, I'll have a look a look for how to change the size of the column gap. |
03-12-2019, 09:13 PM | #187 | |
Groupie
Posts: 159
Karma: 27950
Join Date: Nov 2018
Device: Kobo Aura One, Kobo Forma
|
Quote:
|
|
03-12-2019, 11:53 PM | #188 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
I have located the string that sets the default size of the gap between columns to 1.5em, but unfortunately the same string is also used to set the default font size for <h2> headers, and maybe other things.
So I don't think it is a good idea to use this patch, but here it is if anyone wants to try it and doesn't mind the side-effects. Paste into librmsdk.so.1.0.0.yaml: Spoiler:
|
03-23-2019, 02:57 PM | #189 |
Connoisseur
Posts: 88
Karma: 10
Join Date: Mar 2018
Device: Kobo H2O V2
|
I would like to say thank you to all the people who put in their time and work to create these patches and making me love my kobo h2o even more so big big thumbs up!
|
03-29-2019, 05:29 PM | #190 |
Enthusiast
Posts: 34
Karma: 10
Join Date: Jul 2015
Device: Forma _ KSM-9 _ vlasovsoft
|
| applying patch `Only Reading and My Books`
| looping over instructions | skipping non-instruction Enabled(), PatchGroup() or Description() | skipping non-instruction Enabled(), PatchGroup() or Description() | skipping non-instruction Enabled(), PatchGroup() or Description() | FindZlib("#row1col2") | hex:23726f7731636f6c32 | ReplaceZlib(0, "[qApp_isFontScaleLarge=true] #row1col2 {\n qproperty-visible: false;\n}", "#row1col2,#row2col2,#row3{qproperty-visible:false;}") | could not apply patch: i5: ReplaceZlib: find string not found in stream ([qApp_isFontScaleLarge=true] #row1col2{qproperty-visible:false;}) --> ReplaceZlib: find string not found in stream ([qApp_isFontScaleLarge=true] #row1col2{qproperty-visible:false;}) |
03-30-2019, 03:58 PM | #191 | |
Wizard
Posts: 2,735
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
|
|
03-31-2019, 10:23 AM | #192 |
Enthusiast
Posts: 34
Karma: 10
Join Date: Jul 2015
Device: Forma _ KSM-9 _ vlasovsoft
|
I found the answer to my question: 1. If you enable Remove footer (row3) and increase cover size on new home screen you need to have both of these conflicting patches disabled: - New home screen increasing cover size - Remove recommendations (row1col2) from home screen This must be indicated in the description. 2. If you enable Remove recommendations (row1col2) from home screen you need to have conflicting patch disabled: Only Reading and My Books This must be indicated in the description. Last edited by Glukkkk; 03-31-2019 at 02:49 PM. |
04-05-2019, 02:45 AM | #193 | |
absolute beginner
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
|
Quote:
Code:
- PatchGroup: Home screen tweaks
|
|
Tags |
kobopatch, patch, patch32lsb, patches, patching |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.13.1 | GeoffR | Kobo Developer's Corner | 56 | 07-01-2016 09:59 AM |
Instructions for patching firmware 3.16.10 | GeoffR | Kobo Developer's Corner | 12 | 08-14-2015 03:40 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.12.1 | GeoffR | Kobo Developer's Corner | 56 | 03-20-2015 05:14 AM |
Instructions for patching firmware 3.12.0 | GeoffR | Kobo Developer's Corner | 165 | 02-07-2015 09:22 AM |