Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-17-2014, 02:05 PM   #46
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 1,841
Karma: 5698904
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura HD, Glo, Nexus 7, iPad 3
Quote:
Originally Posted by forster01 View Post
what are the main differences between metazoa's patch and one created by this forum developers?
The major difference is Metazoa's version supports adding a Cyrillic keyboard while GeoffR added 15 levels of line spacing, synopsis size, etc. You can add the features from either by merging the entries in the kpg.conf file and running the patch generator against that file.

Either one will give you the smaller footer, font size selection and line spacing selection which seem to be the most used patches.

Regards,
David
DNSB is offline   Reply With Quote
Old 04-18-2014, 04:46 AM   #47
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 1,351
Karma: 2618217
Join Date: Nov 2012
Location: New Zealand
Device: Kobo Glo
Patch to fix non-proportional epub line spacing

This is a patch for firmware 3.2.0 to fix a longstanding problem with the way the epub reader sets the line spacing. See this thread for a test epub and screenshots that demonstrate the problem.

Spoiler:
Code:
<Patch>
patch_name = `Unitless ePub line height`
patch_enable = `yes`
replace_bytes = 1181F3C, 65 6D, 20 20
</Patch>

Last edited by GeoffR; 04-18-2014 at 03:56 PM. Reason: fixed patch to work with kpg.exe
GeoffR is offline   Reply With Quote
 
Enthusiast
Old 04-18-2014, 03:22 PM   #48
SHunter101
Enthusiast
SHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipedia
 
Posts: 33
Karma: 47088
Join Date: May 2013
Device: Kobo Glo, AuraHD, PRS_950, JBC2
Quote:
Originally Posted by GeoffR View Post
This is a patch for firmware 3.2.0 to fix a longstanding problem with the way the epub reader sets the line spacing. See this thread for a test epub and screenshots that demonstrate the problem.

Spoiler:
Code:
<Patch>
patch_name = `Unitless ePub line height`
patch_enable = `yes`
# Note that the replacement string contains exactly two spaces.
replace_string = 1181F3C, `em`, `  `
</Patch>
Hi GeoffR:

Thank you, but I have a few issues with the above patch. When I load it on my Aura HD, I loose control over line spacing, justification etc. It uses only the defaults from whatever ebook I am reading. I have attached my kpg.conf file, but I think all is fine. I hope we can get this working, I use a low line height of around 80 to 85 and this patch will fix the issues with the titles.


Tried it on my Kobo Glo and them same results as above. Control over the line spacing slider and justification are lost. Font size, and margin sliders work though.

Thanks
SHunter
Attached Files
File Type: zip kpg.zip (2.0 KB, 20 views)

Last edited by SHunter101; 04-18-2014 at 03:57 PM. Reason: more content.
SHunter101 is offline   Reply With Quote
Old 04-18-2014, 03:59 PM   #49
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 1,351
Karma: 2618217
Join Date: Nov 2012
Location: New Zealand
Device: Kobo Glo
Quote:
Originally Posted by SHunter101 View Post
Thank you, but I have a few issues with the above patch. When I load it on my Aura HD, I loose control over line spacing, justification etc. It uses only the defaults from whatever ebook I am reading.
Sorry I didn't test it with kpg.exe, and again kpg.exe's replace_string didn't work the way I expected. I've edited post #47 to fix the patch, it should work with both kpg.exe and patch32lsb now, please try it again.

Thanks!
GeoffR is offline   Reply With Quote
Old 04-18-2014, 04:38 PM   #50
SHunter101
Enthusiast
SHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipediaSHunter101 knows more than wikipedia
 
Posts: 33
Karma: 47088
Join Date: May 2013
Device: Kobo Glo, AuraHD, PRS_950, JBC2
Quote:
Originally Posted by GeoffR View Post
Sorry I didn't test it with kpg.exe, and again kpg.exe's replace_string didn't work the way I expected. I've edited post #47 to fix the patch, it should work with both kpg.exe and patch32lsb now, please try it again.

Thanks!
Thank you!! Works great on both units!! Your work is really appreciated.

Best,
Shunter
SHunter101 is offline   Reply With Quote
Old 05-03-2014, 08:08 PM   #51
Jack Melvin
Junior Member
Jack Melvin began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2014
Device: Kobo Aura 6 M:N514
Hello everyone, first I want to thank you developers for sharing your work and making the world a better place.

Second, a question; I recently purchased a Kobo Aura 6" model# N514 firmware#3.2.0.

--Will this patch work with the Aura 6" model? It seems like it will as long as the firmware is right but I wanted to check before go off and brick my device.

My main reason for using this is to be able to adjust the margins on the screen. It is pretty awful when I pull up a PDF and there is half an inch of unused space at the bottom of the page.
I have already edited the said PDF to have virtually 0 margins in the file but there remains a ton of space when the aura is displaying it.
Jack Melvin is offline   Reply With Quote
Old 05-04-2014, 07:02 AM   #52
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 1,188
Karma: 317474
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by Jack Melvin View Post
Second, a question; I recently purchased a Kobo Aura 6" model# N514 firmware#3.2.0.

--Will this patch work with the Aura 6" model? It seems like it will as long as the firmware is right but I wanted to check before go off and brick my device.
Generally speaking, this is correct. However, it already happenend once or twice that Kobo did changes to the firmware without changing the version number. So it can happen that the version on your device is actually different from the version you use for patching. This can (but does not necessary) have bad effects. I am not aware that 3.2.0 has be changed at any time. To be on the save side you could re-install it, before patching. But then, why not upgrading to 3.3.0? And the worst thing that can happen with applying a wrong patch is that you have to factory reset the device.

Quote:
Originally Posted by Jack Melvin View Post
My main reason for using this is to be able to adjust the margins on the screen. It is pretty awful when I pull up a PDF and there is half an inch of unused space at the bottom of the page.
I have already edited the said PDF to have virtually 0 margins in the file but there remains a ton of space when the aura is displaying it.
I don't use the patches myself and I try to avoid reading pdfs with nickel, so I don't know for sure, but I think the margins patch does not effect pdfs.

Last edited by tshering; 05-04-2014 at 07:06 AM.
tshering is offline   Reply With Quote
Old 05-04-2014, 02:13 PM   #53
Jack Melvin
Junior Member
Jack Melvin began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2014
Device: Kobo Aura 6 M:N514
The OTA update put me at f/w 3.2.0.
I assumed that this meant 3.2.0 was the most recent f/w.

If there isn't a patch for the PDF margins then I guess I'm out of luck for now. I don't have any issues with the ebook margins.
Jack Melvin is offline   Reply With Quote
Old 05-24-2014, 06:47 PM   #54
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 1,351
Karma: 2618217
Join Date: Nov 2012
Location: New Zealand
Device: Kobo Glo
Custom page refresh options patch

This patch allows the Reading Settings "Refresh the page every:" menu options to be changed, so you can set the screen to refresh less frequently than once every 6 pages without the need to edit the device's .conf file.

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.

There is also a second alternative which gives the menu options 1,2,4,8,16,32,64.

This patch hasn't been tested at all with this firmware version, so treat with caution and let me know if you discover any problems.

Firmware 3.2.0:
Spoiler:
Code:
<Patch>
patch_name = `Custom page refresh options`
patch_enable = `yes`
# cmp r5, #7; bne.w; --> cmp r5, #6; bls.w;
replace_bytes = 9E0A96, 07 2D 7F F4 7E AF, 06 2D 7F F6 7E AF
#
# Values for replacement: (Alternative 1, arithmetic sequence e.g. 1,2,3,...,12)
# Base (use this value for the first menu option):
replace_int = 9E0988, 1, 1
# Increment, Alternative 1 (add this value to get each successive menu option):
replace_int = 9E0A94, 1, 1
# Maxmium (stop adding options when this value is exceeded):
replace_int = 9E0A96, 6, 12
#
# Values for replacement: (Alternative 2, geometric sequence 1,2,4,8,16,32,64)
# Base (use this value for the first menu option):
#replace_int = 9E0988, 1, 1
# Double to get each successive menu option:
#replace_bytes = 9E0A94, 01 35, 6D 00
# Maxmium (stop adding options when this value is exceeded):
#replace_int = 9E0A96, 6, 64
</Patch>

Last edited by GeoffR; 05-24-2014 at 07:06 PM. Reason: comments in patch
GeoffR is offline   Reply With Quote
Old 05-25-2014, 05:43 AM   #55
erikssenmar867
Enthusiast
erikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of light
 
Posts: 30
Karma: 12028
Join Date: Nov 2013
Device: Kobo Glo
Thank you very much!

EDIT: i have tested the refresh option patch with my Glo and Aura HD, and it works perfectly!

Last edited by erikssenmar867; 05-25-2014 at 06:33 AM.
erikssenmar867 is offline   Reply With Quote
Old 06-05-2014, 12:33 AM   #56
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 1,351
Karma: 2618217
Join Date: Nov 2012
Location: New Zealand
Device: Kobo Glo
Custom kepub default margins patch

Here is the `Custom kepub default margins` patch for firmware 3.2.0. It should set the base left/right margin for kepubs, i.e. the margin that remains when all margins have been removed from the book and the adjustment slider is at the far left. It won't affect the top/bottom margins. (In firmware 3.3.0 and later it affects the top/bottom margins in full-screen reading mode though.)

I haven't tested this patch with this firmware version, so let me know if there are problems.

firmware 3.2.0:
Spoiler:
Code:
<Patch>
patch_name = `Custom kepub default margins`
patch_enable = `yes`
# Device = Glo/Aura, Type = pocket article or non-Japanese kepub
replace_int = 6FAF9A, 25, 5
# Device = Glo/Aura, Type = Japanese kepub
replace_int = 6FAF9C, 45, 5
# Device = Other, Type = Any
replace_int = 6FB004, 20, 5
</Patch>
GeoffR is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Instructions for patching firmware 3.1.1 GeoffR Kobo Developer's Corner 64 04-18-2014 01:23 PM
Firmware Update Instructions and the latest Firmware Versions mitchwah Ectaco jetBook 110 08-02-2013 03:33 PM
Touch Patching nickel to leave the wifi active schlecky Kobo Developer's Corner 3 08-01-2013 10:13 PM


All times are GMT -4. The time now is 01:02 AM.


MobileRead.com is a privately owned, operated and funded community.