05-14-2014, 05:42 PM | #106 | |
Grand Sorcerer
Posts: 6,196
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Code:
if first 3 bytes of patch file are '\xef\xbb\xbf': remove first 3 bytes of patch file before processing Last edited by jackie_w; 05-14-2014 at 05:45 PM. Reason: bytes not chars |
|
05-14-2014, 05:51 PM | #107 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
And maybe reject files that start with \xfe\xff or \xff\xfe.
|
Advert | |
|
05-14-2014, 07:38 PM | #108 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
OK so that wasn't too hard. I've updated patch_kobo_330.zip in post #1 with patch32lsb v0.7, which discards any utf-8 byte order mark added to the patch file by editors such as Notepad/Wordpad, and rejects the file if it is utf-16/32.
I've included new Windows and Linux executables, the Mac executable still needs recompiling. (chrisdd can you help? :-) |
05-17-2014, 08:20 AM | #109 | |
Guru
Posts: 923
Karma: 2140364
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, Marvin 3
|
Quote:
No compiler warnings this time :-) |
|
05-17-2014, 04:53 PM | #110 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
|
Advert | |
|
05-17-2014, 11:11 PM | #111 |
Bibliophagist
Posts: 35,219
Karma: 145277352
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Firmware 3.3.1 changes
I had a quick look at the 3.3.1 firmware and found a few changes that I could quickly implement.
The kpg.conf.txt file attached to this message has those changes made for metazoa's kpg.exe patcher. Rename to kpg.conf before using. Changes implemented were: Unitless ePub line height Custom reading footer style Custom Font Sizes Custom Right and left margins Brightness Fine Control All the other patches should be left as patch_enable = `no`. Regards, David |
05-17-2014, 11:25 PM | #112 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
I've updated the instructions in post #1 for firmware version 3.3.1. The updated patch_kobo_33.zip contains patches for both versions 3.3.0 and 3.3.1, just use the appropriate batch/script file and source/target subdirectories for whichever version your device is running.
|
05-22-2014, 06:40 PM | #113 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Custom page refresh options patch
I've added a new patch to post #2 which allows the Reading Settings "Refresh the page every:" menu options to be changed. This should avoid the need to edit the device's configuration file to set values higher than 6.
The patch has three replacement values: Base, Increment, and Maximum. Base is the value of the first menu option, Increment is the value that is added to get each successive menu option, and the menu will end when the value of Maximum is exceeded. For example: Base=2, Increment=2, Maximum=20 will give a menu that allows you to select any of the following values: 2,4,6,8,10,12,14,16,18,20. The values in the original firmware are Base=1, Increment=1, Maximum=6 which gives the menu options 1,2,3,4,5,6. This patch seems to work okay on my Glo, but it hasn't had a lot of testing yet, so treat with caution and let me know if you discover any problems. |
05-24-2014, 09:53 AM | #114 |
Connoisseur
Posts: 58
Karma: 12028
Join Date: Nov 2013
Device: Kobo Aura H2O
|
Hi GeoffR! Could you create the refresh option patch also for fw 3.2.0? Thank u very much
|
05-26-2014, 11:29 AM | #115 |
Connoisseur
Posts: 83
Karma: 674
Join Date: Oct 2010
Device: Kindle Oasis 2017, Kindle Voyage, Kindle Paperwhite, Kindle Keyboard
|
Okay, I hope this is the appropriate place to post this. I have just recently purchased a Kobo Aura and have installed this patch. I have a question regarding the custom left right margins.
Code:
<Patch> patch_name = `Custom left & right margins` patch_enable = `yes` # Values for replace replace_int = FE673C, 02, 01 replace_int = FE6740, 04, 02 replace_int = FE6744, 06, 03 replace_int = FE6748, 08, 04 replace_int = FE674C, 10, 05 replace_int = FE6750, 12, 06 replace_int = FE6754, 14, 07 replace_int = FE6758, 16, 08 </Patch> I also have a second question regarding the "Custom reading footer style". When "Decrease footer example for Glo/Aura" is selected the fonts left behind when using the "Remove system fonts in Reader list" such as "Document Default" and "Gothic" place the footer half way below the screen, cutting off text. There is no problem with the footer when using custom fonts. What I was wondering is if there was a way to do the opposite of what the "Remove system fonts in Reader list" does and have only custom fonts show in the list while hiding all of the fonts such as "Document Default" that have the footer cut off problem. This I feel would result in a much cleaner system font menu that would only show fonts that work correctly with the "Decrease footer example for Glo/Aura". Last edited by violent23; 05-26-2014 at 11:33 AM. |
05-26-2014, 12:41 PM | #116 |
Grand Sorcerer
Posts: 12,141
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Code:
<Patch> patch_name = `Custom left & right margins` patch_enable = `yes` # Values for replace replace_int = FE673C, 02, 02 replace_int = FE6740, 04, 03 replace_int = FE6744, 06, 04 replace_int = FE6748, 08, 05 replace_int = FE674C, 10, 06 replace_int = FE6750, 12, 07 replace_int = FE6754, 14, 08 replace_int = FE6758, 16, 09 </Patch> So all I have done is shift the replacement values up by 1 |
05-26-2014, 01:02 PM | #117 | |
Connoisseur
Posts: 83
Karma: 674
Join Date: Oct 2010
Device: Kindle Oasis 2017, Kindle Voyage, Kindle Paperwhite, Kindle Keyboard
|
Quote:
Code:
<Patch> patch_name = `Custom left & right margins` patch_enable = `yes` # Values for replace replace_int = FE673C, 02, 03 replace_int = FE6740, 04, 04 replace_int = FE6744, 06, 05 replace_int = FE6748, 08, 06 replace_int = FE674C, 10, 07 replace_int = FE6750, 12, 08 replace_int = FE6754, 14, 09 replace_int = FE6758, 16, 10 </Patch> Do you have any more thoughts on how I can exclude the first margin size from the device? |
|
05-26-2014, 09:57 PM | #118 | ||
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Firmware 3.3.0: Code:
<Patch> patch_name = `Custom left & right margins` patch_enable = `yes` # Values for replace replace_int = FE6738, 00, 01 replace_int = FE673C, 02, 02 replace_int = FE6740, 04, 03 replace_int = FE6744, 06, 04 replace_int = FE6748, 08, 05 replace_int = FE674C, 10, 06 replace_int = FE6750, 12, 07 replace_int = FE6754, 14, 08 replace_int = FE6758, 16, 09 </Patch> Quote:
On my Glo the example footer is just high enough (40px) to avoid cutting off the footer text when Gothic font is used, so there must be somehing different about the Aura. Below is a version of the footer patch which makes editing the different values a bit easier, just make sure to keep the replacement strings the same length. Edit the replacement strings and change the "min-height: 40px;" and "max-height: 40px;" to a larger value. firmware 3.3.0: Spoiler:
Last edited by GeoffR; 05-26-2014 at 10:15 PM. Reason: simplify |
||
05-26-2014, 10:13 PM | #119 | |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
|
|
05-26-2014, 10:40 PM | #120 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Gothic seems to used if Document Default is selected though. Another font can be hard coded for the footer, but then there will be a mismatch with the header which will still be using Gothic if Document Default is selected, or something else if a font different from the hard coded font is selected.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Firmware Update Instructions and the latest Firmware Versions | mitchwah | Ectaco jetBook | 113 | 10-24-2023 09:02 PM |
Touch Patching nickel to leave the wifi active | schlecky | Kobo Developer's Corner | 4 | 01-23-2017 11:46 AM |
Instructions for patching firmware 3.2.0 | DNSB | Kobo Developer's Corner | 66 | 12-05-2014 07:28 AM |
Instructions for patching firmware 3.1.1 | GeoffR | Kobo Developer's Corner | 64 | 04-18-2014 01:23 PM |