Hi there!
I'm working on a font which is based on the idea of contextual alternates.
I'm using only the lowercase and the uppercase characters. The idea is that with stylistic set the uppercase and the lowercase letters vary cyclicly by typing only lowercase (not using the 'shift' button).
It looks like this: AaAaAaA
The problem is when there is a space (or any kind of punctuations) between two words the cycle considers the space as a letter(?).
Looks like this: AaAaAaA AaAaAaA AaAa
What I try to do is that any time a word ends on an uppercase letter the following word should start with a lowercase, and vice versa, so start with always the opposite as the other ends, no matter how many spaces I have between the words. Like this: AaAaAaA aAaAaAa AaAa
The first code is to change the lowercase to upercase when I start typing:
#lc=lowercase UC=uppercase
lookup x01 {
x01;
lookup x02 {
x02;
And after I couldn't figure it out how avoid the space and punctutations.
Any idea how to tackle this question?
Comments
It is in OpenType Layout Feature code as used by FontCreator, but you can easily adapt it to other code.