Page 1 of 1
Editing RTL texts
Posted: Sun Aug 25, 2019 5:13 am
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 (21.4 KiB) Viewed 747 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.
Re: Editing RTL texts
Posted: Sun Aug 25, 2019 9:20 am
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
Re: Editing RTL texts
Posted: Sun Aug 25, 2019 9:44 am
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.
Re: Editing RTL texts
Posted: Sun Aug 25, 2019 9:54 am
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.
Re: Editing RTL texts
Posted: Sun Aug 25, 2019 10:40 am
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.
Re: Editing RTL texts
Posted: Sun Aug 25, 2019 11:34 am
by Tony Li
Okay, I'll look into this and try to get something into an upcoming version some time soon.