Determines the writing system's <a href="http://en.wikipedia.org/wiki/Writing_system#Directionality">directionality</a> based on characters tests.
Determines the writing system's directionality based on characters tests.
$ component install component/directionality
var dir = ;; // 'right'; // 'left'
The decision is made based on the first character of the input string.
'rtl' for right-to-left text, and
Access the regular expression of ltr charecters.
Access the regular expression of rtl charecters.