Abstract:
A document processing apparatus has a floppy disc for storing document information in one format, a key stroke train converter for reading the information from the floppy disc and converting it into information in another format, a processor for processing the information, and another floppy disc for storing the processed information.

Description:
This application is a continuation of application Ser. No. 07/965,566 filed Oct. 23, 1992; which is a continuation of 07/644,748 filed Jan. 23, 1991; which is a continuation of Ser. No. 07/157,145 filed Feb. 11, 1988; which is a continuation of Ser. No. 06/704,600 filed Feb. 25, 1985; all now abandoned. 
    
    
     BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to a document processing apparatus which can process document information having different recording formats. 
     More particularly, the present invention relates to conversion of document information created by an electronic typewriter or a word processor and stored in a memory so as to establish compatibility between document information having different recording formats. 
     2. Description of the Prior Art 
     A document recording format conversion processing apparatus (i.e., conversion apparatus) is conventionally required to establish compatibility between documents created by different document processing apparatuses. This apparatus took a considerable amount of time to develop. 
     SUMMARY OF THE INVENTION 
     It is, therefore, an object of the present invention to provide a document processing apparatus wherein a conventional processing mechanism such as a word processor need not be modified, and additional software and hardware are minimized. 
     In order to achieve the above object of the present invention there is provided a document processing apparatus for converting document information recorded in a first format to that of a second format, comprising converting means for converting the first format to a key stroke data train, input means for selecting one of the key stroke train data or input data entered at keyboard means, control means connected to the input means, and inhibiting means for inhibiting the control means to perform display processing. 
     It is another object of the present invention to provide a document processing apparatus for converting character data train stored in a given format to that of another format and storing the converted data. 
     It is still another object of the present invention to provide a data processing apparatus for reading out data in a predetermined format from memory means in response to data entered at a keyboard and for converting the readout data to a key stroke data train. 
     It is still another object of the present invention to provide a document processing apparatus for inhibiting data input at the input means while document data stored in the memory means is being processed. 
     It is still another object of the present invention to provide steps for converting document data to that of the predetermined format. 
     It is still another object of the present invention to provide a data processing apparatus which can be connected to a detachable memory for performing data exchange and a keyboard for entering data, wherein the data from the memory is converted to a key stroke data train which is then supplied to an input terminal of the keyboard. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a block diagram showing the basic system configuration of a conventional word processor; 
     FIG. 2 is a representation for explaining conversion of document recording formats; 
     FIG. 3 is a block diagram showing the system configuration of a document processing apparatus according to an embodiment of the present invention; 
     FIG. 4 is a representation showing a document processing function; 
     FIGS. 5(1) to 5(3) are diagrams showing different recording formats, respectively; 
     FIG. 6 is a flowchart for explaining the control steps of operations in the apparatus shown in FIG. 3; and 
     FIG. 7 is a representation showing the format conversion technique of the present invention. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
     The present invention will be described in detail with reference to the accompanying drawings. 
     FIG. 1 shows the basic system configuration of a conventional word processor. The word processor comprises a keyboard KEY, a display unit CRT, a floppy disc drive FD, a printer PRT and a central processing unit PROC as the main unit thereof. 
     Assume that a document is recorded in format B in the floppy disc in the disc drive FD of the word processor, and that another document is recorded in format A by an electronic typewriter (not shown). In this case, the word processor cannot read data in format A from the floppy disc. As shown in FIG. 2, the data in format A in a floppy disc FA must be converted to format B in a floppy disc FB. 
     FIG. 3 is a block diagram of a data processing apparatus according to an embodiment of the present invention. This processing apparatus has a keyboard KEY, a display unit CRT, a floppy disc drive FD, a printer PRT and a central processing unit PROC in the same manner as the apparatus of FIG. 1. The processing unit PROC is connected to the respective components so as to control the overall operation. The central processing unit PROC has an internal memory MEM for storing a control program to execute the operation of a flowchart shown in FIG. 6 The keyboard KEY is connected to one input terminal of a 2-input AND gate G1 and the other input terminal thereof is connected to a key stroke data train converter CNV for converting the contents of the floppy disc to a key stroke train (set). The output terminal of the AND gate G1 is connected to one input terminal of a 2-input OR gate G3, and the other input terminal thereof is connected to a working memory WKM. The output terminal of the OR gate G3 is connected to the central processing unit PROC. The input terminals of a 2-input AND gate G2 are connected to the processor PROC and the converter CNV. The output terminal of the AND gate G2 is connected to the display unit CRT. 
     FIG. 4 is a representation for explaining document processing according to the present invention, exemplifying the centering function. Referring to FIG. 4, a character data train &#34;CENTER&#34; is printed at a center C between a left margin LM and a right margin RM. When such a character data train is transferred to the electronic typewriter (not shown), the data is stored in format A (FMT-A in FIG. 5(1)) in the floppy disc. The data format in FIG. 5(1) has a centering start code BC and a centering end code EC. 
     FIG. 6 is a flow chart for explaining the case wherein the floppy disc is inserted in the floppy disc drive FD of FIG. 3 and a format conversion command is entered at the keyboard KEY. 
     The key stroke data train converter CNV reads out document data from the floppy disc drive FD (step S1). For example, when the converter CNV receives data in format A (FMT-A), the converter CNV evaluates the centering start and end codes, BC and EC, respectively, and determines that the character train between the codes BC and EC must be subjected to centering processing. 
     Subsequently, the key stroke data train converter CNV writes data in format A&#39; (FMT-A&#39; in FIG. 5(2)) in the working memory WKM in accordance with a preregistered operation (i.e., the same operation steps as when an operator enters data at the keyboard KEY) (step S2). When all the data are stored as a key stroke data train in the working memory WKM, the converter CNV closes the AND gates G1 and G2 through signal lines L1 and L2, respectively (step S3). 
     The key stroke data train is supplied from the working memory WKM to the processing unit PROC through the OR gate G3 (step S4), and automatic document processing is performed. As a result, the document in format B (FMT-B in FIG. 5(3)) is stored in the floppy disc. The document in format B can be directly read by the processing unit PROC in the word processor or the like. 
     When all the document data are stored in the floppy disc the key stroke data train converter CNV opens the AND gates G1 and G2 (step S6), and the normal word processing function can be restored. 
     As is apparent from the above description, an unnecessary key input is inhibited by the AND gate G1, and an unnecessary display operation is inhibited by the AND gate G2, thereby providing high-speed operation. 
     In addition, as shown in FIG. 7, instead of using the working memory WKM, the key stroke train can be rewritten in a floppy disc to obtain the same effect as in the above embodiment. 
     According to the present invention, without modifying the conventional software and hardware, compatibility between different data formats can be established, thereby improving office automation efficiency.