Method and apparatus for editing documents including a plurality of data of different types5051930Abstract A documentation system for editing a document in which a plurality of document data of different forms coexist in a mixed fashion and which includes one or more pages each partitioned into a plurality of regions in accordance with difference edition processing procedures. The system includes a storage for storing the document data of the above-mentioned document structure, a display for displaying the document data as images, and a program executing unit for executing the programs to process the document data within the region being subjected to the edition. The edition processing programs are provided in correspondence with different edition processing procedures such that a given one of the edition processing programs processes the edition of the document data within one of the regions in the document image being displayed on the display unit. The edition processing program executing currently the edition processing for the document data within a first region responds to a command for the edition processing for a second region other than the first region by issuing an extra-region message. The documentation system further includes a unit for executing programs to make the display unit to display thereon the document data within a region, a unit for executing a manage program for controlling activation of the edition processing program executing unit and activation of the display program executing unit, and a message transfer unit for transferring messages between the edition processing program executing unit and the manage program executing unit. The extra-region indicating message is transferred to the manage program executing unit which responds thereto by activating the edition processing program for the document data in the second region. Claims We claim: Description BACKGROUND OF THE INVENTION
TABLE 1
______________________________________
Type of
messages Contents
______________________________________
330 Completion of layout alternation
331a End of processing, extra-region coordinates,
change-over, change of page, scrolling
331b Completion of layout display
______________________________________
The messages 331a are issued by the document manager 300 and sent to the edit tasks and include a "processing end" message informing that the edition terminating command is issued in the course of the edition, an "extra-region coordinate" message indicating that the input coordinates as designated are outside of the region being subjected to the edition, a "change-over" message indicating that the change-over of region is commanded, a "scrolling" message indicating the scrolling command, a "page change message" indicating the necessity of changing the page, and so forth. The message 330 is issued by the document manager 300 in response to the message 331a to inform the edit tasks 310 that the processing for updating the layout image has been completed in accordance with the content of the message 331a. The message 331b is issued by the layout display task 320 to the document manager 300 for information that the processing for the layout display as commanded has been completed. Before entering into the description of the processing performed by each task, a method for edition performed on the layout display image will be elucidated with reference to FIGS. 6A and 6B along with FIGS. 1A to 1D. FIGS. 1A, 1B, 1C and 1D are views showing examples of the layout display generated in the course of the editing operation by the documentation system according to the illustrated embodiment of the present invention. In the figures, a reference numeral 100 documents a menu bar displaying a list of available editing functions to be selected by the operator, wherein a numeral 101 denotes a change-over function, 102 denotes a new region creating function, 103 denotes a region manipulating function and a numeral 104 denotes an end function. Further, a numeral 120 denotes a layout display representing one page of a document being edited. A numeral 121 denotes a text region on the page being displayed, 122 denotes a graphic region, and a numeral 123 denotes an frame-enclosed or framed region. A numeral 110 denotes a cursor for indicating locations on the CRT screen, the position of the cursor 110 being designated with the aid of an external input unit such as a mouse or the like. The layout display shown in FIG. 1D is generated in the state where the document manager 300 is being activated and waiting for the input by the operator. At this juncture, it is assumed that the operator commands a correction or modification of an edited document stored in a floppy disc. Then, the document manager 300 and the layout display tasks 320 are sequentially activated, wherein the state shown in FIG. 1D is achieved when the layout display processing has been completed by the layout display tasks 320. When the operator designates a region 122 with the cursor 110, moves the cursor 110 to the menu bar 100 and selects the region manipulating function 103, then a pull-down menu 600b shown in FIG. 6B is displayed. When the function "EDIT" of the pull-down menu is selected by the operator, the display of the state shown in FIG. 1A is generated. In this state, the graphic edit task 310b is operating, wherein a menu for the graphic edition is displayed in the menu bar 100. In FIG. 1A, the region being subjected to the edition is indicated as enclosed by a thick solid line with the other regions being indicated as enclosed by broken lines. In this conjunction, it should be mentioned that this type of display scheme is not essential to the present invention. All the regions may equally be displayed by using the same kind of line or those regions of no concern may be spared from the display. When the new region creating function 102 on the menu bar 100 is designated in the state shown in FIG. 1D, a pull-down menu 600a shown in FIG. 6A is displayed. When one of "TEXT", "GRAPHIC" and "FRAME" is selected in this pull-down menu 600a, a corresponding region is newly displayed on the screen 120. By designating the size and the location of this region, there is established a new text region or a frame region or other containing no document data yet. In the state shown in FIG. 1A, graphic edition can be performed within the graphic region 122. When the position indicated by the cursor 110 lies within the graphic region 122, the graph edit task 310b performs the graphic edition processing. Of course, the operator can input other desired edit functions through corresponding designation of the menu bar 100 with the cursor. As the means for inputting the edit functions, a keyboard may be employed in addition to the selection from the menu bar 100 by means of the cursor. On the other hand, when the frame-enclosed region 123 is designated with the cursor 110, the region 123 is then subjected to the processing for edition, whereupon the display state shown in FIG. 1B is generated with the frame edit task 310c being activated. At that time, a frame edition menu is displayed on the menu bar 100. As will be appreciated from the above, editions of the document data of different types or species can be sequentially performed with the edit tasks 310 being changed over by designating the regions on the layout display screen. As an example, assume that the edition is to be performed for the text region 121 in the state shown in FIG. 1C. In this state, the graphic region 122 and the frame region 123 are superposed on the text region 121. Consequently, there may arise such situation that difficulty is encountered in deciding whether the input coordinates designated by the operator with the cursor 110 indicate a position within the text region 121 or within other regions (122, 123). More specifically, in the case of the example illustrated in FIG. 1, the attribute of the graphic region 122 is assumed to be non-exclusive (i.e. capable of being superposed with other region), wherein the text region 121 and the graphic region 122 are displayed in superposition (overlap). Accordingly, when a position within the overlapping domain is designated by the cursor, the apparatus will then encounter extreme difficulty in deciding whether the designated position lies in the text region 121 or in the graphic region 122. For coping with the problem mentioned above, there is provided according to a teaching of the present invention the change-over function 101 in the menu bar 100 for each of the edit tasks 310 with a view to making clear which of the regions is designated for the edition. When the change-over function 101 is designated by the cursor, the document manager 300 operates in response thereto, whereby the state shown in FIG. 1D is displayed to allow the various functions to be selected by consulting the new region create menu 102 or the region processing menu 103, as described hereinbefore. More specifically, designation of the region for the edition in the domain where the graphic region 122 overlaps the text region 121 in the state shown in FIG. 1D is carried out in the manner mentioned below. When the overlapping domain or area is designated by the operator with the cursor, the system displays the graphic region 122 by enclosing it with the solid line. When the operator commands the execution of edition immediately thereafter with the mouse, edition for the graphic region is started. When the operator designates the overlapping domain twice successively, the text region and the graphic region are displayed as enclosed by the solid line frame. Assuming that the execution of the processing for edition is commanded by the operator with the mouse in this state, the system then decides the command as the invalid input and does not accept the command. On the other hand, when the operator designates the overlapping area with the cursor in the state where both the regions are displayed as enclosed by the solid lines, the system clears the solid line enclosure display and displays only the text region by enclosing it with the solid line. When the execution is commanded by the operator with the mouse in this state, edition for the text region is started. Next, description will be made of the processings executed by the various tasks with reference to FIG. 5 and FIGS. 7 to 10. FIGS. 5A to 5C and FIG. 7 are views for illustrating the managing data used for the management of the regions by the document manager 300 as well as in the course of edition. The document manager 300 manages or controls the position and the size of a region with the aid of a form coordinate system. In FIG. 5A, reference numeral 120' denotes a form for the edition. The form coordinate system is a dot coordinate system having the origin 510 located at the upper left corner of the form, as shown in FIG. 5A. With this coordinate system, the positions and the sizes of regions 121' to 123' are managed by making use of the upper left corner coordinates (531, 541, 551) and the lower right corner coordinates (532, 542, 552) of the respective regions. These coordinates are stored in the region manage tables 420 at rows 423. FIG. 5B shows the layout of the form displayed on the display screen 500 on which a coordinate system having the origin 520 at a upper left corner point located beneath the region for the menu bar 100 is established, as shown in FIG. 5B. In this figure, the reference numerals affixed with primes denote the points of the coordinate system on the display screen 500 which correspond to those on the form coordinate system, respectively. By way of example, numeral 510' denotes the origin of the form coordinate system and other numerals with the prime denote the coordinates of the upper left corners and the lower right corners mentioned previously in conjunction with FIG. 5A. The document manager 300 includes a coordinate data table 560 (shown in FIG. 5C) for managing the regions displayed on the display screen 500 during the edit processing. In the data table 560, numeral 561 denotes the identification number of the region for which the edition is being performed, 562 denotes an area in which a reduction/magnification ratio for the display is held, and 563-i (i=1, 2, 3) denotes an area in which the identification number i of the region stored at 421 is placed, and 565-i denotes areas for holding the upper left corner and the lower right corner of that region. In the case of the example illustrated in FIG. 5A, the coordinates 531' and 532' are held at 565-2 with the coordinates 541' and 542' being held at 565. Finally, areas 564-i hold the species of the data (text, graphic, frame data) allocated to the region having the identification number i. Next referring to FIG. 7, a reference numeral 700a denotes a program manage table for associating the edit task 310 and the layout display task 320 with each other, which table 720a is contained in the document manager 300. In a column 701 of the table 720a, species of the data for edition are stored, while edit task identification numbers are placed in a column 702 with the layout display task numbers being stored in a column 703. FIG. 8 is a flow chart illustrating the processing performed by the document manager 300. Upon activation of the document manager 300, an initialization step 801 is first executed, wherein the data for management and work areas are initialized while the menu is displayed on the menu bar 100. At that time, the layout of a page to be subjected to the edition is displayed on the display screen 500, and the reduction/magnification ratio for the display is loaded in the coordinate data 560 at the area 562. When a region to be processed has been established, the identification number of that region is placed at the area 563 of the table 560, while the species of the data to be allocated to that region is placed at the areas 564 with the coordinates of that region being placed at the areas 565. Subsequently, the document manager 300 is in the state waiting for the inputting of command by the operator (step 840a). When one of the functions explained hereinbefore with reference to FIGS. 6A and 6B is inputted, the document manager determines the content to be processed in accordance with the function as commanded (step 802). In case the inputted function is to create a new region, the files 230 for the data for edition described in conjunction with FIG. 2B are generated and the region manage table 420 is updated by adding thereto the structural data described hereinbefore by reference to FIG. 4 at a step 803. Further, the identification number and the coordinates of the new region are additionally entered in the coordinate data table 560 at the areas 563 and 565 while the species of the document data as designated are additionally entered at the area 564. Further, the number of the region to be newly created is stored at the area 561 of the table 160. When a change occurs in the layout due to the exclusiveness of the region or for other reasons, the layout display is correspondingly altered. When the edit function is selected in the pull-down menu corresponding to the region processing function 103, the identification number of the designated region is placed in the coordinate data table 560 at the location 561. Indexing of the region identification number can be realized by comparing the coordinates designated by the cursor 110 with the region coordinates held at the area 565 of the coordinate data table 560. When deletion or move of a region or other function is selected or commanded, the processing corresponding to that command is performed. However, since these processings bear no direct relevance to the present invention, they are omitted from illustration in FIG. 8. At a processing step 805, the region identification number i held in the coordinate table 560 at the location 561 is read out while the species of the document data allocated to the region of the number i is retrieved from the area 564-i in the table 560. At the same time, the edit task identification number corresponding to the document data of concern is determined by consulting the data stored in the program manage table 700a at the columns 701 and 702 and a request for activation of the task is issued to the OS. In that case, the reduction/magnification ratio (562) as well as the coordinates (565) of the region to be displayed and the name (425) of the file storing the data for edition are sent to the edit task 310 to be activated. Thereafter, the document manager 300 waits for reception of the message from the edit task 310 at a step 840b, while the edit task or program 310 as activated starts its task. Upon reception of the message, the document manager 300 restarts its operation. At a processing step 806, the document manager 300 makes a decision for the message. When the message is the "CHANGE-OVER" function, the menu for the function "CHANGE-OVER" is displayed, being attended with the re-display of the layout. At that time, frames for all the regions may be displayed to show definitely the positions of the frames. The document manager 300 is set to the state waiting for the inputting of a command at a step 840a. When the processing of the message comes to an "END", the edition processing is terminated by executing a termination or end processing such as issuance of an end message to the OS (step 810). In the case of the message of "EXTRA-REGION COORDINATES", the coordinates designated by the cursor 110 are made available as parameters. The document manager 300 then compares the coordinates resulting from the processing step 830 with the region coordinates 565 contained in the coordinate data table 560 to thereby index the region as designated, whereupon the identification number of that region is placed in the table 561 as the area 561 to execute the edit task activation processing step 805. When the processing commanded by the message is "SCROLL" or "PAGE CHANGE", the content displayed on the CRT screen 500 is altered or changed at a processing step 820. When the message is "SCROLL", information for the direction and magnitude of the scrolling is supplied from the edit task as the parameters for this message, whereupon the image on the screen is correspondingly moved. In the case where the message is "PAGE CHANGE", the whole form image on the display screen 500 is abandoned. Subsequently, the manage data for all the regions constituting a next page are searched out from the page manage table 410 for the structure data, whereupon the region identification numbers 563 of the coordinate data table 560 as well as the data species 564 corresponding to the regions 563 are again set. Then, the form frame is displayed. At a processing step 821, the regions of the layout displayed again are sequentially compared with the region coordinates 565-i. When overlap of the regions is present, the layout display tasks 320 corresponding to the regions are retrieved from the program manage table 700a to issue an activation request to the OS (except for the region which is currently subjected to the edition). At this time, the parameters as required for the activation are the region coordinates 565-i, the reduction/magnification ratio 562 and the file name 425 of the file for the corresponding data for edition. After the activation, the document manager 300 waits for the message of "LAYOUT DISPLAY COMPLETED" from the layout display task 320 at a step 840c. Upon reception of this message, decision is made as to whether all the regions have completely been displayed (step 822). When any region remains to be displayed, the processing routine from the step 821 to the step 822 is repeatedly executed. When the display of all the regions has been completed, a message "LAYOUT ALTERATION COMPLETED" is issued to the edit task 310 at a step 823. The document manager 300 assumes then the state waiting for the message from the edit task 320 (step 840b). The layout display and alteration processings at the steps 801, 803 and 850 are performed through the same procedure as in the case of the processing steps 821 to 822. FIG. 9 is a flow chart illustrating the processing procedure of the edit task 310. Upon activation of the edit task 310 in response to the activation request from the document manager 300, the name of the file storing the relevant document data is determined on the basis of the parameters for the activation, being followed by reading out the data for the edition from the relevant file 230 (step 901). At a processing step 902, initialization of the work data utilized internally and the menu display on the menu bar 100 are performed. In case a new region is to be created, initialization of the document data has to be performed, since the file 230 as created for storing the document data for the new region is not loaded with the document data yet. At a step 940a, the edit task 310 assumes the input awaiting state. At a step 903, decision is made as to the content of the input, if present. When the input is the function 104 or 101 indicating the end (termination) or the change-over or when the coordinate values designated by the cursor 110 are not within the range defined by the region coordinates 565 transferred as the parameters for the activation, the document data are first stored in the file 230 at a processing step 910, being followed by a processing step 911 where the corresponding message is issued to the document manager 300. Next, an "END" processing (step 912) such as issuance of the end message to the OS is performed, whereon the processing comes to an end. At that time, since message is issued to the document manager 300 waiting for reception of the message, the OS sets the document manager 300 to the operating state. Thus, the processing by the document manager 300 is restarted. When the scroll is designated with a scroll key or a scroll bar, a corresponding message is issued to the document manager 300 at a processing step 920. Subsequently, the edit task 310 is set to the message awaiting state at a step 240b. The OS sets the message awaiting document manager 300 to the operating state to thereby restart the processing by the document manager 300. Thus, the edit task 310 to which the message is sent from the document manager 300 restarts the processing from the step 921 at which a portion to be newly displayed as the result of the scrolling is displayed, whereon the edit task 310 assumes the input awaiting state at a step 940a. For the input of other cursor coordinates and a key code, the edition processing corresponding to the input is performed at a step 930, the result of which is displayed at a step 932. In that case, when the result of the above processing is decided to be continued to a next page at the decision step 931, as is often experienced in the edition of a text, a corresponding message is issued to the document manager 300 at a processing step 920. Subsequently, at a step 921, the data for edition for the new page are displayed together with the result of the processing step 930. The edit task 310 translates the input coordinates into the relative coordinates in the coordinate system having the origin located at the upper left corner of the region on the form coordinate system on the basis of the region display coordinates 565 and the reduction/magnification ratio 562 supplied as the activation parameters, and holds the relative coordinates as the data for the edition. Upon generation of the display, the coordinates of the data for edition are translated into the coordinates of the display screen coordinate system on the screen 500. FIG. 10 shows a flow chart for illustrating a flow of processings performed by the layout display task 320. When the layout display task 320 is activated by the document manager 300, the document data are read out from the relevant file 230 identified by the file name 425 supplied as the parameter for activation at a processing step 1001. Subsequently, at a step 1002, the coordinates of the document data are translated into the coordinates of the display screen coordinate system on the CRT screen 500 on the basis of the reduction/magnification ratio 562 and the region display coordinates 565 supplied as the parameters for the activation, whereupon the data for edition are displayed in the region designated by the table content 565. When the display of the data for edition has been completed, the message "LAYOUT DISPLAY COMPLETED" is issued to the document manager 300 at a step 1003, while an end message is issued to the OS at a step 1004, whereupon the processing of the layout display task comes to an end. As will be appreciated from the foregoing explanation, according to the teachings of the present invention incarnated in the illustrated embodiment described above, it is possible to select any desired region as the objective for the edition no matter how complicatedly the regions constituting a page overlap one another, when a document having the document structure 300 shown in FIG. 2 is to be edited on the layout display screen. Besides, when the inter-region overlap relation is simple, the region for the edition can be changed over simply by designating the desired region, whereupon the corresponding program can immediately be activated, thus simplifying extremely the manipulation or operation required for the operator, to great advantage. As another advantageous effect achieved by the illustrated embodiment, due to the independence in respect to the program structure among the individual edit and layout display programs, the addition of new document edit functions can be realized very conveniently. By way of example, in case an English document edit function capability is to be implemented in addition to a Japanese document edit function, the English document edit program and the English document layout display program can be developed utterly independent of the structure of the other edit programs and the data for edition, whereby the efficiency in development of the programs for the English documents can be improved significantly. Further, the document prepared by the system before the addition of the English document edit function can equally be edited by the updated system, whereby the document compatibility can be ensured at the document level of a much sophisticated multi-function documentation system. In the case of the embodiment of the documentation system according to the invention described so far, re-displaying of the region except for the region being subjected to the edition can not be enabled unless the command for the change-over is issued. Consequently, when a graphic image is deleted in the course of the edition of the graphic region 122 shown in FIG. 1A, by way of example, a part of the text data is also erased simultaneously, wherein the data as erased can not be restored until the change-over is commanded. The problem mentioned above can be solved by two versions of the present invention, which will be described below. According to one of the versions of the invention, the processings performed by the document manager 300 and the edit task 310 are altered or modified, as shown in FIGS. 11A and 11B, respectively, wherein a message "RE-DISPLAY" is added in the Table 1 at 331a. When the document manager 300 receives the message "RE-DISPLAY", processings at steps 1101 to 1104 shown in FIG. 11A are performed. More specifically, a region having an overlap with a range to be re-displayed (described below) as given by the parameters carried by the message is determined by consulting the coordinate data table 560 (step 1101). At that time, the region being currently subject to the edition is excluded. The layout display task 320 for displaying the data of the region thus determined is then selected on the basis of the data species 422 contained in the region management table 420 corresponding to the determined region to be subsequently activated (step 1102). At the step 1105, the document manager 300 waits for a message from the layout display task 320 as activated. Upon reception of the message "LAYOUT DISPLAY COMPLETED" 331b from the layout display task 320, it is then checked whether there exists the region to be re-displayed at the step 1103. It is exists, the same processing procedure is repeated from the step 1102. If otherwise, the message 330 "LAYOUT ALTERATION COMPLETED" is sent to the edit task 310, whereupon the document manager 300 waits for a message from the edit task 310 at the step 840b shown in FIG. 8. Referring to FIG. 11B, in the edit task 320, it is decided at a step 1111 whether re-display of the results of the edition processing 930 (step 110) is necessary or not (such re-display is required, for example, because of erasure of the graphics). If the result of the decision is affirmative, a message "RE-DISPLAY" is issued with the parameters for the range of the region required to be re-displayed (i.e. a rectangular area defined by the coordinates on the display screen 500 at the upper left corner and the lower right corner thereof (step 1112). Subsequently, the edit task 320 assumes the state waiting for a message from the document manager 300 at a step 1113. After the reception of the message or after the decision of the unnecessariness of the re-display at the step 1111, the result of the edition is re-displayed at a step 1110. The other or second version of the present invention will be described by reference to FIG. 11A along with FIGS. 15 and 16. The processing performed by a document manager 300 is the same as that of the manager described above. Accordingly, the following description is directed to the processing performed by the edit task 310. When the change-over function 101 is designated, the pull-down menu 600c is displayed, as shown in FIG. 15, to allow the processing for either the change-over of the region or the re-display to be selected. When the result of the decision for the input at a step 903 shows that the re-display processing is selected, the edit task 310 issues the message "RE-DISPLAY" to the document manager 300 at a step 1601, whereupon the edit task 310 waits for the message "LAYOUT ALTERATION COMPLETED" from the document manager 300. As the parameter for that message, the coordinates of the region are utilized. Upon reception of the message from the document manager 300, the edit task 310 performs the re-display processing (step 1603). According to the first mentioned version of the invention, the latest updated layout can always be displayed, whereby the edition can be carried out while observing the print image at any given time to great advantage, although some delay is involved in the edition processing to disadvantage. In the case of the second mentioned version of the invention, although the latest updated layout can be always displayed, the re-display function can be realized at a given time point as demanded by the operator without lowering the speed of the edition processing, thereby being advantageous over the embodiment described hereinbefore in conjunction with FIGS. 8 and FIGS. 12A and 12B are views showing contents of displays generated on the display screen 500 in the documentation system according to a further embodiment of the invention in which two edition modes, i.e. a layout edition mode and a word-processor mode are provided. More specifically, FIG. 12A shows the content on the display screen 500 in the course of edition in the layout edition mode (according to a first program). In the case of all the embodiments described in the foregoing, the same layout as the print image is displayed on the display screen 500, as shown in FIG. 12A. The layout edition mode according to the instant embodiment can be realized in the same manner as in the case of the embodiments described hereinbefore. FIG. 12B shows the content on the display screen 500 generated in the word-processor mode (according to a second program). The image display in the wordprocessor mode is controlled substantially in the same manner as the conventional word processors. Namely, the image as displayed is managed on a row and column basis, wherein vertical and horizontal character sizes as well as inclinations (italics) are represented by corresponding symbols. By way of example, a symbol denoted by 1201 in FIG. 12B designates a vertically and horizontally double size, and symbols 1202 and 1203 designate the vertically double size and the italic style, respectively. Further, a symbol 1204 indicates a new line (paragraph). In the word processor mode, neither line space nor intercharacter space are reflected in the display generated on the display screen 500. By referring to FIGS. 13 and 14 along with FIG. 17, description will be made of a method of realizing the word processor mode according to the instant embodiment. For realizing the word processor mode, a word processor edit program 340 capable of running in the word processor mode is added, as shown in FIG. 17. In this figure, an arrowhead line 350 represents that the document manager 300 activates the word processor edit program 340, and an arrowhead line 351 represents two types of messages which include a "CHANGE OVER" and a message "PROCESSING END". A program manage table 700b shown in FIG. 13 corresponds to the table 700a shown in FIG. 7 except that an edit task number 704 of the word processor edit program operating in the word processor mode is added. As a manage table of the document manager 300, a mode manage table 1300 is provided. Further, the menu bar 100 is additionally provided with a function menu 1310 for changing over the layout edition mode (first program) and the word processor program (second program) with each other. When this function menu 1310 is normally or positively displayed, this indicates the layout edition mode, while negative display thereof indicates the word processor mode. The processing flow in the document manager 300 is generally the same as with the case of the embodiment described hereinbefore in conjunction with FIG. 8 or FIG. 11A and differs from the latter only a little in some of the individual processing steps. At first, through the initialization processing step 801, the layout edition mode is set at the mode manage table 1300. When it is decided at a step 802 that the menu function 1310 is designated or commanded, the display thereof is reversed (changed over to the negative display), while the layout edition mode in the table 1300 is replaced by the word processor mode. Finally, in the edit task activation processing 805, the mode set at the table 300 is checked. When it is the word processor mode, the edit task 340 (FIG. 17) corresponding to the word processor edit task 704 (FIG. 13) is activated. On the other hand, in the case of the layout edition mode, the edit task 320 indicated at 703 is activated. When the edit task 340 is activated, the parameter required for the activation is only the name of the file in which the document data are stored. A flow of processings performed by the edit task 340 is illustrated in FIG. 14. Referring to the figure, at a step 1401, the work area is initialized with the menu being displayed, while the layout display is erased and replaced by the display of the image for edition. In the case of the text edition, by way of example, the display shown in FIG. 12A is changed over to the display shown in FIG. 12B. The content of the menu bar 100 is the same as that for the edit task 310. When it is decided at a step 1401 that the input is a command for the menu function 101 or 104, the processing through the step 910 to 912 described hereinbefore by reference to FIG. 9 is performed, whereupon the edition processing comes to an end. In case the input designates other command, the edition processing and the display processing for the result of the former are performed at steps 1405 and 1410. Although the edit function is substantially the same as that of the embodiment shown in FIG. 9, it is noted that a coordinate system susceptible to the coordinate transformation in a much simplified manner can be employed, because the coordinate system of the display screen 500 can be established by the edit task 340. In the case of the text edition, by way of example, a row/column-based coordinate system is employed in place of the dot-based coordinate system. When the dot-based coordinate system is employed, the inter-line space and the inter-character space have to be taken into consideration for identifying the character indicated by the cursor 110 on the basis of the coordinates designated thereby. On the other hand, in the row/column coordinate system, it is sufficient to identify the character located at the row and the column determined through the translation of the dot coordinate system into the row/column coordinate system, whereby the processing can be simplified and speeded up. In the word processor mode according to the instant embodiment, the coordinate system translation requires no complicated calculation and ensures a high-speed processing. In particular, in the case of the text edition, neither the size doubling processing nor the character modifying processing is required, as the result of which the display of the result of edition can be generated extremely rapidly. Further, since the display in the word processor mode is lacking in the concept of page, there is no necessity of altering the display every time the page is updated, which means that the efficiency in the inputting of an extremely long text can be significantly enhanced. A version of the embodiment incorporating the word processor mode will be described below. According to this version, storage of the task number in the program manage table 700b at 702 and 704 is replaced by the storage of a specific symbol which can be discriminated from the task number. In that case, when the specific symbol is stored at the column of the table 700b where the task number of the edit task 340 or 310 is to be stored, the document manager 300 activates the edit task of other mode. Concerning the graphic edition, by way of example, any significant difference can not be seen between the layout edition mode and the word processor mode in respect to the contents and the processing speed, the graphic edit task 340b for the word processor mode may be spared and instead a specific symbol can be stored at the column relevant to the graphic data in the table 704. When a graphic region is designated in the course of the text edition in the word processor mode, display of the layout is generated by the document manager 300, making possible the edition by the graphic edit task 310b on the displayed layout image. Preparation of the specific symbol can be left to discretion of the user. In general, the conventional word processor is equipped with means for allowing the user himself or herself to prepare specific data such as a user-only dictionary, stereotype words or expressions which are registered in the processor system to be utilized for the edition. Thus, by providing a means similar to the abovementioned one, it is possible to allow the user to prepare the specific symbols to be stored in the program manage table 700b at 702 and 704, whereupon the created specific symbols are registered in a system area of a hard disc or a floppy disc. The document manager 300 can read out the content of the relevant system area at the time of initialization processing to place it in the program manage table 700b at the columns 702 and 704. By virtue of the teaching of the invention incarnated in the embodiment described above, the user can operate the documentation system by limiting selectively the functions thereof in accordance with the content of the work imposed on him or her to thereby enhance the efficiency in the preparation of document to advantage. It will now be appreciated from the foregoing that even when the regions allocated with data for the edition overlap one another in a much complicated manner, any given region can be selected on the layout display screen with a minimum number of manipulation steps to thereby permit the edition to be performed on the displayed layout image according to the invention. Thus, edition of the document in which the texts and the graphics form a complicated layout can be much facilitated according to the invention, to great advantage. Further, according to the present invention, images of other regions once destroyed in order to display the result of the edition in one region can be immediately regenerated, whereby the edit processing can always be performed on the complete print image to further great advantage. Additionally, according to another aspect of the invention, since the text of a great length can be inputted at a high speed as in the case of the conventional word processor, the documentation system can be selectively made use of in dependence on the applications or words as imposed.
|
Same subclass Same class Consider this |
||||||||||
