Patent ID: 7437667
Filing Date: 2008-10-14
Classification: G06F

Abstract:
1. A method of processing a document having associated field definitions targeted for a system operating in a non-Unicode encoding scheme in a text editor operating in a Unicode encoding scheme, the method comprising; responsive to importing a document in a non-Unicode encoding scheme into a text editor operating in a Unicode encoding scheme, determining, by a source encoding mechanism in an editor parameters module of the text editor, a source encoding of the originating document; determining, by a field definitions mechanism in an editor parameters module of the text editor, one or more field definitions that are in effect for a given line in the document in the Unicode encoding scheme, wherein the field definitions provide a predefined formatting structure of the individual lines of text in the document; determining one or more shift-out or shift-in bytes in the document; determining, by a validation process of the text editor, whether one or more field violations exist in the document as a result of importing the document in the non-Unicode encoding scheme into the text editor in the Unicode encoding scheme; responsive to a determination that importing the document into the text editor results in one or more field violations, providing an identification of the one or more field violations through a document management module of the text editor; determining, by a parser process, if a change to the document in the Unicode encoding scheme violates one of the one or more field definitions within the document in the non-Unicode encoding scheme; responsive to a determination that the change violates one of the field definitions associated with the document in the non-Unicode encoding scheme, providing an indication to the text editor when a field definition violation is determined and denying the change to the document; responsive to a determination that the change does not violate one of the field definitions associated with the document in the non-Unicode encoding scheme, allowing the change to the document; maintaining field definitions of the document as a result of the change, wherein maintaining field definitions of the document comprises deleting spaces in a field in the document when the change is an insert and wherein maintaining field definitions of the document comprises inserting spaces in the document when the change is a deletion.