I finally managed to understand how to use Chaining Context and it's working. I use it so that when I type a letter belonging to a class(v, w, b, for example) I have specific letters which are used instead of the "normal" ones.
Now, I need to replace a specific letter in a word (when it's being written), when I type the next lower case letter.
I told myself I should use Reversed chaining context. I tried but it doesn't work.
Here is what I wrote :
Code: Select all
script latn {
feature ContextualAlternates;
}
class @lowercase [a-z];
class @lettertochange [q s]; ----> these are the letters I need to chane at the end of a word (birds for instance).
class @lettertouse [q.eow s.eow]; ----> these are the letters which should replace the letters q and s
feature ContextualAlternates calt {
lookup ReverseChainingContextLetterEow;
}
lookup ReverseChainingContextLetterEow {
reverse context (@lettertochange)(@lowercase);
sub ReverseSubstitutionLetterEow;
}
lookup ReverseSubstitutionLetterEow {
sub @lettertochange -> @lettertouse; ----> Is supposed to replace the letter to change (s or q) by the letter to use (q.eow s.eow)
}
Can you give me an example of a working code for Reversed chaining context ?
Thank you !