1. A computer-implemented method comprising: providing an electronic document including a string that includes one or more references; parsing the string to identify a reference; based on the identified reference, identifying a glyphlet including a set of character attributes defining semantic information of a character and a set of glyph attributes defining appearance information for a representation of the character; and using one or more character attributes or glyph attributes for the identified glyphlet to process text in the electronic document.