Added support for language script and direction