![]() |
#106 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 250
Karma: 2731310
Join Date: Jan 2013
Device: Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#107 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52
Karma: 76234
Join Date: May 2013
Device: k3w, gloHD
|
Is there a way to make the initial box for the pop-up dictionary bigger? I would like to see as much of the whole entry as possible without having to swipe through the different pages or press&hold on the word yet again to see the full page.
Also, since I'm using multiple English dictionaries (as Deutsch and Italiano etc), is there a way to patch out the footer copyrights of those dictionaries (since they aren't correct and they just cause the # of pages to view to increase and usually the last page is just the useless footer). Patching the name of the Dictionary itself would also be nice (English 2, Websters, Chambers, ...) |
![]() |
![]() |
![]() |
#108 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2015
Device: Kobo Glo HD
|
Customized page controls
Is there any way to customize the page controls so that you can assign behaviors to specific regions?
Specifically, I just want to replace all page back taps with page forward taps. I page back so rarely and I can use a swipe action to do that so I would prefer to just have all tap regions do a page forward. Are there any notes anywhere such that I can learn how to create my own custom patches? |
![]() |
![]() |
![]() |
#109 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
|
Quote:
Specifically I think it is sufficient to add these two patches in the files of metazoa patches (v.3.15.0): in libnickel.so.1.0.0.patch: Code:
<Patch> patch_name = `relleno_ventana` patch_enable = `yes` replace_string = BCCF90, `#textEdit {\n\tmin-height: 150px;\n\tmax-height: 150px;\n\tmin-width: 515px;\n\tmax-width: 515px;\n}\n\n#textEdit[qApp_deviceIsPhoenix="true"] {\n\tmin-height: 190px;\n\tmax-height: 190px;\n\tmin-width: 550px;\n\tmax-width: 550px;\n}\n\n#textEdit[qApp_deviceIsDragon="true"] {\n\tmin-height: 235px;\n\tmax-height: 235px;\n\tmin-width: 930px;\n\tmax-width: 930px;\n}`, `#textEdit {\n\tmin-height: 290px;\n\tmax-height: 290px;\n\tmin-width: 575px;\n\tmax-width: 575px;\n}\n\n#textEdit[qApp_deviceIsPhoenix="true"] {\n\tmin-height: 371px;\n\tmax-height: 371px;\n\tmin-width: 550px;\n\tmax-width: 550px;\n}\n\n#textEdit[qApp_deviceIsDragon="true"] {\n\tmin-height: 533px;\n\tmax-height:533px;\n\tmin-width: 930px;\n\tmax-width: 930px;\n}` </Patch> Code:
<Patch> patch_name = `Ventana_diccionario` patch_enable = `yes` replace_string = 4C1AA, `#InlineDictionaryView {\n\tmin-width: 500px;\n\tmax-width: 500px;\n\tmin-height: 220px;\n\tmax-height: 220px;\n}\n#InlineDictionaryView[qApp_deviceIsPhoenix="true"] {\n\tmin-width: 650px;\n\tmax-width: 650px;\n\tmin-height: 280px;\n\tmax-height: 280px;\n}\n#InlineDictionaryView[qApp_deviceIsDragon="true"] {\n\tmin-width: 980px;\n\tmax-width: 980px;\n\tmin-height: 350px;\n\tmax-height: 350px;\n}\n`, `#InlineDictionaryView {\n\tmin-width: 560px;\n\tmax-width: 560px;\n\tmin-height: 330px;\n\tmax-height: 330px;\n}\n#InlineDictionaryView[qApp_deviceIsPhoenix="true"] {\n\tmin-width: 650px;\n\tmax-width: 650px;\n\tmin-height: 410px;\n\tmax-height: 410px;\n}\n#InlineDictionaryView[qApp_deviceIsDragon="true"] {\n\tmin-width: 980px;\n\tmax-width: 980px;\n\tmin-height: 580px;\n\tmax-height: 580px;\n}\n` </Patch> |
|
![]() |
![]() |
![]() |
#111 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Disable pinch-to-zoom font resizing: (paste into libnickel.so.1.0.0.patch) Spoiler:
|
|
![]() |
![]() |
![]() |
#112 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 250
Karma: 2731310
Join Date: Jan 2013
Device: Kobo Aura
|
Quote:
Thank you very much ![]() Question; How is it that you make these patches? Do you use a special program to find the code to patch or something? Last edited by freekobo; 05-29-2015 at 06:28 PM. |
|
![]() |
![]() |
![]() |
#113 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 5885446
Join Date: Feb 2014
Device: Kobo Glo
|
Is it possible to increase the sleep and power-off timeouts to 1 day?
I have tried changing the value in libnickel.so.1.0.0.patch but I got the error that replace_int only accepts values between 0 and 255. |
![]() |
![]() |
![]() |
#114 |
Connoisseur
![]() ![]() Posts: 63
Karma: 196
Join Date: Oct 2010
Device: Kobo Glo Hd, Kobo H2O2
|
Not possible. In the code the timeouts are encoded as integer (max 255 i.e. about 4 hours and 15 minutes), so even in case the patch would not check the max value and would allow rewriting the file .so, strange things would occur at runtime.
|
![]() |
![]() |
![]() |
#115 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52
Karma: 76234
Join Date: May 2013
Device: k3w, gloHD
|
Quote:
Any idea where the dictionary names are stored? I can't find the word "Italiano" (or a proper Deutch/Portugese string) anywhere in nickel or libnickel. |
|
![]() |
![]() |
![]() |
#116 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
The code that the `Custom Sleep/Power-off timeouts` patch changes can only use values from 0-255. Although the register used to hold the timeout value is 32-bit and can hold much larger values, the code uses a 16-bit 'thumb' instruction to load the register, and there isn't room to use a wider instruction in the patch. It could be that the timeout function can accept larger values, but there is no way to load those larger values without re-writing the code.
|
![]() |
![]() |
![]() |
#117 |
Bookworm
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
2 questions/remarks
By accident, I loaded an kepub and discovered (patched Glo HD 3.15 ) that the bottom margin of a kepub with the patch is smaller then with an epub. It is a patched firmware, but let say in an epub there is about 7 mm between the latest line and the page xx of xx and with kepub it is about 4 mm. Is there a way to adjust the default patch for the custom footer a bit so it comes with epub near the kepub margin ? And a remark/warning. The patch which disable the automatic update works well, BUT : I sold both my Glo and Aura HD (for 2 glo HD) and used the firmware default setting to wipe out the device. But when turned on, the device asked for the settings like language,time,wifi and then it tried to download the new firmware and that was blocked. Then both devices went into a kind of bootloop,they keep rebooting and try to download the new firmware, when I pressed cancel it says that it needs the upgrade and asked for the desktop software. But that doesn't recognise both readers, so I ended up with carefull opening both and use flash software to restore the images. So before hitting the factory default button (device info,restore factory settings) be sure that you disable the patch and apply it,otherwise you are in trouble. The setting itself is very useful to prevent the device from updating but especially with the Aura HD (it takes for ages before rebooting and retry) it looks like the firmware updates are also removed when you go back to factory default otherwise I don't understand why the devices tries to download an update while the latest firmware was already installed. |
![]() |
![]() |
![]() |
#118 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Quote:
Last edited by GeoffR; 06-03-2015 at 10:34 PM. Reason: Could it also just be ... |
||
![]() |
![]() |
![]() |
#119 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
A factory reset should wipe it out. But, logging out of the Kobo account could hit the problem Nick describes. I would have expected it to be OK, but it depends on how the patch worked. If it sets the version number higher than any available, it should be OK. But, if it changes the URL or something so that the server can't be contacted, it might cause this.
|
![]() |
![]() |
![]() |
#120 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Edit: The `Block WiFi firmware upgrade` patch changes this string: Code:
https://api.kobobooks.com/1.0/UpgradeCheck/%1/%2/%3/%4/%5 Code:
https://api.kobobooks.com/1.0/UpgradeCheck/%1/%2/k/99.9/5 Last edited by GeoffR; 06-03-2015 at 11:35 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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.11.0 | GeoffR | Kobo Developer's Corner | 226 | 06-01-2015 05:32 AM |
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 |
Instructions for patching firmware 3.2.0 | DNSB | Kobo Developer's Corner | 66 | 12-05-2014 07:28 AM |