3.1 Characters

3.1.2 Character attributes

A character object is an immediate object with a 16-bit code attribute, a bits attribute, and a font attribute. All attributes are non-negative fixnums.

The code attribute is the numerical encoding of the character.

The bits attribute allows you to associate extra flags with a character. The bits attribute is most often used to support character input from extended keyboards that have meta and control keys. The bits attribute is an extension to Common Lisp.

Liquid Common Lisp explicitly names five bits of the bits attributes. These are the :control,:meta, :super, :hyper, and :mouse bits. Their weights are integer values corresponding to their bit position, where:control is the low-order bit and:mouse is the high-order bit. These weights are defined by the constants char-control-bit, char-meta-bit, char-super-bit, char-hyper-bit, and char-mouse-bit.

The font attribute allows you to specify the style of a character's glyph, such as italic. The font attribute is an extension to Common Lisp.


International Character Sets - 9 SEP 1996

Generated with Harlequin WebMaker