feature: Add Arabic Support #1555
KaTOxDev
started this conversation in
Localization
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hello, I can't write in Arabic in the intersect engine.
i found this lib , https://github.com/yahya99223/C-Sharp-Arabic-Reshaper
i think it can help to fix arabic lettre .
Let us assume we have the following word:
"سمير" which consists of:
'س' which is written like 'سـ' because it is the first letter in word.
'م' which is written like 'ـمـ' because it is in the middle of word.
'ي' which is written like 'ـيـ' because it is in the middle of word.
'ر' which is written like 'ـر' because it is last letter of word.
the problem is that the word appear like this "س م ي ر"
the lib fix it like this :
var input = "سمير";
var shapedUnicode = input.GetAsUnicode(); //output: \u0633\u0645\u064A\u0631
var unshapedUnicode = input.GetUnShapedUnicode(); //output: \uFEB3\uFEE4\uFEF4\uFEAE
var unshapedText = unshapedUnicode.DecodeEncodedNonAsciiCharacters(); //output is unshaped string which consists of unshaped unicode, you can use it in systems that doesn't support shaped Arabic.
so i try this in Text.cs :
but when i run the client it open and close instantly.
Intended Use-Case
Duplicate Check
Beta Was this translation helpful? Give feedback.
All reactions