RTLTMPro icon indicating copy to clipboard operation
RTLTMPro copied to clipboard

when text have Tashkel like "هاُني" the word count is 2 not 1

Open Hanisafa opened this issue 5 years ago • 3 comments

when text have Tashkel like "هاُني" the word count is 2 not 1 , it consider from index 0 to Tashkel a word and the rest word

Hanisafa avatar Jun 30 '19 12:06 Hanisafa

I don't quite understand your problem. Where do you see the word count? And "هاُني" is one word. I don't understand why it should be counted as two.

pnarimani avatar Jun 30 '19 20:06 pnarimani

m_TextMeshPro.text = "هاُني"; wordCount= m_TextMeshPro.textInfo.wordCount; // this is 2 not one m_TextMeshPro.text = "هاني"; wordCount= m_TextMeshPro.textInfo.wordCount; // this is 1

the .textInfo.wordCount is 2 when using "ٌ" or any Tashkeel , for instance , if you have a sentance with 3 word that have Tashkeel , the textInfo.wordCount will be 6 instead of 1

Hanisafa avatar Jul 01 '19 10:07 Hanisafa

its a confirmed bug , I've report it and unity opened case 1179861 , should be fixed soon

Hanisafa avatar Sep 03 '19 08:09 Hanisafa