Konash / arabic-support-unity

This plugin allows you to use accurate and correct Arabic text in your game or 3D application. Supports Tashkeel and Hindu numbers. Supports C# and JavaScript. Supports 4 Persian Characters.
MIT License
220 stars 64 forks source link

IndexOutOfBounds Error #35

Open paatz04 opened 5 years ago

paatz04 commented 5 years ago

IndexOutOfRangeException: Index was outside the bounds of the array. ArabicSupport.ArabicFixer.Fix (System.String str, System.Boolean rtl) (at Assets/ArabicSupport/ArabicSupport.cs:77)

I'm not quite sure what character is causing this. Are there known characters that won't work ?

paatz04 commented 5 years ago

Latin numbers seemed to cause it

Screen Shot 2019-08-30 at 2 26 13 PM

Adding word.Length/2 < word.Length Avoids the crash. But in the screenshot above the numbers should be inside of the brackets. Any idea how I can fix this ?