Calt limitations

euka's picture

Hi Guys,
I have a question for you. In this days, I try to make a pseudo-randomic typeface but, I note which I use maximum twelve step to change my code. It's true? Or is only my case?
Sequence: 125612 641342 615215

Code:
feature calt { # Contextual Alternates
# Latin
lookup calt1 {
sub @set_1 @set_1' by @set_2;
sub @set_2 @set_1' by @set_3;
sub @set_3 @set_1' by @set_4;
sub @set_4 @set_1' by @set_5;
sub @set_5 @set_1' by @set_6;
} calt1;

lookup calt2 {
sub @set_1 @set_2 @set_3' by @set_5;
sub @set_2 @set_5 @set_4' by @set_6;
sub @set_5 @set_6 @set_5' by @set_1;
sub @set_6 @set_1 @set_6' by @set_2;
}calt2;

lookup calt3 {
sub @set_1 @set_2 @set_1' by @set_6;
sub @set_2 @set_6 @set_2' by @set_4;
sub @set_6 @set_4 @set_5' by @set_1;
sub @set_4 @set_1 @set_6' by @set_3;
sub @set_1 @set_3 @set_1' by @set_4;
sub @set_3 @set_4 @set_2' by @set_2;
} calt3;

lookup calt4 {
sub @set_4 @set_2 @set_6' by @set_6;
sub @set_4 @set_2 @set_6 @set_4' by @set_1;
sub @set_6 @set_1 @set_1' by @set_5;
#other sub
} calt4;

}calt;

The script work until to calt3. Why ignore calt4?

Thanks!

Syndicate content Syndicate content