Word processor capable of automatic tilting of documents4841472Abstract A word processor including a screen display unit for displaying characters, etc. on a screen, a key input unit for inputting the characters, etc., a print unit for printing document data of documents, a document producing unit for producing the documents from data inputted from the key input unit, and a document control unit for inputting document control data to a recording medium or outputting data stored in the recording medium to the screen display unit. The key input unit includes a command device for giving a command relevant to automatic production of a title of an untitled document, and the document control means includes a title producing device for automatically producing the title of the untitled document in response to the command from the command device. Claims What is claimed is: Description BACKGROUND OF THE INVENTION
TABLE 1
__________________________________________________________________________
Date of
Type
Level
File Name
Title Content Nos.
Composition
Date of Renewal
__________________________________________________________________________
C 0 PCW-1 Data Diskette
22 12/13/84
7:37 pm
D 1 1 U 041 AN
Sample Document 1 5 12/14/84
1/11/85
D 1 1 U 041 CE
Sample Document 2 4 1/17/85
1/17/85
F 1 TECHNICAL REPORTS FOLDER
3
D 2 1 U 041 EO
File Specification
3 12/14/84
1/17/85
D 2 1 U1 J 036
Manual 2 1/14/85
1/16/85
F 1 PERSONAL FILES 2
FOLDER
D 2 1 UO J 2FG
Personal Document 1
1 12/13/84
12/20/84
D 2 1 UO J 2FI
Personal Document 2
1 12/13/84
1/19/85
__________________________________________________________________________
The date-of-production column shows the date of production of a directory
file in the case of a diskette, and the date of renewal column shows the
date of the current renewal date of production in the case of a document.
(d) Display of document table (Files screen) When the Files key 542 is depressed, a list of document names and folder names (hereinafter referred to as a document list or files screen) can be displayed on the CRT screen 102 as shown in FIG. 4. At the first line on the screen (the line number being shown at the rightmost part of FIG. 4 for better understanding), the name of the column (Files, Pages, Created and Edited) is displayed above an underline 1. In the column of Files, the contents of the type column, the level column and the title column of the directory are displayed. In the Pages column, the Created column and the Edited column, the contents of the content number column, the date-of-production column and the date-of-renewal column are displayed, respectively. At the second line, both a symbol 2 and a name "Blank Paper" 3 are displayed. The symbol 2 indicates that the name following the symbol is the name of a document. As will be described later, this document is used when a document having no content is to be produced. At the third line, both a symbol 4 and a name "Empty Folder" 5 are displayed. The symbol 4 indicates that the name following the symbol is the name of a folder. As will be described later, this folder is used when a folder having no content is to be produced. At the fifth line separated from a line 10a at the fourth line, the name 11 of the system disk of the word processor system inserted in the left-hand disk drive unit 301, the hour of use and percentage of the memory used are displayed. A 12 indicates that the name following this symbol is the name of the diskette. The display is separated by the line 10b (the seventh line) below a blank line. Lines 10a and 10b at the fourth and seventh lines are connected together by a vertical line 10c at the left side. After another line 20a at the seventh line, lines from the eight onward are used to display the contents corresponding to a respective line of the contents of the directory shown in Table 1. At the eighth line, and following the symbol 12 at the right-hand position indicates the diskette (type C) inserted in the right-hand disk drive unit 302, the diskette name, the date of production, the hour of production and the percentage of the memory used are successively displayed. At the tenth and eleventh lines following a blank line, the document names 21, the number of pages, the dates of production and the dates of renewal of the respective documents, Sample Document 1 and Sample Document 2, are displayed, respectively. A line 22 extending in the leftmost and central portions of the twelfth line and in the rightmost portion of the thirteenth line and further extending downwards from the leftmost portion of the twelfth line so as to depict a contour similar to the shape of an upper edge of an actually existing paper folder indicates that the information displayed below such a line 22 is the contents of the folder. The thirteenth line displays both the folder name 23 (TECHNICAL REPORTS FOLDER) and the number of documents contained in this folder. From the fourteenth line to the sixteenth line, the document names 21 (shown as rightwardly indented sequentially since the level is displaced one line below), the number of pages, the dates of production, and the dates of renewal of the respective documents belonging to this folder are displayed. Similarly, the presence between the sixteenth and eighteenth lines of a line 22 shaped so as to represent the contour of the upper edge of another actually existing paper folder indicates that the information therebelow represents the contents of the folder (the vertical components of the two lines 22 being connected together at the right-hand side). At the eighteenth line, both folder name PERSONAL FILES FOLDER and number of documents contained in this folder are displayed. At the nineteenth and twentieth lines, the dates of production and the dates of renewal of the respective documents belonging to this folder are displayed. At the twenty-first line, a line 20b is displayed. This line 21b is connected at a left-hand portion with the second line at the seventh line through a vertical line 20c in order to indicate that the display associated with all of the documents has been made. A cursor position indicator 30 represented by a marking shown at the leftmost margin indicates a line at which the cursor 31 is located. The last line (a prompt line) 40 of the screen provides a display of advice for the operator. As hereinabove described, the Files screen is associated with the type of the directory, the level, the title, the number of contents, the date of production and the date of renewal, and the contents of the directory file can be renewed by editing on the screen in a manner which will now be described. It is to be noted, however, that, where all cannot be displayed on the same screen because of too many documents, they can be displayed when they are scrolled up and down by operating the cursor keys 531. (e) Automatic registration of document title When the documents are input to the word processor K with the keyboard 500, the CPU 204 performs various processings in accordance with the contents of the storage area of the RAM/ROM memory 202 for storing the screen editing routine. In connection with automatic registration of the document title, the processing of inputting the documents to the word proessor K will be described with reference to a flowchart of FIG. 5 hereinbelow. Upon entry, a decision is made at step P1 as to whether any text of any information from the keyboard 500 exists including symbols other than alphanumerical symbols. If no text exists in the memory, then the screen displays a blank paper at step P2. If any text exists, then a decision is made at step P3 as to whether the document identifying the text has already been titled. If it has been titled, then the document title is displayed on the screen 102 at step P4. If no title exists, then the document is automatically defined as untitled and displayed as such at step P5. When a key on the keyboard 500 is operated at step P6, a decision is made at step P10 as to whether or not the New key 521 has been depressed. In the case of "YES" at step P10, a decision is made at step P11 as to whether or not the document is a new document. In the case of "YES" at step P11, a title is automatically produced from the document at step P12, and the title of the new document is registered in the directory at step P13. Then, the program flow proceeds to step P14. Since the title is produced from an initial sentence of the document at this time, the title clearly reminds an operator of contents of the document even after a long time. Meanwhile, even if the operator fails to put the title of the document, the document is not erased. In the case of "NO" at step P11, the title has been registered and thus, step P14 follows in which the document is stored. Subsequently, a blank paper showing the start of production of a new document is displayed on the CRT screen 102 at step P15. In the case of "NO" at step P10, a decision is made at step P20 as to whether or not the Files key 542 has been depressed. In the case of "YES" at step P20, a decision is made at step P21 as to whether or not the document is a new document. In the case of "YES" at step P21, a title is automatically produced from the document at step P22, and the title of the new document is registered in the directory at step P23. Then, the program flow proceeds to step P24. In the case of "NO" at step P21, the title has been registered and thus, step P25 follows in which the document is stored. Subsequently, a table (Files screen) showing the documents stored in a recording medium (diskette) in use is displayed on the CRT screen 102, and sorting of the documents, etc. are performed if necessary. In case of "NO" at step P20, a decision is made at step P30 as to whether or not the document storage key 526 has been depressed. In the case of "NO" at step P30, since characters, etc. of a document have been inputted to the keyboard 500, the document input is edited at step P31. In the case of "YES" at step P30, a document title is produced if necessary and then, is registered in the directory such that the document is stored in the floppy disk in the following procedure. At first, the document title is inputted to the keyboard 500 at step P32. Then, a decision is made at step P33 as to whether or not the document is a new document, namely, whether or not the title has been registered in the directory. In the case of "YES" at step P33, the title of the new document is produced so as to be registered in the directory at step P34. Thereafter, the document is stored in the floppy disk at step P35 and then, the program flow returns to step P1 in a waiting state for the next key input. In the case of "NO" at step P33, the title of the document is changed at step P36 and then, the document is stored in the floppy disk at step P35. Meanwhile, when the Cancel key 536 has been depressed during input of the document title at step P32, input of the document title is cancelled and then, the program flow returns to step P1 in the waiting state for the next key input. Thereafter, in the case of "NO" at step P32, a decision is made at step P37 as to whether or not the document is a new document. In the case of "YES" at step P37, a title is automatically produced from the document at step P38 as will be described later in detail and then, step P34 follows. In the case of "NO" at step P37, since the document title has been already registered, the program flow proceeds to step P35. If no alphanumerical characters have been entered in the document, then the subroutine of automatically producing a title from a predetermined number of alphanumerical characters cannot be executed at step P38. However, the document has already been titled as "Untitled" at step P5 and continues to carry this title message as indicative of a document with alphanumerical characters unavailable. Hereinbelow, input of the document title (step P32) will be described in detail with reference to a flowchart of FIG. 6. In FIG. 6, characters j and T(j) represent an index of a title buffer T and a j-th character of the title buffer T, respectively. Initially, a decision is made at step P40 as to whether or not the document under processing lacks a formal title. In the case of "NO" at step P40, the old title of the document is inputted to the title buffer T and is displayed on the CRT screen 102 at step P41. In the case of "YES" at step P40, the title buffer T is blanked at step P42. Then, an index j is set to 1, namely, the index j is initialized at step P43 and then, step P50 follows for applying a key input to the board 500. When the key input is applied to the keyboard 500 at step P50, a decision is made at step P51 as to whether or not the Enter key 545 has been depressed. In the case of "YES" at step P51, a decision is made at step P52 as to whether or not the index j is larger than 1. In the case of "YES" at step P52, since input of the title has been completed, the program flow proceeds to step P33 of FIG. 5. In the case of "NO" at step P52, since input of the title has not been performed, the program flow proceeds to step P37 of FIG. 5. Meanwhile, in the case of "NO" at step P51, a decision is made at step P53 as to whether or not the Cancel key 536 has been depressed. In the case of "YES" at step P53, input of the document title is cancelled and then the program flow proceeds to step P1 of FIG. 5. Thus, even after the document storage key 526 has been depressed erroneously, it is possible to cancel input of tee document storage key 526. In the case of "NO" at step P53, the title can be manually inputted to the keyboard 500 in the following procedure. First, a decision is made at step P60 as to whether or not the Back Space key 511 has been depressed. In the case of "YES" at step P60, a decision is made at step P61 as to whether or not the index j is larger than 1. In the case of "NO" at step P61, since input of the title has not yet been performed, an error sound is generated at step P69, and the program flow proceeds to step P50 for demanding a key input to the keyboard 500. Meanwhile, in the case of "YES" at step P61, 1 is subtracted from the index j at step P62 and then, a space is inputted to the character T(j) so as to be displayed on the CRT screen 102 at step P63 followed by step P50. Meanwhile, in the case of "NO" at step P60, a decision is made at step P64 as to whether or not the key input of a character code or a blank code has been applied to the keyboard 500. In the case of "NO" at step P64, an error sound is generated at step P65 and then, step P50 follows. In the case of "YES" at step P64, a decision is made at step P66 as to whether or not the index j is equal to or less than the maximum value N, an error sound is generated at step P65 followed by step P50. In the case of "YES" at step P66, the key input is applied to the character T(j) at step P67 and then, 1 is added to the index j at step P68. Supposing that the number N represents a maximum value of the number of the characters of the document title, the maximum value N is set to 33 in this embodiment of the present invention. Hereinbelow, automatic registration (steps P12, P22, P36 of FIG. 5) of the title from a document will be described in detail with reference to a flowchart of FIG. 7. In FIG. 7, characters i and M(i) represent an index of a document memory M and an i-th character of the document memory M, respectively. Initially, at step P70, the title buffer T is blanked and then, the index i of the document memory M and the index j of the title buffer T are set to 1 for initialization thereof. Thereafter, a decision is made at step P71 as to whether or not the index i is less than or equal to the number C of characters on the current page. In the case of "NO" at step P71, since there are no alphanumerical characters available, no title is produced and the program returns to the main flow. Thereafter, a decision is made at step P80 as to whether or not the character M(i) is a character code. In the case of "NO" at step P80, 1 is added to the index i at step P81 and then, the program flow returns to step P80 such that a first letter of the document is detected. Then, 33 characters are inputted to the title buffer T. At first, the character M(i) is inputted to the character T(j) at step P90 and then, 1 is added to the indexes i and j at step P91. Thereafter, a decision is made at step P92 as to whether or not the index j is equal to or less than the maximum value N. In the case of "NO" at step P92, since the title has been produced, the program flow proceeds to step P21 of FIG. 4. Meanwhile, in the case of "YES" at step P92, a decision is made at step P93 as to whether or not the next character M(i) of the document is one of blank codes such as space codes, tabulation codes, line feed codes, etc. In the case of "NO" at step P93, the program flow returns to step P90. Meanwhile, in the case of "YES" at step P93, a space is inputted to the character T(j) and 1 is added to the index j at step P94. Then, a decision is made at step P95 as to whether or not the index j is equal to or less than the maximum value N. In the case of "NO" at step P95, since the title has been produced, the program returns to the main flow. Meanwhile, in the case of "YES" at step P95, 1 is added to the index i at step P96 and then, a decision is made at step P97 as to whether or not the next character M(i) of the document is one of the blank codes. In the case of "YES" at step P97, the program flow returns to step P96. In the case of "NO" at step P97, the program flow returns to step P90. By using a loop flowing between steps P92 and P97, the blank codes such as the space codes, the tabulation codes, the line feed codes, etc. are reduced, in length, to one space. Thus, even if the document has many blank codes, its title can be efficiently registered. By employing this automatic registration of the document title, it becomes possible to edit the documents sequentially without the need for storing the documents in the diskette. (f) Examples of automatic registration of document title Hereinbelow, examples of automatic registration of the document title will be described. FIG. 8 shows an example of the document which is produced on the CRT screen 102. The document input from the keyboard 500 is displayed in the frame 104. At the left end of the frame 104, a scale 110 for indicating vertical positions of lines is displayed. Numerals of the scale 110 express, in inches, distances from the upper end of the scale 104. A mark 112 points to a line at which the cursor 103 is positioned. In the case where the key input is applied to the keyboard 500 by single line spacing, six lines can be inputted in one inch. At the upper end of the frame 104, there are displayed characters "Untitled" for indicating that the inputted document is a new document and is untitled and characters "Page 1 Line 12" for indicating the position of the cursor 103. Furthermore, at the lower end of the frame 104, a scale 114 is displayed for indicating positions of lines sidewise. A date is displayed below the scale 114. In the example shown in FIG. 8, the content "ABC . . . XYZ1234567890" is inputted to each line from the seventh to the eleventh line at step P27 (FIG. 5) and the cursor 103 is positioned at the ninth character of line 12. In a first example, the New key 521 is assumed to be depressed ("YES" at step P10 in FIG. 5) after the new document shown in FIG. 8 is typewritten with the keyboard 500. Then, a title of the new document is automatically produced from the document at step P12 since it is found at step P11 that the document is a new document. Namely, thirty-three characters starting from the character A, which is positioned at the ninth character of line 7 as the first character of the document, are inputted to the title buffer T, and the title thus produced automatically from the document is registered in the directory at step P13. Then, the new document is stored in the floppy disk at step P14. Finally, a blank paper is displayed on the CRT screen 102 as shown in FIG. 9, wherein characters "Blank Paper" and characters "Page 1 Line 7" of the position of the cursor 103 are displayed on an upper line. In a second example, the Files key 542 is assumed to be depressed ("YES" at step P20 in FIG. 5) after the new document shown in FIG. 8 is typewritten with the keyboards 500. First, a decision is made at step P21 as to whether or not the document is a new document. Because the decision is "YES" at step P21, a title is automatically produced from the document at step P22 as explained above in the first example. Since the title is produced from an initial sentence of the document at this time, the title clearly reminds an operator of contents of the document even after a long time. Meanwhile, even if the operator fails to input the title of the document, the document is not erased. Subsequently, a table (Files screen) showing the documents stored in a recording medium (diskette) in use is displayed on the CRT screen 102 and sorting of the documents, etc. are performed if necessary at step P25. That is, a table showing titles of the independent documents (indicated by a mark " ") and titles (indicated by a mark " ") of the folders is displayed on the CRT screen 102 as shown in FIG. 10. At this time, a title 130 of the document which has been newly registered in the directory is displayed above titles 132 of the independent documents and folders which have already been registered in the directory. In a third example, the document storage key 526 is assumed to be depressed ("YES" at step P26). Then a document title should be inputted to the keyboard 500 at step P30. At this time, a menu 120 for document storage is displayed on the CRT screen 102 as shown in FIG. 11 so as to indicate the next operation. When the Enter key 545 is depressed immediately at step P50 (FIG. 6) after the new document shown in FIG. 8 is typewritten with the keyboard 500, the document title is automatically produced from the document at step P36 (FIG. 5) since it is decided at step P30 that the document is a new document. Namely, thirty-three characters starting from the character A as the first character of the document are inputted to the title buffer T, and the title automatically produced from the document is registered in the directory at step P32. Then, the inputted document is stored in the floppy disk at step P33. Subsequently, when the Files key 542 is depressed at step P20 , a table showing titles (indicated by a mark " ) of the folders is displayed on the CRT screen 102 as shown in FIG. 10 (step P25 in FIG. 5). Next, a fourth example of automatic production of the document title will be described. FIG. 12 shows another new document displayed on the CRT screen 102. In FIG. 12, at page 1, character strings "PLAN OF 1985", "Jan. 17, 1985", "MINOLTA CAMERA" and "'85 Project is" are inputted to lines 7, 9, 10 and 12, respectively. The cursor 103 is positioned at line 12. When the document storage key 526 is depressed and then, the Enter key 545 is depressed immediately, the document title is automatically produced. The result is displayed by an uppermost title 134 of the Files screen of FIG. 13. In this case, the newly produced title includes 33 characters ranging from the first character "P" of line 7 to the character "T" of line 10 in FIG. 12. Space codes occurring up to the first character "P" of line 7 are omitted. It is to be noted that space codes and line feed codes occurring from the numeral "5" of line 7 to the character "J" of line 9 are reduced, in length, to one space. Likewise, space codes and line feed codes occurring from the numeral "5" of line 9 to the character "M" of line 10 are reduced, in length, to one space. Thus, the document tile can be efficiently registered in the directory. As a final example, input of a title of the new document shown in FIG. 12 will be described hereinbelow. After the document shown in FIG. 12 has been produced, the document storage key 526 is depressed ("YES" at step P26) and then, a title is inputted from the keyboard 500 at step P50 (FIG. 6). Thereafter, when the Enter key 545 is depressed at step P50 ("YES" at step P51), the inputted title is registered (step P2). In FIG. 14, for example, the title "MINOLTA CAMERA (PLAN OF 1985)" is inputted. Subsequently, when the Files key 542 is depressed, the title 132 registered is displayed on the CRT screen 102 as the Files screen of FIG. 15. Although the present invention has been fully described by way of examples with reference to the accompanying drawings, it is to be noted here that various changes and modifications will be apparent to those skilled in the art. Therefore, unless otherwise such changes and modifications depart from the scope of the present invention, they should be construed as being included therein.
|
Same subclass Same class Consider this |
||||||||||
