Wrong display of Persian in editor

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
MahanGM
Posts: 6
Joined: Tue Oct 16, 2012 6:16 pm

Wrong display of Persian in editor

Post by MahanGM »

This is a problem that I've been facing it for a long time. Before 2014 version, it was just a minor problem with a reverse text selection, but now it's a big problem. Persian is a UTF language and right to left. This problem happens when I'm writing Persian strings in PHP files. When I write something like this:

Code: Select all

$var = "مقدار تست";
It'll show it in editor like this:

Code: Select all

$var = "مقدار تست"  ;
There are extra spaces between semi-column and the final double-quote which makes me put my cursor in wrong position when I want to select the string. Actually now I have to put my cursor exactly on semi-column to select my whole string from its right end and this is really bothering. Another problem which I've refereed to as in previous versions before 2014 is when I start to select these kinds of strings with Persian text in them, if I start from left double-quote, it'll contain characters from right of the string in highlighted area and if I start from right it'll start containing characters from left. It's like a reverse manner.

I think this goes for Arabic language too because it'll be written like Persian.

Thanks.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Wrong display of Persian in editor

Post by Aivars »

RTL languages and multi-code-point-per-character languages is something we really need to look at more carefully. Implementing these is not easy but we'll see what can be done for the next major version, at least research-wise.
Blumentals Software Programmer
MahanGM
Posts: 6
Joined: Tue Oct 16, 2012 6:16 pm

Re: Wrong display of Persian in editor

Post by MahanGM »

Thank you for noticing. I'll look up to it.
Post Reply