scanner: use patterns which also check text size