refs #316 special handling for input dir=rtl