Unfortunately, in the dlig (discretionary ligatures) feature, I cannot activate the ligature you see in the image. Everything else works correctly except for this one!
Are there marks in the text? And did you try it in Glyphs or elsewhere?
If you mean anchors, yes, they are present. In fact, I used Glyphs’ own standard, but in that series (بیی ، etc.) they were not included, so I had to add them myself.
They have been tested in the web environment as well, and even that single case does not work there either.
sub yeh-ar.medi yeh-ar.fina by yeh_alefMaksura-ar.fina;
sub yeh-ar.medi yehFarsi-ar.fina by yeh_alefMaksura-ar.fina;
sub yeh-ar.medi alefMaksura-ar.fina by yeh_alefMaksura-ar.fina;
sub yeh-ar.medi yehHamzaabove-ar.fina by yeh_yehHamzaabove-ar.fina;
sub yeh-ar.medi yeh-ar.fina by yeh_yeh-ar.fina;
Could you send me the .glyphs file and the actual text you are using to test this?
Yes, of course. Please provide an email address so I can send it. The text is: (ییی، ییئ، ییي )
Send it to “support” at this domain.
Kind regards, the file has been sent to you.
As far as I can tell, your sample strings have “yehFarsi” and your ligatures have “yeh”. So when you use “بيي” and enable “dlig”, it works fine.
Yes, but in the (yehFarsi) case the problem still remains, and it only works in the Arabic form where the glyph has two dots below. Anyway, thank you.
Do you have a sub rule for yehFarsi + yehFarsi?
Yes, I have this rule in dlig: sub yeh-ar.medi alefMaksura-ar.fina by yeh_alefMaksura-ar.fina;
But the string you send me has “yehFarsi + yehFarsi” and not “yeh-ar + alefMaksura-ar”.
Yes, but if you add this command right now, it won’t execute; however, in other positions of the letters, this problem does not occur!
I mean these letters:
ببی، ببئ،ببي
بثی، بثئ،بثي
بتی، بتئ،بتي
بپی، بپئ،بپي
I don’t understand. Can you show a line of feature code and a string that should respond to it?
It’s a question for me why the feature code works on the cases before
ببی، ببئ،ببي
بثی، بثئ،بثي
بتی، بتئ،بتي
بپی، بپئ،بپي
but only on this case
بیی، بیئ
the feature code doesn’t work! The reason might be manually adding a Unicode to the whole set of Unicodes, because I didn’t add it from the Left side menu.
Analyzing this string I get:
/beh-ar/yehFarsi-ar/yehFarsi-ar/comma-ar /beh-ar/yehFarsi-ar/yehHamzaabove-ar
So the feature code should be:
sub yehFarsi-ar.medi yehFarsi-ar.fina by yehFarsi_yehFarsi-ar.fina;
sub yehFarsi-ar.medi yehHamzaabove-ar.fina by yehFarsi_yehHamzaabove-ar.fina;
yes, the problem is resolved.
Thank you.


