Encode composition rule RULE into an integer value. RULE is a cons of global and new reference point symbols (see `reference-point-alist').