I've got a problem with writing Persian in Ubuntu, the problem is when I try to write mixed Persian and English text files in Gedit or VIM the lines starting with Persian characters start from right direction of the screen and it's hard to follow lines like this .
How can I change Ubuntu so it just starts lines from left?
here is a picture of MS Notepad I want them to be aligned like this
Though this is outdated post, but I share the answer so the maybe it be useful for some.
What GEdit does is the right thing. you are writing in Persian which is a Right-to_Left script, so it should be displayed in the same way: right to left.
Adding LTM (Left-to-Right Marker) is not the solution since it Changes the direction of the line into Left-to-Right. If so, the line will be messed up if you add Latin characters in the middle of Persian text.
You don't need to be worried about the content. Since it is simply a text file, the presentation is the matter of software rendering preferences. You text is still a plain text without any specific direction.