Arabic Lam Alef and Contextual Alternates (calt).. How to substitute?

Hello

I want to substitute a Lam Alef with another one in a specific mark occurrence using Contextual Alternates (calt) like this:

lookup ChainingContext3 {
  lookupflags RightToLeft;

  context ("alef-arab" "sukun-arab.isol") "lamalefmaddaabove-arab.isol";
  sub 0 SingleSubstitution9;
}

I added the substitution table as follows:

But nothing changed in FC?

Any help please.

Thanks

Maybe alef-arab and sukun-arab.isol have been replaced by a ligature before calt is triggered.

Does the Proofing dialog reveal anything?

1 Like

Hello @ErwinDenissen and thanks for replying. In Arabic, the Lam Alef is a ligature of Lam.init and Alef.fina, is that the reason? i.e. no possibility to substitute a ligature?.

No, the Alef and Sukun are both independent, there’s no occurrence of ligature between them.

Do show us a screenshot of the Proofing dialog, so we better understand the problem.

Or even better, isolate the issue in a reduced font project and send that to us.

1 Like

Deselect the checkmark as shown in the image.

قم بإلغاء علامة التحديد كما في الصورة

1 Like

@ErwinDenissen Please take a look at the Proofing log:

@munir4ye I checked “Ignore Marks” but nothing changed:

@munir4ye This is also my Substitution Table:

The calt feature comes after isol, fina, and init have been processed, so in your case alef-arab has already been substituted by alef-arab.isol, hence your chaining context rule is never matched.

1 Like

@ErwinDenissen So there is no possibility to substitute ligature glyph?

Since alef-arab is replaced by alef-arab.isol, I think it should work if you put that in your rule.

جرب هذا الملف

Try this file

Majalla.fcp (56.4 KB)