How to visualize a single Unicode character (Arabic), what would it look like if it were displayed in a single word?

In written Arabic, the characters look different depending on where they stand by the word. For example, the letter ta may look like this: ث inside the word, but look like this: ث if it stands on its own. I have arabic text like:

string word = والتفويض ;

When I draw wordas a whole word, it correctly displays. Now I want to parse the string and print each letter in the word one at a time. However, if I do this:

foreach(char c in word.ToCharArray())
{
    Debug.Print(c.ToString());  
}

char cit does not print the original representation of the letter, because it was displayed in the context of the word, instead it prints the same Arabic letter as if it were made on its own. How can I parse my string of Arabic text so that the letters returned look the same as when they were displayed as a whole word?

I am trying to do this in C #.

+5
source share
1 answer

UCS has characters that represent specific forms of Arabic characters. However, they do not work well when moving from one context to another.

, , , , , U + 200D ZERO WIDTH JOINER ( , , , .

, U + 200C ZERO WIDTH NON-JOINER .

, .

+4

All Articles