Is this possible with tokens?

I can’t figure out if this is even possible using tokens:

I have an SS11. In it is a list of upper and lower case *.ss11 glyphs.
In a manual CASE feature I would like to substitute all upper case glyphs, for which an SS11 alternate exists, with their corresponding SS11 variants.

Is it possible to create a token to select these glyphs (in the left side of the ‘by’)?
sub $[ TOKEN? ]' by $[case == upper AND name endswith ".ss11"];

Currently not possible.

1 Like

would be cool to do something like this

sub [name.replace(".ss01", "") for name in $[name contains ".ss01"]] by [$[name contains ".ss01"]];
1 Like