I have a text field in my layout that for some records contains English text (which is Left-to-Right) and for some other records contains Farsi text (which is Right-to-Left). The problem is I can set the alignment of text field to left or right, so I have bad alignment for the other language. How can I solve this issue? Is there any script which can recognize type of language, so in this way I can change the alignment of the text?
Thanks in advance,