09-07-2015, 06:44 AM | #181 |
The Couch Potato
Posts: 34,509
Karma: 230999999
Join Date: Aug 2015
Device: Kobo Glo, Kobo Touch, Archos 9, Onyx Boox C67ML Carta
|
Dear tshering,
While upgrading my Glo to FW 3.17.3, I tried to combine the patches of GeoffR's & the Mod for Bad Eyes. As per your suggestions in post #144, I first patched the FW with GeoffR's patch, and copied the KoboRoot.tgz (size 21891 kb) produced, at the source folder of mod for bad eyes. On running the 3.17.3.bat file, It resulted in error, and I got a message at command prompt saying: Cannot find or extract "nickel" Did you copy kobo-update-x.x.x.zip to C:\...\3.17.3_source? ... and no target folder is produced. Where am I doing wrong? Please help. |
09-07-2015, 08:30 AM | #182 | |
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:
1º patched the FW with GeoffR's patch 2º Extract the file "libnickel.so.1.0.0" of the koboRoot.tgz produced. 3º replace this file with the original file "libnickel.so.1.0.0" in the koboRoot.tgz of firmware (kobo-update-3.17.3.zip). 4º Copy "kobo-update-3.17.3.zip" (with koboroot.tgz with new libnickel.so.1.0.0) at the source folder of mod for bad eyes. 5º Run 3.17.3 bat file. |
|
Advert | |
|
09-07-2015, 10:19 AM | #183 |
The Couch Potato
Posts: 34,509
Karma: 230999999
Join Date: Aug 2015
Device: Kobo Glo, Kobo Touch, Archos 9, Onyx Boox C67ML Carta
|
Thank you very much Surquizu, for the guidance. I'll try it over and report back the result.
|
09-07-2015, 05:03 PM | #184 | |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
I use patch_kobo_3173 to refer to the base folder of GeoffR's patch, and KBPatcher12_3.17.3 to refer to the bad eyes patch. Depending on how you extracted the archives the folder names might be different on your pc. Start with the bad eyes patch:
Edit: If you follow surquizu's advice, you have to apply both KoboRoot.tgz files . First, copy Geoff's KoboRoot.tgz to .kobo and let the device restart (otherwise you are loosing the patched versions of libadobe.so and librmsdk.so.1.0.0), then copy the bad eyes' KoboRoot.tgz to .kobo and let the device restart. Last edited by tshering; 09-07-2015 at 05:21 PM. |
|
09-08-2015, 02:56 AM | #185 | |
The Couch Potato
Posts: 34,509
Karma: 230999999
Join Date: Aug 2015
Device: Kobo Glo, Kobo Touch, Archos 9, Onyx Boox C67ML Carta
|
Quote:
I followed the steps suggested by you, but while executing the last step (double_click (patch_kobo_3173\)3.17.3.bat), I got an error message: Read 14715252 bytes from input file 'C:\patch_kobo_3173- for custom font adjustment and page refresh\patch_kobo_3173\3.17.3_source\libnickel.so .1.0.0' Ignoring disabled patch `Disable reading footer` find_base_address: unique string at 00C29D70 C:\patch_kobo_3173- for custom font adjustment and page refresh\patch_kobo_3173\tools\pa32lsb.exe: line 59 in 'C:\patch_kobo_3173- for custom font adjustment and page refresh\patch_kobo_3173\3.17.3_source\libnickel.so .1.0.0.patch': find_base_address string not found. ERROR processing C:\patch_kobo_3173- for custom font adjustment and page refresh\patch_kobo_3173\3.17.3_source\libnickel.so .1.0.0.patch Press any key to continue . . . No KoboRoot.tgz is produced. Kindly help. PS: I made a lot of mess-up while applying surquizu's method. Was feeling too dumb to report. |
|
Advert | |
|
09-08-2015, 04:50 AM | #186 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
drjd,
find in libnickel.so.1.0.0.txt the patch that contains the string "position=C29E94" and change in this patch Code:
enabled=true Code:
enabled=false |
09-08-2015, 05:56 AM | #187 | |
The Couch Potato
Posts: 34,509
Karma: 230999999
Join Date: Aug 2015
Device: Kobo Glo, Kobo Touch, Archos 9, Onyx Boox C67ML Carta
|
Quote:
Actually I could not find reference to "position=C29E94" in libnickel.so.1.0.0.txt. So instead I tried disabling the patches one by one, and it worked! I flashed the KoboRoot.tgz to the device, and got both patches working. Although there are some effects missing, like I don't find large fonts in library listing, and the bottom margin in pages is quite big, but I can compromise on this issue. After all, I only wanted large fonts in dictionary pop-up, and I got it. Thank you very much for your valuable time and guidance. |
|
09-08-2015, 06:14 AM | #188 | |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
Edit: The quotes are not part of the search string! |
|
09-08-2015, 07:11 AM | #189 | |
The Couch Potato
Posts: 34,509
Karma: 230999999
Join Date: Aug 2015
Device: Kobo Glo, Kobo Touch, Archos 9, Onyx Boox C67ML Carta
|
Quote:
So I started again from the scratch.. disabled the patch containing "position=C29E94" in libnickel.so.1.0.0.txt in the Bad Eyes patch folder, generated the KoboRoot.tgz, then applied the GeoffR's patch. Everything went fine! Now I can see the desired effects on my device. Thank you once again for your kind advise.. |
|
09-27-2015, 05:11 AM | #190 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
3.18.0, remove italic from book titles in library
Does what the header says.
|
09-27-2015, 01:50 PM | #191 |
The Couch Potato
Posts: 34,509
Karma: 230999999
Join Date: Aug 2015
Device: Kobo Glo, Kobo Touch, Archos 9, Onyx Boox C67ML Carta
|
|
09-27-2015, 06:07 PM | #192 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Conditional branching
Modifications for bad eyes (KBPatcher13_3.18.0) introduces conditional branching. Conditions are fullfilled if certain flags are set or not. I take the following old-style patch (see the spoiler) to illustrate the usage:
Spoiler:
With the first three "newpart="-lines, this patch sets hard coded values instead of the variables of the original code.
Code:
newpart=* { font-family: Georgia; font-size: 32px; line-height: 36px; } \n newpart=ol { margin-left: 14px; } \n newpart=ol p { font-size: 32px; font-weight:normal; } Starting with the patch for 3.18.0, I replace these three lines with Code:
if $aurahd or $h2o newpart=* { font-family: Georgia; font-size: 50px; line-height: 54px; } \n newpart=ol { margin-left: 28px; } \n newpart=ol p { font-size: 50px; font-weight:normal; } else if $glo or $aura newpart=* { font-family: Georgia; font-size: 40px; line-height: 44px; } \n newpart=ol { margin-left: 24px; } \n newpart=ol p { font-size: 40px; font-weight:normal; } else if $glohd newpart=* { font-family: Georgia; font-size: 56px; line-height: 60px; } \n newpart=ol { margin-left: 30px; } \n newpart=ol p { font-size: 56px; font-weight:normal; } else newpart=* { font-family: Georgia; font-size: 32px; line-height: 36px; } \n newpart=ol { margin-left: 14px; } \n newpart=ol p { font-size: 32px; font-weight:normal; } end Another example: In a certain patch, I get a problem since the compressed patched css code is larger then the compressed original code. I therefore skip certain parts depending on the target device (specified by a flag): Code:
... oldpart=div.spacing2.phoenix {\n\tmargin-top: 40px;\n}\n\n oldpart=div.spacing2.dragon,\ndiv.spacing2.alyssum {\n\tmargin-top: 50px;\n}\n\n oldpart=div.spacing2.trilogy {\n\tmargin-top: 20px;\n}\n\n ... if $glo or $aura newpart=div.spacing2.phoenix {\n\tmargin-top: 40px;\n}\n else if $h20 or $aurahd or $glohd newpart=div.spacing2.dragon,\ndiv.spacing2.alyssum {\n\tmargin-top: 50px;\n}\n else newpart=div.spacing2.trilogy {\n\tmargin-top: 20px;\n}\n end Code:
if ($aurahd or $h2o) and $forMe newpart=* { font-family: Georgia; font-size: 32px; line-height: 36px; } \n else if ($aurahd or $h2o) and $forMyWife newpart=* { font-family: Georgia; font-size: 22px; line-height: 24px; } \n ... Code:
if $aurahd if $forMe newpart=* { font-family: Georgia; font-size: 32px; line-height: 36px; } \n else if $forMyWife newpart=* { font-family: Georgia; font-size: 22px; line-height: 24px; } \n else newpart=* { font-family: Georgia; font-size: 24px; line-height: 26px; } \n end ... end As for how to set the flags when starting the patching process, see, for instance, 3.18.0_glo_aura.bat of KBPatcher13_3.18.0, which I will upload to the next post. As for converting patch files to GeoffR-style, you would open a cmd window and execute the following two lines (for instance): Code:
cd C:\data\KBPatcher13_3.18.0 3.18.0_convert.bat flags=glo |
09-27-2015, 06:50 PM | #193 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Modification for Bad Eyes FW 3.18.0
See the post above for flags and conditional branching.
Different to previous packages, this package contains batch files specific to device models. For instance, if you want to patch for Aura HD, double click 3.18.0_aurahd_h2o.bat, and find the created KoboRoot.tgz in 3.18.0_target_aurahd_h2o. As for the values of the inline dictionary view, I tried to find nice values for Touch and Glo (they should also be acceptable for Aura). As for the other models you would have to find yourself proper values. If you can, please post them here. The concerned patches are those with position=B996F4 and position=B99E84 in libnickel.so.1.0.0.txt, and position=4B607C in nickel.txt. For reference, I uploaded screen shots of the dictionary showing the entry for "know". Pay attention that the whole text is visible (not cut on the right border or at the bottom), and that all numbers in the numbered lists are displayed. Last edited by tshering; 09-27-2015 at 07:26 PM. |
09-28-2015, 03:39 PM | #194 |
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
|
Thanks!
my settings in h2o: Code:
if $aurahd or $h2o newpart=* { font-family: Georgia; font-size: 40px; line-height: 42px; } \n newpart=ol { margin-left: 28px; } \n newpart=ol p { font-size: 40px; font-weight:normal; } |
09-28-2015, 04:40 PM | #195 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
I guess you want to increase the width of the widget and the text. Did you try different values in those two patches?
In nickel.txt (for the dimensions of the widget) Code:
<patch> name=? enabled=true action=replace_string position=4B607C oldpart=#InlineDictionaryView {\n\tmin-width: 500px;\n\tmax-width: 500px;\n\tmin-height: 220px;\n\tmax-height: 220px;\n}\n oldpart=#InlineDictionaryView[qApp_deviceIsPhoenix="true"] {\n\tmin-width: 650px;\n\tmax-width: 650px;\n\tmin-height: 280px;\n\tmax-height: 280px;\n}\n oldpart=#InlineDictionaryView[qApp_deviceIsDragon="true"] {\n\tmin-width: 980px;\n\tmax-width: 980px;\n\tmin-height: 350px;\n\tmax-height: 350px;\n}\n newpart=#InlineDictionaryView {\n\tmin-width: 560px;\n\tmax-width: 560px;\n\tmin-height: 330px;\n\tmax-height: 330px;\n}\n newpart=#InlineDictionaryView[qApp_deviceIsPhoenix="true"] {\n\tmin-width: 720px;\n\tmax-width: 720px;\n\tmin-height: 450px;\n\tmax-height: 450px;\n}\n newpart=#InlineDictionaryView[qApp_deviceIsDragon="true"] {\n\tmin-width: 980px;\n\tmax-width: 980px;\n\tmin-height: 580px;\n\tmax-height: 580px;\n}\n combineparts </patch> In libnickel.so.1.0.0.txt (for the dimensions of the text field) Code:
<patch> name=? enabled=true action=replace_string position=B99E84 oldpart=#textEdit {\n\tmin-height: 150px;\n\tmax-height: 150px;\n\tmin-width: 515px;\n\tmax-width: 515px;\n}\n\n oldpart=#textEdit[qApp_deviceIsPhoenix="true"] {\n\tmin-height: 190px;\n\tmax-height: 190px;\n\tmin-width: 550px;\n\tmax-width: 550px;\n}\n\n oldpart=#textEdit[qApp_deviceIsDragon="true"] {\n\tmin-height: 235px;\n\tmax-height: 235px;\n\tmin-width: 930px;\n\tmax-width: 930px;\n} newpart=#textEdit {\n\tmin-height: 290px;\n\tmax-height: 290px;\n\tmin-width: 575px;\n\tmax-width: 575px;\n}\n\n newpart=#textEdit[qApp_deviceIsPhoenix="true"] {\n\tmin-height: 371px;\n\tmax-height: 371px;\n\tmin-width: 680px;\n\tmax-width: 680px;\n}\n\n newpart=#textEdit[qApp_deviceIsDragon="true"] {\n\tmin-height: 533px;\n\tmax-height:533px;\n\tmin-width: 930px;\n\tmax-width: 930px;\n} combineparts </patch> |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Which Ebook reader is easiest on the eyes? i.e doesn't strain your eyes when reading | Berabouman | Which one should I buy? | 2 | 02-08-2013 09:07 AM |
Glo Is the screen of my Glo bad or is it my eyes? | Polly7 | Kobo Reader | 5 | 01-29-2013 03:56 AM |
help with some modifications | moller | Kindle Developer's Corner | 3 | 10-12-2012 02:31 PM |
Eyes of Silver, Eyes of Gold, historical romance | ellenoc | Self-Promotions by Authors and Publishers | 18 | 08-22-2011 02:34 PM |
iLiad Registry modifications | Martijn | iRex Developer's Corner | 7 | 03-27-2008 05:37 PM |