initial work for abbreviations support

Allows the use of custom abbreviations for words encountered in
references.