Common text framework
AssigneeMicrosoft Corporation
InventorsKevin B. Gjerstad, Yutaka Nakajima, Yutaka Suzue, Benjamin M. Westbrook
Life of this patent
Estimating the term…
Abstract
A common text framework for application programs having documents of primarily text and input devices for entering and editing text of such documents is disclosed. The framework provides for the interaction of applications and handlers for input devices, and includes a text store interface and a text input processor interface. The former interface permits an application having a document of primarily text to expose the document as an abstraction. The latter interface permits a handler for an input device to access the abstraction of the document and to insert additional text into the document.
Claims12
A machine-readable medium having instructions stored thereon for execution by a processor to implement a computer program providing a common text framework through which applications and handlers for input devices can interact, comprising:
- a text store interface to permit an application having a document of primarily text to expose the document as an abstraction, the text store interface comprising,
- a text stream interface in which the abstraction of the document appears as an array, a position within the document represented as an offset from a beginning of the array,
- a dynamic text interface in which the abstraction of the document is such that a position within the document is represented as a floating anchor to a node, and
- a text processor input method for attaching a property to the document in at least one position in the document, wherein the property preserves originally entered data in order to facilitate text correction;
- and
- a text input processor interface to permit a handler for an input device to access the abstraction of the document and to insert additional text into the document.
A machine-readable medium having instructions stored thereon for execution by a processor to implement a computer program providing a common text framework through which applications and handlers for input devices can interact, comprising:
- a text input processor interface to permit a handler for an input device to access an abstraction of a document of mostly text of an application and to insert additional text into the document, comprising:
- a range object in which a range within the document is specified as two positions within the abstraction of the document, such that the handler inserts the additional text into the document and accesses the abstraction of the document at the range specified by the range object;
- a first method by which insertion is accomplished;
- a second method by which access is accomplished;
- and,
- a third method by which the handler is able to attach a property to the document at the range specified by the range object, the property providing access to original data used for insertion of text within the range.
A method to preserve original raw data in a common text framework that provides interaction between an application and a plurality of input devices, the method comprising:
- receiving the original raw data from at least one of the plurality of input devices;
- storing the original raw data in a property that is attachable to a document;
- specifying a range within the document, wherein the range utilizes at least one floating position;
- and
- attaching the property to the range specified within the document.
Dependencies are inferred from the claim text.