Direct style modifications for text, fixed attribute name from direction to 'dir'