Document processing apparatus

Abstract: A document processing apparatus includes an input unit for inputting data, a first memory for storing the data input by the input unit, a reading unit for reading print data on a recording material, a second memory for storing the print data read by the reading unit, a setting unit for setting a print area of the recording material on the basis of the print data stored in the second memory, and a display controller for displaying the data stored in the first memory in the print area set by the setting unit.

Description: BACKGROUND OF THE INVENTION : Field of the Invention The present invention relates to a document processing apparatus, e.g., a wordprocessor. Related Background Art In a recent document processing apparatus such as a wordprocessor, when characters, symbols, figures, and the like are printed on a blank recording paper sheet having a predetermined size (e.g., A4 size), they can be easily printed since the apparatus has a predetermined standard format. That is, the wordprocessor prestores the standard format, for example, for an A4-size recording paper sheet, in which a top margin = 25 mm, a bottom margin = 20 mm, left and right margins = 25 mm, the number of characters per line = 40, the number of lines per page = 30. For this reason, as long as a document is edited or characters, symbols, and the like are printed using the standard format, an operator need only select default values to desirably print data on a recording paper sheet. However, when a recording paper sheet does not match the standard format, when a recording paper sheet has a size different from that used for printing, or when a format such as a frame is logically printed on a recording sheet, the size or print start position of the recording sheet must be measured, and default values must be changed based on the measurement results. When a format wherein characters or a frame is already printed is used, a plurality of tabs or indentations must be set in order to discontinuously print characters or symbols. In this case, a document format setting error tends to occur, and very often only after several times of errors, a desired print result can be obtained. EP-A-0101032 discloses a document processing apparatus in which a printing document is scanned to distinguish the areas to be printed from those not to be printed. As a result of the scanning a mask is generated which is represented on a display device such as a screen. A mask defines writable and non-writable areas which correspond to the areas on a printed document which are either printed or not to be printed. SUMMARY OF THE INVENTION : The present invention as claimed has been made in consideration of the above situation and has as its object to provide a document processing apparatus which is free from the conventional problems and can print characters, symbols, or the like at a predetermined position regardless of the size of a recording paper sheet, and the positions of printed characters or a frame. It is another object of the present invention as claimed to provide a document processing apparatus which is controlled such that printed data on a recording material is fetched, a print area is set based on the fetched content, and characters are printed in the print area, and which can print data on the basis of a complicated format with a very simple operation. It is still another object of the present invention as claimed to provide a document processing apparatus which does not require setting of a format such as margins, tabs, indentations in a normal edit printing mode, and can eliminate operation errors. BRIEF DESCRIPTION OF THE DRAWINGS : Fig. 1 is a block diagram showing a basic arrangement of an embodiment of the present invention; Fig. 2 is a block diagram showing an arrangement of a document processing apparatus according to the embodiment of the present invention; Fig. 3 is a plan view showing an arrangement of a keyboard; Fig. 4 is a plan view showing an already printed recording paper sheet; Fig. 5 is a plan view showing a print area according to the embodiment of the present invention; Fig. 6 is a flow chart showing a control sequence of the embodiment of the present invention; Fig. 7 is a plan view showing an example wherein data is printed on the already printed recording paper sheet shown in Fig. 4; Fig. 8 is a flow chart showing a control sequence of cursor movement of the embodiment of the present. invention; Fig. 9 is a plan view showing a case wherein only characters are printed on a blank recording paper sheet; and Figs. 10(A) and 10(B) are plan views showing cases wherein recording areas are surrounded by frames. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT : An embodiment of the present invention will now be described in detail with reference to the accompanying drawings. Fig. 1 is a block diagram showing the basic arrangement of the present invention. The basic arrangement includes an input unit a for inputting data, a first memory (MEM 1) b for storing the data input by the input unit a , a reading unit c for reading the size of a recording material and print data such as printed characters, symbols, figures, and the like, a second memory (MEM 2) d for storing the print data read by the reading unit c , a setting unit e for setting a print area of the recording material, and a display controller f for displaying the data stored in the MEM 1 b in the print area set by the setting unit e . Fig. 2 shows an arrangement of a document processing apparatus according to the present invention. The document processing appratus shown in Fig. 2 includes a processing unit (microprocessor; MPU) 1, an address bus 2 for designating addresses of I/O memories, a bidirectional data bus 3 used for transferring various data, and a control bus 4 used for accepting read, write, and interrupt commands for memories, and transferring timing data of data setting, and the like. A keyboard 5 includes letter keys, hiragana (Japanese letter) keys, numeric keys, a read key, an input key, an edit key, a store key, a print key, and the like. The keyboard 5 is connected to a keyboard controller 6 through a key buffer 6A and is controlled thereby. Data input at the keyboard 5 is encoded by the keyboard controller 6, and an interrupt signal is sent onto the control bus 4. Note that decoded key data is temporarily stored in the key buffer 6A, and is encoded by the controller 6 in accordance with an access by the MPU 1 to be read in the MPU 1. A CRT controller 7 controls a CRT display 8, a display controller 9, a video memory (VRAM) 10, and a video memory (VRAM) controller 11. The display controller 9 processes a pattern signal from the VRAM 10, and supplies the processed output to the CRT display 8 to output the display pattern. The VRAM 10 stores characters, lines, and figures to be displayed on the CRT display 8, and its storage content has a one-to-one correspondence with a display on the CRT display 8. The VRAM 10 repetitively outputs a video pattern in accordance with a display instruction from the CRT controller 7. The VRAM controller 11 controls the above-mentioned refresh cycle for the CRT display in accordance with an instruction from the CRT controller 7, and also controls data write/read access from the MPU 1. A character (CHR) generator 12 stores character patterns of characters to be displayed on the CRT display 8. Data is read out from the CHR generator 12 according to a request from the MPU 1 and is written in the VRAM 10 to be displayed on the display 8. A ROM (read-only memory) 13 stores a control sequence to be described later with reference to Figs. 6 and 8, and also stores various processing sequences, e.g., character processing. A controller 14 controls the ROM 13 and the CHR generator 12. A RAM (random access memory) 15 temporarily stores various data. More specifically, the RAM 15 stores a character string input at the keyboard 5 or stores conversion results of kana-kanji conversion in a Japanese document processing apparatus together with format data such as margins, tabs, indentations and print control codes. A RAM 16 stores image data obtained by an image reader 23. Data such as print data read out from the image reader 23, i.e., data associated with the size of a recording paper sheet, data of characters, lines, figures, or the like which are already printed on the recording paper sheet are stored in the RAM 16 in the form of images, and the readout print data are output to the VRAM 10 or a printer 21 under the control of the MPU 1. A controller 17 controls the RAMs 15 and 16, and also controls an interface with the MPU 1. A floppy disk 18 stores input document data. The floppy disk (FD) 18 is driven by a floppy disk (FD) driver 19 under the control of a controller 20. The printer 21 is controlled by a controller 22. The image reader 23 reads in the size of a recording paper sheet, already printed characters, lines, and the like. The image reader 23 comprises a photoelectric conversion element array for converting light reflected by a recording paper sheet into an electrical signal, and a moving unit for moving the recording paper sheet. A controller 24 controls the image reader 23. More specifically, the controller 24 controls reading of a recording paper sheet in accordance with an instruction from the MPU 1, and read data is stored in the RAM 16 in the form of an image. Fig. 3 shows a key arrangement of the keyboard 5. The keyboard 5 shown in Fig. 3 includes a read key 5A, cursor keys 5B, and mode selection keys 5C. When the read-key 5A is depressed, the image reader 23 reads a recording paper sheet. A cursor indicating a character input position on a display screen of the CRT display 8 is moved using the cursor keys 5B. The mode selection keys 5C are used to select a processing mode. For example, when a "PRINT" key is depressed, printing processing is executed using the printer 21. Fig. 4 shows an example of a recording paper sheet, and exemplifies a personal history on which characters, symbols, frames, and the like are printed in advance. The blanks of the recording paper sheet shown in Fig. 4 are filled using the apparatus of the present invention. The recording paper sheet shown in Fig. 4 is placed on the image reader 23, and the read key 5A on the keyboard 5 is depressed. Thus, the size of the recording paper sheet, and print data such as characters, symbols, frames, and the like are read in, and are stored in the RAM 16. Fig. 5 shows print areas which are set based on the size of the recording paper sheet and the content of the print data shown in Fig. 4. For example, a portion surrounded by a frame as indicated by reference numeral 25 in Fig. 5 is a print area. This area is a portion excluding a portion on which characters, symbols, frames, lines, and the like in Fig. 4 are printed. Whether or not a printing operation is enabled at the keyboard is determined by the MPU 1, and the determination result is stored in the RAM 15 as a document format. Fig. 6 shows a control flow of the above-mentioned operation. In Fig. 6, the content of image data read in from the image reader 23 and stored in the RAM 16 is divided to areas each corresponding to a minimum print character size, in step S1. In step S2, the content in an area of one minimum print character is read out from the RAM 16. In step S3, it is checked whether or not part of characters, frames, ruled lines, symbols, and the like already printed on the recording paper sheet is present in one print character area. If it is determined in step S3 that the area is blank, i.e., no data is printed in the print character area, the flow advances to step S4, and the area is registered in the RAM 15 as a print area. If it is determined in step S3 that data is printed in the print character area, since no further data can be input in this area, the area is stored as a space area in the RAM 15 (step S5). If data is stored in the RAM 15 in step S4 or S5, the flow advances to step S6, and a pointer is advanced to the next minimum print character area. In step S7, it is checked whether or not all the print areas on the recording paper sheet are checked. If YES in step S7, the flow ends; otherwise, the flow returns to step S2 to check the content in the next print area. Fig. 7 shows a case wherein new characters are displayed on the already printed recording paper sheet shown in Fig. 4 on the display screen of the CRT display 8. In Fig. 7, a cursor 26 indicates a next position where a character can be input. Movement of the cursor in the print area is indicated by numerals 27, 28, and 29. As can be seen from Fig. 5, at the cursor position 27, data can be printed. When the cursor is advanced from the position 27 using one of the cursor keys 5B, the cursor is moved to the position 28. When the cursor key 5B is kept depressed, a print input cannot be performed at a position on the right side of the cursor position 28 since this position is already stored in the RAM 15 as the space area, and when the cursor is further moved to the right, it enters the print area at the position 29. More specifically, when an operator depresses the cursor key 5B at the position 28, the cursor is advanced to the position 29. Fig. 8 shows the flow chart of this control. More specifically, it is checked in step S8 if the cursor position is in the space area. If YES in step S8, the flow advances to step S9, and the cursor position is advanced. However, if NO in step S8, the flow advances to step S10, and a next character input is waited. Fig. 9 shows an example wherein only characters are input in the print areas of a blank recording paper sheet in accordance with the document format shown in Fig. 7. According to the present invention, if the document processing apparatus comprises a reading unit having high resolution and a printing unit, new input characters and the like are printed on a blank paper sheet together with already printed characters, ruled lines, figures, and the like read by the reading unit. For this purpose, the contents of the RAMs 15 and 16 are synthesized and the synthesized data can be transferred to the printer 21. Image data read by the image reader 23 need not be directly stored in the RAM 16. For example, the image data is subjected to character recognition, graphic processing, and the like, so that characters, figures, and the like are converted to different ones and are stored in the RAM 16 while the already printed format remains the same, thus obtaining a higher-quality document. In the embodiment shown in Fig. 7, already printed characters and new input characters are displayed in the same format. However, when the content of the RAM 16 is written in the VRAM 10, the new input characters can be decorated by reversing, decreasing luminance, designating a color, and the like, so that the already printed portion and a new input portion are displayed in different formats. Thus, an operator can easily discriminate the input characters from the printed characters. In this embodiment, the already printed portion is converted to a space area. However, in place of the space area, the already printed portion can be substituted with a print control code, e.g., a tab, indentation, margin, or the like to skip the already printed portion. Figs. 10(A) and 10(B) show a case wherein a recording paper sheet on which a format is surrounded by frames in advance is separately read by the image reader. In Fig. 10(A), letters "VIA AIR MAIL" are printed in advance, and a recording paper sheet on which frames are printed is read by the image reader, so that characters are automatically printed in the frames. In Fig. 10(B), a blank recording sheet on which frames are printed is read by the image reader, so that predetermined characters are automatically printed in the frames. In this case, a format such as margins, tabs, and indentations need not be set, and characters can be automatically input in areas to be printed. As described above, according to the present invention, print data on a recording material is read, a print area is set based on the read content, and characters are input in this print area. Thus, a printing operation can be performed according to a complicated document format with a very simple operation. According to the present invention, in a normal edit printing operation, a format such as margins, tabs, indentations, and the like need not be set, and operation errors can be eliminated. If the printer comprises a page printer such as a laser beam printer, blanks can be filled on a screen, and a document processing apparatus which is easy to use can be realized.

Claims: A document processing apparatus comprising: recognizing means (1) for receiving image data from reading means (23) which reads image data printed on a recording material and for recognizing an area to which data can be input; display means(8) for displaying data based on the data read by the reading means; and input means (5) for inputting data in the recognized area; characterized by control means (1) for controlling the movement of a cursor which indicates the display position of data input by the input means (5) in the area recognized by said recognizing means; and print means (21) for printing data previously printed on said recording material and newly input data on the basis of the image data read by the reading means and the data input by the input means. An apparatus according to claim 1, wherein said print means comprises a printer (21). An apparatus according to claim 1 or claim 2, wherein the input means comprises a keyboard (5). An apparatus according to any one of the preceding claims, wherein the reading means (23) comprises a scanner. An apparatus according to any one of the preceding claims, wherein said display means comprises a CRT display (8). An apparatus according to any one of the preceding claims, wherein said display means (8) displays the previously printed data and the newly input data distinguishably from each other on the basis of the image data read by the reading means (23) and the data input by the input means (5). An apparatus according to any one of the preceding claims, wherein said recognizing means (1) executes a character recognition or a figure processing on the image data read by the reading means (23). A document processing method comprising the steps of: reading image data printed on a recording material; using said received data to recognize an area to which data can be input; inputting input data; and displaying data based on the read data; said method being characterized by the further steps of: controlling the movement of a cursor which displays the display position of input data in the recognized area; and printing data previously printed on said recording material and newly input data on the basis of the read image data and the input data. A method according to claim 8, including the step of displaying the previously printed data and the newly input data distinguishably from each other on the basis of the read image data and the input data. A method according to claim 8 or claim 9, wherein said recognizing step includes the step of executing a character recognition or figure processing on the read image data.

Inventors: ICHIMURA HIDESHI, ICHIMURA, HIDESHI
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1989
Main classification: G06F17
IPC codes: G06F17, G06F3, B41J2, B41J21