Abstract:
An electronic apparatus includes storage units capable of storing a plurality of texts and a plurality of titles corresponding to each text. A display indicates whether a text has been stored in the storage unit or not by displaying a corresponding title chosen by a selector.

Description:
This application is a continuation of application Ser. No. 07/638,020 filed Jan. 7, 1990, now abandoned, which is a continuation of application Ser. No. 07/219,874 filed Jul. 12, 1998, now abandoned, which is a continuation of application Ser. No. 06/791,379 filed Oct. 25, 1985, now abandoned. 
    
    
     BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to a printing device that functions to edit and correct while displaying print information stored in storage means. 
     2. Description of the Prior Art 
     Printing devices such as typewriters are known to be provided with a control/arithmetic operation circuit using such as a microcomputer, a memory circuit such as RAMs, and the like. By additionally providing a display means such as a liquid crystal display, and a storage means for storing inputted data and the like, it is possible for the printing device of this type to have a function to edit, correct and print by reading the desired inputted data from the storage means and displaying it on the display means. 
     The storage means of the above-noted printing device can store in memory a plurality of texts (documents) each of which usually has its specific title (name). Thus, a particular text can be read as desired and can be displayed, corrected, registered and printed. 
     With conventional printing devices of this type, however, whether a text having a certain title has been registered or not is generally not known by the operator. Therefore, even in the case that a text having a certain title has previously been registered, the operator without knowing the fact might enter a text having the same title. This could be a problem such as breaking the previously stored text. 
     The printing device may be constructed such that the content of a text is always displayed when a title corresponding to the text is selected. In this case, even if the operator selects the same title whose text has previously been registered, the operator becomes aware of the state of registration, from the presence or absence of displayed characters or the like on the screen. 
     However, again in this case, if the previously registered text has a number of &#34;spaces&#34; (no indication) in its content, that portion of the document might be displayed on the display means without giving an indication. Therefore, the operator cannot judge whether such an indication is due to a number of &#34;spaces&#34; of the document or due to non-registration of the document. If a portion where the document has some characters is to be displayed, a display means of a large screen is required and this is not suitable for practical use. 
     SUMMARY OF THE INVENTION 
     It is an object of the present invention to provide an electronic apparatus capable of displaying whether a text has been registered or not. 
     It is another object of the present invention to provide an electronic apparatus capable of editing by selecting one of the displayed titles of the documents previously registered. 
     It is a further object of the present invention to provide an electronic apparatus capable of judging whether a selectable title has been selected or not. 
     It is a still further object of the present invention to provide an electronic apparatus capable of displaying the title of a text and a mark indicative of registration or non-registration of the text. 
     An electronic apparatus according to the present invention includes a memory for storing a plurality of texts and a display for displaying whether a text has been stored in the memory or not. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 shows an outer appearance of an embodiment of the invention; 
     FIG. 2 is a view of a menu screen showing the titles of texts; 
     FIGS. 3A and 3B respectively show non-registration and registration of a text; 
     FIG. 4A shows the construction of the embodiment; 
     FIG. 4B shows a memory map of RAM 12; 
     FIG. 4C shows a map of a text vector table; 
     FIG. 4D shows a map of a text vector table; 
     FIGS. 5A and 5B are control flow charts of MPU 10; 
     FIG. 6A shows an example of an inputted document; 
     FIGS. 6B and 6C show examples of indications; and 
     FIG. 7 shows another example of indication. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     The embodiments of the invention will be described in detail with reference to the accompanying drawings. 
     FIG. 1 is a printing device. Reference numeral 1 represents a keyboard constituting input means, and reference numeral 2 represents a liquid crystal display of 32 characters per line constituting a display means. A printing unit is also provided. On the keyboard 1, there are provided a &#34;TEXT&#34; key 1-a, a &#34;cursor movement&#34; key 1-c, a &#34;TEXTPRINT&#34; key 1-d, an alphabet key group 1-b and so on. 
     FIG. 4A is a block diagram of the printing device according to an embodiment of the present invention. 
     An MPU (micro processor unit and associated circuits) 10 in a control unit 13 is connected via system buses 9 to an I/O port 8, ROM 11 and RAM 12, MPU 10 interfaces through the I/O port 8 and an I/O bus 7 with the keyboard 1, display means 2 and printing means or printer 3. ROM 11 stores a control program for the whole system of the printing device, including specifically the control program for the control sequence as shown in FIGS. 5A and 5B. 
     FIG. 4B is a memory map of RAM 12. Reference numeral 20 represents a printer buffer for the printing means 3 to print one line. Reference numeral 21 denotes a display buffer of 32 bytes for the display means 2. Reference numeral 22 represents a text vector table which will be described later, and reference numeral 26 represents a cursor position register for registering a cursor position to be displayed on the display means 2. RAM 12 stores in addition registered texts such as text &#34;A&#34;, text &#34;B&#34;, text &#34;C&#34; . . . etc. Text &#34;A&#34; (link) is a continued part of text &#34;A&#34;, which is not directly related to the present invention. 
     FIG. 4C is a memory map of the text vector table 22, the construction of the memory map being described later. 
     In the printing device of the above embodiment, the title of a text is represented by any one character of A to Z and the texts up to 26 texs may be stored. In the embodiment, upon depression of &#34;TEXT&#34; key 1-a, the printing device advances to a text mode where the alphabets A to Z are displayed on the display means 2 as shown in FIG. 2. The operator then selects a title by choosing a letter. As will be described later, although the printing device of the invention uses one letter of the alphabet as a title, any other printing device may be employed which uses an arbitrary title freely set by the operator. 
     Upon selection of one title among A to Z, the text vector table 2 of FIG. 4C is looked up. In the text vector table 22, texts are arranged from A to Z in this order. Reference 23 represents a flag indicative of non-registration/registration of a text, reference numeral 24 represents a text start pointer indicative of a start address of the text in RAM, and reference numeral 25 represents a link address indicative of the position of a continued text added to a certain text full in content. 
     In FIG. 4C, texts &#34;A&#34; to &#34;C&#34; are registered, while text &#34;D&#34; is not registered so that its text start pointer 24 and link address have not been identified as yet. 
     If the operator selects a title &#34;D&#34; whose text has not been registered, a title character &#34;D&#34; and an indication of non-registration &#34;;&#34; are displayed on the display means 2 as shown in FIG. 3A Alternatively, if the operator selects a title &#34;A&#34; whose text has been registered, a title character &#34;A&#34; and an indication of registration &#34;:&#34; as well as a top word &#34;condition&#34; of text &#34;A&#34; are displayed on the display means 2 as shown in FIG. 3B. 
     By displaying the marks indicative of non-registration/registration (in this embodiment &#34;:&#34; and &#34;;&#34;) together with the title, the operator can know the state of non-registration/registration of the document file after the start of necessary operations (it is noted that the marks &#34;:&#34; and &#34;;&#34; indicative of non-registration/registration are not limited thereto). 
     Next, the control sequence of the printing device pertinent to the present invention will be described with reference to FIGS. 5A and 5B. 
     First, at step 100, key input by the operator is waited. If there is any keyboard input, the input is checked at step 102 if it is an input of &#34;TEXT&#34; key 1-a, that is, a mode selection input is waited. 
     If the input is not from &#34;TEXT&#34; key 1-a, then step 104 follows to check if the input is from a character or symbol key. If affirmative, step 106 follows to display the character or symbol on the display means 2. If negative, after a function processing corresponding to the key input is performed (step 108), step 100 resumes to wait for a new keyboard input. In steps 100 to 108, the printing device is in an &#34;idle state&#34; and does not give any influence upon the contents of the text unless a &#34;TEXT&#34; key input is received. 
     If a keyboard input at step 102 is identified as from &#34;TEXT&#34; key 1-a, then a text mode follows (step 110). Upon transfer to the text mode, as described previously, the display means 2 is actuated as shown in FIG. 2. The operator then selects any one title among A to Z. At steps 112 and 114, any one input of the alphabets A to Z is waited. If it is not a letter input, a warning tone is produced to notify the operator to such effect (step 116). 
     If any one character of A to Z is selected, step 118 follows to look up the text vector table 22 and identify the text having as its title the inputted character. Assuming that &#34;A&#34; is appointed, the flag 23 of text &#34;A&#34; is checked (step 120). Since text &#34;A&#34; has already been registered, the content of text &#34;A&#34; is read starting from the address indicated by the text start pointer 24 (step 124). At step 126, the display buffer 21 stores the text title &#34;A&#34;, a mark &#34;:&#34; indicative of registration and the initial sentence or the like of the text and displays them on the display means 2 as shown in FIG. 3B. 
     Alternatively, if a non-registered text (for example text &#34;D&#34;) is selected at steps 112 to 114, then the flow advances to steps 118, 120 and 122 so that title &#34;D&#34; and a mark &#34;;&#34; indicative of non-registration are displayed on the display means 2 as shown in FIG. 3A. 
     As stated above, display of FIGS. 3A or 3B depending upon non-registration or registration of the selected text enables the operator to notify the state of non-registration/registration of the selected text. Thereafter the flow advances to step 128. 
     The flow following step 128 shows the sequence of editing of a text. Therefore, keyboard input to be expected at step 128 is from the cursor movement key 1-c, character/symbol key group, &#34;TEXTPRINT&#34; key 1-d, &#34;TEXT&#34; key 1-a and the like. 
     If an input at step 128 is from the cursor movement key 1-c, then at step 132 the position of the cursor at that time is checked to see if it is at the right or left end of the display means 2. The left end here means the position next to the mark of registration/non-registration and the title character. If the cursor is located at the right or left end, the displayed text is scrolled (step 136). If the cursor does not locate at the right or left end, the cursor is moved (step 134). After steps 134 and 136, step 128 resumes to wait for a new input. In particular, assuming that the cursor locates at the position of the text of FIG. 6A as shown in FIG. 6B, the text will scroll as shown in FIG. 6C by turning the cursor movement key 1-c to the right side. In this way, the title of the text and mark of registration/non-registration are constantly kept displayed so that the operator can recognize the state of registration/non-registration during the operation. 
     If an input at step 128 is from the character/symbol key group (step 138), then step 140 follows to add to or change the text in RAM 12 at the current position of the cursor. In this case, similarly to the cursor movement key input, the title character and mark of registration/non-registration on the display means 2 are kept unchanged and the state of registration/non-registration can always be recognized, so the operator feels at rest in performing necessary operations. 
     If a keyboard input at step 128 is from the &#34;TEXTPRINT&#34; key 1-d, the flow advances to steps 128, 130, 38, 142 and 154 to print the text. After printing, the display means is cleared and step 146 follows. At step 146 if the text has not been registered as yet, the flag 23 of the text is set. At step 148, the link address 25 is renewed if necessary. The renewal of the text vector table 22 is thus performed. At step 150, the display means is completely cleared to notify the operator of the end of printing and renewal of the text vector table. Step 100 resumes thereafter to return to the &#34;idle&#34; state and wait for a mode setting. 
     If a keyboard input at step 128 is from the &#34;TEXT&#34; key 1-a, the flow advances to steps 128, 130, 138, 142, 144 and 146. This flow is the same as the flow processed at the &#34;TEXTPRINT&#34; key input except for the printing processing, therefore the description therefor is omitted. 
     If an input at step 128 is not from the cursor movement key 1-c, character/symbol key, &#34;TEXT&#34; key 1-a and &#34;TEXTPRINT&#34; key 1-d (e.g., an input from a Japanese syllabary kana/hiragana conversion key or the like), then step 158 follows to perform the corresponding processing to thereafter return to step 128 (step 160) to wait for a new key input. 
     According to the printing device of the embodiment, it is possible to make a new document formation, editing, registration and printing with a simple operation while confirming the title of the selected text and the state of registration/non-registration thereof. 
     Although the description of the embodiment has been made using an alphabet as the title for the convenience of description, the present invention is also applicable to the printing device using such a title as the operator may freely choose as desired. In this case, as shown in FIG. 4D, title codes are additionally provided within the text vector table 22. The text is then searched by using the title code at step 118. If there is the title, the title and mark of registration/non-registration are displayed on the display means (if the title is too long, only the mark may be displayed). 
     Furthermore, although the string of titles selectable at step 110 has been shown as in FIG. 2, marks 30 indicative of registration/non-registration state may be displayed under the corresponding titles, which leads to a similar effect as in the foregoing description. 
     As seen from the above description of the present invention, it is possible to display a text, correct it and form a new text with simple operations while confirming the state of registration/non-registration, to thereby prevent inadvertent breaking of the document already stored.