Skip to content

feature: Add Arabic Support  #1403

@KaTOxDev

Description

@KaTOxDev

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 :

  public string String
    {
        get => mString;
        set
        {          
            mString = value.GetUnShapedUnicode().DecodeEncodedNonAsciiCharacters();
            SizeToContents();
        }
    }

but when i run the client it open and close instantly.

Intended Use-Case

Capture
Capture0
Captfure

Duplicate Check

  • This feature request is not a duplicate to the best of my knowledge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions