Contextual Mark Attachment in vocalised Arabic

Hi! I was trying to move the bottom anchor of the meem further down when it is preceded by a reh. This works fine unless the reh also has some kind of diacritical mark. I suppose this is because the string is not reh meem but reh mark meem. I wanted to solve this by putting the reh together with all possible marks in a group. But then the anchor in the meem is moved when it is preceded by any letter with a mark, so this is no solution …
Then I tried to chain up the condition to something like reh @mark * in the anchor-context window. But here the anchor is only moved when the reh has a mark.

How can I tell Glyphs to just ignore the mark on the reh and move the anchor no matter if the reh has a mark or not?

can you send me the font and some sample texts that I can try this?

Hello
Having the same kind of scenario with my font as well.

Need help with Contextual Mark in arabic, how i can fix the lam mark is below in

Can you fist try a text with only the one below mark and not other marks. You most likely need to add mark filtering (useMarkFiltering…).

it’s working now, i forgot to delete space in *bottom. but still broken when i add mark accent to waw-ar. how to add mark filtering?

lookupflag IgnoreMarks didn’t work

I have try useMarkFilteringSet as i see on another thread, but i don’t understand how it works and what anchor/mark glyphs should i include to the Mark Filter Class.
my solution for now i am created another duplicated glyphs as contextual alternate with new mark position.

I really like this contextual mark feature to be explained more as this very helpful for developing arabic fonts that based on handwriting calligraphy.

The glyphs in the class should be the ones that should be attached to this anchor. The naming is a bit funny. Original there was only “IgnoreMarks”. That would exclude all marks from the context. But that is not useful here as we like to do something with them. So the UseMarkFilteringSet was added. It filters the marks that are ignored.

Do not add a space between the “*” and “bottom”.

The minimum do get this to work would be:

UseMarkFilteringSet @[kasra-ar];waw-ar *

Did you read this: OpenType Feature File Specification | afdko

And when debugging this, it is useful to add a Don't use Production Names parameter to the font. That way you get proper names in FontGoggles.

2 Likes

Works perfect! thank you very much!

1 Like