Yes, that is possible.
Here is some feature code that should get you started:
lookup MultipleSubstitution1 { # GSUB lookup type MultipleSubstitution
sub A by A horizontalbar;
} MultipleSubstitution1;
feature calt { # Contextual Alternates
sub A' lookup MultipleSubstitution1 C;
} calt;
It adds a horizontalbar between A and C.
Thank you.
I’ll give it a try.
This is good news. It will save me a lot of time and effort.
I tested it with whole classes instead of single characters, and it worked.
Here’s the code, in case someone else finds it useful…
@horiz_right = [o r v w t];
@horiz_left = [a c f g i j m-s u-y];
lookup MultipleSubstitution1 { # GSUB lookup type MultipleSubstitution
sub @horiz_right by @horiz_right ringcomb; # used ringcomb in this quick test
} MultipleSubstitution1;
feature calt { # Contextual Alternates
sub @horiz_right’ lookup MultipleSubstitution1 @horiz_left;
} calt;
Yes, glyph classes are very useful this way.