Right to Left with Left to Right issue..
Hi...
I have a mix of RTL-LTR
Notepad give me the correct writing

But RTL TMP not

Just RTL

Forget my lack of knowledge, but according to my arabe friend, they are inverted (the kind of j and i) in the in a RTL to LTR to RTL setup.
Hope it make sense
RTL TMPro decides the RTL-ness based on the first character which in this case is 'a'.
You can select the "Force Fix" option to force RTL mode and get the order of characters corrected.
Can we input a special character to say from this place its rtl and from this point is ltr?
Sent from Ninehttp://www.9folders.com/
From: Hossein Shah @.***> Sent: Monday, April 19, 2021 02:33 To: mnarimani/RTLTMPro Cc: Michel Lapointe; Author Subject: Re: [mnarimani/RTLTMPro] Right to Left with Left to Right issue.. (#70)
RTL TMPro decides the RTL-ness based on the first character which in this case is 'a'.
You can select the "Force Fix" option to force RTL mode and get the order of characters corrected.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mnarimani/RTLTMPro/issues/70#issuecomment-822208419, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABUZJPRL3Q6W2XOTCGUS74TTJPFB3ANCNFSM43DSO4OA.
Use my fork: https://github.com/MRKDaGods/RTLTMPro
Thank you, will try it tomorrow
Sent from Ninehttp://www.9folders.com/
From: MRKDaGods @.***> Sent: Sunday, May 30, 2021 19:39 To: mnarimani/RTLTMPro Cc: Michel Lapointe; Author Subject: Re: [mnarimani/RTLTMPro] Right to Left with Left to Right issue.. (#70)
Use my fork: https://github.com/MRKDaGods/RTLTMPro
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mnarimani/RTLTMPro/issues/70#issuecomment-851079772, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABUZJPS2LWQXXAA3ER72VXDTQLEC3ANCNFSM43DSO4OA.
Thank you, will try it tomorrow Sent from Ninehttp://www.9folders.com/ … ________________________________ From: MRKDaGods @.***> Sent: Sunday, May 30, 2021 19:39 To: mnarimani/RTLTMPro Cc: Michel Lapointe; Author Subject: Re: [mnarimani/RTLTMPro] Right to Left with Left to Right issue.. (#70) Use my fork: https://github.com/MRKDaGods/RTLTMPro — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub<#70 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABUZJPS2LWQXXAA3ER72VXDTQLEC3ANCNFSM43DSO4OA.
No worries, I hope it all goes well
It work well, hope you can integrate your change in the main branch. But it's implemented now and my arabe friend are happy :)
It work well, hope you can integrate your change in the main branch. But it's implemented now and my arabe friend are happy :)
I am glad :)
Hi
Seem there is still issue, but maybe not related 😊
Writing that

Then resizing

My friend says that it should be

Any idea what we could do to fix it? Or is my friend wrong?
Thank
Hi Seem there is still issue, but maybe not related 😊 Writing that
Then resizing
My friend says that it should be
Any idea what we could do to fix it? Or is my friend wrong? Thank
Unfortunately this plugin does NOT support multiline mixed text.
The support cannot be added in our plugin and needs to happen inside textmeshpro because "where to break the sentence" depends on the layout of the text and that info is deep inside textmeshpro code.
I have created a post on Unity forums for this issue. Go make a noise there so that they prioritize it. https://forum.unity.com/threads/proper-rtl-support.1077431/#post-6978734
I usually make sure the text is single line. Auto Size option of text mesh pro helps with that for usernames, emails, titles, etc.
Done, MRKDaGods version already fix a lot of RTL/LTR multiple mixup, but now just missing the linebreak… it’s really annoying.
And as you saw I posted to Stephan_B, not the first time I mention that to him neither ☹
From: Hossein Shah @.> Sent: June 23, 2021 2:38 PM To: mnarimani/RTLTMPro @.> Cc: Michel Lapointe @.>; Author @.> Subject: Re: [mnarimani/RTLTMPro] Right to Left with Left to Right issue.. (#70)
Hi Seem there is still issue, but maybe not related 😊 Writing that [image] https://user-images.githubusercontent.com/6919358/123121332-15320980-d413-11eb-997e-54a0798d307b.png Then resizing [image] https://user-images.githubusercontent.com/6919358/123121356-1a8f5400-d413-11eb-9f3c-2253d973e47f.png My friend says that it should be [image] https://user-images.githubusercontent.com/6919358/123121381-1e22db00-d413-11eb-9e81-6eb963597340.png Any idea what we could do to fix it? Or is my friend wrong? Thank
Unfortunately this plugin does NOT support multiline mixed text.
The support cannot be added in our plugin and needs to happen inside textmeshpro because "where to break the sentence" depends on the layout of the text and that info is deep inside textmeshpro code.
I have created a post on Unity forums for this issue. Go make a noise there so that they prioritize it. https://forum.unity.com/threads/proper-rtl-support.1077431/#post-6978734
I usually make sure the text is single line. Auto Size option of text mesh pro helps with that for usernames, emails, titles, etc.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mnarimani/RTLTMPro/issues/70#issuecomment-867070721, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABUZJPQ5CKZ2OL32S5UCULDTUISZTANCNFSM43DSO4OA.
I will rewrite the fix to rather parse letters than words, I will also take a look at line breaking and maybe hack it around
I will rewrite the fix to rather parse letters than words, I will also take a look at line breaking and maybe hack it around
If you can pull it off I'll be sure to pull it back into the main repo.
I bit of backstory for context: I spent a couple of days on it and gave up. We currently decide where the boundary for RTL vs LTR text is. Then we reverse the order of characters in RTL sections. You will need to also detect where the line breaks are (due to word wrapping, so there is no \n char). And reverse the order of characters in each RTL section in each line. I also tried going into textmeshpro code and could share with you my WIP branch if I can find it. TMP_Text.cs has most of the layout code which deals with adding line breaks.
Good luck!
I will give it a go tonight and let you know how it goes!