Help with Contextual Alternatives (Randomising)

Hello,

I’ve been using this guide to randomise my contextual alternates (which I’ve adjusted for 5 stylistic sets) Features, part 3: advanced contextual alternates | Glyphs

At first glance it seems to work, things are randomising when I type. However, I’ve noticed that, although when I type the same letter out 6 times in a row, with no spaces, it cycles through as you would expect—when I then insert a space between each letter, it changes after the first letter (ie. it types out default, then ss01, but then keeps typing ss01).

I included space within the code as outlined in the tutorial, but can’t see what I am missing here. Maybe it’s just a tricky code to implement, but if there is a solution I’d love to find it.

thanks in advance!

How are you doing the testing? In which app?

Within glyphs itself, in the editor view (but have also exported and used the font in adobe programs)

Substitutions that include the space glyph are tricky and do not work everywhere.

That’s good to know thank you, I"m fairly new to Glyphs/making fonts, and I wasn’t sure