rightToLeft function to test for RTL layout