Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 02-22-2023, 08:20 PM   #1
twowheels
Wizard
twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.
 
twowheels's Avatar
 
Posts: 1,853
Karma: 13432974
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro, Boox Note Max
Reducing corner tap zones

After multiple failed attempts to look up words near the corner of the screen I want to reduce the size of the corner gesture tap zones, and would like to confirm my understanding prior to messing with the advanced options.

It seems that the DTAP_ZONE_[TOP/BOTTOM]_[LEFT/RIGHT] structures are the ones that I want to edit, and it also seems that the x,y,w,h variables are what I want to change, with the values being a fractional ratio of the width, so to make them half the size I’d change 1/8 to 1/16, or more specifically:

Code:
DTAP_ZONE_BOTTOM_RIGHT = { x = 7/8, y = 7/8, w = 1/8, h = 1/8}
…becomes…

Code:
DTAP_ZONE_BOTTOM_RIGHT = { x = 15/16, y = 15/16, w = 1/16, h = 1/16}
…and, looking at how they’re used, it looks like I could also use floating point percentages, such as:

Code:
DTAP_ZONE_BOTTOM_RIGHT = { x = 0.9, y = 0.9, w = 0.1, h = 0.1}
Am I reading the code correctly?
twowheels is offline   Reply With Quote
Old 02-22-2023, 10:35 PM   #2
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,500
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
I think this is correct.

If you leave this as it is, you will also have a dead zone between 7/8 and 15/16 in each direction. Don’t know if you are OK with that. If not, you should also “stretch” the bottom/top tap zones.

In KOReader’s User Guide, page seven you can find a tapzone map. Might get handy at times like this: http://koreader.rocks/koreader-user-guide.pdf
mergen3107 is offline   Reply With Quote
Old 02-22-2023, 10:58 PM   #3
twowheels
Wizard
twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.
 
twowheels's Avatar
 
Posts: 1,853
Karma: 13432974
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro, Boox Note Max
Quote:
Originally Posted by mergen3107 View Post
If you leave this as it is, you will also have a dead zone between 7/8 and 15/16 in each direction. Don’t know if you are OK with that. If not, you should also “stretch” the bottom/top tap zones.
I’m not following what you meant by this? What dead zone?

I did mean to edit all four corners, just used the one more complex corner for my example.
twowheels is offline   Reply With Quote
Old 02-22-2023, 10:59 PM   #4
twowheels
Wizard
twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.
 
twowheels's Avatar
 
Posts: 1,853
Karma: 13432974
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro, Boox Note Max
Did you mean if I only edit h and w, but not x and y? To leave a safe buffer?
twowheels is offline   Reply With Quote
Old 02-23-2023, 12:14 AM   #5
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,500
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
No, I mean if you only shrink corners and do not resize bottom/top tap zone parameters, then there will be zones around corners that are not assigned to neither corners nor bottom/top tap zones. Check if you are OK with that (for text selection that might be good actually, but I haven’t tested such config yet)
mergen3107 is offline   Reply With Quote
Old 02-23-2023, 07:45 AM   #6
twowheels
Wizard
twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.
 
twowheels's Avatar
 
Posts: 1,853
Karma: 13432974
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro, Boox Note Max
Ah, OK -- I get it now. I think I'd be OK with that. I think I'll experiment a bit on a Linux build where it's easier and faster to restart over and over before committing to doing it on my Kobo.
twowheels is offline   Reply With Quote
Old 02-23-2023, 07:46 PM   #7
embryo
Fanatic
embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.
 
embryo's Avatar
 
Posts: 523
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
What I usually do about the problem of corner selections is to assign a gesture to toggle the corner shortcuts on/off.
embryo is offline   Reply With Quote
Old 02-23-2023, 08:34 PM   #8
twowheels
Wizard
twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.
 
twowheels's Avatar
 
Posts: 1,853
Karma: 13432974
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro, Boox Note Max
That’s an interesting, and possibly easier, solution.
twowheels is offline   Reply With Quote
Old 03-11-2023, 07:29 PM   #9
mbrisco
(gtfo/freak)
mbrisco ought to be getting tired of karma fortunes by now.mbrisco ought to be getting tired of karma fortunes by now.mbrisco ought to be getting tired of karma fortunes by now.mbrisco ought to be getting tired of karma fortunes by now.mbrisco ought to be getting tired of karma fortunes by now.mbrisco ought to be getting tired of karma fortunes by now.mbrisco ought to be getting tired of karma fortunes by now.mbrisco ought to be getting tired of karma fortunes by now.mbrisco ought to be getting tired of karma fortunes by now.mbrisco ought to be getting tired of karma fortunes by now.mbrisco ought to be getting tired of karma fortunes by now.
 
Posts: 115
Karma: 2288752
Join Date: Nov 2019
Device: Likebook Alita
These are my tap zone settings to shrink the corner zones in half (or more like, a quarter of the area). Now I no longe have trouble looking up words or highlighting near corners.

* DTAP_ZONE_BOTTOM_LEFT =
* h = 0.075
* w = 0.075
* x = 0
* y = 0.925
* DTAP_ZONE_BOTTOM_RIGHT =
* h = 0.075
* w = 0.075
* x = 0.925
* y = 0.925
* DTAP_ZONE_TOP_LEFT =
* h = 0.075
* w = 0.075
* x = 0
* y = 0
* DTAP_ZONE_TOP_RIGHT =
* h = 0.075
* w = 0.075
* x = 0.925
* y = 0
mbrisco is offline   Reply With Quote
Old 03-13-2023, 04:26 PM   #10
twowheels
Wizard
twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.
 
twowheels's Avatar
 
Posts: 1,853
Karma: 13432974
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro, Boox Note Max
Thanks. I got busy and didn’t experiment with them since I posted. I might just try your numbers.
twowheels is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse tap zones in web reader NeilN1 Server 5 05-24-2021 09:56 AM
Overlapping tap zones 3m2vinatohr04 KOReader 6 04-18-2021 02:45 PM
Fbreader ios vs android tap zones peaceridge Reading and Management 4 11-29-2020 12:43 PM
Two separate 'tap forward' zones? Pavati KOReader 10 07-19-2020 06:55 AM
Changing Tap Zones MSch Kindle Developer's Corner 6 03-03-2013 05:14 PM


All times are GMT -4. The time now is 11:12 PM.


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