Can conditional mark positioning work with mark to mark?

in most cases in Hebrew, the trop can positioned nicely by simply creating a mark to mark.

So here I have created for the segol, an anchor called nikud

So now, all the trop usually sits correctly.

without having to work too hard :slight_smile:

now, I have an interesting situation with the letter qof where there isn’t enough space for the trop so I have creating a pos in the mark feature using the mark filtering set to take into account the dagesh (aren’t you proud):

lookupflag UseMarkFilteringSet [@wide @lowertrop]; 
pos qof @wide' @lowertrop <50 0 0 0>;

which works kinda:


I then thought right, I will move the etnachta down and write code like this:

lookupflag UseMarkFilteringSet [@wide @lowertrop]; 
pos qof @wide' @lowertrop <30 0 0 0>;
pos qof @wide @lowertrop <-20 -90 0 0>; 

to achieve what I want but the etnachta-hb didn’t move down. It occurred to me that of course it won’t because there is an anchor on the segol forcing the etnachta-hb to stick to the left of the segol.

I know I can accomplish this with glyph composition by creating a segol-etnachta-hb combination, but I would really like to try an achieve this with contextual mark positioning.

So since the etnachta-hb is actually anchored to the mark segol, then I need to do the * trick on the segol mark correct?

However, of course I am doing it wrong :frowning:

I created a 2nd anchor (on the segol mark) called @nikud_qof and in the Anchor Context typed:

lookupflag UseMarkFilteringSet [@wide @lowertrop]; qof @wide *

that of course didn’t work. So I thought, hang on, I am just targeting the etnachta if the *nikud_qof anchor comes after a qof so I tried:

lookupflag UseMarkFilteringSet [etnachta-hb]; qof *

Is what I am trying to do even possible when it’s mark-to-mark?

If not, am I best of creating a new glyph with a segol and etnachta combined as one and then use the calt feature to substitute? Or perhaps there is a lookup flag to ignore the anchor of the etnachta-hb?

This line doesn’t have the '?

you are correct. I should have copied and pasted.

in my code it does have it.

here again, I would like to move the munach to where I have drawn in crudely in red so that it doesn’t overlap. I can use pos to move the kamatz to the right, but then the munach stays where it is vertically and moves to the right with the kamatz.

I can do this with calt

lookupflag UseMarkFilteringSet [@wide @lowertrop]; 
sub bet @wide munahleft-hb' resh @wide by munahleft-hb.001;

just wondered if this was the best approach.