I updated the attachment after trying it out in large print mode. Tweaked the thresholds to get something working in both modes (so far

).
That doesn't solve the issue of the touch protocol being potentially slightly different on different devices, but, hey, that was fun, at least

. And that *can* be overcome with a bit of effort (we do it in KOReader, after all).
EDIT: You can chuck stderr to the void if you just want the final result

.