Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-30-2014, 05:59 AM   #136
zufre
Connoisseur
zufre has a complete set of Star Wars action figures.zufre has a complete set of Star Wars action figures.zufre has a complete set of Star Wars action figures.zufre has a complete set of Star Wars action figures.
 
Posts: 56
Karma: 334
Join Date: Jan 2014
Device: Kobo Glo/Nook ST
Would it be possible to add the modifications for bad eyes to the patches?
https://www.mobileread.com/forums/sho...nary+font+size
The dictionary fonts are too tiny...
Regards!
zufre is offline   Reply With Quote
Old 05-30-2014, 08:11 PM   #137
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: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by zufre View Post
Would it be possible to add the modifications for bad eyes to the patches?
https://www.mobileread.com/forums/sho...nary+font+size
The dictionary fonts are too tiny...
Regards!
It should be possible to apply both sets of patches: apply the bad eyes ones first, zip the resulting KoboRoot.tgz into kobo-update-3.3.0.zip (or whatever the firmware version is), and use that zip for applying these patches.

It should work the other way around too.

Edit: Sorry, I didn't think about the bad eyes patches not using librmsdk.so.1.0.0, so it is not that simple.

Last edited by GeoffR; 05-30-2014 at 08:46 PM. Reason: Not that simple.
GeoffR is offline   Reply With Quote
Advert
Old 05-30-2014, 08:23 PM   #138
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: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
I have the patches for firmware 3.4.1, but I haven't tested any of them as I haven't installed this firmware version on my Glo.

If anyone wants to test them, send me a PM with your email address. But be prepared for the possibility that your device could do a spontaneous factory reset. (This happened to me recently when testing a faulty patch.)

The code modified by the line-spacing patches has changed quite a bit in 3.4.1, that is the main one I am concerned about.
GeoffR is offline   Reply With Quote
Old 05-31-2014, 08:41 AM   #139
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: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by zufre View Post
Would it be possible to add the modifications for bad eyes to the patches?
https://www.mobileread.com/forums/sho...nary+font+size
The dictionary fonts are too tiny...
Regards!
The proper solution would be to convert the Modification for bad eyes patches to the Metazoa format and run it with GeoffR's package. But I am too busy to do this now. For the time being you can try this work around (for Windows only). Be aware, that I did not check if it really works, and try it on your own risk (Actually, there is not much risk, I guess. The only thing that can happen is that it does not work).
I provide two files conf_librmsdk.txt, and nickel.patch in the uploaded archive.
  • copy librmsdk.so.1.0.0 (extract it form kobo-update-3.3.0.zip) and conf_librmsdk.txt to KBPatcher07\3.3.0_source\
  • double click on KBPatcher07\3.3.0.bat
  • if there are any kobo-update-3.3.0.zip, KoboRoot.tgz, KoboRoot.tar, librmsdk.so.1.0.0, libnickel.so.1.0.0 from earlier patching processes in patch_kobo_33\3.3.0_source\, delete them
  • find KoboRoot.tgz in KBPatcher07\3.3.0_target\ and copy it to patch_kobo_33\3.3.0_source\
  • copy nickel.patch to patch_kobo_33\3.3.0_source\
  • double click on patch_kobo_33\3.3.0.bat
Note: If both patching processes address the same data, the second one will fail. The only overlapping patches that I am aware of are the ones related to the footer and header. So you have to disable them in one patch at least.

The whole process is less complicated than what the description suggests.
Attached Files
File Type: zip bad_eyes_addition.zip (813 Bytes, 186 views)

Last edited by tshering; 05-31-2014 at 11:29 AM.
tshering is offline   Reply With Quote
Old 05-31-2014, 10:24 PM   #140
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: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Custom kepub reader default margins patch

This patch sets the kepub reader default margins, i.e. the margins that are used when the adjustment slider is at the far left position. I haven't tested every permutation, but it seems to affect the following margins:

- kepub minimum left/right margins in normal reading mode
- kepub minimum left/right and top/bottom margins in full-screen reading mode

The example values in the patch make the minimum kepub left/right margins similar to the default epub margins. If you set the patch values to zero and remove any margins from the book itself, then the text will go to the very edge (and in full-screen reading mode, to the very top/bottom) of the screen.

firmware 3.3.0:
Spoiler:
Code:
<Patch>
patch_name = `Customise kepub reader default margins`
patch_enable = `yes`
# Device = Kraken/Phoenix, Type = pocket article or non-Japanese kepub
replace_int = 6142F4, 25, 10
# Device = Kraken/Phoenix, Type = Japanese kepub
replace_int = 6142F6, 45, 25
# Device = Other, Type = Any
replace_int = 614304, 20, 10
</Patch>

firmware 3.3.1:
Spoiler:
Code:
<Patch>
patch_name = `Customise kepub reader default margins`
patch_enable = `yes`
# Device = Kraken/Phoenix, Type = pocket article or non-Japanese kepub
replace_int = 614D8C, 25, 10
# Device = Kraken/Phoenix, Type = Japanese kepub
replace_int = 614D8E, 45, 25
# Device = Other, Type = Any
replace_int = 614D9C, 20, 10
</Patch>

firmware 3.4.1:
Spoiler:
Code:
<Patch>
patch_name = `Customise kepub reader default margins`
patch_enable = `yes`
# Device = Phoenix, Type = pocket article or non-Japanese kepub
replace_int = 619DB6, 25, 10
# Device = Phoenix, Type = Japanese kepub
replace_int = 619DB8, 45, 25
# Device = Other, Type = Any
replace_int = 619DBC, 20, 10
</Patch>


Edit: I'd be interested to hear how this patch works on devices other than the Glo: In particular, does it make the Aura's font cut-off problem worse?

Last edited by GeoffR; 06-01-2014 at 05:26 AM. Reason: How does it work on Aura and other devices?
GeoffR is offline   Reply With Quote
Advert
Old 06-01-2014, 07:15 AM   #141
violent23
Connoisseur
violent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enough
 
violent23's Avatar
 
Posts: 83
Karma: 674
Join Date: Oct 2010
Device: Kindle Oasis 2017, Kindle Voyage, Kindle Paperwhite, Kindle Keyboard
Quote:
Originally Posted by GeoffR View Post
Edit: I'd be interested to hear how this patch works on devices other than the Glo: In particular, does it make the Aura's font cut-off problem worse?
I have an Aura (3.3.0) and am willing to test this. Should I disable the other "Custom left & right margins" from the libnickel.so to implement this one?

*edit - Okay so I tested with the "Custom left & right margins" off and this seems to work a treat. No more cut off text with "F" or with Italics. On top of that the margin goes right to the edge of the screen on the lowest setting. Great job!

Can I turn back on the "Custom left & right margins" without effecting this patch or should I leave it off?

Last edited by violent23; 06-01-2014 at 07:36 AM.
violent23 is offline   Reply With Quote
Old 06-01-2014, 08:34 PM   #142
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: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by violent23 View Post
I have an Aura (3.3.0) and am willing to test this. Should I disable the other "Custom left & right margins" from the libnickel.so to implement this one?

*edit - Okay so I tested with the "Custom left & right margins" off and this seems to work a treat. No more cut off text with "F" or with Italics. On top of that the margin goes right to the edge of the screen on the lowest setting. Great job!

Can I turn back on the "Custom left & right margins" without effecting this patch or should I leave it off?
Thanks for testing on the Aura. It is fine to use both margins patches together.
GeoffR is offline   Reply With Quote
Old 06-02-2014, 02:50 AM   #143
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: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Patches for 3.4.1

I've included the patches for firmware 3.4.1 in patch_kobo_34.zip attached to post #1.

For 3.4.1 I've reworked the reading footer patch to make it easier to customise, and removed the example for disabling the footer altogether as this is superceded by the new full-screen reading mode.
GeoffR is offline   Reply With Quote
Old 06-02-2014, 05:12 AM   #144
Loamaro
Member
Loamaro began at the beginning.
 
Loamaro's Avatar
 
Posts: 14
Karma: 10
Join Date: Jan 2014
Location: Russia, Yekaterinburg
Device: Kobo Glo
I found here a new patch `Customise PinchGestureRecognizer`? What is its purpose? This patch is compatible with Kobo Glo?
Loamaro is offline   Reply With Quote
Old 06-02-2014, 06:11 AM   #145
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: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by Loamaro View Post
I found here a new patch `Customise PinchGestureRecognizer`? What is its purpose? This patch is compatible with Kobo Glo?
This patch won't have any effect unless you have an Aura, or have installed the multitouch kernel image from this thread. It lets you change some of the parameters for the pinch-to-zoom gesture. I don't know what the parameters do, but I guess from the name that TriggerTolerance might be the amount of movement needed to trigger the zoom function. If anyone tries it out, let us know what you find.
GeoffR is offline   Reply With Quote
Old 06-02-2014, 07:28 AM   #146
violent23
Connoisseur
violent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enough
 
violent23's Avatar
 
Posts: 83
Karma: 674
Join Date: Oct 2010
Device: Kindle Oasis 2017, Kindle Voyage, Kindle Paperwhite, Kindle Keyboard
Quote:
Originally Posted by GeoffR View Post
I've included the patches for firmware 3.4.1 in patch_kobo_34.zip attached to post #1.

For 3.4.1 I've reworked the reading footer patch to make it easier to customise, and removed the example for disabling the footer altogether as this is superceded by the new full-screen reading mode.
So can 3.4.1 be loaded onto the Aura to take advantage of this new full-screen reading mode? How does one enable fullscreen reading mode once on 3.4.1?

Last edited by violent23; 06-02-2014 at 07:46 AM.
violent23 is offline   Reply With Quote
Old 06-02-2014, 07:48 AM   #147
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: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by violent23 View Post
So can 3.4.1 be loaded onto the Aura to take advantage of this new full-screen reading mode?
The full-screen mode was new in firmware 3.3.0. See this thread for how to activate it.

It is an experimental feature and there are still a few glitches: the font cut-off problem occurs when reading kepubs in full-screen mode, but reading epubs seems to be fine. The kepub reader adjusts the top/bottom margins automatically in full-screen mode, but you can get the same feature for epubs with the `ePub adjust top/bottom margins` patch.
GeoffR is offline   Reply With Quote
Old 06-02-2014, 08:11 AM   #148
violent23
Connoisseur
violent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enough
 
violent23's Avatar
 
Posts: 83
Karma: 674
Join Date: Oct 2010
Device: Kindle Oasis 2017, Kindle Voyage, Kindle Paperwhite, Kindle Keyboard
Quote:
Originally Posted by GeoffR View Post
The full-screen mode was new in firmware 3.3.0. See this thread for how to activate it.

It is an experimental feature and there are still a few glitches: the font cut-off problem occurs when reading kepubs in full-screen mode, but reading epubs seems to be fine. The kepub reader adjusts the top/bottom margins automatically in full-screen mode, but you can get the same feature for epubs with the `ePub adjust top/bottom margins` patch.

Ah okay, thanks for the tip. I did go to the link but all it says is to "Add the following lines to the config file", what config file are they talking about?

Also I update to 3.4.1 and was looking to install your patches but I can not get the 3.4.1.sh to work as there is no 3.4.1_source folder created resulting in no KoboRoot.tgz to use. I am still able to create one for 3.3.0 so I don't think it is an issue on my end.

Last edited by violent23; 06-02-2014 at 08:36 AM.
violent23 is offline   Reply With Quote
Old 06-02-2014, 08:37 AM   #149
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: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by violent23 View Post
Ah okay, thanks for the tip. I did go to the link but all it says is to "Add the following lines to the config file", what config file are they talking about?
The device's config file ".kobo/Kobo/Kobo eReader.conf"

Quote:
Also I update to 3.4.1 and was looking to install your patches but I can not get the 3.4.1.sh to work as there is no 3.4.2_source folder created resulting in no KoboRoot.tgz to use. I am still able to create one for 3.3.0 so I don't think it is an issue on my end.
3.4.1 has only been released for the Mini, it should work on other mark 4 hardware -- Glo, Aura HD, newer Touch models -- but I don't know what it would do on other devices, I'd be wary about using it on the Aura.
GeoffR is offline   Reply With Quote
Old 06-02-2014, 10:35 AM   #150
scoky
Connoisseur
scoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy blue
 
Posts: 62
Karma: 13112
Join Date: Feb 2013
Device: Kindle Paperwhite; KOBO AURA HD
Quote:
Originally Posted by GeoffR View Post
This patch sets the kepub reader default margins, i.e. the margins that are used when the adjustment slider is at the far left position. I haven't tested every permutation, but it seems to affect the following margins:

- kepub minimum left/right margins in normal reading mode
- kepub minimum left/right and top/bottom margins in full-screen reading mode

The example values in the patch make the minimum kepub left/right margins similar to the default epub margins. If you set the patch values to zero and remove any margins from the book itself, then the text will go to the very edge (and in full-screen reading mode, to the very top/bottom) of the screen.

firmware 3.3.0:
Spoiler:
Code:
<Patch>
patch_name = `Customise kepub reader default margins`
patch_enable = `yes`
# Device = Kraken/Phoenix, Type = pocket article or non-Japanese kepub
replace_int = 6142F4, 25, 10
# Device = Kraken/Phoenix, Type = Japanese kepub
replace_int = 6142F6, 45, 25
# Device = Other, Type = Any
replace_int = 614304, 20, 10
</Patch>

firmware 3.3.1:
Spoiler:
Code:
<Patch>
patch_name = `Customise kepub reader default margins`
patch_enable = `yes`
# Device = Kraken/Phoenix, Type = pocket article or non-Japanese kepub
replace_int = 614D8C, 25, 10
# Device = Kraken/Phoenix, Type = Japanese kepub
replace_int = 614D8E, 45, 25
# Device = Other, Type = Any
replace_int = 614D9C, 20, 10
</Patch>

firmware 3.4.1:
Spoiler:
Code:
<Patch>
patch_name = `Customise kepub reader default margins`
patch_enable = `yes`
# Device = Phoenix, Type = pocket article or non-Japanese kepub
replace_int = 619DB6, 25, 10
# Device = Phoenix, Type = Japanese kepub
replace_int = 619DB8, 45, 25
# Device = Other, Type = Any
replace_int = 619DBC, 20, 10
</Patch>


Edit: I'd be interested to hear how this patch works on devices other than the Glo: In particular, does it make the Aura's font cut-off problem worse?
So in normal reading mode, can the top and bottom margin of kepubs be changed?
In full screen mode, .kepub.epub has some bugs like font cut-off.
scoky is offline   Reply With Quote
Reply


Forum Jump

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


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


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