Word processor

Abstract: A word processing apparatus comprising key input means (11), display means (13) for displaying data, first memory means (14) for storing text data inputted from the key input means, second memory means (14a) for storing simplified format composed of at least an edit symbol and a series of particular symbols, read-out means for reading out the simplified format stored in the second memory means and displaying it on the display means, retrieval means for retrieving the series of particular symbols and the edit symbol in the simplified format read out by the read-out means, replacing means (14b) for replacing the series of particular symbols retrieved by the retrieval means with characters inputted by the key input means, edit means (14c) for editing characters replaced by the replacing means according to the edit symbol and displaying it on the display means (13) and storage means (14a) for storing the simplified format replaced and edited into the first memory means.

Description: The present invention relates to a word processing apparatus such as Japanese, English and other word processors or personal computers and more particularly word processing apparatus capable of inputting characters into fixed format text. Description of the Prior Art Conventional word processing apparatuses of this type are known, which have functions for inputting and registering fixed formats composed by "○", "£" or the other particular symbols in place of names and addresses, calling the registered fixed format texts and replacing particular symbols with inputted characters to accomplish the fixed format text when they are used. If there is necessity of shifting a format as name to right end, an operator execute right margin shifting using editing function after finishing replacement. However, since editing operations such as right margin shifting, centering and the like have become clear when the fixed format is composed, if the operator accomplishes right margin shifting and other editing each time as necessary after finishing replacement as mentioned above, problems of which operations became complicated and portions requiring edit processing is left without editing occur. Moreover, in fixed format text input mode of the above mentioned word processing apparatus, the input mode will not automatically release while characters are inputted until the end of the format where there are not more symbols to input characters, and therefore it is necessary to release the mode by operating the release key each time when the operator wants to input between lines of the fixed format text in ordinary text producing mode. Furthermore, if character number to be inputted is less than the number of particular symbols set and registered in a line of a fixed format text and at least one particular symbol is not inputted character, the particular symbol without character inputted is left as that is in the fixed format text, or replaced by a space and left in the fixed format text. When particular symbols are left in the fixed format text as they are and the fixed format text is printed out, particular symbols will be printed out on a paper as they are causing inconvenience. In order to delete the remain of the particular symbols, it is necessary to execute batch deleting by edit functions or to delete symbols one by one. Moreover, in the above word processing apparatus, when a line exists, which is not needed inputting characters in fixed format text input mode and characters are not inputted in the line, the line will left as particular symbols within the fixed format text and if the fixed format text is printed out in this state, the particular symbols are printed out as they are. Therefore, in order to delete unnecessary lines, it is necessary to switch over to ordinary text producing mode and to delete concerned lines by function of partial deleting. This causes complicated key operation. From general word processing it is wellknown (see e. g. EP-A-0 075 732) to mark a position in a document by inserting a name variable into the text of the document, at which mark variable text data can be inserted at a later time. The document is e. g. a letter which has to be sent to a plurality of addressees. The named variables are e. g. name, road, city, postal code, country. The variable text can be inputted into the document via a mask or from a file storing address data for a plurality of addressees. In such ordinary word processing, the variable text is inserted at predetermined positions. When e. g. right margin editing or centering is necessary, the operator has to perform these edit operations after the variable text is filled into the document. A word processing apparatus having the features of the preamble of appended claim 1 is described in an article having the title "System for Simplified Form Fill-in Using CRT-Display", as published by R.J. Gerlach and J.C. Jones in IBM Technical Disclosure Bulletin, Vol. 21, No. 11, April 1979, pp. 4323-4326. In this apparatus the inputted text is edited within the flow-in input storage means and then, when a predetermined command is inputted, inserted into the text as stored within said text storage means. SUMMARY OF THE INVENTION It is the object of the present invention, as claimed, to provide a word processing apparatus by which variable text can easily be filled into a document and can easily be edited. The word processing apparatus of the invention is defined by the teaching of appended claim 1. This apparatus is arranged to search for an edit code which is allocated to each "simplified format" which comprises "flow-in symbols" which have to be substituted by inputted variable text. The "flow-in symbol" is a predetermined symbol, e. g. "£" which indicates that the place of this symbol can be substituted by variable text. A "simplified format" comprises an edit code, e. g. a code for write margin edit, and e. g. eight flow-in symbols (see the following description in relation with Fig. 3). When only five characters are input-ted and then a "start flow-in command" is inputted, the apparatus automatically deletes the remaining three flow-in symbols and automatically shifts the sequence of the inputted five characters to the right margin. Therefore, no additional edit operation has to be performed by the operator. Preferably, the apparatus is arranged to recognize one edit code as a code which indicates to switch the apparatus to the ordinary input mode. This releaves the operator of manually switching the apparatus from the flow-in mode into the ordinary input mode by inputting a corresponding command. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing the configuration of an embodiment of the present invention, Figs. 2A, 2B and 2C are flow charts showing operations of the embodiment in the present invention, and Fig. 3 is a screen configuration diagram showing display screens scrolled step by step from flow-in input to the input termination of the embodiment in the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT Key input means in the present invention usually comprises a keyboard having alphabetical keys or alphabet/ kana keys for inputting Japanese, numeral keys and a plurality of function keys, an interface with a microcomputer and control programs. Arrangements of respective keys on the keyboard may be those known in the art, or in the Japanese version, may be arranged in Japanese alphabetical order (kana). Display means is constituted by, for example, a CRT, liquid crystal display panel, its driving circuit and interface with a microcomputer. Reading out means, retrieving means, replacing means, editing means and storing means may be constituted by a microcomputer and control programs. Fig. 1 is a block diagram showing the configuration of the embodiment of the present invention, numeral 11 denotes a keyboard providing with a plurality of function keys and alphabet/kana (character) keys to input characters. Numeral 12 denotes a central processing unit comprising for instance 8 bits or 16 bits microcomputer, processing data inputted from the keyboard 11, and transporting and receiving data to and from a display unit 13, a storage unit 14 and a print unit 15. The display unit 13 may consist of CRT or liquid crystal display device. The storage unit 14 consists of a simplified format buffer 14a storing simplified format (fixed format), a text buffer 14b storing text data wherein flow-in symbols (mark) have been replaced with characters and edited and a flow-in input buffer 14c storing simplified format stored in the simplified format buffer 14a during replacement and edit. The terminology "Flow-in input" means a function for inputting desired characters as necessary into flow-in symbols pre-set in a simplified format in order to produce text data. The printer unit 15, composed of thermal transcirbe printer or dot impact printer, prints out text produced, etc., onto print paper. Operations of the preferred embodiment will be described referring to Figs. 2 and 3. Figs. 2A, 2B and 2C are flow charts illustrating operations of the preferred embodiment. First, when flow-in mode starts up, the central processing unit 12 calls a simplified format as shown in Fig. 3(a) from the simplified format buffer 14a and displays it on the display unit 13 (step 100). The simplified format consists of ○ code which is flow-in symbols 16, and edit symbol (code) 17 displayed at the head of a series of ○ codes. Edit symbol is represented as 1 ○ for "right margin shifting", 2 ○ for "left margin shifting" or 3 ○ for "centering" respectively. The simplified format called out is stored in the text buffer 14b (step 101) and the flow-in symbols 16 will be retrieved (step 102). When retrieval result is judged (step 103), if flow-in symbols 16 exist, then edit code 17 will be retrieved (step 104). If flow-in symbols are not found in step 103, the edit code for releasing flow-in mode. i.e., an ordinary input code, will be retrieved among edit codes 17 (step 105), and if the ordinary input code exists (step 106), the mode will be switched over to the ordinary input mode automatically. In other words, if the ordinary input code is set at the desired location of a simplified format, it is possible to input text, etc., in the ordinary input mode from that location. If the edit code 17 is retrieved in step 104, it will be judged whether the edit code 17 means "right margin shifting" (step 107) and if it means "right margin shifting", a right margin shifting edit flag will be set (step 108). In step 107, if it is not the "right margin shifting" code, then it will be judged whether the code means "centering" (step 109) and when it is "centering" code, a centering edit flag will be set (step 110). In step 109, if the code is not the "centering" code, then it will be judged whether it means "left margin shifting" (step 111) and when it is the "left margin shifting" code, a left margin shifting edit flag will be set (step 112) and when if it is not "left margin shifting" code, then it returns to step 102. After one of the flags is set, the central processing unit 12 waits for flow-in data input from the keyboard 11 (step 113). Suppose the "right margin shifting" code is retrieved as edit code 17. If the flow-in data is inputted in flow-in data wait state (step 114), the flow-in data inputted will be displayed on the display unit 13 as shown in Fig. 3(b), the flow-in data will be stored in the flow-in input buffer 14c (step 115) and it will be judged whether flow-in start is commanded (step 116). Flow-in start can be executed by operaing, for instance, an execution key of the keyboard 11. If flow-in start is commanded, in other words if an execution key is depressed, the edit flag will be checked (step 117), and thereby judging whether flag for right margin shifting edit is set (step 118). If the flag for right margin shifting edit is set, a series of flow-in symbols will be replaced with flow-in data as input characters or others, then the right margin shifting is executed (step 119) and the result is displayed on display unit 13 as illustrated in Fig. 3(c). Next, the flow-in symbol 16 is searched in the left side or the series of flow-in symbols replaced and shifted to right margin (step 120) and search result will be judged (step 121), and if the flow-in symbol 16 is found in the left side, the flow-in symbols 16 will be replaced with "space" code (step 122). In other words, suppose a series of 8 flow-in symbols, when 5 characters are inputted and thereafter editing of the "right margin shifting" is executed, flow-in symbols not replaced with character exist in the left of 5 characters inputted, but these will be replaced by the "space" code and the flow-in symbols not replaced with characters will not be printed out when the simplified format is printed out. Thereafter, contrary to what is mentioned above, the flow-in symbol 16 in the right side is searched (step 123) and the search results is judged (step 124). Since the flow-in symbol does not remain in the right side after "right margin shifting" edit processing, it will return to step 102 to retrieve another following flow-in symbol. In step 124, if flow-in symbols are found in the right side, the flow-in symbols 15 remaining after replacement, i.e., after flow-in input termination (settlement) will be deleted. In other words, if "centering" code is found in step 109, then the steps 110 - 117 will be executed and setting state of the flag for right margin shifting edit will be judged in step 118, however, as the flag for right margin shifting edit is not set, then it will be judged whether a flag for centering edit is set (step 126). If the flag for centering edit is judged to be set, a series of flow-in symbols will be replaced with the flow-in data, thereafter centering is executed (step 127). After accomplishing centering in this way, if the number of flow-in symbols being set is less than that of characters to be inputted, flow-in symbols will be left on the right and left of characters inputted, however, as it was mentioned above, the flow-in symbols being left not replaced will be replaced with the space codes automatically and, at the same time, deleted by steps 120 to 125 after execution of step 127. The edit flag is checked in step 117, each of flags for right margin shifting and centering edit is judged being not set and a flag for left margin shifting edit is judged set (step 128), replacement and left margin shifting process will be done as in "right margin shifting" or "centering" (step 129). The simplified format produced by replacing flow-in symbols with characters and edited by respective edit codes will be stored in the text buffer 14b as same as texts inputted in the ordinary input mode. On the other hand, if flow-in start command is given without inputting data into flow-in symbols, they will be replaced with "space" code or the entire line will be deleted by deleting in steps 120 to 125. While description is given to the typical edit codes like as "right margin shifting", "centering" or "left margin shifting" of the embodiment, these codes may designates the combined "centering" and "underline", "double width", "equal allocation" or other edit functions. Moreover, simplified formats may be those set on mask ROM or the like, those which can be set arbitrarily by the user or those preset which the user can modify as necessary. Furthermore, as shown in the embodiment, simplified formats may comprise fixed form text and characters which will not be modified in addition to those composed of flow-in symbols and edit codes. According to the present invention, since characters or the like inputted by flow-in in simplified format mode can be edited without operation of function keys or the like, key operation becomes easier and more useful. On the other hand, since the flow-in input mode is released automatically according to the edit symbol indicating flow-in mode release when characters in inputted into a simplified format in flow-in mode, sentences other than simplified format can be produced arbitrarily in the simplified format, making interlinear editing of sentences including simplified format easier. Moreover, as flow-in symbols without character inputting in simplified format can be replaced with space and, at the same time, deleted without operation of function keys or the like, making the key operation easier. This feature prevents miss operations which would print out surplus characters (flow-in symbols) by error. In addition to that, as unnecessary lines in simplified format can be deleted line by line without changing input mode, key operation for deleting becomes easier.

Claims: A word processing apparatus comprising a keyboard means (11) for inputting characters; a storage means (14) for storing characters input via said keyboard means; said storage means comprising a flow-in input storage means (14c) for storing characters inputted during a flow-in mode; and a text storage means (14b) for storing text as edited by inserting the contents of said flow-in input storage means; a display means (13) for displaying characters as stored in said storage means; and a control means (12) for controlling the operation of said keyboard means, said storage means and said display means; characterized in that a) said storage means (14) comprises additionally a simplified format storage means (14a) for storing predetermined simplified formats, each consisting of flow-in symbols and an edit code, whereby each flow-in symbol can be replaced by a character input via said keyboard means; and b) said control means (12) is arranged to b1) selectively switch said apparatus into a flow-in mode and to perform the following steps in said mode: b2) search for the next simplified format as stored in said simplified format storage means for performing the following steps when retrieving such a format; b3) determine the edit code which is allocated to the retrieved simplified format; b4) read characters as input via said keyboard means until a "start flow-in command" is inputted to perform the following steps afterwards: b5) replace all flow-in symbols in excess of inputted characters, or delete such symbols; b6) edit, within said text storage means, the inputted character sequence according to the determined edit code; and b7) return to step b2). A word processing apparatus according to claim 1, in which said control means (12) is arranged to switch the apparatus to the ordinary input mode when the edit code of a retrieved simplified format orders such switching.

Inventors: INOUE JUN, MURAI HIROKO, NAGASAWA HIROYUKI, SAITO KEIZO, TAKEDA KATSUNORI, INOUE, JUN, MURAI, HIROKO, NAGASAWA, HIROYUKI, SAITO, KEIZO, TAKEDA, KATSUNORI
Applicants: SHARP KK, SHARP KABUSHIKI KAISHA
Application year: 1988
Main classification: G06F15
IPC codes: G06F17