DOCUMENT PROCESSOR

Abstract: A document processor comprising a memory for storing a document input by a keyboard and a display (21) for displaying the document in the memory and a sign (22) indicative of the position of a character. The document in the memory is caused to correspond to the character and sign indicative of the character displayed on the display on the basis of information on the print position of a character and information on the pitch of characters.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to a document processor. Related Background Art As document processors with displays, for example, word processors such as electronic typewriters are known. For example, in an electronic typewriter, a document is finished on the display and then the characters of the document are printed, so that beautiful printed results without any typing mistakes are obtained. One example of such a typewriter is disclosed in, GB-A-2 156 118 In many of such electronic typewriters, the displays can display only characters less than those in one line, so that the position of a character displayed on the display has no one-to-one correspondence to that of the character printed on a sheet of paper. Thus it is difficult to know where a character on the display is printed on the sheet of paper. On the other hand, an electronic typewriter with a display which can display the number of characters equal to that of characters to be printed would be expensive, and the display would be large. Even if there are electronic typewriters which have a display which can display the number of characters equal to that of characters to be printed, no electronic typewriters in which the actual print position of a character or the number of characters can be recognized rapidly are found. SUMMARY OF THE INVENTION The present invention has been made in view of the above. One aspect the present invention provides a document processor which is capable of displaying the actual print position of characters in a document to be displayed. Another aspect of the present invention provides a document processor in which even if the display displays characters less than those to be printed, the print position of characters of a displayed document can be recognized. Another aspect of the present invention provides a document processor which includes input means for inputting a document to the processor, memory means for storing the document input by the input means, display means for displaying the document in the memory means and a sign indicative of the position of a character, and means for causing the document in the memory means to correspond to the characters and sign indicative of the character displayed on the display means on the basis of information on the print position of a character to print means and information on the pitch of characters to be printed. A further aspect of the present invention provides a document processor which includes means for setting a print mode, first display means for displaying the print position of a character in accordance with the mode, means for inputting a document, and second display means for displaying information on the input document and information indicating the position of the document, wherein characters can be input while the position of characters already printed and the actual print position of an unprinted character are being confirmed. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a schematic of an electronic typewriter according to the present invention; Fig. 2 is a block diagram of an embodiment of the typewriter; Fig. 3A illustrates a pitch scale and a pitch indicator Fig. 3B illustrates the display stage of a display obtained when the characters "Type" are input; Fig. 3C illustrates the state shifted leftward from the state of Fig. 3B and Fig. 4 is a flowchart showing one example of the display operation. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT Now one embodiment of the present invention will be described with respect to the drawings. The display referred to in the present invention may only be required to display document information input to the typewriter proper and may be separated from the typewriter proper. Fig. 1 shows the external appearance of the structure and arrangement of an electronic typewriter according to the present invention. Here, reference numeral 1 denotes a keyboard for inputting a document; 21 a display for display of the document input by the keyboard; 31 a print head (carrier) including a type wheel, a hammer, a ribbon, etc., moving right and left along a platen 32 to print characters in a mode set by a mode setting key 100, and printing a document input by the keyboard on a sheet of paper 35 or the like. Reference numeral 101 denotes a key for setting a print pitch. Reference numeral 34 denotes a pitch scale disposed above a display 21. Reference numeral 33 denotes a pitch indicator which indicates the position of the print head 31 (the number of characters) on pitch scale 34 and from the left end to which the carrier can move on the basis of a scale in accordance with the pitch of characters of pitch scale 34 in interlock with the movement of the carrier based on the pitch information set by a pitch setting key 101. The mode setting key 100 sets a print mode such as a C/C mode in which print is performed each time one character is input, an L/L mode in which print is performed each time one line is input, or a W/W mode in which print is performed each time one word is input, which will also be described later. Fig. 2 is a block diagram showing the particular embodiment in which a key cord input by keyboard 1 is determined by controller 5 including a microprocessor. If the key code is a character code, it is stored in a line buffer 41 in a memory 4. A buffer pointer 42 includes an address pointer which indicates the position of data stored in line buffer 41 and which is incremented each time a character code is stored in line buffer 41. Reference numerals 43 and 44 denote a display-head pointer and a display-end pointer displaying the head and end addresses, respectively, of a character code in line buffer 41 to be displayed by display 2. The pointers are updated each time the character code is stored in line buffer 41 under conditions such as, for example, will be described later. Both the pointers are also updated so that the number of character codes present between pointers 43 and 44 does not exceed the number of characters displayed by display 2. Reference numeral 45 denotes a carrier-position pointer which holds the position of carrier 31 indicated by pitch indicator 33. Reference numeral 46 denotes a character pitch buffer which stores the character pitch set by a keyboard input. It should be noted that display 2 and printer 3 may each include a controller aside from the controller 5 for the typewriter proper. Reference numeral 6 denotes a ROM ( R ead O nly M emory) which stores a control process such as that shown in Fig. 4. Display 2 has a 24 × 120 (line × column)-bit RAM and a 24 × 120 (line × column)-dot liquid crystal display 21. One bit in the RAM corresponds to one dot in display 21. When controller 5 writes into the RAM data corresponding to the dot pattern of a character row to be displayed, the character row can be displayed. The RAM and display portion 21 of display 2 are each divided into two, one having charge of characters and the other having charge of a sign indicative of the print position, in accordance with the difference between their display contents. For example, Fig. 3A shows the pitch scale 34 of printer 3 including three marked character scales corresponding to 10, 12 and 15 pitches. In Fig. 3A, pitch indicator 33 shows that the carrier is positioned at the 24th character from the left end for the 10-pitch. Fig. 3B shows on display portion 21 that the carrier is at the position shown in Fig. 3A. It also shows the stage indicated "Type" starting with the 20th character from the left end for the 10-pitch. Display portion 21 is divided into two areas, i.e., the upper portion indicates a numeral corresponding to every 5th scale of pitch scale 34 and a row of signs (-) each indicative of the position of each character, and the lower portion indicates the input character row "Type". At this time, a sign 22 indicative of the display position of the next character, for example, the position of the carrier shown in Fig. 3A, may be displayed flashed or enlarged. It goes without saying that the position of the carrier and the display position of the next character on the display portion may vary depending on a print mode, for example, the L/L mode in which print is performed each time one line is input, the C/C mode in which print is performed each time one character is input, or the like. When a print command is given from keyboard 1 to controller 5, this controller sequentially transfers the character data stored in line buffer 41 to printer 3 thereby to print the character data. The display operation of the above structure will be described with respect to Fig. 4. First, at step Sl, data is keyed in. At step S2, it is determined whether or not the data is a character code. If not, control passes to step S3 where other processing is performed. If the data is a character code, control passes to step S4 where the input character code is stored in line buffer 41 and then control passes to step S5. At step S5, it is determined whether or not the number of characters between the display-head and end pointers has reached the maximum number of characters displayed in display 21. If not, control passes to step S6 where the keyed-in character codes are delivered to display 2 and displayed. One example of aspects of display is, for example, as shown in Fig. 3B. It should be noted that the characters stored in line buffer 41 is caused to correspond to the scale and numeral indications in the upper portion of display 21 in accordance with the value of carrier-position pointer 45 indicative of the carrier position and the value of character pitch buffer 46 (in this case, corresponding to a 10-pitch). If at step S5 the number of characters between display-head and end pointers reaches the maximum number of characters displayed by display 21 (at this time, the characters of the maximum number is displayed by display 21), control passes to step S7 where one is added to each of the head and end pointers. The control passes to step S6. By the above execution of the steps S7 and S6, the row of characters displayed by display 21 is shifted left for one character, a character or space newly input, if any, is displayed at the end of the row of characters, the numerals and indicative signs in one-to-one correspondence to the print positions, displayed in the upper portion of display 21, are also shifted left, and a sign indicative of the print position of the new input character is displayed (Fig. 3C). As described above, according to the present invention, the print position of a character displayed can be known by causing a sign indicative of the position of a character corresponding to the print position of the character to correspond to the character and to be displayed. Thus very efficient document inputting can be performed. Put another way, one aspect of the present invention provides a document processor (such as a word processor or memory typewriter) comprising means to store a line of text, means to display a part of the line of text and means to indicate the position of the displayed part relative to whole of the line of text. Preferably, the processor also includes means to update the indicating means when the line of text or the part thereof is changed.

Claims: A document processor comprising: input means (1) for inputting a document; memory means (4) for storing the document input by said input means; first scale (33); and print means (3, 31, 32), having a scale indicator (34) for indicating a printing position relative to said scale (33), for printing the document stored in said memory means (4) onto a print medium (35) in the direction of said first scale (33) as indicated by said scale indicator (34); display means (21) for displaying characters inputted by the input means (1) to be printed; characterised in that the display means (21) can display a second scale (22) corresponding to said first scale (33); and control means (5) for controlling said print means (3, 31, 32) such that the document stored in said memory means (4) is read out and printed, and for controlling said display means (2, 21) such that said second scale (22) of said display means (2, 21) is displayed in correspondence with the characters to be printed. A document processor comprising: input means (1) for inputting a document; memory means (4) for storing the document input by said input means (1); and print means (3, 31, 32) for printing the document stored in said memory means (4) onto a print medium; display means for displaying characters inputted by the input means (1) to be printed; characterised in that there are first display means (33) for displaying on a first scale (34) position a character to be printed onto the print medium by said print means (3, 31, 32); second display means (2) for displaying one portion of the scale of said first display means (34) as a second scale (22) and for displaying characters to be printed by said print means (3, 31, 32); and control means (5) for controlling said second display means (2) such that the second scale (22) of said second display means (2) is displayed in correspondence with the printing by said print means (3, 31, 32) and the characters to be printed are displayed in correspondence with the display of the second scale (22) of said second display means (2). A document processor comprising: input means (1) for inputting character information; memory means (4) for storing the character information input by said input means; a carrier having a print head (31) mounted thereon; a first scale (33); print means (3, 31, 32), having a scale indicator (34) for indicating the position of said carrier (31) relative to said first scale (33), for moving said carrier (31) in the direction of said scale (33) as indicated by said scale indicator (34) and causing said print head (31) to print the characters onto a print medium (35); display means (21) for displaying characters inputted by the input means (1) to be printed; characterised in that there are display means (21) for displaying a second scale (22) indicating the carrier position (31) in correspondence with said first scale (34) as indicated by said scale indicator (33); and control means (5) for controlling said print means (3) such that said carrier (31) is moved, and for controlling said display means (2) such that said second scale (22) of said display means is displayed in correspondence with the characters to be printed. A document processor according to any previous claim, further comprising print position memory means for storing positions in which the characters are to be printed by said print means. A document processor according to any previous claim, wherein said display means (2, 21) comprises a one-line display. A document processor according to any previous claim, further comprising means (101) for setting a selected one of a plurality of character pitches, wherein said control means (5) controls said display means (2, 21) such that said second scale (22) is displayed in correspondence with the selected one of the plurality of character pitches (10, 12, 15) set by said setting means (101). A document processor according to any previous claim, further comprising means (100) for setting a print character unit, wherein in response to the print character unit set by said setting means, said control means (5) controls said print means (3, 31, 32) and said display means (2, 21) such that the characters are printed and displayed.

Inventors: TAKAHASHI, TSUTOMU
Applicants: CANON KABUSHIKI KAISHA
Application year: 1986
Main classification: B41J3
IPC codes: B41J29, G06F3, B41J3, G06F17