Just sub doubles in calt

I have a typeface that has a second set of shapes for upper and lower case. I want some code that only substitutes the second letter of a sequence of double letters. But using the code and classes recommended in the features 3 tutorial gives me a constant alternating sequence of letters, nice, but not what I’m after. Is anyone kind enough to put me wise? thank you

I’m not sure, but I think you might need to explicitly write

sub a a' by a.ss01;
sub b b' by b.ss01;
...

thank you Sebastian, I thought it might come to that, just wondered if anybody knew of a shorter path

If you mean you didn’t want to type it all out, an AI engine should be able to do this for you.

Or a few lines of python script :wink: