Editing RTL texts

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
fanaei
Posts: 73
Joined: Wed Aug 15, 2018 10:38 am

Editing RTL texts

Post by fanaei »

Hi Tony,
The letters of RTL texts like Farsi or Arabic are shown separated in editor and it's a little hard to read and edit them. like the picture below:
DialogueManagerFarsiProblem.jpg
DialogueManagerFarsiProblem.jpg (21.4 KiB) Viewed 744 times
They should be something like this:
آره، حتما! ولي اول بايد يک دارگ جادوگر رو به اينجا بياري تا اين جادو رو از بين ببره
Text mesh pro fix it in the game. But it would be great if I could have them in the right order in the editor too.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Editing RTL texts

Post by Tony Li »

Hi,

I don't have a lot of experience with RTL, so I will need to depend on your knowledge.

Internally all strings are stored left-to-right, like:

1-2-3-4-5

Do you want the fa text field to appear like this in the editor:

5-4-3-2-1
fanaei
Posts: 73
Joined: Wed Aug 15, 2018 10:38 am

Re: Editing RTL texts

Post by fanaei »

Yes, Making it right to left is a part of problem. But also some letters connect to the others (Not all of them!) It's a bit complicated and more than my knowledge. Maybe implementing a free rtl text plugin into it, can help.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Editing RTL texts

Post by Tony Li »

Can you suggest an RTL plugin that works in the editor? I can look into adding integration support, so that it would compile support if you set a scripting define symbol.
fanaei
Posts: 73
Joined: Wed Aug 15, 2018 10:38 am

Re: Editing RTL texts

Post by fanaei »

Honestly all the plugins that I used, they were fixing the text just in runtime. Only TextMesh pro is showing the RTL texts in the correct way in editor.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Editing RTL texts

Post by Tony Li »

Okay, I'll look into this and try to get something into an upcoming version some time soon.
Post Reply