A pen-based processor needs to be usable to input and edit script like a
text-based computer but retain a resemblance to the user of a pad and
pencil. The disclosed system and method implement input, editing and other
manipulation of glyphs including handwritten script, ASCII test,
bit-mapped images and drawings in a common document, using a compatible
internal representation of the data and a simple, consistent set of user
control functions. These functions are invoked using an intuitive and
interactive set of user gestures which do not distract the user from the
task of inputting or editing the document. A two-step gesture method
avoids confusion between strokes and command gestures and allows use of
similar gestures for different functions within the same and different
contexts. The system infers from customary user writing conventions that
certain relationships of data are to be preserved and maintains the
relationships, subject to user override, during editing. The display
document is formatted to contain lined or unlined areas of glyphs that can
be edited, including insertion of a moving space into pre-existing
document text and word wrapping. Adjoining drawing areas are unaffected by
editing of text data.