Tell me if a particular char string is a long char or a short char

Get ready, this is one of those difficult questions.

In Farsior a Persianlanguage یthat sounds like yor iwritten in 4 different forms according to it in a word. I will call یas YA for simplification.

take a look at this image enter image description here

All YA characters are colored red, in the first word YA the previous one is attached to it (to the right, to the right of Farsi to the right of RIGHT to LEFT) and is free at the end, while the last YA (3rd word, the most red char) is free as on the left so right.

Having told this long story, I want to find out if part of the line ends with a long YA (YA without glasses) or short YA (YA with two points below).

i.e تحصیلداری (3- ) YA, تحصیـ, , YA.

: , تحصیلداری ? , "تحصیلداری", unicode?

unicodes

string unicodes = "";
foreach (char c in "تحصیلداری")
{
    unicodes += c+" "+((int)c).ToString() + Environment.NewLine;
}
MessageBox.Show(unicodes);

:
enter image description here

, , YAs .


: , . , YA .


:
unicode YAs

enter image description here

+4
2

, :

, , , ..

, , Farsi... .

, .
, :

Formula="UPPER(REPLACE(REPLACE(REPLACE
(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE
(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE
(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE
(REPLACE(REPLACE(REPLACE(REPLACE
(REPLACE(FirsName || LastName || FatherName,
 chr(32),''),
 chr(13),''),
 chr(9),''),
 chr(10),''),
 '-',''),
 '-',''),
 'آ','ا'),
 'أ', 'ا'),
 'ئ', 'ي'),
 'ي', 'ي'),
 'ك', 'ک'),
 'آإئؤةي','اايوهي'),
 'ء',''),
 'شأل','شاال'),
 'ا.','اله'),
 '.',''),
 'الله','اله'),
 'ؤ','و'),
 'إ','ا'),
 'ة','ه'),
 ' ا لله','اله'),
 'ا لله','اله'),
 ' ا لله','اله'))"
+1

, Unicode YEH, , YEH Unicode 0x06cc. Unicode.

, , YEH.

Fardis Unicode .

+1

Source: https://habr.com/ru/post/1534590/


All Articles