I’ve had a problem with this package and other RTL packages. The problem is in selecting text in input field, When I select text and want to clear that part, the opposite part of the text is cleared.
Thank you for your great asset! The only issue I find with it is that it cannot handle word/line wrapping in TextMeshPro, so if there is Arabic that extends multiple lines within a text field, then the beginning of the Arabic appears on the bottom not the top.
In the example below, the phrase
أهلا و سهلا و مرحبا بكم
كيف حالكم اليوم يا أحبابي
has a line break after the word بكم and it appears on 4 lines within the text field.
The correct rendering of the text should be:
أهلا و سهلا و مرحبا
بكم
كيف حالكم اليوم يا
أحبابي
but it appears like this in the game view:
و سهلا و مرحبا بكم
أهلا
حالكم اليوم يا أحبابي
كيف
Please see attached screenshots. Any workaround? Are there plans to address this issue in the near future? Thanks!
As most developers are switching to TextMeshPro, these solutions may not get updated as fast as you need.
There is an opensource solution for using RTL in TMPro here.
you may get faster results requsting these features there.
and if you insist on using old Text solution, my own repository uses this repo so you can request there
سلام
پکیج بسیار فوقالعاده ایه خسته نباشید
تنها یک مشکلی باهاش دارم و اون اینکه در فونتهای بسیاری حرف " ی " در میانه کلمه به درستی نمایش داده نمیشه ایا راهکاری برای این مساله وجود داره یا خیر
شاد باشید
Hi Andrew,
This solution does not work with rich texts or tags. I use RTLTextMeshPro solution myself. it supports rich texts, tags and provides better visual quality as it works with TextMeshPro.
So because of this better solution, my repository will not be updated. hope that one covers your need and if not, you can create an issue on github and its developers are kind enough to support you.
Thank you @od3098 once again for sharing your work with all of us. I will definably give it a try. It was a mistake to create app using simple Text component and when I imagine how much time and testing it will take to move to TextMeshPro, I am telling myself that it’s working “fine” with Text as well =)
I just got report that there is one more Persian letter which we do not handle properly - “heh docheshm”. I did some research and seems like in Persian there are situation when it should not be connected to next character (like in word “silver”) or if they are two at once (“fruits”, “stores”). Luckly for us, there is a hidden character called “zero width non-joiner”. Here is updated solution:
p.s. I just hope that zero width non-joiner cannot be used with other letters. In such cases, we will need regexp. I am waiting for confirmation from natives.