\if@bidi@xetexrevision and friend