Named Constants
Named constants allow you to use a descriptive name for a character, instead of its code. To define a named constant,
use store(
. When you wish to refer to the code, use name
) code
$
.
name
The dollar referencing can only be used with named constants. You cannot use it for stores that have more than one character in them, or for keys or other non-character stores. Named constants are supported for characters above plane 0.
Named constants can also be loaded from a file with the store(&includecodes) statement. For instance, the Unicode Character Names can be used by referencing unicodedata.txt.
Example
store(CCedilla) U+00E7 + [RALT K_C] > $CCedilla
Versions
Named constants were introduced in Keyman 6.0.