The input string that may contain Arabic forms.
A cleaned string with Persian characters replaced appropriately.
Example:
toPersianChars("عبدالله بن عبدالعزیز");
// => "عبدالله بن عبدالعزیز" (unchanged if there's nothing to replace)
toPersianChars("كشتى ىيكى {{ARABIC|كلمه}}");
// => "کشتی یکی {{ARABIC|كلمه}}" // 'كلمه' inside {{ }} is preserved
toPersianChars
Description:
ي
,ى
,ك
) with their Persian equivalents (ی
,ی
,ک
).{{ ... }}
) by skipping those segments entirely.ً
,ٌ
,ٍ
, etc.) to standardize the text.