US 4,445,795 AGrant
Method and Apparatus for Merge Processing in a Text Processing System
Issue Date:1984-05-01
•6 Claims
•6 Drawing Sheets
Abstract
An improved method and apparatus in an interactive text processing system for creating documents by selectively merging text data from two or more text records by signalling the location in a document at which the insert of text data is to be added, displaying a Merge Tasks Menu which provides an option for executing a merge operation in response to either Switch Code or Named Variable control codes, specifying the identification and location of the text data comprising the Shell Document and the Fill-In Document, and executing the Merge operation based on the specified data and Merge control mode.
Metadata
Assignee
- International Business Machines
Inventors
- Lewis J. Levine
- Kenneth O. Shipp, Jr.
Application Information
Application Number:US 3052524
Filing Date:1981-09-24
Priority Date:1981-09-24
Art Unit:337
Classifications
IPC:
B41J 530
Field of Search:
4003643402;3;62;63;64;76;83;67;68;279;705.4;705.5;83200;300;900720;721;723;724
Patent Drawings (6 sheets)
Description
Description
1. Background of the Invention
This invention relates to a text processing system and more particularly to means and methods for enabling an operator to merge various keyed entries of text data to create a document on a text processing system.
2. Description of the Prior Art
It is known in the prior art to merge keyed text data to produce a document utilizing stop codes. In a typical application, known as repetitive letters, the operator creates multiple versions of the same document, differing only in variable replacement text included in that document. The repetitive letter is created by keying and storing the master repetitive letter or shell document. The shell document is created in a similar manner to any other letter except that instead of typing the information that will change from letter to letter (for example, the name, address, and salutation), a Switch Code is typed at each point in the shell document where the information that changes will appear. The parts of the letter that change are called variable information or variables, and the Switch Codes enable the operator to locate the places in the letter where the variables are typed.
Pagination functions typically process variable length input lines of text into uniform pages of equal length lines, keep related text on a single page, allow text lines from other documents to be inserted, and make hyphenation decisions or assist an operator of the text processing system in making hyphenation decisions when a word crosses a line ending boundary. The pagination functions are based on the concept of paginating a text document entered by an operator to produce an attractive appearing letter, for example, with equal length lines, etc. An extension of pagination, offered by some text processing systems, allows variable data from a data processing-like file to be merged with a text document to generate a composite document, for example, personalized letters. This capability is generally referred to as "merge file/text" or "auto letters". In this system, the variable data is identified by a "set symbol".
There has developed in the text processing market a requirement for systems providing enhanced operator productivity without requiring programming skills on the part of the text processing system operator.
Summary of the Invention
In accordance with the present invention, a control system apparatus and method for operating a text processing system is provided which includes an operator interface, usable by an operator with no programming skills, for the creation of documents by selectively merging text data from two or more text records by signalling the location in a document at which an insert of text data is to be added, displaying a first menu to the operator which provides an option to the operator for choosing a merge operation in response to either a first or a second control code. Either a second or a third menu is displayed to the operator in response to the selection of a merge operation in response to either a first or a second control code, and the selected menu enables specifying the identification and location of the document and the text data to be inserted. The data to be inserted is fetched and merged into the document at the signalled location to produce a revised document.
In a specific embodiment, the operator has the option of choosing a merge operation in response to Switch Codes or a merge operation in response to Named Variables.
Brief Description of the Drawing
FIG. 1 is a block diagram of the system embodying the present invention;
FIG. 2 is a block diagram of the processor shown in FIG. 1;
FIG. 3 illustrates the Merge Tasks Menu as it would appear on the display device of FIG. 1 in accordance with the present invention;
FIG. 4 illustrates the Merge with Named Variables Setup Menu as it would appear on the display device of FIG. 1 in accordance with the present invention;
FIG. 5 illustrates the Merge with Switch Codes Setup Menu as it would appear on the display device of FIG. 1 in accordance with the present invention;
FIG. 6 is a hierarchy diagram of the merge subsystem control routines in accordance with the present invention.
Description of the Preferred Embodiment
Referring now to FIG. 1, a portion of the text processing system is shown, including a processor 10 to which is connected a bus 12 leading from a keyboard 14. Character data generated by manual actuation of keyboard 14 applies character-related signals to processor 10 which provides on an output memory bus 16 a data stream in which the characters selected by actuation of keyboard 14 appear suitably encoded.
Keyboard 14 is of the conventional design and arrangement which is commonly used in a Text Processing System such as the IBM Displaywriter System, for example, so a detailed illustration of keyboard 14 is not essential for a proper understanding of the invention. Keyboard 14 comprises a normal set of graphic symbol keys such as letters, numbers, punctuation marks, and special character keys, plus text format or control keys like carriage return, indent, etc. In addition, the keyboard 14 includes a second set of control keys for issuing special control commands to the system. The second set of control keys include cursor movement keys, keys for setting the keyboard into a number of different modes, etc.
Memory bus 16 extends to a memory unit 20, to a display unit 22, to a diskette unit 24 and to a printer 25.
Memory 20 includes text storage buffers 26, 26' which serve to store the coded data stream comprising the text input initially entered through the keyboard 14. Included in the text storage buffers 26, 26' are storage sections for the identity of the active document format which contains the active document keyboard character set namely, in portions 28, 28'.
Text storage buffer control blocks 30, 30' are linked to buffers 26, 26' and include a cursor control section 32, 32'. The text storage buffers 26, 26' are linked to the data on the diskette unit 24 by storage access control blocks (SACB) of conventional design such as that within the above-mentioned Text Processing System, one of which is included within text storage buffer control blocks 30, 30' for each text storage buffer 26, 26'.
A text storage buffer manager 34 is linked by channels 36, 36' to the control blocks 30, 30', by channels 38, 38' to the buffers 26, 26' and by channels 40 and 42 to a merge controller 44.
Merge controller 44 provides the control routines necessary to execute a merge operation in conjunction with text data stored in the Output TSB 26, the Fill-In TSB 26' and the record buffer 27 as will be described in greater detail later in this specification.
A keystroke control routine block 46 is provided to select the appropriate routine for the entered keystroke, and keystroke control routine block 46 is connected to merge controller 44 by channel 47. The control blocks 30, 30' are connected to merge controller 44 by channels 48, 48'. Buffer 26 is coupled by channel 50 to a display access method block 52 which is coupled by way of channel 54 to a display refresh buffer 56. A display control block 58 is coupled by channel 60 to the display access method block 52. GET control block 57 functions to fetch data which is stored in record buffer 27.
In accordance with the present invention, a channel 62 is connected from the active document format storage 28 of buffer 26 to the merge controller 44. Further, an input keyboard character set (KB/CS) block 64 stores the identity of any desired input keyboard character set of keyboard 14 and is connected by way of channel 66 to the merge controller 44.
The display access method block 52 has corresponding access method blocks of conventional design such as that within the above-mentioned Text Processing System for the diskette unit 24 and the printer 25. Each of the blocks serves as an interface to the corresponding unit.
The display refresh buffer 56 contains the actual text which is shown on display unit 22 while the buffer 26 contains all of the display text plus control data.
Menu manager 29 selects the appropriate menu to be displayed on display unit 22 and stores the menu image in menu buffer 31. At the appropriate time, the menu image is transferred by channel 50 to the display access method block 52 for routing to the display refresh buffer 56.
In operation of the system of FIG. 1, the encoded data stream on memory bus 16 is stored in the text storage buffer 26. In the process of correction and editing the contents of the text storage buffer 26, selected portions or lines of a page are presented on display unit 22. Stored in active document format section 28 is the code designating the keyboard character set that was employed in the production of the coded data stream appearing on memory bus 16 leading from processor 10 and applied from text storage buffer 26 to display unit 22 for edit.
If it is necessary, for example, to insert a graphic item into the text displayed on unit 22, then a cursor, conventionally available on such display systems, is placed below the character on display unit 22 at the location immediately preceding which an insert is to be made. The input keyboard character set identification of which the graphic item to be inserted forms a part, is applied by way of channel 66 to the merge controller 44.
Referring to FIG. 2, the processor 10 is further detailed to show typical logic hardware elements as found in such processors 10. The processor 10 may be a commercially available unit, such as from Intel Corporation and identified by the number 8086, or any of the recognized functionally equivalent, currently available microprocessors. Typically, the processor 10 includes a control logic unit 70 which responds to interrupts on a device bus 71 from the keyboard 14. The control logic unit 70 is also connected to a data and address bus 82 interconnected to various other logic units of the processor 10.
In response to a fetch instruction from the random access memory 20, the control logic unit 70 generates control signals to other logic elements of the processor 10. These control signals are interconnected to the various elements by means of a control line 72 which is illustrated directly connected to an arithmetic logic unit 73 and identified as a "control" line 72 to other elements of the processor 10. Sequence operation of a control unit 70 with other logic elements of the processor 10 is achieved by means of clock pulses input to the processor 10 from an external clock source 75 on a clock line 74. Line 74 is also shown interconnected to other logic elements of the processor 10 detailed in FIG. 2.
Data and instructions to be processed in the processor 10 are input through a bus control logic unit 76. Data to be processed may also come from program input/output control logic unit 77. The bus control logic unit 76 connects storage elements of the random access memory 20 and receives instructions for processing data received from the input/output control 77 or received from the random access memory 20. Thus, the input/output control logic unit 77 receives data from the keyboard 14 or the random access memory 20 while the bus control logic unit 76 receives instructions and/or data from the same memory 20. Note the different storage sections of the random access memory 20 identifiable for instruction storage and data storage.
Device control information from the processor 10 is output through program input/output control logic unit 77 over a data bus 80. Input data on the data bus 80 from the keyboard 14 is processed internally through the processor 10 by instructions on the bus 82 to temporary scratch registers 83. The arithmetic logic unit 73, in response to a control signal on line 72 and in accordance with instructions received on an input/output data bus 80 performs computations and the results can be stored in the temporary scratch registers 83. Various other transfers of data between the arithmetic logic unit 73 and other logic elements of the processor 10 are, of course, possible. Such additional transfers may be to a status register 85, data pointer register 86 or a stack pointer register 87. A program counter 88 is also connected through the data stream bus 82 to various other logic elements in the processor 10.
A particular operating sequence for the processor 10 is determined by instructions and data on the memory bus 16 and input data on the bi-directional bus 80. As an example, in response to received instructions, the processor 10 transfers data stored in the scratch registers 83 to one of the registers 85, 86 or 87. Such operations of processors as detailed in FIG. 2 are considered to be well known and understood by one of ordinary skill in the data processing field. A detailed description of each operation of the processor 10 in FIG. 2 is not deemed necessary for a full understanding of the present invention as claimed.
Prior to discussing the flow of the merge control routine and its combination with the text processing system of FIG. 1, an overview of the control system is in order. The specific problem addressed is how to provide an operator interface on a display device that permits merging of documents by either switch codes or named variables in a manner that promotes ease of learning by operators with no programming skills, ease of use and compatibility with existing text processing equipment.
The operator creates documents by combining pre-stored text data, paragraphs, or "named variables", which are known as a Shell Document, with pre-stored personalization information known as a Fill-In Document. The Fill-In Document contains one or more Replacement Lists.
The operator has the choice of executing Merge with Switch Codes, as has been done with existing text processing equipment including Magnetic Card equipment, or with Named Variables. The Named Variable allows the operator to mark a position in a document at which "variable" text data is expected to be inserted at a later time. The names of variables (Named Variables) are designated by the operator and may subsequently be used by both the operator and the system for reference. The operator may assign names which relate to the textual information to be inserted (first name or inside address, for example) at the designated position in the document.
To execute a Merge operation each Replacement List in the Fill-In Document is merged with the Shell Document. All of the filled-in copies can be stored in a single operator specified output document and optionally printed if desired. Alternatively, the document can be designated to be only printed.
Preparatory to executing a merge operation, there are two documents which must be input by the operator to the Merge application. These documents are created in Create/Revise mode. The two documents are a Shell document and a Fill-In document.
The shell document is a document containing either variables or switch codes at locations corresponding to the places where variable text is to be inserted. Multiple shells can be created within a single document. Each unique shell is identified by a Begin Using Document Format at the top of the first page of the shell.
The Fill-In Document contains the Replacement List(s). Replacement Lists can be created by keying each replacement value followed by a switch code if Merge with Switch Codes is to be processed. If the switch code approach is used, no separators are keyed between replacement lists (i.e., there is one list and each replacement value is ended with a switch code). If merge is to be processed with named variables, multiple Replacement Lists are separated within a single document by Page End (PE) codes. If the Named Variable approach is used, replacement values must be entered following the appropriate named variable.
Once the Shell Document and the Fill-In Document have been created, the operator selects Merge Tasks from the Task Selection Menu and the Merge Tasks Menu will be displayed. An illustration of the Merge Tasks Menu as it would appear on the display unit 22 is shown in FIG. 3.
A prompt line of the display instructs the operator to type the ID letter to choose an ITEM. The operator makes this selection by typing the appropriate letter in place of the underlined small square at the end of the prompt line of the display and pressing the ENTER key (conventionally placed such as the placement in the above-mentioned Text Processing System, for example) on keyboard 14. The underline represents the position of the cursor and the small square represents the location at which the first keyed character is displayed. For example, to select a Merge with Named Variables, the operator types an "a" in the designated position and presses the ENTER key.
In response to the above selection, the Merge with Named Variables Setup Menu is displayed on the display unit 22, and an illustration of this menu is shown in FIG. 4. This menu instructs the operator to make selections concerning the name and location of the Shell Document, the name, location and page numbers to be used for the Fill-In Document and the name and location to be stored for the Merged Document. These selections are made by keying the appropriate ID letter followed by a space and the designated name.
Should the selection be made to Merge with Switch Codes, the Merge with Switch Codes Setup Menu would be displayed and an illustration of this menu is included in FIG. 5. This menu instructs the operator to make choices for the name and location of the Shell Document and the Fill-In Document and the name and location to be stored for the Merged Document. After all the selections are made, the operator presses the ENTER key to start the Merge process.
A Hierarchy Diagram of the Merge Subsystem is shown in FIG. 6 which shows the relationship between the various routines used to execute the Merge process. Each of the blocks in FIG. 6 represents a program routine which can be invoked to perform the named function. A description of those routines essential for a proper understanding of the invention is provided in tables at the end of this specification.
These routines include the Merge Start/End routines which function to display the Merge Task Selection Menu and to set up various components and initiate the Merge process. The Merge Controller 44 controls the Merge process and the Merge Shell Build deals with the actual process for building and outputting the Shell Document.
The Shell Document is stored on the designated diskette unit 24 and a copy of the Shell Document is copied into the Output TSB 26. The Fill-In Document is opened and the first page is placed in the Fill-In TSB 26'. Each page includes all the variable information for one document. The pagination routine is then invoked in normal fashion. During this routine, the text in the Output TSB 26 is scanned to detect any control codes. Any control codes such as an INCLUDE instruction, for example, are resolved by the pagination routine by instructing the GET Control Block 57 to fetch any designated data for inclusion into the document included in Output TSB 26 or the part of the document stored in Fill-In TSB 26'. The designated data is fetched one record at a time and the fetched data is stored in record buffer 27 and transferred into the Output TSB 26 as needed. The pagination routine then proceeds to resolve the control codes as encountered. These control codes may be such codes as the previously mentioned INCLUDE instructions or either Switch Codes or Named Variables utilized in the Merge process. In the case of Switch Codes or Named Variables, the data in the Fill-in TSB 26' is scanned and transferred into the designated insert location within the text stored in the Output TSB 26. The pagination routine continues to merge the designated text data into the Output TSB 26 until a page is completed. At a Page End the TSB Manager 34 stores the completed page on the designated diskette unit 24. In addition, if printing is designated by the operator, the page is also sent to the printer 25. The Merge process continues in this manner until all of the pages in the document have been processed.
Suitable program routines in program design language (PDL) for implementing the described Merge control system are shown in the following tables:
Descriptive-Name=merge Start/End
FUNCTION=The Merge Start/End component (MSE-----) contains the routines necessary to load and delete the routines used by the Merge load. In addition, it contains a routine that will display the Merge Task Selection menu and initiate the Merge process.
Descriptive-Name=merge Controller
FUNCTION=The Merge Controller component (MCN-----) contains the routines which control the Merge process. This component controls Repetitive Letters and Document Assembly functions for both named VARIABLEs and switch code Merge. This component detects all setup errors and redisplays the appropriate setup menu so the operator may correct the error.
Descriptive-Name=merge Shell Build
FUNCTION=The Merge Shell Build component (MSB-----) deals with the actual process of building and outputting the shell via the Merge Application. This component is responsible for detecting and saving all execution errors.
Descriptive-Name=merge Errors
FUNCTION=The Merge Errors component (MER-----) deals with the insertion of the output shell error messages and the quantitative error message at the end of the shell in which the error(s) occurred.
While the invention has been particularly shown and described with reference to a preferred embodiment it will be understood by those skilled in the art that various other changes in form and detail may be made without departing from the spirit and scope of the invention.
Claims
Having thus described our invention, what we claim as new and desire to secure by Letters Patent is:
1. In an interactive text processing system in which a document input by way of a keyboard is stored, displayed to an operator, and merged with other keyed data in accordance with directions supplied to said system by an operator interacting with the keyboard and a display unit, the combination which comprises: means for signalling, by either a first or a second control code, the location in a document at which an insert of pre-stored text data is to be added to the document; means for displaying a first menu of predetermined task selections selectable by an operator through said keyboard for selecting either a first type of merge operation operable in response to said first control code or for selecting a second type of merge operation in response to said second control code; means for displaying, when said merge operation operable in response to said first control code is selected, a second menu of predetermined task selections for specifying the identification of a first insert of pre-stored text data; means for displaying, when said merge operation operable in response to said second control code is selected, a third menu of predetermined task selections for specifying the identification of a second insert of pre-stored text data; and means for fetching in response to the specified identification the specified insert of pre-stored text data and merging said data into said document at the signalled location to produce a revised document.
2. The text processing system recited in claim 1 in which said first control code comprises Switch Codes.
3. The text processing system recited in claim 1 in which said second control code comprises Named Variables.
4. In an interactive text processing system in which a document input by way of a keyboard is stored, displayed to an operator, and merged with other keyed data in accordance with directions supplied to said system by an operator interacting with the keyboard and a display unit, the method which comprises: signalling, by either a first or a second control code, the location in a document at which an insert of pre-stored text data is to be added to the document; displaying to the operator a first menu of predetermined task selections selectable by the operator through said keyboard for selecting either a first type of merge operation operable in response to said first control code or for selecting a second type of merge operation in response to said second control code; displaying, to the operator when said merge operation operable in response to said first control code is selected, a second menu of predetermined task selections for specifying the identification of a first insert of pre-stored text data; displaying, to the operator when said merge operation operable in response to said second control code is selected, a third menu of predetermined task selections for specifying the identification of a second insert of pre-stored text data; and fetching in response to the specified identification the specified insert of pre-stored text data and merging said data into said document at the signalled location to produce a revised document.
5. The method recited in claim 4 in which said first control code comprises Switch Codes.
6. The method recited in claim 4 in which said second control code comprises Named Variables.