Second attempt at fixing findPageByRectangles for vertical writing mode
(works but confused about the requirement of RTL checks)