Thread: JBPatch
View Single Post
Old 09-12-2013, 04:51 PM   #1513
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Experimental: modify tap zones

Here's a new experimental patch, inspired by this thread.

It affects the reader application (=the "actual" book reader) only, and provides two functionalities which can be used separately, but also in combination:
  1. You can define the percentage of the screen width that, when tapped, will result in a page-back event, instead of a page-forward event. The default Kindle behavior is that if you tap in the left 15% of the screen width, it will go back, anywhere else will go forward. You can modify this, for instance to split the screen in half (50%): left half -> page back, right half -> page forward.
  2. You can also reverse the tap actions - like, tapping on the right will go back, and tapping on the left will go forward.
  3. Both of these can be combined at will, so you can use the combination that suits you best.

While the original purpose was to make life a bit easier for left-handed folks, there are probably other scenarios where this can be useful.

Notes:
  • Requires JBPatch >= 4.0.0
  • For the time being, this patch only works on Paperwhite FW 5.3.4 - don't bother to install it on other firmwares. Support for FW 5.1.2 will most probably be added later on.
  • This patch only affects the reader application. It does not affect the home screen, the periodicals, or anything else. This is on purpose.
  • This should be working with KF7 (="plain mobi") and KF8 (=.azw3) files, at least according to my tests. However, I can only assume that it works correctly with RTL documents - I couldn't test it, because I don't have any. If somebody could provide a link to a freely-available .azw3 document with RTL writing (arabic, hebrew, ...) to test with, that'd be awesome.
  • Just a reminder: after settings are changed, they must be saved, and the framework must be restarted before the changes take effect.

Installation is as usual. Please report here any oddities that you may find. Thanks!

PS: Source code is here. The actual patching logic is merely 20 lines of code, starting at line 184.
Attached Files
File Type: jar com.mobileread.ixtab.patch.tapzones.jar (5.9 KB, 388 views)

Last edited by ixtab; 09-12-2013 at 05:42 PM.
ixtab is offline   Reply With Quote