Keyboard Support

Contact and Search Homepage

Header bottom

Other versions
Version 16.0 (home page, current version)Version 15.0 (home page)Version 14.0 (home page)Version 13.0 (home page)Version 12.0 (home page)Version 11.0 (home page)Version 10.0 (home page)Version 9.0 (home page)Version 8.0 (home page)Version 7.0 (home page)Version 6.0Version 5.0 (home page)Version 4.0 (home page)

On this page

context statement




The context statement reproduces the context stored from the rule match, or a single character of it, into the output. Use the context statement as much as possible as it is significantly faster than using the index statement.

A single character from the context can be output (on the right-hand side of a rule) or matched (on the left-hand side of a rule) using context(i), which produces the ith character of the stored context.


any(cons) "W" + any(key) > context index(keyout,3)

"contex" + "t" > context(2) context(6)     c outputs "ox"

Note that although the context(n) statement can be used in the left-hand side of a rule, the context statement cannot.


Version 6.0 was the first version to allow context(n) on the left-hand side of a rule. The context(n) construct was introduced in version 6.0.