WO2005062198A1 - Data generation method, data processing method, data generation device, data processing device, data generation program, data processing program, recording medium containing the data generation program, and recording medium containing the data processing program - Google Patents

Data generation method, data processing method, data generation device, data processing device, data generation program, data processing program, recording medium containing the data generation program, and recording medium containing the data processing program Download PDF

Info

Publication number
WO2005062198A1
WO2005062198A1 PCT/JP2004/015039 JP2004015039W WO2005062198A1 WO 2005062198 A1 WO2005062198 A1 WO 2005062198A1 JP 2004015039 W JP2004015039 W JP 2004015039W WO 2005062198 A1 WO2005062198 A1 WO 2005062198A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
processing
partial data
partial
divided
Prior art date
Application number
PCT/JP2004/015039
Other languages
French (fr)
Japanese (ja)
Inventor
Masashi Hirosawa
Original Assignee
Sharp Kabushiki Kaisha
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2003423263A external-priority patent/JP3886962B2/en
Priority claimed from JP2004081483A external-priority patent/JP3822211B2/en
Application filed by Sharp Kabushiki Kaisha filed Critical Sharp Kabushiki Kaisha
Publication of WO2005062198A1 publication Critical patent/WO2005062198A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • G06F40/154Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • G06F40/143Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]

Definitions

  • Data generation method data processing method, data generation device, data processing device, data generation program, data processing program, recording medium recording data generation program, and recording medium recording data processing program
  • the present invention is directed to generation of partial data, which is data obtained by dividing electronic data into a plurality of pieces, and which does not impair the meaning of the data even when processed alone, and which is a data obtained as a processing result; It relates to processing using partial data.
  • the present invention contemplates that when performing predetermined processing using the partial data, it is possible to perform the processing at high speed and with resource saving! V, related to processing.
  • the present invention is intended to prevent the processing result of one partial data from affecting the processing result of another partial data so that the connection between the processing results of the affected partial data does not deteriorate.
  • the present invention relates to a method, an apparatus, a program, and a computer-readable program medium for processing partial data.
  • a method, an apparatus, and a program for generating partial data necessary for processing of partial data so as not to deteriorate the connection between the processing results of the affected partial data and data that facilitates the processing And a computer-readable program medium.
  • data compression is performed by recording only difference information between frame images. That is, the data to be recorded first includes the data of the reference frame image (usually the first frame image), and thereafter, as the information of each frame image, the data capacity of the difference information from the previous frame image is used. It will be repeated for the number of remaining frame images.
  • moving image compressed data in the MPEG (moving picture expert group) format divides a series of frame images before compression into a plurality of frame image groups (GOP: group of picture), Each GOP is independently compressed and recorded. That is, a reference frame image exists for each GOP. If you want to expand a specific image frame during playback, you need only expand the GOP to which the specific image frame belongs without having to expand the first image frame sequentially. As a result, a specific image frame can be quickly reproduced.
  • MPEG moving picture expert group
  • the "document data whose display layout changes depending on the display setting" is, for example, HTML (hyper text markup language) HTML displayed on a WWW (world wide web) browser.
  • Japanese published patent publications disclosing such a technology include:
  • the GOP of MPEG data and the like are "data obtained by dividing electronic data into a plurality of pieces and can be processed independently" (hereinafter, for the sake of explanation, electronic data is simply divided.
  • the generated data is referred to as divided data, and the divided data that can be processed by itself may be referred to as “partial data.”
  • the partial data may be referred to as partial data.
  • HTML data is applicable.
  • HTML data a hierarchical structure can be created by sandwiching a character string between a start tag and an end tag and nesting a set of start and end tags, but it is simply divided between the start and end tags Then, each divided data cannot be processed by itself without impairing the meaning of the divided data.
  • FIGS. 4A and 4B are diagrams for explaining this.
  • ku font size “ + l ”>
  • ku Zfont> the start tag for changing the character size. It is instructed to change the characters to the specified size up to the end tag (“ku Zfont>”).
  • this HTML data is divided into two pieces of data, the first half of the first line up to the eighth line and the second half of the ninth to sixteenth lines.
  • Plain text data applies. Plain text data does not have a hierarchical structure such as tags, so processing partial data alone does not impair the meaning of the partial data.However, when processing results of each partial data are arranged, processing There is a problem that the connection of the result becomes poor, that is, an unintended wrong connection appears.
  • FIG. 4A or FIG. 4B the entire electronic data of FIG. 4A or FIG. 4B is collectively processed and displayed on a certain display means in FIG. 5A (corresponding to FIG. 4A) or FIG. This is shown in Figure 5B (corresponding to Figure 4B). Lines are wrapped according to the width of the display means.
  • a part of the electronic data of FIG. 4A intended for such a display state is obtained by combining the partial data of the “through” force in the ninth line with the “based” in the twelfth line and the “on” in the twelfth line. ”To the 15th line of“ ⁇ / P> J ”.
  • FIG. 17A shows an example in which the preceding partial data is displayed on a certain display means
  • FIG. 17B shows an example in which the subsequent partial data is displayed on a certain display means.
  • FIG. 4B a part of the electronic data of FIG. 4B is partially converted from the partial data up to “glass.” In the eighth line and the “When” in the eighth line to the thirteenth line. Suppose that the data is divided into two parts up to the "information.”
  • FIG. 17C shows an example in which the preceding partial data is displayed on some display means
  • FIG. 17D shows an example in which the subsequent partial data is displayed on some display means (FIGS. 17A to 17D). Then, for the sake of later explanation, other data is displayed or the display frame is slightly shifted. In any case, there is nothing wrong with the display when viewed alone.
  • FIGS. 17A and 17B are successively displayed, it can be seen that the originally intended display state is altered as shown in FIG. 19A. Further, when the display layouts of FIG. 17C and FIG. 17D are successively displayed, it can be seen that the originally intended display state changes as shown in FIG. 19B.
  • FIG. 19A and FIG. 19B other data is displayed, the display frame is slightly shifted, the part that is protruded and laid out, and the font size is adjusted for later explanation. Ignore it here). That is, in FIG. 19A and FIG. 19B, a line feed is displayed at a connection portion of the display layouts of FIG. 17A and FIG. 17B and a connection portion of the display layout of FIG. 17C and FIG.
  • the display results are clearly different from those of 5A and FIG. 5B. That is, in FIGS. 19A and 19B, the effect of dividing and processing the electronic data appears as an erroneous line feed that was not originally intended.
  • partial data is advantageous in that it is not necessary to process the entire electronic data, the partial data itself is not affected by division. If it gets bigger, this advantage diminishes. Also, if the partial data size is too small, processing such as file reading will be chopped, and the total processing speed will be slow (it is generally faster to read the files all together at once). Similarly, the benefits diminish as more memory is needed to manage the data.
  • a first object of the present invention is to provide a data generation method for generating partial data necessary for performing the above processing, auxiliary data for facilitating the above processing, and a data generation method.
  • An object is to provide a device, a data generation program, and a recording medium on which the data generation program is recorded.
  • the second object of the present invention is to pay attention to the above-mentioned problem (2), and to perform high-speed and low-speed operation when the division of electronic data into partial data affects the processing result of the partial data.
  • Data processing methods, data processing devices, and data processing that process partial data so that connections between the processing results of each partial data do not deteriorate while maximizing the benefits of partial data. It is to provide a program and a recording medium on which the program is recorded.
  • the data generation method performs processing independently to solve the above-described problems. If partial data with no error in the processing result itself is generated by dividing electronic data at a certain division boundary, the data size of the partial data is judged whether it is smaller than a predetermined standard data size. A partial data size determination step, an influence determination step of determining whether or not the processing result of the generated partial data has a predetermined effect due to the division at the division boundary, and a data size equal to or smaller than the standard data size And extracting a dividing boundary where the predetermined influence does not appear as a non-standard-dependent dividing boundary.
  • the divided data has an order, and is relatively called “previous divided data” and “next divided data”.
  • This order is the processing order of the divided data when the processing result obtained by sequentially processing the divided data in consideration of the influence of the division matches the processing result of the entire electronic data. It often corresponds to the order of the position of the divided data in the electronic data.
  • the target divided data is data that is a material that directly generates a processing result.
  • text data is the target. Therefore, other parts in the electronic data, for example, the header information part, are not materials that directly generate the processing result, but may not be subject to the divided data! /. .
  • “Division boundary” is a boundary that divides electronic data into two or more sets of division data.
  • the division boundary can be expressed by a position in the electronic data.For example, when expressed in byte units, it is called before the byte, or between the bytes and the bytes, or after the bytes. It takes shape. Other unit systems that represent positions include the number of characters, the number of bits, the number of tags, and combinations thereof.
  • Partial data is data generated from electronic data using the obtained "partition boundary", and includes data of a part of the electronic data, and is included when the partial data is processed alone. This is data that has no error in the processing result itself of the electronic data portion.
  • the partial data is converted into divided data selected from among the divided data generated from the electronic data using the dividing boundaries. , If equal. The selection is performed by selecting an appropriate division boundary where no error appears in the processing result of the division data itself.
  • the second is a case where the partial data, the divided data, and the data are not equal, and auxiliary information (processing auxiliary data described later) for creating a state in which the processing result of the divided data itself has no error is combined. This is the case for split data.
  • the process of selecting an appropriate division boundary described above is a process in the influence determination step and the standard-independent boundary extraction step of the present invention.
  • the electronic data portion included in the partial data does not always constitute a continuous lump of data portion in the electronic data, and discrete data portions are included in the present invention.
  • the data part is easier to handle. If the divided data in the partial data is not skipped, it has the same order as the divided data, and is referred to as “previous partial data” or “next partial data”.
  • partial data need not necessarily exist in a form independent of the electronic data (for example, in a separate file). It may be stored as a set of electronic data and information on the division boundary. When partial data is needed, it may be dynamically generated from a set of electronic data and information on a division boundary. For example, partial data can be dynamically generated by, for example, obtaining position information of a division boundary from division boundary data and reading data of a portion corresponding to the range of the partial data from electronic data. .
  • Examples of the case where this advantage is viable are that, for electronic data, for example, the file is changed or added due to encryption or copyright issues, or the file is divided into divided data and filed. It may not be possible.
  • electronic data is recorded on a non-writable medium such as a CD-ROM. In such a case, the electronic data can be kept as it is, and a separate boundary data file or the like can be separately generated as an auxiliary file.
  • the display result which is the processing result, differs depending on the display settings of the WWW browser.
  • the HTML data itself has control data that specifies the display result! /
  • the content of the control data is reflected in the display result.
  • One of the criterion is whether or not the display result according to the command result by the tag is generated, such as whether or not the font tag is used and the power of the specification of the character size and character color by the font tag.
  • a line feed is indicated by a character of a line feed code.
  • “Influence” here means that the processing result of the partial data changes depending on whether or not to refer to the processing result of another partial data when processing certain partial data. This tends to change when the processing result of the next partial data is added to the processing result of the previous partial data. The impact may or may not occur, depending on how the data is divided and the content of the data. Also, even with the same partial data, it may or may not occur depending on the processing method and processing settings.
  • the previous partial data is the last character (for explanation, "text In some cases, a character (called “Character B” for the sake of explanation) that is first placed by the next partial data is added to the line of "Character A".
  • “character B” is arranged next to “character A”
  • the processing result of the next partial data may change depending on the processing result of the previous partial data.
  • the processing result is affected not only by the processing results of the adjacent partial data before and after, but may also be affected by distant partial data.
  • processing to generate a display layout using divided data or partial data of HTML data this may occur when characters run around an image.
  • the layout range is limited by the image. This limitation of the layout range has an effect.
  • partial data having wraparound image information is, for example, the first partial data, and the remaining partial data does not have wraparound image information.
  • the partial data having no wraparound image information has no clue to know that the character string in the partial data is a character string to be wrapped around the wraparound image.
  • variable C the value used internally changes depending on the processing of each partial data.
  • the value of variable C is set to 1 in the processing of the first partial data, and the value of variable C is doubled in the second and third partial data.
  • the value of the variable C is 2, and after the processing, the force becomes 4, and the order of the third partial data
  • the value of variable C is 1 and after processing it is 2.
  • character A is not a line feed code
  • character next to “character A” that is, “character B” is suddenly located at the beginning of the next line
  • a line feed is performed. They look like they are. That is, although there is no character of the line feed code in the document data, a processing result as if there is a character of the line feed code is obtained.
  • the processing result of the partial data in the preceding order often affects the processing result of the partial data in the subsequent order.
  • the "standard data size" can be obtained by a predetermined value or by having a user or the like input it. Alternatively, it may be obtained by a predetermined calculation method. Normally, the standard data size is set to the most desirable data size for partial data. This may be determined by the user based on the processing capacity of the processing device and the purpose of the processing.
  • An outline of the operation of the present invention is as follows.
  • a data size of partial data generated by a certain division boundary is obtained, and the data size is equal to or smaller than a predetermined standard data size.
  • the influence determining step it is determined whether or not the processing result of the partial data generated by the above-described division boundary has a force that exhibits a predetermined effect specified in advance among various effects due to division at the above-mentioned division boundary. .
  • the type of given impact is not limited to one May be. Either of the partial data size determination step and the influence determination step may be performed first.
  • within-standard non-independent boundary extraction step if the data size is equal to or smaller than the standard data size and a division boundary where the above-mentioned predetermined influence does not appear is found using the results of both steps, the division is performed. Extract boundaries as intra-standard independent division boundaries.
  • a processing device that uses electronic data uses partial data. When using electronic data, the entire electronic data is read and processed. When partial data is used, only the necessary partial data is read and processed.
  • the partial data can be processed at a high speed because the amount of data to be processed is generally smaller than the processing of the entire electronic data. This has the effect of enabling resource-saving processing that does not use much resources such as memory.
  • the data size of the partial data is large, the effects of high speed and resource saving are weakened more than processing the entire electronic data.
  • the data size of the partial data can be reduced, and This has the effect of preventing the effects of resource savings from diminishing.
  • the standard data size is set to the ideal data size, the data size of the partial data can be suppressed to the ideal value, and the most desirable effect of high speed and resource saving can be obtained.
  • the standard data size be determined by the user or the like in accordance with the processing capacity of the processing device and the purpose of the processing.
  • processing from the beginning of the electronic data to obtain a processing result of a desired part takes a long processing time or a large amount of resources. It may be.
  • partial data only the partial data needs to be processed as long as the desired data belongs to which partial data, so that the effect of high-speed and resource-saving processing can be obtained.
  • the size does not exceed the standard data size
  • the partial data of the data size increases. If the standard data size is set to an appropriate value such as the processing capacity of the processing device and the purpose of the processing, the processing time of each partial data and the required resources can be adjusted to the vicinity of the desired range. Come.
  • electronic data that has many uses in which only a part of the processing result of the electronic data is used include, for example, moving image data such as a movie and audio data such as music. If it is assumed that the settings related to playback, such as video data and audio data (playback speed, volume, sound quality, color, contrast, filters, etc.), will be changed in parts, such settings are assumed. In the case where the data related to the partial data is included in the partial data or associated with the partial data, the division may occur between the partial data as in the case of the data of the HTML document.
  • the data generation method of the present invention also exerts the effects described above for electronic data such as moving image data and audio data.
  • the data generation device generates partial data having no error in the processing result itself when processed independently by dividing electronic data at a certain division boundary.
  • the data size of the partial data is determined by a partial data size determining means for determining whether the data size is equal to or smaller than a predetermined standard data size
  • the processing result of the generated partial data includes a predetermined Influence determination means for determining whether or not the effect will occur, and a partition boundary whose data size is equal to or smaller than the standard data size and which does not exhibit the above-mentioned predetermined effect is prioritized as a standard-independent partition boundary.
  • a standard-independent boundary extracting means for selectively extracting.
  • the electronic data is obtained, for example, in the form of a file from a main storage, an external storage, a device at a network destination, or the like.
  • a division boundary (a candidate) is obtained from the obtained electronic data.
  • the leading power of electronic data is information such as the number of bytes, Since this is temporary information, it may be recorded on a memory or the like.
  • the method of obtaining the division boundary candidates differs depending on the type and purpose of the electronic data, and therefore will not be described in detail here. For example, in the case of HTML data, the method is before and after a line break tag.
  • the data size of the partial data generated by a certain division boundary is acquired by the partial data size determining means, and it is determined whether the data size is equal to or smaller than a predetermined standard data size.
  • the influence determining means determines whether or not the processing result of the partial data generated by the division boundary, among various effects due to the division at the division boundary, shows a predetermined effect specified in advance. to decide.
  • the type of the predetermined influence is not limited to one, but may be plural. Either of the partial data size determining means and the influence determining means may be processed first.
  • the standard-independent boundary extracting means using the results of the above two means, if the data size is equal to or smaller than the standard data size and a division boundary which does not show the predetermined effect is found, the division boundary is determined. Is extracted as a standard-independent division boundary.
  • the generated partial data is recorded on a memory, for example, or recorded on a recording medium as a file.
  • the data processing method is a method in which electronic data is divided into a plurality of pieces of data, and the processing result itself when processed alone has no error, and What is claimed is: 1.
  • a data processing method for performing a predetermined process using a certain partial data comprising: an influence detecting step of detecting an influence partial data which has an effect of dividing the electronic data into a processing result of a desired partial data;
  • the data processing device provides an electronic data processing device for solving the above-mentioned problems.
  • a data processing device that performs predetermined processing using partial data, which is data obtained by dividing data into a plurality of pieces and processing the data independently when the processing is performed independently.
  • An influence detecting means for detecting an influence part data which has an effect of dividing the electronic data into the processing result of the above, and when processing the desired partial data, when the influence is detected by the influence detection means, Influence partial data force: a partial data processing means for processing a range up to desired partial data as continuous data.
  • data obtained by dividing electronic data into a plurality of pieces refers to data obtained by dividing electronic data into a smaller size (hereinafter, referred to as a divided size). If all of the divided data that overlaps the overlapped portion of the divided data are added together, the original electronic data will be equal.
  • the division size is not always constant, and may be various. In general, the division size is often determined according to the electronic data by looking at the contents of the electronic data.
  • small-sized data obtained by simply dividing electronic data is referred to as divided data as described above.
  • the divided data is not necessarily divided into a continuous mass of data portions in the electronic data, and may be divided into discrete portions. The part is divided, and it is easier to handle.
  • Data that does not have an error in the processing result itself when processed alone means that data is not used except for the data, and the predetermined processing is performed only with the data, and the meaning of the data is described. Is data for which a processing result can be obtained without impairment. In the present invention, such data generated based on the divided data obtained by dividing the electronic data is referred to as “partial data” described above.
  • the partial data is accompanied by an order according to a predetermined process.
  • the terms "previous partial data” and “next partial data” are relatively used. This order is used when the processing result of processing each partial data in order considering the effect of division matches the processing result of the entire electronic data. This is the processing order of minute data. It often corresponds to the order of the position of the partial data in the electronic data.
  • the partial data and the divided data may or may not be equal.
  • the partial data and the divided data are equal.
  • the partial data and the divided data are not equal. Absent. In this case, the divided data and auxiliary information are considered as partial data.
  • the auxiliary information may be data that is required in common by a plurality of pieces of divided data. If the necessary data is duplicated and distributed to each divided data, data obtained by processing alone without error can be obtained, that is, partial data. However, this would increase the data size, so that the required data may be shared by the divided data. Although it is defined that the divided data does not overlap each other, if there is a purpose such as data sharing, overlapping is allowed, and the data of the shared part and the divided data may be regarded as partial data.
  • the "desired partial data" obtained the processing result! /, A force that is the partial data.
  • the desired partial data is not limited to one partial data, but may be plural.
  • the "influence" here means that when processing a certain partial data, the processing result of the partial data changes depending on whether or not to process the partial data as a continuous data.
  • “Process as a series of data” means that continuous partial data is processed as a single piece of data. The effect is likely to appear when the processing result of the next partial data is added to the processing result of the previous partial data. This is because the processing result of the next partial data is added depending on whether the next partial data is processed continuously with the previous partial data or whether the next partial data is processed separately from the previous partial data. It is a force that is easy to change.
  • the "predetermined process” performs some kind of output using electronic data as input data, which generally depends on the type and purpose of electronic data. For example, in the case of HTML data, the processing of analyzing the HTML data and calculating the display layout corresponds to “predetermined processing”.
  • the influence detecting means detects in the influence detecting step.
  • a partial data processing step of processing the range from the affected partial data to the desired partial data as continuous data is executed.
  • the desired partial data including the affected partial data is processed, so that the processing result of the desired partial data reflects the influence of the affected partial data.
  • the desired partial data is processed alone (by the partial data processing means), and the desired processing result is obtained. Obtainable.
  • FIG. 1 is a block diagram showing a functional configuration of a data generation device of the present invention.
  • FIG. 2 is a diagram illustrating a configuration example of an apparatus that specifically realizes each unit shown in FIG. 1 or FIG. 41.
  • FIG. 3 is a diagram showing an example of a window display for specifying a specified maximum data size and a specified standard data size.
  • FIG. 4A is an explanatory diagram illustrating an example of document data in HTML data format as electronic data.
  • FIG. 4B is an explanatory diagram illustrating another example of document data in HTML data format as electronic data.
  • FIG. 5A is an explanatory diagram illustrating an example in which the entire electronic data of FIG. 4A is displayed in a certain display setting of a WWW browser.
  • FIG. 5B is an explanatory diagram illustrating an example in which the entire electronic data of FIG. 4B is displayed in a certain display setting of a WWW browser.
  • Figure 6A An example of displaying the HTML data in Figure 4A by changing the display settings in Figure 5A to 1.5 times the size of the reference characters and the same display window size It is a figure.
  • FIG. 6B Explanation that shows the example of displaying the HTML data of Fig. 4B by changing the display setting of Fig. 5B to 1.5 times the size of the reference character and the same display window size. It is a figure.
  • FIG. 7A is an explanatory view schematically explaining the divided data generated in the document data of FIG. 4A.
  • FIG. 7B is an explanatory diagram illustrating an example of partial data obtained by dividing the HTML data in FIG. 4B.
  • FIG. 8 is an explanatory diagram illustrating an example of processing auxiliary data indicating whether or not it is affected by previous divided data.
  • FIG. 9 is an explanatory diagram illustrating an example of processing auxiliary data representing the earliest divided data affected.
  • FIG. 3 is a schematic perspective view showing an example of the appearance of a data processing device using a data processing device or the like.
  • FIG. 11 is a flowchart illustrating an example of processing for generating and displaying a display layout of partial data.
  • FIG. 12 is a flowchart illustrating an example of a processing method for acquiring a display layout of the current divided data in consideration of the influence of other divided data.
  • FIG. 13 is an explanatory diagram illustrating a state in which a display layout for one page from the beginning of document data has been obtained on the display unit / tablet in FIG. 10;
  • FIG. 14 is an explanatory diagram illustrating a state in which a display layout of a display range for one page has been obtained below the state of FIG. 13;
  • FIG. 15 is an explanatory diagram illustrating a state in which a display layout of a display range for one page is obtained from the top of the divided data to the bottom.
  • FIG. 16 is an explanatory diagram illustrating a state where the line is scrolled upward by one line from the state of FIG.
  • FIG. 17A is an explanatory diagram illustrating an example of a display layout of divided data.
  • FIG. 17B is an explanatory diagram illustrating a state where the line is scrolled up by one line from the state of FIG. 16.
  • FIG. 17C is an explanatory diagram showing a state where the entire layout in a state where the partial data 401 shown in FIG. 7B has been laid out is temporarily displayed for explanation.
  • FIG. 7B is an explanatory diagram showing a state where the partial data 402 shown in FIG. 7B is laid out.
  • FIG. 17E is an explanatory diagram showing a state in which the entire layout in a state where the character elements that also start with the “W” force have been added and laid out after the state of FIG. 17C is temporarily displayed for explanation.
  • FIG. 17F is an explanatory diagram showing a state where layout is performed from partial data 402 to partial data 405 shown in FIG. 7B.
  • FIG. 18A is an explanatory diagram illustrating a state where the line is scrolled upward by five lines from the state of FIG. 17B.
  • FIG. 17F is an explanatory view showing a state in which the range of one page is displayed on the state force as well.
  • FIG. 18C An example of a display layout showing the display range of the electronic data in Fig. 7B FIG.
  • FIG. 19A is an explanatory diagram illustrating a state in which display layouts of individually generated divided data are simply arranged.
  • FIG. 19B is an explanatory diagram showing a state in which the range of one page is displayed on the state force of FIG. 17F without regenerating the display layout of the partial data 402 shown in FIG. 7B.
  • FIG. 19C is an explanatory diagram showing a layout in a state where the layout of the partial data 405 and 406 shown in FIG. 7B has been generated.
  • FIG. 19D An example in which an error appears in the display result when the layout of the partial data 405 and 406 shown in Fig. 7 ⁇ was generated while taking into account the influence of the partial data including the wraparound image.
  • FIG. 19E is an explanatory diagram showing an example in which the range below “One such” in the partial data 407 shown in FIG. 7 ⁇ by one page is displayed.
  • FIG. 20 is an explanatory diagram illustrating a state where the line is scrolled up by three lines from the state of FIG. 18A.
  • FIG. 21 is a flowchart illustrating another example of a processing method for acquiring the display layout of the current divided data in consideration of the influence of other divided data.
  • FIG. 22 is an explanatory diagram illustrating a state in which one line has been scrolled further upward from the state of FIG. 16 in accordance with the processing procedure shown in FIG. 21.
  • FIG. 23 is a flowchart illustrating an example of a data generation method according to an embodiment of the present invention.
  • FIG. 24 is a flowchart illustrating a method of calculating a division boundary for dividing electronic data into division data.
  • Fig. 25 is a flowchart illustrating a method of searching for a candidate for a standard-dependent boundary or a standard-independent non-dependent boundary within the range of the current position force up to the current position, and setting it if it exists. .
  • FIG. 26 is a flowchart illustrating a method of searching for a nonstandard non-dependent boundary candidate in the range up to the current position, and setting it if it exists.
  • FIG. 27 is a flowchart illustrating a method of generating processing auxiliary data using divided data.
  • FIG. 28 is an explanatory diagram illustrating a data structure of a current start tag list and a current end tag list.
  • FIG. 29 is an explanatory diagram illustrating an example of processing auxiliary data.
  • FIG. 30 is a flowchart illustrating a method of generating division boundary data using the obtained division boundary.
  • FIG. 31 is a flowchart illustrating another method of processing for generating division boundary data using the obtained division boundary.
  • Fig. 32 is an explanatory diagram illustrating a data structure of a file used in a method of extracting divided data that also requires electronic data by using division boundary data.
  • FIG. 33 is an explanatory diagram for explaining the structure of a file of divided data used in a method of directly reading divided data from each file card.
  • FIG. 34 is an explanatory diagram showing an example in which file names of files of divided data are recorded in an XML format.
  • FIG. 35 is an explanatory diagram illustrating an example of a file structure in a text format when electronic data is recorded in a file.
  • FIG. 36 is an explanatory diagram illustrating an example of a binary file structure when electronic data is recorded in a file.
  • FIG. 37 is an explanatory diagram illustrating an example of a binary file structure when recording division boundary data, processing auxiliary data, and dependency data in one file.
  • FIG. 38 is an explanatory diagram illustrating an example of a file structure of a file in which substantially the same information as in FIG. 37 is described in a text format.
  • FIG. 39 is an explanatory diagram showing the contents of each file when the divided data is recorded as a file including processing auxiliary data.
  • FIG. 40 is an explanatory diagram illustrating a file structure of a file in which a file of divided data is recorded in an XML format.
  • FIG. 41 is a block diagram showing a functional configuration of a data processing device of the present invention.
  • FIG. 42 is a schematic perspective view showing an example of the appearance of the data processing device.
  • FIG. 43 is an explanatory diagram illustrating an example of a data structure of processing auxiliary data.
  • FIG. 44 is an explanatory view for explaining another example of the data structure of the processing auxiliary data.
  • FIG. 45 is an explanatory diagram illustrating a data structure example of display layout element data that is a basic unit of a display layout.
  • FIG. 46 is an explanatory diagram illustrating an example of a data structure of row data for managing a collection of display layout element data.
  • FIG. 48 is an explanatory diagram illustrating an example of a data structure of management data of partial data.
  • FIG. 49 is a flowchart illustrating an example of a data processing method according to an embodiment of the present invention.
  • 50 is a flowchart illustrating a method of processing in S15 in FIG. 49, that is, a method of acquiring a display layout of current partial data in consideration of an influence.
  • FIG. 51 is a flowchart illustrating another method of the process of S15 in FIG. 49, that is, a process of acquiring the display layout of the current partial data in consideration of the influence.
  • FIG. 52 is a flowchart illustrating details of a process for generating a display layout for partial data output.
  • FIG. 53 is an explanatory diagram illustrating one stage of display layout generation processing when a wraparound image is present.
  • FIG. 54 is an explanatory diagram illustrating the next stage of the display layout generation process when there is a wraparound image.
  • FIG. 55 is an explanatory diagram illustrating a processing order when displaying a range of one page on the state force of FIG. 17F.
  • FIG. 56 Processing of processing when the display layout of the partial data 402 and 403 shown in FIG. 7B is stored, and one page is displayed upward with reference to a certain note position in the partial data 403. It is explanatory drawing explaining an order.
  • FIG. 57 is an explanatory diagram illustrating a processing procedure when performing the processing in FIG. 56 based on the processing method in FIG. 51.
  • Figure 1 shows the waveform shaping method of the present embodiment.
  • members having the same functions as the members described in the section of the related art are assigned the same member numbers, and descriptions thereof are omitted.
  • FIG. 7A shows an example of how to divide the entire HTML data as electronic data into six pieces of divided data. As can be seen from FIG. 7A, there is no overlapping part or missing part between the divided data.
  • Divided data is assumed to have an order, and is relatively referred to as "previous divided data” and "next divided data".
  • This order is the processing order of the divided data when the processing result obtained by sequentially processing the divided data in consideration of the influence matches the processing result of the entire electronic data.
  • the processing order often corresponds to the order of the position of the divided data in the electronic data.
  • the divided data mainly as data is data (material data) that is a material that directly generates a processing result.
  • data material data
  • text data is a target. Therefore, parts other than the material data in the electronic data, for example, the header information part, are said to be the materials that directly generate the processing results! is there.
  • the "division boundary” is a boundary that divides electronic data into two or more sets of division data, as shown in FIG. 7A.
  • the division boundary can be expressed by the position in the electronic data.For example, when expressed in byte units, the leading force of the electronic data is also before any byte, or between what byte and what byte, or what byte. Later, take the form. As a unit system that represents position Is the number of characters, the number of bits, the number of tags, and combinations thereof.
  • Partial data is data generated from electronic data using a “division boundary", and includes data of a part of the electronic data. The data processing result itself has no error as described later.
  • the first case is when the partial data is equal to the divided data selected from among the divided data generated from the electronic data using the divided boundaries. The selection is performed by selecting an appropriate division boundary where no error appears in the processing result of the division data itself.
  • the second is a case where the partial data, the divided data, and the force are not equal, and the divided data is a combination of auxiliary information for creating a state in which there is no error in the processing result itself of the divided data. .
  • the above-described process of selecting an appropriate division boundary is a process in the influence determination step and the standard-independent boundary extraction step of the present invention.
  • the electronic data portion included in the partial data does not necessarily constitute a continuous mass of data portion in the electronic data, and the case of discrete data is included in the present invention.
  • the data part is easier to handle. If the partial data is not skipped, it has the same order as the divided data, and is called “previous partial data” or “next partial data”.
  • partial data need not necessarily exist in a form independent of the electronic data (for example, in a separate file). It may be stored as a set of electronic data and information on the division boundary. When partial data is needed, it may be dynamically generated from a set of electronic data and information on a division boundary. For example, partial data can be dynamically generated by obtaining position information of a division boundary from division boundary data and reading data of a portion corresponding to the range of the partial data from electronic data.
  • the definition of "the processing result itself when processed alone has no error” differs depending on the type of electronic data. Basically, data that is not included in the original electronic data (referred to as pseudo data) The processing results as if they were included in the electronic data (for example, unintended line breaks, font sizes, etc.) If the processing result is defined as an error, the processing result corresponding to such pseudo data is not included, and if the processing result originally intended by the original electronic data is obtained, There is no error in the result itself,
  • the display result as the processing result differs depending on the display setting of the WWW browser.
  • whether the display result is generated in accordance with the instruction result by the tag such as whether a line break has been performed by the line break tag, the force of reflecting the specification of the character size and character color by the font tag, etc.
  • This is one of the criteria for determining whether an error has appeared in the processing result. For example, even if the display setting of the character size changes and the total number of lines changes, if a line break is made at the line break tag position, in this case, it is determined that there is no error in the processing result itself. If only the data between the start tag and the end tag of the font tag is processed, the specification of the font tag is not reflected. In this case, it is determined that the processing result itself has an error.
  • a line feed is indicated by a character of a line feed code.
  • FIG. 19A and FIG. 19B show specific examples in which an error appears in the processing result. Assuming that the display result shown in FIG. 18A is an error-free display result with respect to FIG. 19A, a line feed appears after “based” in FIG. 19A. In addition, assuming that the display result shown in FIG. 18B is error-free compared to the display result shown in FIG. 19B, a line break appears after “glass.” In FIG. 19B.
  • a line feed is indicated by a character of a line feed code.
  • processing auxiliary data means that processing of the divided data alone does not impair the meaning of the divided data! / ⁇
  • information ( Data) In order to obtain a processing result, information ( Data).
  • the “processing auxiliary data” is data that assists information that is not obtained by simply processing the divided data so that the divided data can be processed as partial data.
  • the divided data and the processing auxiliary data are combined into partial data.
  • information to take over the effect of the previous divided data, information to be processed by the later divided data, or specific data (for example, control code, etc.) that is commonly related to the processing results of multiple divided data is there.
  • the processing auxiliary data is basically generated as another data in the form of a file, not a part of the electronic data or partial data.
  • processing assistance data is included as part of electronic data at the end or at the end.
  • the start tag in the divided data existing before the target divided data, and the corresponding end tag is the divided data. If it exists in the subsequent divided data, its start tag becomes information to be taken over from the previous divided data card, and thus corresponds to processing auxiliary data for the focused divided data.
  • the effect of the start tag in the previous divided data originally extends to the subsequent divided data, but as a result of the division, when the subsequent divided data is processed independently, the start tag Is not read, and the processing result does not show the effect of the start tag.
  • the division generates divided data that does not result in the intended processing result. Therefore, by combining the start tag as processing auxiliary data for the subsequent divided data, the original processing result can be obtained even if the subsequent divided data is independently processed.
  • the processing auxiliary data and the divided data are treated as a set. If necessary, the information may be dispersed and recorded. For example, it is acceptable to record the data in a form such as a file in which only the processing auxiliary data is collected, or to add the processing auxiliary data to the end of the electronic data or the like.
  • the processing auxiliary data and the divided data are generally created in advance, but can be dynamically generated at the time of use.
  • each divided data or processing auxiliary data
  • the required data is copied to each divided data (or processing auxiliary data). If distributed, it is possible to obtain a processing result that does not impair the contents of the divided data by itself. However, then, the data size of each divided data (or processing auxiliary data) becomes large. Therefore, in order to avoid such a problem, even when a shared part other than the divided data (or the processing auxiliary data) is used, it is regarded as “processed by partial data”.
  • Examples of commonly required data include so-called header information such as type and version information of electronic data, copyright information, encryption information, and the like.
  • the "effect" here refers to whether to refer to the processing result of another partial data when processing certain partial data, or to determine whether to refer to the processing result of another partial data. It means that the processing result of partial data changes depending on whether to process as partial data and continuous data. “Process as a series of data” means that continuous partial data is processed as a single piece of data.
  • the partial data X that affects the partial data Y is referred to as affected partial data.
  • FIG. Fig. 19B shows the processing results when processing as a series of data
  • Fig. 19B shows the processing results when processing is not performed as a series of data, that is, processing individual partial data independently and combining the processing results. It is a processing result in the case of having performed.
  • the influence is likely to appear when the processing result of the next partial data is added to the processing result of the previous partial data.
  • the effects may or may not occur, depending on how the data is divided and the content of the data.
  • effects may occur or power may not occur.
  • the processing result is affected, when a process of arranging a character on a line using partial data of document data is performed, the previous partial data is the last character (for explanation, " In some cases, a character (called “Character B” for the sake of explanation) that is first placed by the next partial data is added to the line of "Character A". In the case of additional arrangement, since “character B” is arranged next to “character A”, the processing result of the next partial data may change depending on the processing result of the previous partial data.
  • the result may not change depending on the processing result of the previous partial data, or the result may not change even if the processing result of the previous partial data is referred to or not. Therefore, an error does not always appear when a force is used to refer to the processing result of other partial data or when a force is used to process as a series of data. For example, if "letter A” is a line feed code, "letter B” is always placed at the beginning of the next line. In this case, regardless of the processing result of the previous partial data, the arrangement position of “Character B” does not always change.
  • the effect of the processing result is not limited to the processing result of adjacent partial data before and after, and may be affected even between distant partial data.
  • this may occur when text data or the like wraps around an image.
  • the layout range is limited by the image. This limitation of the layout range has an effect.
  • wraparound finger an instruction to lay out characters and the like wrapping around the image
  • wraparound image The image accompanied with the wraparound instruction is hereinafter referred to as a wraparound image (see FIG. 5B).
  • FIGS. 19C and 19D show display examples of partial data including a wraparound image.
  • Fig. 19C shows the case where no error appears in the display result by the data processing method of the present invention
  • Fig. 19D shows the case where an error appears because the effect of the partial data including the wraparound image was not considered. Yes, it is.
  • variable C a value used internally changes in the processing of each partial data.
  • the value of variable C is set to 1 in the processing of the first partial data, and the value of variable C is doubled in the second and third partial data. If processing is performed in the order of the first, second, and third partial data, before processing the third partial data, the value of the variable C is 2, and after processing, the force 1 becomes 4, and the force of the third partial data is When processed in order, the value of variable C is 1 before processing the third partial data, and 2 after processing.
  • the processing result of the partial data in the previous order affects the processing result of the partial data in the subsequent order, or the partial data in the previous order is processed in the processing of the partial data in the subsequent order. In most cases, the result is affected.
  • the "hierarchical structure” is also called a “tree structure” and refers to a state in which the relationship between data elements is managed as a branched tree-shaped structure. Branching is only a matter of detail, and the branches do not share a relationship (when they do, they are called a "network structure").
  • the hierarchy to which the branched and finely divided data belongs is often referred to as a “lower layer”, and the hierarchy to which the original data belongs is referred to as an “upper layer” in a vertical relationship.
  • a nested structure of HTML data tags described below corresponds to a hierarchical structure.
  • the "order structure” is a structure in which there is no hierarchical relationship between data elements, but the order is significant. Even if the elements of the data are the same, if the order changes, the data becomes different.
  • the LI tag which is the layer below the OL tag of HTML data, displays a bulleted number, and the number is determined by the order in which the LI tag appears.
  • a data structure in which a branch destination is given an order in each layer of the hierarchical structure may be included in the hierarchical structure.
  • the division of the data element of the hierarchical structure or the order structure does not always need to coincide with the division of the partial data.
  • the "hierarchical structure of the starting position” refers to the initial force of electronic data up to the starting position of the partial data. Means a hierarchical structure generated by data.
  • a hierarchical structure can be expressed by a string of one or more tags connected (arranged) that appeared up to the start position.
  • only the information in the upper layer means only the start tag having no corresponding end tag among one or more tags that have appeared up to the start position.
  • the information of the upper layer indicates the start tag of the HTML tag, that is, HTML>
  • the "hierarchical structure of the end position” means a hierarchical structure generated from data from the end position of the partial data to the end of the electronic data.
  • the hierarchical structure can be represented by a character string that connects one or more tags that appear after the end position.
  • the target data range is the same as the hierarchical structure. Unlike the hierarchical structure, there is no upper or lower layer, but the information that appears in the data range is the subject of the sequential structure. Even in a hierarchical structure, if the hierarchical structure is composed of information including the information of the same layer and lower layers, the hierarchical structure can include the information of the order structure.
  • the layers of a plurality of LI tags are layers below the layer of the OL tags. Just include it.
  • the information on the order structure of the start position of the subsequent partial data includes the LI tag of the previous partial data. Can be obtained in the order in which appears.
  • a "display layout” is a collection of “display layout elements” such as characters and images. This is layout information of display layout elements output to an output unit such as a display unit or a printing unit so that the user can visually recognize it.
  • the display layout has information such as the position and size of each display layout element and the output format.
  • the "display settings" include, for example, the type and size of characters to be displayed, a range for generating a display layout (generally limited by the size of the display means), and the like. By changing these settings, the generated display layout changes. However, even if the display layout changes, usually only the position and size of each display layout element changes, but the contents (character information, image information, etc.) expressed by the document data do not change.
  • the “maximum data size” is a predetermined value, a value input to a user or the like, a value obtained by a predetermined calculation method, or the like, like the standard data size. Normally, the maximum data size is set to a data size that is the maximum allowable as partial data in consideration of resource saving and high processing speed. This is determined by the user based on the processing capacity of the processing device and the purpose of the processing.
  • the "dependency" is a relationship indicating which partial data has an effect on the processing result.
  • the "dependency data” may be added to the electronic data, and may be recorded in a format such as a file independent of the electronic data. .
  • the "row” here is a group of display layout elements, and generally includes display layout elements arranged in a horizontal row or a vertical row. All display layout elements belong to one row.As in wraparound images, display layout elements related to multiple rows should be managed separately from power rows that are divided and belong to each row. Do
  • Beginning of line is a position where display layout elements are first arranged in a normal arrangement method on a line.
  • the left end is for horizontal rows arranged in a horizontal line
  • the upper end is for vertical rows arranged in a vertical line.
  • the first display layout element of the desired partial data is a display layout element that performs a special arrangement such as a wraparound image or a display layout element that is managed separately from a line is displayed from the beginning of the line.
  • Next line to be placed in the row Normal display layout elements (characters, etc.) are to be judged.
  • FIG. 1 is a configuration diagram illustrating a data generation device that performs a data generation method according to an embodiment of the present invention.
  • the main parts of the data generation device are divided into electronic data acquisition means 1, influence determination means 2, division boundary data generation means 3, divided data generation means 4, processing auxiliary data generation means 5, and dependency relation data generation.
  • the extraction means 12 can be expanded and shown in the main functional blocks.
  • FIG. 2 is a configuration example of an apparatus that specifically realizes each of the units 111 to 12 in FIG.
  • the CPU (central processing unit) 70 includes the influence determination means 2, the division boundary data generation means 3, the division data generation means 4, the processing auxiliary data generation means 5, the dependency data generation means 6, and the standard independent. Boundary extraction means 7, non-standard independent boundary extraction means 8, partial data size determination means 9, first division boundary extraction means 10, second division boundary extraction means 11, third division boundary extraction means 12 A program in which the processing procedure of each of these means 2-12 is described can be obtained from a main memory 74, an external memory 75, a network destination via a communication device 77, and the like. Note that the CPU 70 also has a function as electronic data acquisition means 1 for reading and transferring necessary data.
  • the CPU 70 includes the display 71, the mouse 72, the tablet 73, the main memory 74, the external memory 75, the button 76, the communication device 77, the keyboard 78, and the Z connected to each other via the bus 79 including the CPU 70. Alternatively, the processing is performed while exchanging data with the speaker 80.
  • the data exchange may be performed via a communication cable or a wireless communication device such as a wireless communication device, in addition to via the node 79.
  • the means for realizing each of the means 2-12 is not limited to the CPU, but may be a DSP (digital signal processor) or a logic circuit in which a processing procedure is incorporated as a circuit.
  • the display 71 is usually realized in combination with a graphic card or the like. It has VRAM (video random access memory) on the IC card, converts the data in VRAM into a display signal, sends it to a display such as a monitor (display Z output medium), and the display displays the display signal as an image I do.
  • VRAM video random access memory
  • a mouse 72 As means for inputting user instructions, there are a mouse 72, a tablet 73, a button 76, a keyboard 78, and the like.
  • the user's instruction is input to each means 111 through a bus 79.
  • various input means such as voice input using a microphone can be used.
  • the mouse 72 also functions as a detecting device and a button for detecting the moving direction and the moving distance of the mouse.
  • the tablet 73 includes a pen and a detection device for detecting the pen position.
  • Button 76 may be a mechanical or electronic switch.
  • the keyboard 78 is composed of a group of buttons (keys) and sends out a signal corresponding to the pressed key.
  • the main memory 74 is usually configured by a memory device such as a dynamic random access memory (DRAM) or a flash memory. Note that memories and registers included in the CPU may be interpreted as a kind of main memory.
  • DRAM dynamic random access memory
  • flash memory a type of main memory.
  • the external storage 75 is a removable storage means such as a hard disk drive (HDD) or a personal computer (PC) card.
  • a main memory or an external memory attached to another network device connected by wire or wirelessly to the CPU 70 via a network can be used as the external memory 75.
  • the communication device 77 is realized by a network interface card or the like, and exchanges data with another network device connected wirelessly or by wire.
  • the speaker 80 interprets the audio data transmitted via the node 79 or the like as an audio signal and outputs it as audio.
  • the output voice may be a simple sound of a single wavelength, or it may be complex such as music or human voice. If the audio to be output is predetermined, the transmitted data may be only an on / off operation control signal instead of an audio signal.
  • the electronic data acquisition means 1 is composed of, for example, a CPU 70 and a main storage 74 or an external storage 75, and also obtains electronic data from a main storage 74, an external storage 75, or a network destination via the communication device 77. . In this case, electronic data prepared in advance is read.
  • the electronic data acquisition means 1 reads out the encrypted electronic data from the main memory 74 or the external memory 75, and decrypts and reads it. There is also.
  • the obtained electronic data is sent to the influence determining means 2, the divided data generating means 4, the non-standard independent boundary extracting means 7, the non-standard independent boundary extracting means 8, and the third divided boundary extracting means 12. .
  • the CPU 70 as the standard-independent non-independent boundary extraction means 7 has a data size smaller than or equal to the standard data size based on a program in which power is read such as a main memory 74, an external memory 75, or a network destination via the communication device 77.
  • the electronic data is divided into partial data. More specifically, the intra-standard independent division boundary is used for determining the data size obtained from the partial data size determination means 9 and the influence determination means for the partial data candidates of the electronic data obtained from the electronic data acquisition means 1. It is determined and obtained comprehensively from the judgment on the influence of the division obtained from 2.
  • the obtained intra-standard independent division boundary is sent to division boundary data generation means 3, division data generation means 4, and first division boundary extraction means 10.
  • the method of obtaining partial data candidates may be fixedly determined in a program, or a part of the method or a value (parameter) used as a criterion is instructed to the user. In some cases.
  • the instruction from the user is performed using an input device such as a mouse 72, a keyboard 78, a button 76, or a tablet 73 while viewing an instruction screen displayed on the display 71.
  • Figure 3 is an example of a window display where the user specifies the specified maximum data size and the specified standard data size.
  • the CPU 70 as the non-standard-independent boundary extracting means 8 is a program that is read in the same manner as described above.
  • One or more non-standard independent division boundaries for dividing the electronic data into partial data having a data size equal to or smaller than a predetermined maximum data size are obtained based on the datagram. More specifically, the non-standard-independent division boundary is used for determining the data size obtained from the partial data size determination means 9 and the effect determination means 2 for the partial data candidates of the electronic data obtained from the electronic data acquisition means 1. It is determined comprehensively from the judgment on the effect of the division obtained from the above.
  • the obtained non-standard-independent division boundary is sent to division boundary data generation means 3, division data generation means 4, and first division boundary extraction means 10.
  • the CPU 70 as the first division boundary extracting means 10 obtains a standard-independent division boundary closest to the standard data size and from which partial data of the data size can be obtained, based on the program read in the same manner as described above. .
  • the judgment obtained from the standard-independent division boundary data size judging means 9 with respect to the standard-independent division boundary obtained from the standard-independent boundary extraction means 7 is used.
  • the obtained intra-standard-independent division boundary is sent to division boundary data generation means 3 and division data generation means 4.
  • the CPU 70 as the second division boundary extraction means 11 obtains a nonstandard non-standard division boundary at a data position closest to the standard data size based on a program read in the same manner as described above. For the determination of the non-standard-independent division boundary, the judgment obtained from the partial data size determination means 9 regarding the non-standard-independent division boundary obtained from the non-standard-independent boundary extraction means 8 is used. The obtained division boundaries are sent to division boundary data generation means 3 and division data generation means 4.
  • the CPU 70 as the third division boundary extraction means 12 obtains a division boundary from which partial data whose data size exceeds the maximum data size is obtained, based on the program read in the same manner as described above. However, regarding the partial data candidates of the electronic data obtained from the electronic data acquisition means 1, neither the standard-independent non-dependent boundary extraction means 7 nor the non-standard-independent boundary extraction means 8 cannot extract the division boundary! The third division boundary extraction means 12 accepts that the effect of the division appears in the processing result. The obtained division boundaries are sent to division boundary data generation means 3 and division data generation means 4.
  • the division boundary data generation unit 3 or division data generation unit 4 which is the side that uses the extracted division boundary, applies any one of the means 7, 8, 10-12 to the division boundary. Is only extracted, so you can use it.
  • the highest-priority division boundary may be selected from one or more division boundaries that are force-extracted by each of the means 7, 8, and 10-12.
  • the priority may be determined in advance by the extracting means, or may be obtained by numerically denoting the priority using some evaluation function or the like. In addition, it is preferable to set the priority from the viewpoints of high data processing speed and Z or resource saving in view of the object of the present invention.
  • the CPU 70 as the division boundary data generating means 3 is based on the program read in the same manner as described above, and includes the standard-independent boundary extraction means 7, the non-standard-independent boundary extraction means 8, the first division boundary extraction means 10
  • the divided boundary data obtained from the second divided boundary extracting means 11 and Z or the third divided boundary extracting means 12 is stored in a main storage 74, an external storage 75, or a network destination via a communication device 77, for example. Record in a format such as a file.
  • the generated division boundary data is sent to the processing auxiliary data generation means 5 and Z or the dependency relation data generation means 6, and the like.
  • the division boundary data generating means 3 adds header information or data structure information, etc., encrypts, In some cases, a process such as adding a signature is performed. Header information and data structure information will be described later. These processes are not limited to the division boundary data generation means 3, but may be similarly performed by the division data generation means 4, the processing auxiliary data generation means 5, the dependency relation data generation means 6, and the like.
  • the CPU 70 as the divided data generating means 4 uses the standard-independent boundary extracting means 7, the non-standard-independent boundary extracting means 8, the first divided boundary Before dividing the electronic data obtained from the electronic data acquisition means 1 with the division boundaries obtained from the boundary extraction means 10, the second division boundary extraction means 11, and the Z or third division boundary extraction means 12, and generating partial data As a stage, divided data is generated.
  • the generated divided data is recorded in a format such as a file on the main memory 74, the external memory 75, or a network destination via the communication device 77, for example.
  • the generated divided data is sent to the processing auxiliary data generating means 5 and Z or the dependency data generating means 6 or the like.
  • the CPU 70 as the processing auxiliary data generating means 5 generates the processing auxiliary data from the focused divided data and the other divided data based on the program read in the same manner as described above.
  • the processing auxiliary data is information that is not enough to make the divided data into partial data, that is, information that is not enough to process the divided data by itself and obtain a result that does not impair the meaning of the divided data.
  • the generated processing auxiliary data is recorded in the main storage 74, the external storage 75, or a network destination via the communication device 77, for example, in a file format.
  • the divided data may be in a form directly obtained from the divided data generating means 4, and indirectly obtained from the electronic data obtained from the electronic data obtaining means 1 and the divided boundary data obtained from the divided boundary data generating means 3. It may be a form that can be obtained in a targeted manner.
  • the term “indirectly” refers to a process of generating divided data in the processing auxiliary data generating unit 5 by partially cutting out and reading electronic data based on the dividing boundary data.
  • the CPU 70 as the dependency data generation means 6 generates the dependency data from the partial data based on the program read in the same manner as described above.
  • the dependency data is information on partial data having a dependency between the processing results of the partial data.
  • the method for acquiring the partial data is the same as the method by which the processing auxiliary data generating means 5 acquires the divided data.
  • the generated dependency data is recorded in, for example, a file format on the main memory 74, the external memory 75, or a network destination via the communication device 77.
  • the various data of the dependency data generated in 6 may be generated as separate files, or may be generated as a file in which the data are combined.
  • data other than the divided data may be recorded in a form that is added to a file of electronic data.
  • the CPU 70 can also function as a layout generation unit that generates a display layout (processing result) for the divided data and the display range specified according to a program or user input by the control unit 8.
  • the processing auxiliary data obtained from the processing auxiliary data generating means 5 may be used together with the divided data.
  • the generated display layout is sent to and stored in the main storage 74 or the external storage 75, or to a device at the network destination via the communication device 77, or is sent to the display 71 for display.
  • the CPU 70 gives necessary control commands and instructions to each means 111, and functions as a general control means 8 for bidirectionally transmitting and receiving necessary data to and from each means 111. There is.
  • the CPU 70 can also function as layout display means for displaying the created display layout on the display 71 or the like.
  • layout display means for displaying the created display layout on the display 71 or the like.
  • the description is made as a display on the display 71.
  • FIGS. 4A and 4B are explanatory diagrams for explaining examples of electronic data as original data.
  • HTML data (exactly XHTML data) will be described as an example of document data whose display layout changes depending on the display settings.
  • the HTML data is inside the frame, and the number to the left is the line number for explanation.
  • Fig. 5A is an example in which the HTML data of Fig. 4A is displayed by a WWW browser at a certain display setting.
  • Fig. 5B shows the HTML data of Fig. 4B with a WWW browser. This is an example displayed at the time of setting.
  • the WWW browser window is sufficiently large to display the HTML data of FIG. 4A or 4B at a time.
  • Fig. 6A the display setting of Fig. 5A is set to 1.5 times the size of the reference character, and the width and height of the display window are set to be the same, and the HTML data of Fig. 4A is displayed. It is an example. The same applies to FIG. 6B. Since each character has become larger, it can be seen that the wrapping position of each line has changed. In FIG. 6A and FIG. 6B, all the HTML data of FIG. 4A and FIG. 4B cannot be displayed, so only the first part is displayed. By switching the display range using a scroll bar or a page turning button, it is generally possible to display a portion that is not completely displayed.
  • HTML data (more precisely, XHTML data)
  • the “tag” described above is a character string that starts with the character “ku” and ends with the character “>”, and is a character string that instructs display settings.
  • the display settings in Fig. 5A or Fig. 5B are specified by various tags in the HTML data in Fig. 4A or Fig. 4B.
  • a tag is made up of a pair of a start tag and an end tag, and the end tag has a character "Z" after "ku".
  • Each tag has a "tag name”, the start tag is "ku” + “tag name” + “>”, and the end tag is "ku Z" + "tag name” + “>”.
  • each tag composed of a pair of HTML> and ⁇ ZHTML> is referred to as a “HTML tag” using a tag name.
  • the start tag can also have an "attribute” as information for setting the display layout in detail.
  • An attribute consists of an "attribute name” and an "attribute value”
  • the font is three levels larger than the reference font size.
  • the above T EXT is certainly displayed in large characters. (Because the text color is hard to understand on a black-and-white print screen, it is assumed that it is displayed in red on a full color display shown in black here.)
  • the start tag and the end tag may be put together to form "ku tag name Z>".
  • ku brZ> the specific meaning will be described later
  • the tags of the HTML data have a nested structure and a hierarchical structure.
  • the HTML data conforms to the XHTML (extensible hypertext markup language) format or the XML (extensible markup language) format, and cannot have any structure other than the nested structure.
  • the A tag and B tag power “ku A> ⁇ B> ⁇ ZB> ⁇ ZA>” is a nested structure
  • the power “ku A> ⁇ B> ⁇ ZA that has the correct hierarchical structure > ⁇ ZB> ” is not allowed because it does not have a nested structure.
  • tags are nested, the effect of the outer tag extends to the inner tag and its TEXT, but the tags with the same tag name and the attribute values of the same attribute name with the same tag name are not affected.
  • the inner tag is generally preferred.
  • the tags at the top level are the HTML tags on the first and last lines, and the font layers and br tags on the second and third lines are below. Many tags follow. In the hierarchy below the font tag on the 5th and 16th lines, there are P tags on the 6th and 15th lines (the meaning is described later).
  • the HTML tag only declares that it is an HTML document and has no meaning for display settings.
  • the br tag means that a line feed is performed on the display layout. Line feed codes in HTML data are usually ignored.
  • the P tag means a graph, and is expressed as a slight vertical space and a line feed at the start tag, and as a line feed and a slight vertical space at the end tag.
  • the vertical space inserted by the P tag is set based on the character size. It can be fixed or fixed to a certain size. Indentation may be displayed depending on the WWW browser. Here, there is no indentation.
  • FIG. 7A is an explanatory diagram schematically illustrating division data 400'-405 'generated before considering the influence of division from the document data 406 of Fig. 4A.
  • the division (indicated by a broken line) of each divided data 400'-405 ' is actually generated as divided boundary data, or the divided data 400'-405' is generated as an individual file or the like.
  • the power is shown here as a broken line to make it easier to understand the division.
  • FIG. 8 shows that the influence determining means 2 determines the influence of the division on the divided data 400 ′-405 ′ of FIG. 7A, and the dependency data 140 ′ generated by the dependency data generating means 6 based on the determination result.
  • FIG. 146 is an explanatory diagram for explaining the data structure of 145 ′.
  • Each of the divided data 400'-405 ' corresponds to each of the dependency relationship data 140 and 145'.
  • the dependency data 140'-145 ' is in the form of an array, and each of the dependency data 140'-145' can be accessed by an index number.
  • information as to whether or not the processing result of each divided data is affected by the processing result of the immediately preceding divided data is recorded as dependency data.
  • Information is recorded as "0” or “1”, and is recorded as "1” if affected (affected) or "0” if not affected (no effect) .
  • dependency data 142 ' is taken as an example, the content is "1", which indicates that the processing result of the focused divided data 402' is affected by the processing result of the immediately preceding divided data 401 '.
  • FIG. 9 is an explanatory diagram illustrating the data structure of the dependency relationship data 150-155 generated by another method of the divided data 400′-405 ′ of FIG. 7A.
  • Split data 400'-405 ' Each corresponds to each of the dependency data 150-155.
  • the dependency data 150-155 is in the form of an array, and each of the dependency data 150-155 can be accessed by an index number.
  • the information of the divided data before the processing result of each divided data is affected is recorded as dependency data.
  • the information is recorded as information for specifying the divided data.
  • “divided data 401 ′” (dependency data 152, 153) and the data of the affected divided data are stored so that they can be easily divided. It is a number.
  • Other information that specifies the divided data includes the index number of the array, the address of the divided data in the memory, and the file name of the divided data.
  • the data may be empty or information specifying the own divided data may be recorded.
  • the data number of the own divided data is shown in parentheses to indicate that the data may be recorded empty (dependency data 150, 151, 154, 155).
  • FIG. 10 shows an example of the appearance of a data processing apparatus that uses electronic data, division boundary data, division data, processing auxiliary data, dependency data, and the like.
  • a display unit / tablet 301 and page turning buttons 302 and 303 are provided on the main body 300.
  • a pen 304 for operating the tablet is also provided.
  • the data processing device in FIG. 10 uses the above-described document data, division boundary data, division data, processing auxiliary data, and dependency data For example, it is assumed that a display layout can be generated and displayed using necessary data.
  • the generated display layout is displayed on the display unit / tablet 301.
  • the display unit / tablet 301 is also used to display various setting menus of the data processing device and change settings with a finger or a pen using a tablet.
  • operation means for various settings and the like other operation buttons and the like that can be operated only by the display unit / tablet 301 may be used.
  • the page turning buttons 302 and 303 are used to switch the display range of the display layout displayed on the display unit / tablet 301, for example.
  • the pen 304 is used for various operations such as link jump operation and user input for various settings. Available.
  • a slot such as a memory card as an external storage, a communication device 77 for communicating with a network, an input device such as a mouse 72 and a keyboard 78, a microphone, and a speaker 80 are provided.
  • An output device such as, may be attached.
  • FIG. 23 is a flowchart illustrating an example of a data generation method according to an embodiment of the present invention.
  • step S1 the electronic data acquisition unit 1 transmits, for example, a main storage 74, an external storage 75, a network destination via a communication device 77, or the like in advance. Read the electronic data prepared in. As a result, the electronic data acquisition means 1 acquires the electronic data, and the process proceeds to S2 via the connection point P10 (hereinafter, "connection point P" is abbreviated as "P").
  • the influence determining means 2 receives the electronic data from the electronic data acquisition unit 1 and divide the electronic data into divided data.
  • the dividing boundary is calculated, and the process proceeds to S3 via P20. Details of the processing here will be described later with reference to FIG.
  • the dividing boundary data generating means 3 includes the dependent boundary extracting means 7, the non-standard independent boundary extracting means 8, the first dividing boundary extracting means 10, the second dividing boundary extracting means 11, and the Z or the third dividing boundary extracting means.
  • the division boundary data is generated using the division boundary obtained from the division boundary extraction means 12, and the process proceeds to S4 via P30.
  • the divided data generating means 4 generates divided data using the dividing boundaries obtained from the means 7, 8, 10-12, and the process proceeds to S4 via P30.
  • the processing auxiliary data generation means 5 uses the divided data to generate the processing auxiliary data. After generation, the process proceeds to S5 via P40. Details of the processing here will be described later using FIG. 27 and the like.
  • the dependency relationship data generation means 6 generates dependency relationship data using the divided data, and ends the process via P50. Details of the processing here will be described later with reference to FIGS.
  • the divided data used in S4 and S5 may be obtained directly from the divided data generating means 4 (S3) as described above, or may be obtained from the electronic data obtaining means 1 (S1). And the division boundary data obtained from the division boundary data generating means 3 (S3) in some cases.
  • FIG. 24 is a flowchart illustrating one method of the process of S2 in FIG. 23, that is, a process of calculating a dividing boundary for dividing electronic data into divided data.
  • the partial data size determination means 9 acquires the following specified maximum data size, and the process proceeds to S2-2.
  • the partial data size determination means 9 acquires the following specified standard data size, and the process proceeds to S2-3.
  • the specified maximum data size and the specified standard data size are parameters relating to the size of one piece of divided data.
  • the specified maximum data size is the maximum size of the divided data that is allowed from the viewpoint that does not hinder realization of high-speed processing and resource saving of the processing device.
  • the designated standard data size is the most desirable size of the divided data, and is determined according to the processing capability of the processing apparatus and the purpose of the processing.
  • the specified maximum data size and the specified standard data size may be fixedly determined by the program, and the user is instructed in some methods and values (parameters) used as criteria. It may be done.
  • the instruction from the user is, for example, looking at the instruction screen displayed on the display 71, This is done using input devices such as a mouse 72, keyboard 78, buttons 76, and tablet 73.
  • Figure 3 is an example of a window display for specifying the specified maximum data size and the specified standard data size.
  • an initial setting process is performed !, and the process proceeds to S2-5.
  • the current position is set to the start position (new division boundary) of the new division data, and the setting of the standard-independent boundary candidate, the non-standard-independent boundary candidate, and the standard-dependent boundary candidate is performed. Clearing is performed. Note that the division boundary position is also initialized to the beginning of the electronic data in a stage before the first division boundary position is obtained.
  • the word “in standard” means that the starting position force of the divided data also falls within the specified standard data size
  • the word “nonstandard” means (((starting position of divided data) + (specified standard data)). It means the range from (data size)) to ((partition data start position) + (specified maximum data size)).
  • the "independent boundary candidate” means a candidate for a boundary that does not affect the processing result when the original electronic data is divided at the division boundary to be obtained.
  • the “existing boundary candidate” means a candidate for a division boundary where the division affects the processing result.
  • a criterion that desirability increases in the order of the standard-dependent boundary candidate, the non-standard-independent boundary candidate, and the standard-independent boundary candidate is set.
  • non-dependent boundaries are most desirable within the standard.
  • This determination criterion may be set so that the user can make a desired setting.
  • the current position, the division boundary position, the standard-independent non-dependent boundary candidate, the non-standard non-dependent boundary candidate, and the standard-independent boundary candidate are values that are temporarily recorded on the main memory 74 or the like. These indicate positions in the electronic data.
  • the unit may be the number of bytes, characters, words, etc. Can be
  • the start position of the divided data is naturally the beginning of the electronic data at first.
  • the means that is the main actor of S2-4 is any of the closely related means 7-12 here.
  • the partial data size determination means 9 determines whether the data size at the start position (division boundary position) of the divided data up to the current position exceeds the specified standard data size, and determines that the data size is exceeded. If so, the process proceeds to S2-6, and if not, the process proceeds to S2-11 via PI1.
  • the influence determination means 2 and the standard-independent boundary extraction means 7 determine whether there is a standard-independent boundary candidate between the start position force of the divided data and the current position. However, if it is determined that it exists, the process proceeds to S2-7, and if it is determined that it does not exist, the process proceeds to S2-8. This can be determined by determining whether or not a value indicating the existence of the candidate within the standard-independent boundary is set.
  • the standard-independent boundary extracting means 7 sets the standard-independent boundary candidate as a new division boundary, and the process returns to S2-3.
  • the non-standard independent boundary candidate is set as a division boundary with priority over other boundary candidates.
  • the current position is advanced, and the first invisible standard-independent boundary candidate is set as a division boundary. Assuming that another standard-independent boundary candidate can be found at a location after the current position, it is better to use one of the standard-independent boundary candidates as the division boundary, and the data size of the divided data will be the specified standard data size. Is naturally the first candidate within the standard that is found.
  • a plurality of standard-independent boundary candidates are found, and the data size of the The non-standard-independent boundary candidate closest to the specified standard data size may be extracted as a division boundary, but the processing in FIG. 24 is more efficient, and the description is given here accordingly.
  • the partial data size determination means 9 determines whether or not the start position force of the divided data also exceeds the data size force up to the current position, and if it is determined that it exceeds S2-9. The process proceeds to S212 if it is determined that the value does not exceed S16.
  • the influence determination means 2 determines ((partition data start position) + (specified It is determined whether nonstandard non-dependent boundary candidates exist in the range from (standard data size)) to ((partition data start position) + (specified maximum data size)).
  • the process proceeds to S2-10, and if it is determined that it does not exist, the process proceeds to S2-15. This can be determined by determining whether a value indicating the existence of the non-standard independent boundary candidate is set.
  • the non-standard-independent boundary extraction means 8 sets a non-standard-independent boundary candidate as a new division boundary, and the process returns to S2-3.
  • the first nonstandard non-dependent boundary candidate found is set as a division boundary.
  • another nonstandard nondependent boundary candidate is temporarily found at a location after the current position. If the data size of the divided data is close to the designated standard data size, it is the first nonstandard non-dependent boundary candidate found, and it can be said that the entire series of processes is the second divided boundary extraction means 11.
  • a plurality of non-standard-independent boundary candidates are obtained, and the non-standard-independent data whose data size is closest to the specified standard data size are obtained.
  • the existence boundary candidate may be extracted as a division boundary, but the processing in FIG. 24 is more efficient, and therefore, the description will be made here accordingly.
  • the specified standard data As the current position exceeds the specified maximum data size (according to the result of S2-8) and there are no nonstandard independent boundary candidates (according to the result of S2-9), the specified standard data Although the size exceeds, the dependent boundary candidate that falls within the specified maximum data size must be set as a new division boundary.
  • the position of the division boundary set based on the intra-standard dependence boundary candidate is usually the position obtained by adding the specified standard data size to the previous division boundary position. This is because up to this position, only the dependent boundary candidate exists. The new division boundary is added to the division boundary array.
  • the current position is advanced to the next character, next word, next tag, or the like, and the process proceeds to S2-14.
  • How to advance the current position depends on the type of electronic data or the division boundary Various methods can be considered depending on how to search for candidates. Further, the processing here also relates to the efficiency of processing for searching for a division boundary candidate such as S2-11 or S2-12.
  • S2-14 it is determined whether the current position exists, that is, whether or not all the electronic data has been read in order to obtain the division boundary. If it is determined that the current position exists, S2-14 The process returns to 5, and if it is determined that there is not, the process proceeds to S2-9. The judgment process is the same as S2-3.
  • Fig. 25 shows the process of S2-11 in Fig. 24, that is, within the range from the previous current position to the present current position, searching for a standard-dependent boundary candidate or a standard-independent non-standard boundary candidate. It is a flowchart figure explaining one method of the setting process.
  • Previous current position force Processing power for the range up to the current current position.
  • tags and words are used as units in S2-13
  • the force that can be a standard internal dependent boundary candidate for the current position is Alternatively, it is only necessary to judge whether or not it can be a standard-independent boundary candidate. In other cases, the power depends on the type of electronic data. For example, it is necessary to repeat the judgment in the above range in units of one character at a time.
  • HTML tag merely serves to declare that the document data is HTML data, it is ignored here and is not considered as a candidate for a division boundary.
  • the third division boundary extraction means 12 determines the current position (in some cases, moves to the current position, and Position) is set as a candidate for the intra-standard dependence boundary, and the processing exits from S2-11 via P15. Since the current position does not exceed the specified standard data size (S2-5), it is within the standard and has an influence, so it is a candidate for the dependent boundary. [0288] In S2-11-3, it is determined that there is no effect in S2-11-1. In-standard non-dependent boundary extracting means 7 sets the current position (in some cases, (Previous position) is set as a standard-independent boundary candidate, and the processing exits from S2-11 via P15. Since the current position does not exceed the specified standard data size (S2-5), it is within the standard and has no effect, so it is an independent boundary candidate.
  • Fig. 26 shows a method of the process of S2-12 in Fig. 24, that is, a process of searching for a non-standard-independent boundary candidate in the range from the previous current position to the current current position and setting it if it exists. It is a flowchart figure explaining.
  • step S2-12-1 after P16 when the influence determination means 2 uses the current position (possibly in addition to the current position and the position before the current position) as the division boundary, the influence determination means 2 sets It is determined whether or not there is an effect of the division on the processing result of the divided data. If it is determined that the effect will occur, the processing exits from step S2-12 via P17, and if it is determined that the effect does not occur, step S2-12 — Processing proceeds to 2. The processing of the determination here is the same as the processing of the determination of S2-11-1.
  • non-standard dependency boundary candidate when it is determined that an effect will occur, a "non-standard dependency boundary candidate" may be used.
  • “non-standard dependent boundary candidates” are set here because they are often good from the viewpoint of high-speed processing and resource saving in power processing.
  • the non-standard-independent boundary extraction means 8 sets the current position (in some cases, the current position and the position before it) as a non-standard-independent boundary candidate, and sets P17 to Then, the process exits from step S2-12. Because the current position exceeds the specified standard data size ( S2-5) Since it is nonstandard and has no effect, it is a candidate for an independent boundary.
  • a criterion for determining whether or not the start position force of the divided data also falls within a predetermined amount range before and after the data size force designated standard data size up to the current position may be used.
  • FIG. 27 is a flowchart illustrating a method of the process of S4 in FIG. 23, that is, a process of generating processing auxiliary data using the divided data. Since the actors in each step are all processing auxiliary data generating means 5, the description of the actors is omitted in the description of each step.
  • the first divided data is set as the current divided data, and the process proceeds to S4-2.
  • the current divided data is recorded in the main memory 74, the external memory 75, or the like.
  • FIG. 28 is an explanatory diagram illustrating the data structure of the current start tag list and the current end tag list.
  • the current start tag list is an array of start tag data (character strings) for which the split data existing before the current split data should also take effect.
  • the data structure is a stack structure.
  • the end tag list is an array of end tag data (character strings) that is paired with the start tag data that is effective for the current divided data, and has the same data structure as the current start tag list. Is a stack structure.
  • both the current start tag list and the end tag list are empty.
  • the first start tag data of the current start tag list is sequentially connected to the last start tag data, and a character string is formed. Generate it. Since the current start tag list has a stack structure, for example, in the case of the current start tag list shown in FIG. 28, the start tag data 311 and 312 are read in order from the first start tag data 310 at the bottom.
  • Start tag data 310-312 in Fig. 28 shows the state of the current start tag list when the process of S4-2 is performed using the divided data 401 'as current divided data.
  • the current start tag list at this time was created when the current divided data was divided data 400. That is, the processing auxiliary data generating means 5 selects start tag data for which the end data is not present in the divided data 400 'as the start tag data from which the divided data 401' should inherit the effect from the divided data 400 '. As a result, the current start tag list for the divided data 400 'is obtained.
  • the current start tag list for the divided data 400 'connecting the start tag data 310-312 is set to the start tag character string of the divided data 401' that is the current current divided data.
  • the column (processing auxiliary data 133 in Figure 29) Font size "+ l"> ⁇ P>".
  • the tag in the current divided data is used to update the current start tag list
  • Processing proceeds to 4.
  • the update processing at that time is deletion and addition of start tag data.
  • the current divided data is first "parsed” in order, and when a start tag appears, start tag data is generated from the start tag and the generated start tag data is added to the current start tag list.
  • parse means reading the character string of the current divided data and distinguishing the start tag, end tag, and TEXT.
  • the start tag and the end tag always correspond.
  • the section of the corresponding start tag and end tag partially overlaps with the section of the other corresponding start tag and end tag, the entire section overlaps, that is, only the inclusion relationship (parent-child relationship) can be obtained. Not to be.
  • XHTML data and XML data have the above structure, and since the current start tag list is a stack structure, the start tag corresponding to the end tag that appears in the parse must be added at the end. It should be the start tag data.
  • start tag of the HTML tag appears, so that start tag data 310 having a start tag character string of "" HTML> "" is generated and added to the current start tag list.
  • the current start tag list at this point is only the start tag data 310.
  • Start tag data 311 having a start tag character string of "" is generated and added to the current start tag list.
  • FIG. 28 shows a state in which the division data 400 'has been processed, and since the deletion processing has been performed, the content of the start tag data 311 differs from the description here. Yes.
  • the current start tag list at this point is the start tag data 310 and 311.
  • the current start tag list at this point is the start tag data 310 and 311.
  • start tag data 312 having a start tag character string of ""> is generated and added to the current start tag list.
  • the current start tag list at this point is the start tag data 310, 311 and 312.
  • start tag data 310-312 in Fig. 28 is generated.
  • the processing here is similar to the processing of S4-3, and is the deletion and addition of end tag data.
  • end tag data 321 having an end tag character string of "" Zfont> "" is generated and added to the current end tag list.
  • the current end tag list at this point is the end tag data 320 and 321.
  • end tag data 321 having an end tag character string of "" is obtained and added to the current end tag list.
  • the current end tag list at this point is the end tag data 320 and 321.
  • end tag data 312 having an end tag character string of "" ZP> "is generated and added to the current end tag list.
  • the current end tag list is the end tag data 320, 321 and 322.
  • end tag data 320-322 in Fig. 28 is generated.
  • the current end tag list is set to the end tag character string of the current divided data, and the process proceeds to S4-6.
  • the last end tag data in the current end tag list is generated by connecting the character strings in order up to the first end tag data. Good. Since the current end tag list has a stack structure, for example, in the case of FIG. 28, the end tag data 321 is changed from the last end tag data 322 at the top. , Read in order of 320.
  • the processing auxiliary data generating means 5 connects the end tag data 322, 321 and 320 in this order, so that the end tag character string (processing auxiliary data 132 in FIG. 29) becomes " ⁇ ZP> ⁇ Zfont> ⁇ ZHTML> ".
  • each of the processing auxiliary data 133 and 135 of the divided data 401 'and 402' is composed of only the start tag read from the divided data 400 '.
  • the processing auxiliary data 134 and 136 of the divided data 401 'and 402' have the same contents as the processing auxiliary data 132 of the end tag generated from the divided data 400 '.
  • the processing auxiliary data 137 related to the start tag of the divided data 403 ′ since the divided data 403 and the end tag of the ⁇ tag are read, the ⁇ ⁇ tag start tag data 312 is deleted. Also, regarding the processing auxiliary data 138 relating to the end tag of the divided data 403 ′, the end tag data 322 of the ⁇ tag is deleted.
  • FIG. 30 is a flowchart illustrating one method of processing of S5 in FIG. 23, that is, a method of generating dependency data using the divided boundary data obtained from each of the means 7, 8, and 10-12. It is. Since the actors in each step are all the dependency data generating means 6, the description of the actors is omitted in the description of each step.
  • the influence between the processing results of the divided data depends on the direction in which the display layout is created. Since the direction is from the front to the back of the child data, it affects the direction from the previous divided data to the subsequent divided data. This direction is the most common force. If it is electronic data that affects the direction of the previous divided data, the description here may be reversed. If both directions are possible, both directions may be processed.
  • S5A-2 it is determined whether or not the next divided data of the current divided data exists. If it is determined that the data exists, the process proceeds to S5A-3. Then, the process of S5 (FIG. 23) is exited, and all the processes relating to the data generation method of the present invention are completed.
  • the dependency data is generated using the processing of S5 in Fig. 23, that is, the division boundary data obtained from each of the means 7, 8, and 10-12. Processing can be performed.
  • FIG. 31 is a flowchart for explaining one method of the process of S5 in FIG. 23, that is, a process of generating another form of dependency data using the divided boundary data obtained from each of the means 7, 8, and 10-12.
  • FIG. 9 the dependency data in another form is data indicating the earliest divided data affected by the processing result of the focused divided data.
  • the "first-most dependent divided data" of the first divided data is set in the divided data itself, the first divided data is set in the current divided data, and processing is performed in S5B-2.
  • S5B-3 it is determined whether or not the next divided data of the current divided data exists. If it is determined that the data exists, the process proceeds to S5B-4. To exit the processing of S5, and all the processing ends. The processing here is the same as S5A-2 [0364] In S5B-4, the next divided data following the current divided data is set as new current divided data, and the process proceeds to S5B-5. The processing here is the same as in S5A-3.
  • FIG. 32 is an explanatory diagram illustrating the data structure of a file used in the former method.
  • two files an electronic data file 100 'and a division boundary data array file 110, are created.
  • division boundary data 111-117 is recorded.
  • the data position of the division boundary of the electronic data file 100 ' is obtained from the division boundary data 111-117. That is, by using the division boundary data 111-117, the header data 101 and the division data 400'-405 'can be arbitrarily extracted from the electronic data file 100' as shown in FIG.
  • the division boundary data 111 indicates the position of the division boundary between the header data 101 and the division data 400 'in the electronic data file 100'.
  • the division boundary data 112 indicates the position of the division boundary between the division data 400 'and the division data 401' in the electronic data file 100.
  • the division boundary data 113-116 represents the position of the corresponding division boundary.
  • the division boundary data 117 indicates the last position of the division data 405 '.
  • the file structure in Fig. 32 does not necessarily mean that the file structure must be this structure, but merely shows one of the typical file structures as an example.
  • the header data contains the type (format) and version information of the electronic data, how to access various internal data, copyright Information, if encrypted, often includes cryptographic information.
  • the division data and the division boundary data are not arranged side by side as shown in FIG. 32, the interval is not empty, and the information to know it is header data or division information. There is no problem if you can acquire boundary data.
  • the necessary division data can be obtained in the electronic data file using the division boundary data.
  • this division data acquisition method there is an advantage that the electronic data file can be used as it is if the division boundary data is created in a file or the like. For example, when a window as shown in FIG. 3 is called to change the size of the divided data, it is only necessary to recalculate the division boundary data, which is convenient for speeding up the processing.
  • Fig. 33 is an explanatory diagram illustrating the file structure of the divided data used in the latter method of obtaining the divided data, that is, the method of directly reading the divided data of each file.
  • the header data 101 and the divided data 400'-405 ' are recorded as files 120-126, respectively. After that, it is only necessary to obtain information on which divided data corresponds to which file.
  • files are often distinguished by file names, and therefore, for example, it is only necessary to obtain the file name of each divided data.
  • a naming rule for the file name may be determined.
  • Fig. 34 is an example in which the file name of each file of the divided data is recorded in the XML format. These file names are recorded in the "division data list" portion of FIG. 34, that is, in the hierarchy below the DividedFileList tag. The file name is recorded in the name attribute of the file tag below the DividedFileList tag. The order of the file tags is the order of the divided data.
  • the data of the file of each divided data is recorded in the same file as "data of each file". As described above, it may be recorded as an independent file.
  • each file can directly read the divided data. Processing that requires processing such as reading some files using the division boundary data is simplified. There are advantages that can be.
  • Text data has the advantage of being easy to handle because it can be viewed and understood by humans and edited with an editor application or the like.
  • the character codes that can be used are limited, there is also a disadvantage that the data size tends to be larger than binary data when describing the same amount of information.
  • knowledge data is difficult to handle, but has the advantage of reducing the data size.
  • FIG. 36 is an explanatory diagram illustrating an example of a binary file structure when electronic data is recorded in a file.
  • Each rectangle in the figure has a number! /, Which is character string data.
  • rectangles with only numerical power are fixed-length numeric data, character strings enclosed by "" “are variable-length character string data, and characters not enclosed by” “and” ".
  • the column is fixed-length character string data, and the data enclosed in parentheses is variable-length binary data.
  • a “chunk structure” is used as the file structure of the binary data.
  • a “chunk” is a chunk of data, and usually has a data size of the chunk, an identification character string indicating the type of data, and the like recorded at the beginning.
  • “A chunk structure data” may be omitted, and may be referred to as “A chunk data” or “A chunk”.
  • Advantages of the chunk structure include faster data access and flexibility in the data structure. For example, to obtain only a certain type of data, the chunk data is checked in order from the beginning. Look at the identification character string described at the beginning of each chunk data. If the data is of the desired type, it is sufficient to read the data size. If it is not the desired type of data, the data size You can skip reading the minute and skip to the next chunk data. As a result, data access to target chunk data is performed at high speed.
  • a file identification character string 180 is provided at the beginning.
  • MAINDATA—VI. 00” is used.
  • MAINDATA indicates that this file type is “electronic data”
  • VI.00 means the version of the file structure.
  • the version is included in the identification character string, but may be recorded as numerical data.
  • the chunk identification character strings 181 to the encryption information 183 are "encryption information chunks" (chunk data of encryption information).
  • the chunk data has a chunk identification string 181 consisting of a fixed character string of three characters at the beginning, a chunk data size 182 consisting of a 4-byte numeric data capacity, and then an internal data of each chunk. Data follows.
  • the chunk data size represents the size of internal data.
  • the chunk identification character string 181 is "ECP”
  • the chunk data size 182 is "4"
  • the encryption information 183 that is internal data is a fixed-length character string "NONE”. Since the cipher information 183 is a fixed-length character string and the character string length is 4 characters, the chunk data size 182 is “4”.
  • “byte” is used as the unit of the data size.
  • the encryption information chunk here indicates information such as the encryption method of the subsequent data. Here, for simplicity of explanation, it is assumed that "NONE", that is, no encryption is performed.
  • the file list chunk follows the encryption information chunk.
  • HTML data is used as electronic data. It is assumed that data such as image data and audio data that are not limited to the HTML data in the text are also required separately.
  • file list chunks to indicate the location of these data.
  • the number of lists 186 represents the number of file lists, and thereafter, three data of each file list follow.
  • the file list includes “file position data” and “file name”.
  • "File name” indicates the file name of each data
  • "File position data” indicates the position of the data chunk where the data of the file name exists.
  • the “file name” here is the so-called “internal file name” used inside the electronic data.
  • the internal data of the file data chunk is the data of the above three internal files.
  • the file list chunk is read and interpreted. For example, suppose you decide that the file at the top of the file list is the main HTML file. And the main HTM Get and read the position of the data chunk in the L file.
  • the read HTML file is interpreted and Z-processed. If other internal files become necessary, a file list with a matching internal file name is selected from the file list, the position of the data chunk is obtained and read.
  • FIG. 35 is an example in which the electronic data of FIG. 36 is expressed in a text format.
  • binary data such as IMAGE1.PNG and SOUNDl.WAV is also converted to text format by MIME64 method. Any method other than MIME64 may be used to convert binary data to text format.
  • Fig. 37 is an explanatory diagram illustrating an example of a binary file structure when the division boundary data, the processing auxiliary data, and the dependency data are recorded in one file.
  • this file will be called the "auxiliary file”.
  • division boundary data 111-117 and division data sizes 163-168 are recorded as internal data as numerical data.
  • an example of the division boundary data of the division data 400'-405 'in FIG. 7A is shown.
  • the number of divided data is 6, but the number of divided boundaries is 7 including the first and last boundaries.
  • processing auxiliary data 131-142 of a variable-length character string is recorded.
  • dependency data 140'-145 ' is recorded as numerical data.
  • the file identification character string 160 is a fixed-length character string, and therefore does not require processing such as calculation or conversion, and may be recorded as it is.
  • the first chunk identification character string 161 is also a fixed-length character string, and may be recorded as it is.
  • the processing auxiliary data chunk is recorded. Since the first chunk identification character string 169 is also a fixed-length character string, it should be recorded as it is.
  • the next chunk data size 162 needs to be calculated and obtained. Since the processing auxiliary data 13 1-1 142 has already been determined, the sum of the data sizes is obtained. It is assumed that a variable-length character string is added with a character code having a value “0” at the end. For example, as in the processing auxiliary data 131, at least one byte is required even if the character string is empty. Since the sum of the data sizes of the variable-length character strings is "175", the chunk data size 162 is recorded as "175".
  • the dependency data chunk is recorded. Since the first chunk identification character string 171 is also a fixed-length character string, it should be recorded as it is.
  • Dependency data 140'—145 ' which is internal data thereafter, is a 1-byte number each. Record as character data.
  • Fig. 38 is an explanatory diagram illustrating an example of a file structure of a file in which substantially the same information as in Fig. 37 is described in a text format. For the sake of explanation, this file will also be called the "auxiliary file”.
  • the division boundary data, the processing auxiliary data, and the dependency data are described in the "h boundaries tag, assist-data tag, and dependency-data tag of the SubData tag. These tags collect information. In this sense, it can be considered to correspond to the data chunk described above.
  • boundary tag representing each division boundary data.
  • the boundary position in the electronic data is indicated by the pos attribute of the boundary tag.
  • information on the data size of each divided data is omitted.
  • a data tag representing the processing auxiliary data of each divided data.
  • a start-tag tag indicating a start tag character string and an end-tag tag indicating an end character string.
  • the TEXT of the start-tag tag and end-tag tag is the start tag character string and end tag character string itself.
  • dependency-data tag of the dependency data there is a data tag representing dependency data of each divided data.
  • the data tag is a flag attribute and holds the value of dependency data (here, 0 or 1).
  • the data structure of unknown data that is, the data of unknown chunk data having a chunk identification character string or the data of unknown tag name tag is ignored. Or interrupt the process.
  • the XML format is easier for humans to understand directly, it is possible to guess the data content to some extent even with unknown tags, and to ignore unknown data or suspend processing. There is an advantage that the guess is used for the judgment, or the processing method inside the processing device is added or changed based on the guess.
  • each divided data is recorded as a file as the divided data 400'-405 'in FIG. 7A, and the processing auxiliary data is read from another file card and used. , One 405, and the ability to record as a file in a form that also includes processing auxiliary data.
  • Fig. 39 is an explanatory diagram showing the contents of each file when the divided data 400'-405 'is recorded as a file including processing auxiliary data.
  • 1S respectively correspond to files 410-415.
  • each divided data is recorded, and finally, an end tag character string corresponding to the recorded start tag character string is recorded.
  • processing auxiliary data and the divided data are recorded as they are here, but other information , And may be recorded in another format, for example, the format shown in FIG. 36 described above, or in an XML format!
  • Fig. 40 is an explanatory diagram illustrating the file structure of a file in which one divided data file is recorded in the XML format. Below the DividedData tag indicating that the data is divided data, there are an encryption tag for encryption information that is additional information and a contents tag that is the content of the divided data. In the TEXT part of the contents tag, the text of one of the divided data 400'-405 in Fig. 7A and the file 410-415 in Fig. 39 may be described.
  • a process of generating a display layout of a portion corresponding to desired divided data using the divided data, processing auxiliary data, and dependency data generated as described above will be specifically described.
  • FIG. 11 is a flowchart showing an example of processing for generating and displaying a display layout as an example using data such as division boundary data, division data, processing auxiliary data, and dependency data.
  • data such as division boundary data, division data, processing auxiliary data, and dependency data.
  • the subject of the processing in each of the following steps is the CPU 70 as the display layout generating means (not shown), the description of the subject of the operation is omitted in the following description.
  • step SL1 (hereinafter, “step SL” is abbreviated as “3”), processing auxiliary data, dependency data, and the like are obtained, and the process proceeds to SL2. If division boundary data is used, also obtain division boundary data. It is assumed that the processing auxiliary data, the dependency data, and the division boundary data are recorded as files in the external storage 75, for example. Therefore, the CPU 70 can read necessary data from the external storage 75 or the like when necessary. [0450] In SL2, the display range specified according to the program or user input, that is, the position and size of the display range is obtained, and the process proceeds to SL3. This processing will be described later with a specific example.
  • the divided data including the position of the display range is obtained, set as the current divided data, and the process proceeds to SL4. This process will be described later with a specific example.
  • connection point 1 ⁇ is abbreviated as "1 ⁇ "
  • the process proceeds to SL5, and if it is determined that it is not necessary, the process proceeds to SL8 because the display layout corresponding to the display range has been obtained by the process after SL5 as described later. .
  • Whether the display layout of the divided data is necessary is determined based on whether the display layout of the divided data is included in the display range. Since each display layout element has information on the position and size, it can be determined by comparing the position and size with the position and size of the display range. In a specific example to be described later, whether or not it is included will be described using a drawing. However, in actual processing, calculation and determination are performed using values of position and size.
  • both "previous divided data” and “next divided data” may be referred to as “next divided data”. This may be determined according to the purpose of the processing, such as the force of turning a page forward or the force of turning a page next. Which one to use will be described in a specific example of processing.
  • the display layout included in the display range is extracted from the display layout of each of the obtained divided data, displayed on the display unit / tablet 301, and the process ends.
  • the display layout of the display range is generated and displayed by the above processing of SL1 to SL8. be able to.
  • FIG. 12 is a flowchart illustrating an example of the processing method of SL5 in FIG. 11, that is, an example of a processing method of acquiring the display layout of the current divided data in consideration of the influence of other divided data.
  • a divided data dolphin filtered can also be obtained.
  • the electronic data file strength can also be obtained by extracting and reading the divided data portion using the divided boundary data.
  • the display layout of the divided data is used if it already exists, and is generated from the divided data if it does not exist.
  • the generated display layout may be recorded in the main memory 74 or the external memory 75 in association with the divided data.
  • the divided data 401 ′ when interpreting the divided data 401 ′, first, the start tag character string of the processing auxiliary data 133 is interpreted, then the divided data 401 ′ is interpreted, and finally, the end tag character string of the processing auxiliary data 134 is interpreted. Interpret.
  • the divided data 401 ' which is incomplete HTML data can be interpreted as ⁇ HTML data in which the content of the divided data is not impaired.
  • SL5A-2 it is determined whether the display layout of the divided data immediately before the current divided data is necessary for the specified display range. If it is determined that the display layout is necessary, the process proceeds to SL5A-3, and the processing is performed. If not, the process exits to PL20. The processing here is the same as the processing of SL4.
  • SL5A-3 it is determined whether or not the current divided data is affected by the immediately preceding divided data. If it is determined that the current divided data is affected, the process proceeds to SL5A-4, and the processing is affected. If it is determined that there is no processing, the processing exits to PL20. The determination as to whether or not it is affected may be made by referring to the dependency data 140'-145 'in FIG.
  • the process may be exited to the PL20.
  • Such a judgment can be made by separately recording whether or not the data is generated under the influence of the immediately preceding divided data. By making this determination, useless regeneration can be avoided.
  • SL5A-4 the display layout of the divided data immediately before the current divided data is obtained in consideration of the influence of other divided data, and the process proceeds to SL5A-5.
  • the display layout of the current divided data is generated following the display layout of the immediately preceding divided data, and the processing exits to the PL20.
  • the generation following the display layout means that, for example, when the display layout of the previous divided data ends in the middle of the row, the first display layout of the next divided data ends in the middle.
  • the layout is to be added to the line, in other words, a plurality of divided data affected by the division is treated as a series of data, and a display layout as a processing result is generated. This will be described later with a specific example.
  • FIG. 13 shows one page from the top of the document data on the display / tablet 301 in FIG.
  • FIG. 4 is an explanatory diagram illustrating a state in which a display layout has been obtained.
  • the frame in FIG. 13 indicates the display range of the display unit / tablet 301.
  • the size of this display range is hereinafter referred to as “one page”.
  • the display layout that extends beyond the frame is not actually displayed. This is a method of such expression in order to explain the relationship between the generated display layout and the display layout to be displayed (display layout in the display range).
  • the numbers to the left of the frame are line numbers used for explanation.
  • the position and size of the display range are obtained by SL2. Since the document data is displayed from the beginning, the position of the display range is the first display layout of the electronic data. The size of the display area is one page.
  • the display layout of the divided data 400 is acquired by SL5A-1 in FIG. Since the display layout has not been generated yet, it will be generated here.
  • the generated display layout is the first “How does LCD works?” Line in Figure 13 and the next blank line.
  • the display layout of the divided data 401 is acquired in consideration of the influence.
  • the display layout of the divided data 401 is acquired by SL5A-1 in FIG. Since the display layout has not been generated yet, it will be generated here.
  • the generated display layout is from the line starting with "Liquid Crystal” on the third line in Fig. 13 to the line ending with "passed” on the sixth line.
  • SL4 it is determined whether or not a display layout of the divided data 402 'is necessary. As can be seen from FIG. 13, the running force starting with “passed” included in the divided data 401 ′ is already out of the display range, so the divided data 402 ′ is determined to be unnecessary here, and is processed to SL8. The process goes on. [0494] The display layout of the display range in FIG. 13 is displayed on SL8, and the process ends.
  • the display result has no problem as the display layout result.
  • the entire electronic data 406 is processed and the display layout is created.
  • the data processing amount is about 1Z3. Done.
  • the amount of memory required for processing can be reduced. In this way, processing by using the divided data has the advantage that processing can be performed at high speed and with resource saving.
  • FIG. 14 is an explanatory diagram illustrating a state in which a display layout of a display range for one page is obtained below the state of FIG. Processing for obtaining the display layout in FIG. 14 will be briefly described.
  • a display layout of the divided data 401 is obtained, and a display layout of the divided data 402 is generated. Since this is generated following the display layout of the divided data 401 ′, the first “through the” of the divided data 402 is laid out after “passed” on the sixth line in FIG. Similarly, the display layout of the divided data 403 'is generated following the display layout of the divided data 402'.
  • a display layout is generated in the order of the divided data 404 'and 405'.
  • the generated layout is as shown in Fig.14.
  • the sixth to fourteenth lines in FIG. 14 are displayed as the display range.
  • FIG. 15 is an explanatory diagram illustrating a state in which a display layout of a display range for one page has been obtained from the beginning of divided data 405 'to the bottom.
  • the independent processing is performed on the divided data 405 ′. Therefore, in the state of FIG. 15, only the display layout of the divided data 405 exists.
  • the process for obtaining the layout in FIG. 15 is the same as that in FIG. 13 except for the position of the display range, and thus the description is omitted here.
  • FIG. 16 is an explanatory diagram illustrating a state where the line is scrolled upward by one line from the state of FIG.
  • a display layout (only one blank line) for the divided data 404 ' is added to the divided data 405'.
  • FIG. 17B is an explanatory diagram illustrating a state in which one line has been scrolled further upward from the state of FIG.
  • the display layout of the divided data 403 '(from the first line where the "on" force starts, to the fourth line ending with remployed.) Is added to the divided data 404' -405 '.
  • the divided data 403 ' is composed of a force starting with a word in the middle of the sentence "on".
  • the display layout itself (that is, employed. And line feed) of the divided data 403' in the display range is not particularly problematic. Not appearing. That is, the display layout of the divided data 403 'is the same as the case where the display setting is changed and the line is wrapped before “on” in one sentence, and the HTML such as the line feed is used.
  • FIG. 18A is an explanatory diagram illustrating a state in which the line is scrolled upward by five lines from the state of FIG. 17B. Since the processing here involves the influence between the divided data, the processing will be described in some detail in accordance with the flowcharts of FIGS.
  • the display range is one page above the last row of the divided data 405 '.
  • the display layout of the divided data 402 ' is acquired by taking the divided data 402, temporarily as current divided data, taking into account the influence of other divided data.
  • SL5A-1 (divided data 402 ')
  • the display layout of the divided data 402' is obtained, and the process proceeds to SL5A-2 (divided data 402 '). Since the display layout of the divided data 402 does not yet exist, the display layout of the divided data 402 'is generated alone here.
  • the generated display layout ranges from the first line starting with rthroughj to the fourth line based on "based".
  • FIG. 18A the state after all the processing is completed, so the first “on the broadcast of divided data 403, is connected by the fourth line.
  • the layout of the generated four lines is And it exists as a form inserted above the first line in Fig. 17B.In other words, there is nothing after “based” in the fourth line, as if the power had been broken.
  • the divided data 402 ′ starts with a word in the middle of the sentence “through”, but there is no particular problem with the display layout of the divided data 402 ′ as in FIG. 17B.
  • a sentence that has been divided between the divided data 402 ′ and the divided data 403 is laid out without error as a continuous sentence as a result of considering the influence of the division.
  • FIG. 17B and FIG. 18A are compared, for example, the fourth line in FIG. 17B and the seventh line of “employe d.” In FIG. 18A have different end positions. However, neither of them has any problem in displaying HTML.
  • FIG. 19A is a state force obtained by simply performing the process of inserting the layout of the split data 402 before the layout of the split data 403.
  • the “based” on the fourth line, which is the last layout of the divided data 402, and the “on” force on the fifth line, which is the first layout of the divided data 403, are originally connected as shown in FIG. 18A. Instead, they are on separate lines. Just looking at Figure 19A, it looks like there is a line break after “based” on the fourth line. This is an incorrect processing result because it does not exist at this place.
  • FIG. 20 is an explanatory diagram illustrating a state where the line is scrolled three lines further upward from the state of FIG. 18A.
  • the display layout is acquired in consideration of the influence of other divided data, assuming that the divided data 401, is the current divided data.
  • the processing of SL5A-4 (divided data 402 ') is a process of SL5 (divided data 401') called recursively.
  • the display layout of the divided data 401 ' is acquired by SL5A-1 (divided data 401'), and the process proceeds to SL5A-2 (divided data 401 '). Since the display layout of the divided data 401 'does not yet exist, it is generated here.
  • the generated display layout is from the first line starting with “Liquid” to the "pas sed” on the fourth line in FIG.
  • the row of “passed” is different from the row of “through” in the first row of FIG. 18A, similar to the processing in FIG. 18A described above.
  • the divided data 402 and the divided data 401 are used as the current divided data, and the processing of SL4-SL7 is repeated, and the processing proceeds to SL8. Since the generated display layout of the divided data 402 'is generated under the influence of the divided data 401, the processing exits from 31 ⁇ 5-8-3 (divided data 402') to the PL20. Therefore, unnecessary regeneration of the divided data 402 ′ can be avoided.
  • V the effect can be processed as follows.
  • FIG. 21 shows the processing method of SL5 in Fig. 11, that is, the display layout of the current divided data.
  • FIG. 21 is a flowchart illustrating another example of a processing method for obtaining an out-of-out considering the influence of other divided data.
  • the process proceeds to the SL5B-2 in order to find the earliest divided data that affects the current divided data.
  • the first split data is the dependency data in Fig. 9.
  • a display layout is generated by regarding the data from the foremost divided data to the current divided data as continuous data, and the processing exits to the PL20. If there is a display layout already generated, there is no need to generate one.
  • the first divided data affecting the divided data 403, is understood from the dependency relationship data 153 to be the divided data 401 '.
  • the display layout is generated in the order of the divided data 401, -402 ', and 403 in the SL5B-2 (divided data 403,). However, the divided data 402 'and 403' are generated in a form following the display layout of the previous divided data.
  • the display layout of Fig. 22 is obtained by the above processing from SL5B-1 to SL5B-2. There is no particular problem with the display layout in Fig. 22.
  • FIGS. 17B, 18A, and 20 using the method of the flowchart of FIG. 12 show that the display layout changes when the position of the display range is changed upward.
  • the first “on” on the first line in FIG. 17B is the third word on the fourth line in FIG. 18A.
  • the first “through” on the first line in FIG. 18A is the second word on the fourth line in FIG.
  • the difference between the two methods is that the check target of the divided data that affects the divided data within the display range is limited to the divided data that is at least partially included in the display range, or is not related to the display range. This is the difference in the power of all the divided data up to the last divided data affected.
  • the former method does not generate a display layout of the divided data outside the display range, and thus has an advantage that the amount of data processing when the display layout of the display range is generated for the first time can be suppressed.
  • the display layout may change. If the display range is changed, the generated display layout will be discarded and re-generated! There are also two drawbacks in that they may.
  • the latter method generates a display layout even outside the display range, and thus has a disadvantage that the amount of data processing when the display layout of the display range is generated for the first time may increase.
  • Which method to use may be selected in consideration of the operating environment and purpose, such as whether to emphasize high-speed or resource saving or to keep the display unchanged.
  • the MPEG GOP described above is data obtained by dividing electronic data into a plurality of pieces, and is data that can be processed independently, and thus corresponds to "partial data" in the present invention.
  • the restored image frame that is the processing result of the GOP of the MPEG always has the same result.
  • the restoration result of the previous GOP is not affected by the restoration result of the previous GOP. Therefore, to obtain the restoration results of multiple GOPs, simply combine the restoration results of the previous GOP and the next GOP! / ,.
  • HTML data given as an example in the present invention is a language specification designed on the assumption that the display result changes depending on the display setting of the WWW browser. That is, as long as the logical meaning of the display result (for example, forced line break or the wraparound of characters in the image) does not change even if the display setting is changed, the content of the divided data means no matter what display is performed. Is not impaired.
  • the processing result of the previous partial data may logically affect the processing result of the next partial data.
  • the original electronic data is divided into partial data at places other than the line feed tag. Therefore, simply joining the processing result of the next partial data to the processing result of the previous partial data may change the logical meaning as a whole, and the meaning of the divided data may be lost. (See Figures 19A and 19B).
  • the present invention pays particular attention to the influence of the processing result between partial data, and generates data so as to obtain a processing result in which the meaning of the divided data is not impaired.
  • the GOP of MPEG has a structure such as a hierarchical structure using HTML data tags. Another difference is that they can be processed without using auxiliary information on their structure.
  • the data generation method according to the present invention must be applied to the above-mentioned divided data in order to independently process the divided data and obtain a correct processing result with respect to the division boundary for dividing the electronic data into a plurality of divided data.
  • a processing auxiliary data generating step of generating processing auxiliary data, which is insufficient information, from the divided data and other divided data, and a correct processing result can be obtained even if a set of the divided data and the processing auxiliary data is processed alone.
  • a division boundary that satisfies the condition that the data size of the division data does not exceed the specified maximum data size is obtained, and the processing result of the division data before the division boundary is satisfied while satisfying the above conditions. If there is a division boundary that does not affect the processing result of the subsequent division data, the division boundary calculation step for giving priority to the division boundary and the division boundary calculation step power
  • the method further comprises a nonstandard non-dependent boundary extraction step of extracting as a dependent division boundary.
  • the condition of the data size of the partial data is relaxed. That is, a condition that the data size of the partial data is larger than the standard data size and equal to or smaller than the maximum data size is set. Of that data size Within the range, a division boundary where the influence of division does not appear is extracted.
  • the "maximum data size" is, like the standard data size, a predetermined value, a certain value is a value to be input by a user or the like, or a value obtained by a predetermined calculation method. Normally, the maximum data size is set to the maximum allowable data size for partial data. This is preferably determined by the user or the like in accordance with the processing capacity of the processing device and the purpose of the processing.
  • the process proceeds to the non-standard-independent boundary extraction step, and the results of the partial data size determination step and the influence determination step are used. Find a division boundary where the data size is less than or equal to the maximum data size and the above-mentioned effects do not appear.
  • the processing of the partial data size determination step is the same as the processing described above, except that “standard data size” is changed to “maximum data size”.
  • the division boundary is extracted as a non-standard independent division boundary and set as a division boundary used to generate partial data. .
  • the above process is a process of setting a division boundary used to generate partial data.
  • the data generation method provides a standard-independent division boundary at a data position closest to the standard data size among the obtained standard-independent division boundaries.
  • the method further comprises a first division boundary extraction step of extracting
  • the outline of the operation of the present invention is as follows.
  • the outline of the process of generating partial data is similar to the operation using the standard-independent boundary extraction step, in which division boundaries are obtained in order. Repeat generating data. However, since the process of setting the division boundary used to generate the partial data differs, only the processing part will be described.
  • the intra-standard independent division boundary is used as a division boundary used to generate partial data. Set.
  • the process may be shifted to another step for obtaining a new division boundary.
  • the above process is a process of setting a division boundary used to generate partial data.
  • the size of the partial data to be processed can be easily adjusted to the vicinity of the standard data size. For example, when processing a part of the electronic data, it is possible to select any part, that is, which part Even if you select the data, the time until the processing result is obtained is even! This is effective when you do not want the processing time of the partial data to vary as much as possible.
  • the data generation method provides a non-standard independent division boundary at a data position closest to the standard data size among the obtained non-standard independent division boundaries.
  • the method further comprises a second division boundary extraction step of extracting
  • the data generation method does not include the above-mentioned standard-independent division boundary and the above-mentioned non-standard-independent division boundary!
  • the method further comprises a third division boundary extraction step of extracting a division boundary at a data position not exceeding.
  • the data size of the partial data can be suppressed within the maximum data size.
  • the upper limit of the data size of the partial data is determined, so there is no need to prepare extra memory or processing resources. come.
  • the division boundary may be set at the data position closest to the standard data size.
  • the data generation method divides the electronic data at the extracted division boundary to generate divided data, Is characterized by further comprising a processing auxiliary data generation step of generating processing auxiliary data, which is information that is insufficient information to be used as partial data, from the focused divided data and other divided data.
  • Processing auxiliary data is information that is insufficient for the divided data in order to process the divided data independently and obtain a processing result that does not impair the meaning of the divided data.
  • the effect of the start tag in the previous divided data originally extends to the subsequent divided data, but as a result of the division, when the subsequent divided data is processed independently, the start tag Is not read, and the processing result does not show the effect of the start tag.
  • the division generates divided data that does not result in the intended processing result. Therefore, by combining the start tag as processing auxiliary data for the subsequent divided data, the original processing result can be obtained even if the subsequent divided data is independently processed.
  • the processing auxiliary data and the divided data are not necessarily required to be recorded as integral data, and may be recorded in a dispersed manner. For example, it is acceptable to record the data in a form such as a file in which only the processing auxiliary data is collected, or to add the processing auxiliary data to the end of the electronic data.
  • the processing auxiliary data and the divided data are generally created in advance, but can be dynamically generated at the time of use.
  • Examples of commonly required data include so-called header information such as the type and version information of electronic data, copyright information, and encryption information.
  • the outline of the operation of the present invention is as follows.
  • the outline of the process of generating partial data is the same as that described earlier for the operation using the standard-independent boundary extraction step and the non-standard-independent boundary extraction step. , Are sequentially obtained, and the generation of partial data is repeated. Since partial data is generated as a set of divided data and processing auxiliary data, processing auxiliary data generation Only the process of generating the processing auxiliary data in the steps will be described.
  • the start tag and the end tag may be divided into different division data.
  • the processing result when processed alone is not correct because the tag cannot be interpreted correctly. Therefore, divided data alone cannot be used as partial data.
  • start tags and end tags that are insufficient for the divided data as partial data are generated as processing auxiliary data.
  • the divided data is also sequentially looked at for the first divided data, and the correspondence between the start tag and the end tag is taken. If the end tag corresponding to the start tag appearing in a certain divided data does not exist in the divided data, the end tag corresponding to the divided data is insufficient. Therefore, the corresponding end tag is included in the processing auxiliary data of the divided data.
  • the start tag is added to the processing auxiliary data of the divided data.
  • the processing auxiliary data (start tag in this example) obtained from the previous divided data and the subsequent It is convenient to separately record the processing auxiliary data (the end tag in this example) from which the divided data power is also obtained when processing as partial data later.
  • the processing auxiliary data obtained from the previous divided data (the start tag in this example) and the processing auxiliary data obtained from the subsequent divided data (the end tag in this example). ) May be easier to process.
  • the advantage obtained by recording the processing auxiliary data separately from the electronic data is the same as the advantage obtained by recording the divided data separately from the electronic data as division boundary information.
  • the data generation method according to the present invention has a dependency data generation step of generating dependency data, which is information indicating that there is a dependency between the processing results of the partial data, in order to solve the above problem. It is characterized by the following.
  • the "dependency data" may be added to the electronic data, or may be recorded in a format such as a file independent of the electronic data.
  • An outline of the operation of the present invention is as follows. First, whether or not there is an influence between the processing results of partial data is determined if the division boundary is a standard-independent division boundary or a non-standard-independent division boundary. It is judged that there is no effect on the division boundary before and after the boundary, and if neither the standard-independent division boundary nor the non-standard-independent division boundary, the division boundary before and after that division boundary is determined. Is determined to have an effect.
  • the dividing boundary is neither a standard-independent nor a non-standard-independent dividing boundary!
  • the only way to determine whether or not there is any impact is to determine the type of electronic data and the position of the dividing boundary in the dependency data generation step. For example, in the case of HTML data, if there is a division boundary before and after a tag indicating a line break, such as a br tag or a p tag, it can be determined that there is no effect. When a position such as the middle of a word is used as the division boundary, it can be determined that there is an effect.
  • the generated dependency data is used when processing the partial data.
  • Dependency data does not need to be used when the processing result of each partial data is used alone, but when multiple processing results of each partial data are used together, dependency data is used. Then, it is necessary to process in consideration of the dependency.
  • the affected partial data is processed first, and subsequently the affected partial data is processed in consideration of the influence.
  • the previous partial data is processed first, and the layout data of the previous partial data is obtained.
  • the layout data is up to the first half of the word.
  • the subsequent partial data is processed by being added to the layout data of the previous partial data.
  • the state “considering the influence” means “add”, ie, laying out the last character of the existing layout data.
  • the first half of the word, which is the last layout data of the previous partial data, and the second half of the word, the first layout data of the subsequent partial data are connected to form layout data that is continuous as one word. Become.
  • the processing varies depending on the extent to which partial data to be affected is searched.
  • the partial data and the immediately preceding partial data should generate dependency data from the effect between the immediate and both partial data. That is enough.
  • the information directly obtained at the time of obtaining the division boundary is whether or not there is an effect between two adjacent partial data. Therefore, the dependency data on the immediately preceding or next partial data or both partial data is obtained at the time of obtaining the division boundary. Has the effect of being easy to generate.
  • the information for specifying the partial data before or after which the processing result of the partial data depends, or both, may be the dependency data!
  • the processing varies depending on the extent to which the partial data to be affected is searched. If the processing result of the partial data depends first, is the last, and if both of the partial data are to be searched, some processing is required.
  • the information obtained when obtaining the division boundary is whether or not there is an effect between two adjacent partial data.
  • the affected partial data is sequentially added in the forward or backward direction, and the process is continued until there is no affected partial data.
  • the last affected partial data is the first or last partial data for a certain partial data.
  • the front or the last is determined by the direction (forward direction Z reverse direction).
  • the partial data strength at the front can be processed collectively up to the focused partial data, or the focused partial data strength can be determined. It is possible to process up to partial data at once, or to process the last partial data at once. As a result, the same processing result as when processing the entire electronic data is always obtained.
  • the processing time is time-consuming, so that the processing time can be saved by previously obtaining the partial data before or after being affected, or both. .
  • the electronic data is document data capable of generating a different display layout depending on display settings, and the processing of the partial data generates a display layout of the partial data. It may be characterized in that it is a process.
  • one of the advantages of processing using partial data is that when only a part of the processing result of electronic data is to be obtained, only the relevant partial data needs to be processed, so that high-speed processing is possible. , And can be processed with reduced resources.
  • the document data is an electronic data that has the advantage that if only a part of the processing result of the electronic data can be processed with high speed and resource saving using the partial data. .
  • the document data can generate different display layouts depending on the display settings.
  • the display layout may be affected by division or may not be possible! /, It also has features.
  • the processing result is not affected between partial data, such as the processing relating to the independent division boundary candidate, and such a device is incorporated.
  • the effect of the present invention is particularly effective for document data which can be generated and whose processing is generation of a display layout.
  • the data generation program according to the present invention is characterized by causing a computer to function as each unit included in the data generation device in order to solve the above problems.
  • a data generation program causes a computer to execute each step of the data generation method.
  • a recording medium according to the present invention is characterized by recording the data generation program.
  • the data generation method is realized using the computer.
  • a computer can be operated as a data generation device.
  • Data obtained by dividing electronic data into a plurality of pieces means that electronic data is smaller than its size.
  • Data that is divided into different sizes hereinafter referred to as division sizes).
  • division sizes small-size data obtained by simply dividing electronic data is referred to as divided data as described above.
  • FIG. 7B shows an example of a division method when the whole of other HTML data as electronic data is divided into nine division data. As can be seen from FIG. 7B, there is no overlapping part or missing part between the divided data.
  • the division size is not always fixed and may be various.
  • the division size is set to a size that is easy to handle in the assumed usage environment. If the division size is too large, there is a problem that the processing speed becomes slow or a large amount of resources are required. On the other hand, if the size is too small, there is a problem that the number of processes for managing the divided data increases and the management information and the like expand.
  • the user can determine a time during which processing can be allowed to wait, and use the amount of data that can be processed within that time in an assumed usage environment as a guide.
  • an outline of an appropriate size is determined, it is often determined from the contents of the electronic data which of the divided positions of the divided data is located before or after the appropriate size.
  • a division position is determined based on a unit such as a noragraph, or a line feed is determined as a division position.
  • the divided data is not necessarily generated by dividing a continuous chunk of data part in the electronic data, and may be divided into discrete parts. The part is divided, and it is easier to handle.
  • An object of the present invention is to prevent an error as shown in FIG. 19B from appearing in a processing result when original data is divided and processed.
  • the “partial data” is “data obtained by dividing the original electronic data into a plurality of pieces and having no error in the processing result itself when processed independently”.
  • the nine divided data are referred to as partial data 400 to 408. The reason why such data can be called will be described later in detail.
  • the partial data has an order, and is relatively referred to as "previous partial data" or "next partial data”. This order is based on the processing order of the partial data when the processing result obtained by processing each partial data in order considering whether or not the above error appears appears appears matches the processing result obtained when the entire electronic data is collectively processed. is there. Incidentally, the processing order often corresponds to the order of the position of the partial data in the electronic data.
  • Examples of commonly required data include so-called header information such as the type and version information of electronic data, copyright information, and encryption information.
  • the partial data may be structured, for example, into main data and sub data, and the sub data may be configured to assist processing of the main data. Further, the main data and the sub data may be stored in different storage areas in association with each other. Such sub-data will be described in detail later.For example, information to take over the effect of the previous divided data, information to be processed by the subsequent divided data, or Specific data (for example, a control code or the like) commonly associated with the processing result of a plurality of divided data is an example of the sub data.
  • the partial data 400-408 in FIG. 7B actually corresponds to the main data, and corresponds to the processing auxiliary data 100-108, 600-608 shown in FIG. 43 or FIG. This will be described later in detail.
  • partial data since the partial data and the processing result of the partial data correspond to each other, in the following description, the term “partial data” may be used including the meaning of the processing result.
  • the expression “the partial data A affects the partial data B” may be omitted, and the expression “the partial data A affects the partial data B” may be omitted.
  • the desired partial data is not limited to one partial data, but may be plural. For example, when a display result as shown in FIG. 42 is obtained, all of the partial data required to obtain such a display result is the desired partial data.
  • predetermined processing generally refers to processing for obtaining some output using electronic data as input data, although the processing differs depending on the type and purpose of electronic data.
  • the display layout is calculated by analyzing the HTML data.
  • Process first means, in terms of the processing order, processing the partial data detected to affect the processing result of the desired partial data, and then taking over the effect (Next, it means to process the desired partial data.
  • the "partial data in the desired partial data” means that there are a plurality of desired partial data, and some of them are partial data units, and is a unit of partial data. It does not mean that the partial data is further divided data.
  • the "desired processing range” means a range of electronic data for which an output result is to be obtained, and is specified by some index. For example, in document data, “from what line to what line”, a certain ⁇ ⁇ is “from what character to what character” or “from what percentage to what percentage of the whole” Specify the processing range of. [0683] In addition to specifying the start point and end point of the range, there is also a method of specifying a reference point and a range around the reference point. For example, it is possible to specify “how many lines and how many lines”, or “from what line to the range displayed on the display means (the number of dots, etc.)”. The reference point and the range need not be the unit of the processing result (such as “line”) as long as the processing range can be finally specified. For example, the reference point may be “data at the head of any number of electronic data (or partial data)”.
  • FIG. 4B various data and their data structure related to the present invention are shown in FIG. 4B, which has already been described based on FIG. 4A in (First Embodiment) and will not be described.
  • the IMG tag shown in line 28 of Fig. 4B represents an illustration
  • the src attribute specifies the image file name of the illustration, etc.
  • the align attribute specifies how to display the illustration and TEXT (illustration Wraparound image force).
  • the image file The name is TFT.png and align is right. Right means that the illustration is placed on the right end and the TEXT is laid out around it.
  • the rows with the illustrations are laid out such that the width of the rows is reduced by the amount of the illustrations.
  • FIG. 7B is an explanatory diagram illustrating an example of partial data obtained by dividing the HTML data of FIG. 4B.
  • HTML data is divided into nine parts, 400-408.
  • the start tag and end tag that make up various tags are often separated into different partial data by division.
  • Strict data containing only the start tag or only the end tag is not a partial data but strictly a mere divided data because the tag does not function by itself. The reason is that partial data is data that can be processed and obtained without any loss of the meaning of the data.
  • the partial data 400-408 is called partial data because it is premised that data (described later) that assists the processing of the partial data 400-408 is read at the time of processing.
  • the partial data 400 to 408 are treated as data from which a processing result can be obtained without impairing the meaning of the data even when processed alone.
  • Fig. 43 is an explanatory diagram illustrating an example of the data structure of processing auxiliary data that assists processing of partial data 400 to 408. It is assumed that the processing auxiliary data 100 to 108 correspond to the partial data 400 to 408 in FIG. 7B, respectively. It is assumed that the processing auxiliary data 100-108 is managed in the form of an array and can be accessed by an index number or the like.
  • the processing auxiliary data includes “start byte”, “byte size”, “presence / absence of influence”, “start tag auxiliary information”, and “end tag auxiliary information”.
  • the “start byte” indicates how many bytes (the zero force is counted) the leading data of the original document data is located at the leading byte of the original document data.
  • “Byte size” indicates the data size of each partial data in bytes. Note that, for example, a unit of characters may be used instead of a byte unit, but in many cases, a byte unit is more convenient for reading data.
  • Presence / absence of influence focuses on the processing result of partial data.
  • Information about whether or not to receive For example, when the processing auxiliary data 102 is taken as an example, the “presence / absence” is “presence”, so that attention is paid to the fact that the partial data 402 is affected by the power of other partial data (specifically, the immediately preceding partial data). Represents This will be further described later in connection with the description of the flowcharts in FIGS. 50 and 51.
  • Start tag auxiliary information and "end tag auxiliary information” are information that assists information on the hierarchical structure of tags. Its role is not to interpret the entire document data from the beginning to the end, but to interpret each partial data independently so that the same processing result as interpreting the entire document data to the beginning and end can be obtained. That is.
  • start tag auxiliary information or “end tag auxiliary information”.
  • start tag auxiliary information if the combination of the corresponding start tag and end tag exists in the gap of the previous partial data existing before the partial data, Since the hierarchy to which the tag and the end tag belong does not directly affect the hierarchical structure of the corresponding partial data, it generally does not affect the start tag auxiliary information.
  • the start tag auxiliary information is information indicating that the start tag whose effect is continuing exists in the previous partial data, and more specifically, the start tag whose effect is continuing.
  • the previous partial data is the partial data 400.
  • the font tag and the br tag in the partial data 400 are the force that the pair of the corresponding start tag and end tag exists in the partial data 400.
  • the HTML tag is only the start tag (the first line) and the end tag ( (Line 45) does not exist in the partial data 400. Accordingly, the start tag auxiliary information of the processing auxiliary data 101 is “kuHTML>”, which is a start tag that is in effect.
  • the previous partial data are the partial data 400 and 401.
  • the validity of the start tag ⁇ HTML> is still in effect for partial data 401. It is the same.
  • the "end tag auxiliary information" is the opposite of the start tag auxiliary information, and is information indicating an end tag that should be paired with a start tag that is in effect, and more specifically, the end tag. It is. Of the end tags corresponding to the start tag appearing in the partial data up to the partial data from the beginning partial data, the end tags that do not exist in the partial data from the start partial data to the partial data of interest , And the end tag.
  • the partial data up to the corresponding partial data is also only the partial data 400 itself.
  • the font tag and br tag in the partial data 400 are the force that the pair of the corresponding start tag and end tag exists in the partial data 400.
  • the HTML tag is only the start tag (line 1) and the end tag (line 45). ) Does not exist in the partial data 400.
  • the end tag auxiliary information of the processing auxiliary data 100 is an end tag “ ⁇ ZHTM L>” that should be paired with the start tag “ ⁇ HTML>” that is still in effect.
  • the partial data up to the leading partial data force corresponding partial data are the partial data 400 and 401.
  • the effect of the opening tag ⁇ HTML> is still in effect as in the case of the partial data 400.
  • the second font tag and P tag in the partial data 400 and 401 have only the start tag (line 5 and line 6), and the end tag (line 16 and line 15) has the partial data 400 and 401. Does not exist. Therefore, the end tag auxiliary information of the processing auxiliary data 101 is “ ⁇ ZP> ⁇ Zfont> ⁇ ZHTML>” in the order in which the end tags appear.
  • Fig. 7B there may be data that is required in common for each partial data.
  • information on the settings of the entire display processing such as the background color of the entire display.
  • Such information may be expressed by a tag that sandwiches the whole. It may be expressed simply by a pair of a start tag and an end tag at the head of the HTML document. So to speak It is a way of describing information.
  • each of the partial data 400-408 in Fig. 7B is “division data" that cannot be processed by itself, and the start tag auxiliary information and the end tag auxiliary information of the processing auxiliary data are By using it, it becomes “partial data” that can be processed independently.
  • start tag auxiliary information and the end tag auxiliary information of the processing auxiliary data are not used! / ⁇ , the start tag auxiliary information and the end tag auxiliary information must be added to each divided data.
  • start tag auxiliary information is used as start tag auxiliary information
  • end tag auxiliary information is used as end tag auxiliary information. Need to be added.
  • the divided data can be handled in the same manner as the partial data to which the necessary information is added. Therefore, in the present invention, the divided data having a format in which the processing auxiliary data to be processed together when the divided data is processed is separately included in the category of the partial data, and is referred to as “partial data” instead of “divided data”.
  • Fig. 44 is an explanatory diagram for explaining another example of the data structure of the processing auxiliary data.
  • the data structure is almost the same as the data structure example in Fig. 43, but the item "presence / absence" in Fig. 43 is “effected data” in Fig. 44.
  • “Influenced partial data” is information on the first partial data that affects each partial data. This will be described later with reference to the description of FIG. [0713] Next, an example of the data structure of the display layout will be described.
  • FIG. 45 is an explanatory diagram illustrating an example of the data structure of a display layout element (hereinafter, may be simply abbreviated as "element”) as a basic unit of the display layout. Elements correspond to each character and each image on the display such as Fig. 5B.
  • Each element includes, for example, “type”, “start byte”, “byte size”, “offset X”, and “offset” as shown in FIG. Y "," Width
  • the "start byte" indicates where the element is described in the electronic data.
  • the element is represented by the TEXT part representing the element or the number of bytes from the head of the tag.
  • Bit size indicates the amount of data required for that element to be described in electronic data.
  • the element is represented by the number of bytes of a character representing the element and, in some cases, the number of bytes including the tag. For example, if one character in HTML data is an element as it is and that one character is expressed in, for example, Shift-JIS, the byte size is "2".
  • “Width” and “height” represent the size of the element when it is displayed.
  • the unit may be a pixel (dot).
  • “Content” is data representing the content of displaying each element. In the case of a character element, it is a character code, and in the case of an image element, it is image data.
  • Fig. 46 is an explanatory diagram illustrating an example of the data structure of row data (indicated by numbers 200 to 222) that manages the collection of the above elements.
  • Each line data corresponds to each line on the display such as Fig. 5 ⁇ .
  • line on display and line data since “line on display” and “line data” have a one-to-one correspondence, in both cases, they may be simply expressed as “line”.
  • Row data can have zero or more elements. Elements owned (managed) are displayed The above corresponds to elements such as characters belonging to the range of each line. A line with zero elements is a blank line. There are various ways to manage image elements such as the wraparound image in Fig. 5B, but here we divide the image into multiple parts at the height of each line and manage them as image elements in each line. I do.
  • the row data includes "height”, “placeable start position”, “placeable end position”, “next element position”, “number of elements”, and “element array”. With information.
  • Element array is the array of elements managed by the row data in one row, and “Number of elements” is the number of elements managed in one row.
  • the “element array” contains information specifying each element included in one line. Here, the information is a number assigned to each element in FIG. 45 for easy understanding. In practice, the data that makes up the “element array” is often the array index or memory address of each element.
  • Height is the height of a circumscribed rectangle including all managed elements.
  • Fig. 47 is an explanatory diagram for explaining the information of the row data, which is described using an example of the row data of the first row in Fig. 5B.
  • the elements are the letters of the sentence "How does LCD works?"
  • Each element is represented by a rectangle surrounding each character in FIG. For example, a rectangle 503 around the letter "o" of "How". Although nothing is displayed in the rectangle 505, this is an element of "" (blank character).
  • each rectangle is actually a circumscribed rectangle of the character, it is slightly larger because it is difficult to display.
  • the row rectangle 500 described later is also shown slightly larger.
  • a circumscribed rectangle 500 surrounding a group of these characters that is, a sentence “How does LCD works?” Indicates the range of line data.
  • the height LH in this range is the “height” in FIG.
  • the "placeable start position”, "placeable end position”, and “next element position” are information used when generating a display layout, which will be described in detail later in the description of a display layout generating method. explain.
  • a display layout is generated from document data in a format such as the element data in FIG. 45 or the row data in FIG. 46 by the layout generating means 5 described later.
  • the layout display means 8 described later uses the data in this format to display the display layout of the display range.
  • FIG. 48 is an explanatory diagram illustrating an example of the data structure of management data of partial data (hereinafter, referred to as "block management data").
  • the block management data (indicated by numbers 300 to 308) has information of “start line”, “end line”, “final layout line”, and “processing auxiliary data”.
  • the "start row”, "end row”, and “final layout row” are information on the row data generated from each partial data, and the numbers (200, 222, etc.) are the row data shown in FIG. Points to the data number assigned to. Leave blank if no row data has been generated yet
  • the "start row” and “end row” mean the first and last row data that includes the generated element data.
  • the row data is indicated by the data number attached to each row data in Fig. 46 so that it can be easily divided.
  • the actual row data is the index number and row number of the row data array, and the memory address of the row data. And so on.
  • the “final layout row” is row data to which the last element data generated from the partial data belongs.
  • the “end row” and the “final layout row” may be the same row data or may be different like the block management data 302.
  • the different case is, for example, a case where the partial data includes a wraparound image as in the partial data 406 of Fig. 7B.
  • FIG. 19D shows a display result obtained by processing the partial data 406 independently.
  • the TEXT included in the partial data is wrapped around the wrap-around image compared to the number of lines required for the layout of the wrap-around image.
  • the end line of the TEXT layout does not reach the end line of the wraparound image layout.
  • the “end line” is represented by the last line data of the image element, while the “final layout line” is represented by the last line data of the TEXT wrapped by the partial data. Therefore, in the context of the rows, the “end row” always follows the “final layout row”.
  • Processing auxiliary data in Fig. 48 is information indicating the above-described processing auxiliary data corresponding to each partial data. Also in this case, the actual processing auxiliary data is often represented by an index number or a memory address of the processing auxiliary data.
  • FIG. 17D shows a state in which only the partial data 402 of FIG. 7B is used, and a display layout is generated and displayed so that a part thereof is displayed.
  • FIG. 17D shows a portion beyond the display frame so that the layout can be easily understood. Actually, based on the display position specified by the user or the like, only the third and subsequent lines starting with the “pass” force, which is a line in the display frame, are displayed in the example of FIG. 17D.
  • the state force in Fig. 17D is also displayed by scrolling the upper portion. If this is not performed by the data processing method of the present invention, the display layouts of the partial data 400 and 401 are individually processed, and the display layout of the partial data 402 in FIG. It will simply be combined. The state force displayed in this manner is shown in FIG. 19B.
  • the display result of Fig. 19B shows the effect of dividing HTML data into partial data. Therefore, the display result when the HTML data is processed without division and the display result when the HTML data is divided into partial data and each partial data is processed independently and connected are one. I haven't.
  • the HTML data given as an example in the present invention is a language specification designed on the assumption that the display result changes according to the display setting of the WWW browser. If the logical meaning given by (for example, forced line break or wrapping around the image) does not change, it is assumed that there is no error in any display, that is, the meaning of the original data is not damaged.
  • the division of the HTML data into partial data may logically affect the processing result of the partial data. For example, when the original data is divided into partial data at a place other than the line feed tag as in the example of FIG. 19B above, or without considering the partial data including the wraparound image as in the example of FIG. 19D, For example, when processing the following partial data
  • the present invention pays particular attention to the effect of the processing result between partial data, and devises a processing result that does not show an error. More specifically, when it is detected that one partial data affects another partial data, the partial data is treated as a set of data and processed. As a result, it is possible to obtain an appropriate processing result in which the above-mentioned influence is reflected.
  • the partial data 400 is the first partial data and is constituted by the first line data, the TEXT of “How does LCD works?” Is laid out.
  • the block management data of the partial data 400 includes the start row and the last row. The first line is recorded as the last line and the last layout line.
  • the partial data 401 is laid out following the final layout row of the partial data 400, that is, the first row. At this time, a br tag indicating a line feed is detected as the last element of the partial data 400. Therefore, for the next partial data 401, it is only necessary to create a headline display layout of a new line. That is, since the br tag is detected as the last element of the partial data 400, it is detected that the partial data 400 does not affect the next partial data 401.
  • FIG. 17C shows the entire layout in a state where the layout of partial data 401 has been completed, for the sake of explanation. It is assumed that the surrounding rectangle is the display range of the display means. For explanation, the line numbers are assigned to the left side of the rectangle. Figure 17C ends on the fifth line with "glass.” Since there is no br tag or the like at the end of the partial data 401, a line break is not performed. Accordingly, the block management data of the partial data 401 at this point is such that the start line is the second line, and the last line and the final layout line are the fifth line.
  • the partial data 402 is laid out next. At this time, no br tag indicating a line feed is detected as the last element of the partial data 401, and no P tag is detected from the first element of the partial data 402. From this, it is detected that the next partial data 402 is affected by the previous partial data 401.
  • the partial data 402 is laid out so that the layout is not interrupted in the final layout row of the partial data 401, ie, the fifth row. That is, the character elements starting with the “W” force of the partial data 402 are added to the fifth line and laid out.
  • Fig. 17E shows the result of the layout.
  • the last “glass.” Of the partial data 401 and the first “When” of the partial data 402 are laid out in a single row.
  • the layout is exactly the same, and the display result is obtained without losing the meaning of the original electronic data.
  • the partial data 401 and the partial data 402 are separately processed. It is processed as a series of data that does not need to be done.
  • an appropriate processing result in which the influence is reflected can be obtained as described above.
  • the display start position is actually specified by the number of bytes such as "byte position 180". It is assumed that this is specified by a link jump or the like. From the start byte 150 and byte size 201 of the processing auxiliary data 102 in FIG. 43, it can be seen that the partial data including the position is the partial data 402 corresponding to the processing auxiliary data 102.
  • FIG. 17D shows a state where partial data 402 is laid out. Finally, the display is started from the line containing "Each", so that it is adjusted to the final display state for easy understanding. Actually, as described above, the first and second lines in FIG. 17D are not displayed.
  • the corresponding partial data may be independently processed depending on the display range to obtain the display layout.
  • a layout investigating step is carried out to check whether the first display layout element of the desired partial data is a head force displayed on the display medium which is the output target of the display layout.
  • the influence detection step may not be performed.
  • the head of the line may be the head position where the display of the output medium is started, or may be the head of a line that is being displayed.
  • the first display layout element (LCD) of a paragraph beginning with “LCD alio ws” (corresponding to the partial data 404) is always displayed from the beginning of the line.
  • An error-free display result can be obtained without executing the influence detection step.
  • an arbitrary display layout element in this case, “pass” of a paragraph beginning with “When” (corresponding to the partial data 402) is located at the beginning of the display range.
  • the effect detection step is not performed on the partial data. It is a feature point.
  • FIG. 17F is an explanatory diagram illustrating a state where the layout up to the partial data 405 is performed.
  • the third to fifteenth lines are the range that is actually displayed.
  • This display layout is different from the processing result of the partial data 402 and 403 in the first half as compared with FIG. 5B.
  • line breaks are laid out as instructed, there is no error in displaying HTML data.
  • the HTML data can be laid out without any error. Since the layout only needs to be laid out in a range necessary for display, a special effect that a high-speed, resource-saving and error-free layout can be generated can be obtained.
  • FIG. 41 shows a data processing apparatus that performs a data processing method according to an embodiment of the present invention.
  • the main parts of the data processing apparatus are divided into a partial data acquisition unit 21, a processing auxiliary data acquisition unit 22, an influence detection unit 23, a partial data necessity determination unit 24, a layout generation unit 25 , Control means 26, layout storage means 27, layout display means 28, and foremost data detection means 29.
  • FIG. 2 is a configuration example of an apparatus that specifically realizes the means 21 to 29 of FIG.
  • the CPU (central processing unit) 70 includes the influence detection means 23, the partial data necessity determination means 24, the layout generation means 25, the control means 26, the layout storage means 27, the layout display means 28, and the foremost partial data detection means. It functions as 29 and obtains a program in which the processing procedure of each of the means 23-29 is described, such as a main memory 74, an external memory 75, or a network destination via the communication device 77. Note that the CPU 70 also has a function as a partial data acquisition unit 21 and a processing auxiliary data acquisition unit 22 for reading and transferring necessary data.
  • the partial data acquisition means 21 is composed of, for example, the CPU 70 and the main storage 74 or the external storage 75, and obtains the partial data from the network destination or the like. In this case, the previously prepared partial data is read.
  • the partial data acquisition unit 21 stores the data of the part corresponding to the partial data to be read in the main memory 74 or the external storage 75. It may also search for and read electronic data that has been processed.
  • the partial data obtaining means 21 obtains processing auxiliary data from the processing auxiliary data obtaining means 22, and obtains information on the partial data from the obtained processing auxiliary data, for example, each partial data. To obtain the desired partial data by reading the start byte position and byte size of the Can do. Alternatively, the partial data obtaining means 21 may generate the partial data by obtaining the electronic data in consideration of the information on the partial data and dividing the electronic data using the information on the partial data.
  • the obtained partial data is sent to the influence detection means 23 and Z or the layout generation means 25.
  • the processing auxiliary data acquisition means 22 is composed of, for example, the CPU 70 and the main storage 74 or the external storage 75, and can obtain the processing auxiliary data from the network destination or the like. In this case, the processing auxiliary data prepared in advance is read.
  • the processing auxiliary data acquiring unit 22 may analyze the data structure of the processing auxiliary data to obtain necessary information.
  • the obtained processing auxiliary data is sent to the partial data acquisition unit 21, the influence detection unit 23, the layout generation unit 25, the Z or the frontmost partial data detection unit 29, and the like.
  • the CPU 70 serving as the influence detecting means 23 displays the partial data obtained from the partial data obtaining means 21 and the partial data obtained from the layout generating means 25 and the layout storing means 27.
  • the desired partial data and the partial data immediately before it are individually processed using the obtained processing auxiliary data, etc.
  • Power Processing result here, display layout
  • the detection result is sent from the influence detecting means 23 to the control means 26.
  • the CPU 70 as the partial data necessity judging means 24 determines the control means from the display range obtained from the layout display means 28 and the display layout range of each partial data obtained through the control means 26. It is determined whether or not the processing result (display layout) is necessary for the partial data designated by 26, and the determination result is sent to the control means 26.
  • the CPU 70 as the layout generating means 25 obtains the partial data specified by the control means 26 from the partial data acquiring means 21 and displays the partial data in a format such as the element data in Fig. 45 or the row data in Fig. 46. Generate a layout.
  • the layout generating means 25 uses the processing auxiliary data obtained from the processing auxiliary data obtaining means 22 together with the partial data when generating the layout. In some cases.
  • the generated display layout is sent to the layout storage unit 27 and stored, or sent to the layout display unit 28 and displayed.
  • the partial data is not directly specified by the control unit 26 but is specified through the layout storage unit 27.
  • the CPU 70 as the control means 26 controls and instructs each means 21-25, 27-29, and exchanges necessary data with each means 21-25, 27-29.
  • FIG. 41 the lines indicating the control Z instruction and data exchange between the control means 26 and each of the means 21-25 and 27-29 are shown only as the main lines because if all the lines are shown, the diagram becomes difficult to see. Basically, it is assumed that the control means 26 and each of the means 21-25 and 27-29 exchange control Z instructions, data, and the like in two directions.
  • the CPU 70 as the layout storage unit 27 stores the display layout (processing result) of the partial data obtained from the layout generation unit 25 in the main storage 74, the external storage 75, or the device at the network destination via the communication device 77. And save it.
  • the stored display layout is passed to layout display means 28, influence detection means 23 and Z or control means 26.
  • the layout generation unit 25 may be requested to generate a display layout of the partial data specified by the control unit 26. Further, based on an instruction from the control means 26, the display layout in which the partial data specified by the control means 26 is stored is discarded, or the data is overwritten and saved with a display layout newly obtained from the layout generation means 25. Or in some cases.
  • Information necessary for generating a display layout may be stored and managed by any of the layout generation unit 25, the control unit 26, and the layout storage unit 27.
  • the CPU 70 as the layout display means 28 displays the display layout obtained from the display layout generation means 25 or the layout storage means 27 on a display 71 or the like.
  • the output operation of the layout display means 28 is described as a display on the display 71, but it may be, for example, printing on a printer, or outputting a file to a file in which a display layout is recorded.
  • the CPU 70 as the foremost partial data detecting means 29 extracts the partial data for which the processing result is to be obtained.
  • information for specifying the first or last partial data affecting the partial data is obtained from the processing auxiliary data acquisition means 22 and sent to the control means 26.
  • the foremost partial data detecting means 29 obtains each partial data and its display layout through the control means 26 and obtains the processing result! /, Judges the influence on the partial data, and determines the effect before or after the influence.
  • the obtained partial data is sent to the control means 26.
  • Fig. 42 shows an example of the appearance of a data processing device according to the present invention.
  • a display / tablet button On the main body 1400, a display / tablet button, a previous page turning button 1420 and a next page turning button 1430 are provided.
  • a pen 1440 to operate the tablet.
  • the display unit / tablet 1410 corresponds to the input / output device (the display 71 and the tablet 73, etc.) and the layout display means 28.
  • the display layout generated by the layout generation means 25 or the display layout stored by the layout storage means 27 is displayed on the display / tablet 1410. It is also used to display various setting menus of the data processing device and to change settings with a finger or a pen 1440 using the display unit / tablet 1410.
  • operation buttons or the like that can be operated only with the display unit / tablet 1410 may be used.
  • the front page turning button 1420 and the next page turning button 1430 are used to change the display range of the display layout displayed on the display unit / tablet 1410, for example.
  • the pen 1440 can be used variously for operations such as link jump and user input such as various settings.
  • the external storage 75 a slot such as a memory card, a communication device 77 for communication with a network, a keyboard and a keyboard 78, an input device such as a microphone, a speaker 80 If an output mouse device such as 7 is included with the main unit 1400, it is also determined.
  • the points of the processing method can be summarized as follows. (1) Processing Result Power of Partial Data Surrounding Desired Partial Data The influence detecting means 3 detects whether or not the processing result of the desired partial data is affected by the division.
  • the layout data generation unit 5 processes the partial data force up to the desired partial data as continuous data.
  • FIG. 49 is a flowchart illustrating an example of a data processing method according to an embodiment of the present invention.
  • step S11 the processing auxiliary data obtaining unit 22 obtains processing auxiliary data, and the process proceeds to S12.
  • the processing auxiliary data acquisition unit 22 reads processing auxiliary data prepared in advance in the main memory 74, the external storage 75, or a network destination via the communication device 77, or the like.
  • the processing auxiliary data of each partial data is read at a time! /, But may be read individually when the processing auxiliary data of each block becomes necessary. It is assumed that the read processing auxiliary data has a data structure as shown in FIG.
  • the control means 26 acquires a desired display layout range as information input by a user from the mouse 72, the tablet 73, the button 76, the keyboard 78, or the like, and proceeds to S13.
  • the display layout range is expressed, for example, in the form of a combination of “reference position” and “size”.
  • the display layout range is indicated by the data range of the document data, for example, "data between the nth byte and the mth byte of the document data", that is, “reference data position (n) in the document data” And “data size (m)”.
  • the desired It is easy to specify the partial data corresponding to the display layout range. This is because, using the start byte and byte size information of each partial data in the processing auxiliary data in FIG. 43, it is easy to determine which partial data is in the nth and mth bytes. is there.
  • the data position in the document data may be represented by, for example, a ratio (percent) of a scroll bar or the like.
  • a ratio percent
  • the data size (byte unit) of the entire document data is a component, the ratio can be converted to each other, so the expression is essentially the same as the number of bytes. Therefore, the following description will be made in terms of the number of bytes.
  • the "display size" can also be expressed as a ratio of the display layout size (dots) of the entire document data as 100%, and the number of dots in the display range can be mutually converted with the data position.
  • the advantages of processing with partial data Mainly, high speed and resource saving by processing only a part of data without processing the entire document data are the main.
  • layout processing of the entire document data is necessary, and this method makes the advantage of partial data meaningless. Therefore, it is not realistic to specify the display size in proportion.
  • the relationship between the data position in the document data and the display size also depends on where in the display range the data position reference is set. If the reference is placed at the beginning of the display range, the expression is “p dots below the nth byte of the document data”, and if the reference is placed inside the display range, “n The expression is p dots above and q dots below, based on the byte. If the reference is placed at the end of the display range, ⁇ p dots above the nth byte of the document data Expression.
  • the display size is often the vertical size WH (dot) of the display means (display window).
  • WH vertical size of the display means (display window).
  • p + q WH.
  • the power of the display means (display window) using the vertical size WH is used.
  • page means a range only displayed on the display means (display window) or a display layout only displayed on the display means (display window).
  • the "previous page” and “next page” mean one page before or next to the display layout of the current page.
  • the operation of switching the display range to "previous page” or “next page” is referred to as “previous page turning” or “next page turning”.
  • the information of the link destination is shown. Here, it is a place called "" in the document data. In response, somewhere in the document data,
  • the first character of the character string of the “link destination” (or the first character of the A tag surrounding the character) can be determined in advance by the control means 26 as to the byte in the document data. . Therefore, the information may be separately recorded in a database or a file, or the like, so that the control means 26 can immediately know the byte position of the "tar get" location. A new item may be added to the data structure of the processing auxiliary data in FIG. 43 and recorded.
  • the same designation can be performed by a bookmark function or the like.
  • the display layout range displayed last is recorded in the external memory 75 or the like as bookmark data.
  • the content to be recorded may be in the form of “data position in document data” and “display size”. If the display size is fixed or unnecessary, only the data position in the document data may be used.
  • the layout generating means 25 or the like reads the bookmark data and displays the data position or the like in the obtained document data as desired.
  • the layout range it is possible to display a display layout range that is almost the same as the display layout range for which the display of the document data has been completed last time.
  • the desired display layout range is "one page down from the line following the last line of the current page". It is assumed that the next page turning instruction is input by the user by an operation such as pressing a next page turning button 1430 in FIG.
  • the desired display layout range is "one page from the end position of the line preceding the start line of the current page".
  • the desired display layout range is specified in the format of "data position in document data” and “display size” or in the format of "display position” and “display size”. Suppose it is done.
  • the control unit 26 determines that the partial data that can generate the display layout in the desired display layout range obtained in S12, in other words, belongs to the desired display layout range (applicable)
  • the partial data is obtained and set as the current partial data.
  • the partial data including the reference data position obtained in S12 may be obtained from the processing auxiliary data in FIG.
  • the "partial data belonging to (applicable to) the desired display layout range” means partial data belonging to even a part of the desired display layout range.
  • the partial data of the display layout currently displayed is known, so the partial data of the display position may be obtained. This can be obtained by using the block management data shown in FIG. 48, which is information for managing the range of the displayed row data. It is assumed that the range of the displayed line data is separately managed by the control unit 26, the layout display unit 28, and the like.
  • the last line of the current page corresponds to the last line data displayed.
  • the next line can be understood by looking at the line data next to “the last line of the current page” in the line data array of FIG.
  • the partial data to which the row data belongs may be set as the current partial data. Which row data belongs to which partial data can be determined from the block management data in Fig. 48.
  • the inequality sign is determined by the order of the row data. Actually, the inequality sign may be determined by the index number in the row data array.
  • next line data does not exist, it means that the display layout of the partial data for generating the line data has not yet been generated.
  • the next partial data of the data be the current partial data. "Last line on current page
  • the partial data necessity determining means 24 determines whether or not the processing result of the current partial data is necessary for displaying a desired display layout range. The process advances to S15 via “connection point P” (abbreviated as “P”). If it is determined that it is not necessary, the process advances to S16 via P200. Details of the processing here will be described later. The process in S14 corresponds to a partial data necessity determining step described in the claims.
  • the influence detection unit 23, the partial data necessity determination unit 24, the layout generation unit 25, the control unit 26, the layout storage unit 27, and the like use the current partial data display layer. And take into account the impact, then proceed to S16 via P200.
  • the process here includes important processes related to the points of the present invention, such as “effect detection process” and “partial data processing step”.
  • control means 26 determines whether or not there is partial data before the "acquisition start partial data" set in S13 with respect to the desired display layout range.
  • the acquisition start partial data is the partial data 301, the partial data 300 before it exists. If the acquisition start partial data is partial data 300, there is no partial data before that.
  • control means 26 sets the partial data before the acquisition start partial data as the current partial data, and returns to S14.
  • control means 26 resets the acquisition end block set in S13 to current partial data, and proceeds to S21.
  • control means 26 determines whether or not there is partial data next to the acquisition end partial data. If there is, the process proceeds to S22. If not, the process proceeds to S23. The direction of checking the existence of partial data is reversed, but the process is the same as S16.
  • control means 26 sets the partial data next to the acquisition end partial data as the current partial data, and the process returns to S19.
  • the partial data necessity determining means 24 determines whether the processing result of the current partial data is necessary for displaying a desired display layout range. If it is determined that the processing result is necessary, the process proceeds to S20. If it is determined that it is not necessary, the process proceeds to S21. The judgment method is S14 Is the same. The processing of S19 also corresponds to the partial data necessity determination step described in the claims.
  • the layout display unit 28 displays a display layout of a desired display layout range using the display layout of all necessary partial data acquired in the processing of S11 to S22, and performs processing. To end.
  • the process for setting the information of "display start line data" and "display end line data” will be described later, and is assumed to be set in the processes from S11 to S23.
  • the display processing by the layout display means 28 only displays the display start line data and the display end line data on the display means in order. Assuming that display is performed in units of display layout elements, display layout elements in a display layout element array in row data to be displayed are sequentially displayed. The display position of the display layout element is
  • (Y coordinate of element data) (Y coordinate of row data) + (offset Y of element data). For the Y coordinate of the line data, set the Y coordinate of the first display start line data to 0,
  • the line interval may be a predetermined value or a value obtained by multiplying the height of the line data by a predetermined ratio.
  • FIG. 5B is an example of a display layout in which the electronic data of FIG. 7B is displayed from the top.
  • the surrounding frame is the display range of the display means. The part beyond the display range is not displayed.
  • the determination is made based on this row data array.
  • the reference data position is in the form of "display position", it is specified as a line, so it is immediately known whether or not there is any force. For example, if the reference data position is “the line next to the last line of the current page”, the last line of the current page is searched from the line data array in FIG. 46, and if the next line data exists, it is checked.
  • the reference data position is “the line next to the last line of the current page”
  • the last line of the current page is searched from the line data array in FIG. 46, and if the next line data exists, it is checked.
  • the partial data having the line data is obtained. This is obtained from the block management data shown in FIG. If the line data at the reference data position If it is the current partial data to be judged, this current partial data is naturally judged to be necessary.
  • the reference data position force The display layout of the size in the forward direction designated as the desired display layout range (P dots) Checks if exists already.
  • a display layout of the size in the forward direction specified as a desired display layout range can be generated only from the partial data after the current partial data to the partial data at the reference position. !, It can be determined that the current partial data is unnecessary.
  • the partial data at the reference position is the partial data 304 in Fig. 48 and the current partial data to be determined is the partial data 301.
  • the height from the start row of the partial data 302 to the row data at the reference position of the partial data 304 is determined to determine whether the display layout of the partial data 301 is necessary.
  • the partial data necessity determination step the partial data immediately before or immediately after the desired partial data is determined.
  • the display layout (processing result) of the desired partial data (partial data 302) and continuous partial data (partial data 303, 304) to determine! / Become.
  • the effect detection step is not executed for the partial data that is not necessary to obtain the processing result of the specified processing range. It can be simplified, and contributes to speeding up of processing.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Among divided data obtained by dividing electronic data, such a divided data that the content is not lost when the divided data is processed solely is called partial data. The present invention relates to generation of partial data or processing of the generated partial data. When generating partial data by dividing electronic data, such a division boundary is obtained that the aforementioned appropriate processing result is obtained and the data size of the divided data does not exceed the specified maximum data size. Moreover, if such a division boundary exists that the processing result of divided data before the division boundary does not affect the processing result of the divided data after the division boundary, the division boundary is calculated with a higher priority, thereby generating division boundary data, divided data, information having divided data insufficient to obtain a fundamentally intended processing result, or information associated with the affect between the divided data processing results.

Description

明 細 書  Specification
データ生成方法、データ処理方法、データ生成装置、データ処理装置、 データ生成プログラム、データ処理プログラム、データ生成プログラムを記録した 記録媒体、およびデータ処理プログラムを記録した記録媒体  Data generation method, data processing method, data generation device, data processing device, data generation program, data processing program, recording medium recording data generation program, and recording medium recording data processing program
技術分野  Technical field
[0001] 本発明は、電子データが複数に分割されたデータであり、単体で処理してもデータ の意味する内容が損なわれな 、処理結果が得られるデータである部分データの生 成、および部分データを用いた処理に関する。  [0001] The present invention is directed to generation of partial data, which is data obtained by dividing electronic data into a plurality of pieces, and which does not impair the meaning of the data even when processed alone, and which is a data obtained as a processing result; It relates to processing using partial data.
[0002] また、本発明は、上記部分データを用いて所定の処理を行う際、高速、省リソース で処理できると!、う部分データの処理の利点をできるだけ損なわな 、ようにした部分 データを用 V、た処理に関する。  [0002] Further, the present invention contemplates that when performing predetermined processing using the partial data, it is possible to perform the processing at high speed and with resource saving! V, related to processing.
[0003] より詳しくは、本発明は、ある部分データの処理結果力 他の部分データの処理結 果に影響を与える場合に、影響の有る部分データ同士の処理結果の繋がりが悪くな らないように部分データを処理する方法、装置、プログラム、およびコンピュータ読取 可能なプログラム媒体に関する。  [0003] More specifically, the present invention is intended to prevent the processing result of one partial data from affecting the processing result of another partial data so that the connection between the processing results of the affected partial data does not deteriorate. The present invention relates to a method, an apparatus, a program, and a computer-readable program medium for processing partial data.
[0004] さらに、影響の有る部分データ同士の処理結果の繋がりが悪くならないように部分 データを扱う処理に必要な部分データや、その処理をやりやすくするようなデータを 生成する方法、装置、プログラム、およびコンピュータ読取可能なプログラム媒体に 関する。  [0004] Further, a method, an apparatus, and a program for generating partial data necessary for processing of partial data so as not to deteriorate the connection between the processing results of the affected partial data and data that facilitates the processing , And a computer-readable program medium.
背景技術  Background art
[0005] 大きな電子データを、高速に処理したり、あるいはメモリなどの処理リソースが少な い動作環境で処理したりする為に、当面の処理に必要な一部のデータだけを読み書 きして、利用することは従来力も行われてきている。  [0005] In order to process large electronic data at high speed or in an operating environment with a small processing resource such as a memory, only a part of data necessary for immediate processing is read and written. However, the use has been performed conventionally.
[0006] しかし、電子データから単に一部のデータを読み込んで処理するだけなら簡単だ 力 読み込みたいデータが、前後のデータと関連性を持つ場合は、読み込みたいデ ータだけを読むだけではうまく処理できない。 [0006] However, it is easy to simply read and process some data from electronic data. If the data to be read is related to the preceding and following data, it is sufficient to read only the data to be read. Cannot process.
[0007] 前後のデータと関連性をもつデータとして、例えば圧縮されたデータや暗号化され たデータなどがある。例えば、一般に動画像圧縮では、フレーム画像間の差分情報 だけを記録することでデータ圧縮している。すなわち、記録されるデータとしては、ま ず、基準となるフレーム画像 (通常は最初のフレーム画像)のデータがあり、その後は 各フレーム画像の情報として、前のフレーム画像との差分情報のデータ力 残りのフ レーム画像数分だけ繰り返されることになる。 [0007] As data related to the data before and after, for example, compressed data or encrypted data Data. For example, in general, in moving image compression, data compression is performed by recording only difference information between frame images. That is, the data to be recorded first includes the data of the reference frame image (usually the first frame image), and thereafter, as the information of each frame image, the data capacity of the difference information from the previous frame image is used. It will be repeated for the number of remaining frame images.
[0008] 従って、特定のフレーム画像を展開(再生)する際、その特定のフレーム画像のデ ータである、前のフレーム画像との差分情報だけを入手しても、意味が損なわれない フレーム画像を展開することはできな 、。意味が損なわれな 、フレーム画像を展開す るには、最初の基準フレーム画像を最初の展開画像とし、展開画像に次のフレーム 画像の差分情報を付加して新たな展開画像とする、という処理を、特定のフレーム画 像まで繰り返し行う必要がある。  [0008] Therefore, when a specific frame image is developed (reproduced), even if only the difference information from the previous frame image that is the data of the specific frame image is obtained, the meaning is not lost. Images cannot be expanded. In order to develop a frame image without impairing its meaning, processing is performed in which the first reference frame image is used as the first developed image, and the difference information of the next frame image is added to the developed image to create a new developed image. Must be repeated until a specific frame image.
[0009] これに対して、例えば、 MPEG (moving picture expert group)形式の動画 像圧縮データは、圧縮する前の一連のフレーム画像を複数のフレーム画像群 (GOP : group of picture)に分割し、 GOP毎に独立して圧縮して、記録する。すなわち、 基準フレーム画像が GOP毎に存在することになる。再生時に特定の画像フレームを 展開したい時は、最初の画像フレーム力 順次展開する必要はなぐ特定の画像フ レームの属する GOPだけを展開すればよい。これによつて、素早ぐ特定の画像フレ ームを再生することができる。  [0009] On the other hand, for example, moving image compressed data in the MPEG (moving picture expert group) format divides a series of frame images before compression into a plurality of frame image groups (GOP: group of picture), Each GOP is independently compressed and recorded. That is, a reference frame image exists for each GOP. If you want to expand a specific image frame during playback, you need only expand the GOP to which the specific image frame belongs without having to expand the first image frame sequentially. As a result, a specific image frame can be quickly reproduced.
[0010] また、「表示設定によって表示レイアウトが変わる文書データ」としては、例えば、 W WW (world wide web)ブラウザに表示される HTML (hyper text markup la nguage)ァータカ Sある。  [0010] The "document data whose display layout changes depending on the display setting" is, for example, HTML (hyper text markup language) HTML displayed on a WWW (world wide web) browser.
[0011] この場合、文字の大きさを変えたり、表示レイアウトを表示するウィンドウの幅を変え たりすることで、行の折り返し位置なども変わり、表示レイアウトが変更され、見た目が 変わる。  In this case, by changing the size of the character or the width of the window displaying the display layout, the line wrapping position or the like also changes, the display layout is changed, and the appearance changes.
[0012] このような技術を開示した日本国公開特許公報には、  [0012] Japanese published patent publications disclosing such a technology include:
1.特開平 7— 95388号公報(1995年 4月 7日公開)  1. JP-A-7-95388 (published on April 7, 1995)
2.特開平 10-283350号公報(1998年 10月 23日公開)  2.Japanese Unexamined Patent Publication No. Hei 10-283350 (published October 23, 1998)
3.特開平 11— 341434号公報(1999年 12月 10日公開) などが有る。 3. JP-A-11-341434 (published December 10, 1999) There are.
[0013] しかし、これら従来技術では、大きく 4つの問題が出てくる。  [0013] However, these conventional techniques have four major problems.
[0014] 上述したように、 MPEGデータの GOPなどは、「電子データが複数に分割されたデ ータであり、単体で処理可能なデータ」(以降、説明の為、電子データを単に分割し て生成したデータを分割データと呼び、さらに単体で処理可能な分割データを「部分 データ」と呼ぶことにする力 部分データを部分データと呼んでもよい)である力 電 子データによっては、  [0014] As described above, the GOP of MPEG data and the like are "data obtained by dividing electronic data into a plurality of pieces and can be processed independently" (hereinafter, for the sake of explanation, electronic data is simply divided. The generated data is referred to as divided data, and the divided data that can be processed by itself may be referred to as “partial data.” The partial data may be referred to as partial data.
(1)うまく部分データに分割することができない問題や、  (1) Problems that cannot be divided well into partial data,
(2)部分データに分割はできるが、処理結果が影響し合い (処理結果に分割の影響 が表れ)、各部分データの処理結果の繋がりが悪くなる問題や、  (2) Although the data can be divided into partial data, the processing results influence each other (the effect of the division appears in the processing results), and the connection of the processing results of each partial data becomes poor.
(3)部分データに分割できるが、分割の仕方によっては、高速、省メモリという利点を 減じるような部分データサイズになってしまうことがある問題や、  (3) It can be divided into partial data, but depending on the way of division, the size of the partial data may be reduced to reduce the advantages of high speed and memory saving,
(4)処理結果が影響し合わな 、ようにすると部分データが大きくなつてしまう問題があ る。  (4) If the processing results do not influence each other, there is a problem that the partial data becomes large.
[0015] (1)の問題に関しては、例えば、 HTMLデータが当てはまる。 HTMLデータは、文 字列を開始タグと終了タグで挟み、開始タグと終了タグの組を入れ子にすることで階 層構造を作ることができるが、開始タグと終了タグの間で単純に分割してしまうと、そ れぞれの分割データは、単体では分割データの意味する内容が損なわれずに処理 できなくなってしまう。  [0015] Regarding the problem (1), for example, HTML data is applicable. In HTML data, a hierarchical structure can be created by sandwiching a character string between a start tag and an end tag and nesting a set of start and end tags, but it is simply divided between the start and end tags Then, each divided data cannot be processed by itself without impairing the meaning of the divided data.
[0016] 図 4Aおよび図 4Bはこれを説明する図で、 5行目に文字の大きさを変える開始タグ( 「く font size = " + l" >」)があり、これ以降、 16行目の終了タグ(「く Zfont>」)ま で、文字を指定の大きさに変えるように指示されている。この HTMLデータを、 1行目 力 8行目までの前半部分と、 9行目から 16行目までの後半部分の 2つの分割デー タに分割したとする。  [0016] FIGS. 4A and 4B are diagrams for explaining this. In the fifth line, there is a start tag (“ku font size =“ + l ”>) for changing the character size. It is instructed to change the characters to the specified size up to the end tag (“ku Zfont>”). Assume that this HTML data is divided into two pieces of data, the first half of the first line up to the eighth line and the second half of the ninth to sixteenth lines.
[0017] すると、例えば後半部分の分割データを処理しょうとすると、 5行目の文字の大きさ を変える開始タグは読み込まれないので、文字の大きさを指定の大きさに変えること ができなくなってしまう。すなわち、後半部分の分割データだけでは、分割を原因とす る誤りが含まれて 、ることになり、分割データ単体では分割データの意味する内容( 電子データが本来意図して 、た内容)を損なわずに処理することができなくなつてし まつ。 [0017] Then, for example, when processing the divided data in the latter half, since the start tag for changing the size of the character on the fifth line is not read, the character size cannot be changed to the specified size. Would. That is, only the second half of the divided data includes an error caused by the division, and the content of the divided data alone ( Electronic data cannot be processed without losing its original intention.
[0018] (2)の問題に関しては、例えば、プレーンテキストデータが当てはまる。プレーンテ キストデータは、タグなどの階層構造は無いので、部分データを単体で処理しても、 部分データの意味する内容が損なわれな 、が、各部分データの処理結果を並べた 場合に、処理結果の繋がりが悪くなる、すなわち本来意図していない誤った繋がりが 表れるという問題が出てくる。  Regarding the problem (2), for example, plain text data applies. Plain text data does not have a hierarchical structure such as tags, so processing partial data alone does not impair the meaning of the partial data.However, when processing results of each partial data are arranged, processing There is a problem that the connection of the result becomes poor, that is, an unintended wrong connection appears.
[0019] これらの問題を説明するために、まず、図 4Aまたは図 4Bの電子データ全体を一ま とめに処理し、ある表示手段に表示させた状態を図 5A (図 4Aに対応)または図 5B ( 図 4Bに対応)に示す。表示手段の幅に応じて、行が折り返されている。  In order to explain these problems, first, the entire electronic data of FIG. 4A or FIG. 4B is collectively processed and displayed on a certain display means in FIG. 5A (corresponding to FIG. 4A) or FIG. This is shown in Figure 5B (corresponding to Figure 4B). Lines are wrapped according to the width of the display means.
[0020] このような表示状態を意図した図 4Aの電子データの一部を、 9行目の「through」 力も 12行目の「based 」までの部分の部分データと、 12行目の「on」から 15行目の「 < /P>Jまでの部分の部分データの 2つに分割したとする。  [0020] A part of the electronic data of FIG. 4A intended for such a display state is obtained by combining the partial data of the “through” force in the ninth line with the “based” in the twelfth line and the “on” in the twelfth line. ”To the 15th line of“ </ P> J ”.
[0021] この場合、前の部分データをある表示手段に表示させた例が図 17Aであり、後の 部分データをある表示手段に表示させた例が図 17Bである。  In this case, FIG. 17A shows an example in which the preceding partial data is displayed on a certain display means, and FIG. 17B shows an example in which the subsequent partial data is displayed on a certain display means.
[0022] また、同様に、図 4Bの電子データの一部を、 1行目力も 8行目の「glass.」までの部 分の部分データと、 8行目の「When」から 13行目の「information.」までの部分の 部分データの 2つに分割したとする。  Similarly, a part of the electronic data of FIG. 4B is partially converted from the partial data up to “glass.” In the eighth line and the “When” in the eighth line to the thirteenth line. Suppose that the data is divided into two parts up to the "information."
[0023] この場合、前の部分データをある表示手段に表示させた例が図 17Cであり、後の部 分データをある表示手段に表示させた例が図 17Dである(図 17A—図 17Dでは、後 の説明の為、他のデータが表示されていたり、表示枠が少しずらしてある力 ここでは 無視する)。いずれも、単体で見た場合、表示におかしな所はない。  In this case, FIG. 17C shows an example in which the preceding partial data is displayed on some display means, and FIG. 17D shows an example in which the subsequent partial data is displayed on some display means (FIGS. 17A to 17D). Then, for the sake of later explanation, other data is displayed or the display frame is slightly shifted. In any case, there is nothing wrong with the display when viewed alone.
[0024] ところ力 図 17Aおよび図 17Bの表示レイアウトを続けて表示させてみると、図 19A に示すように、本来意図していた表示状態が変質することがわかる。また、図 17Cお よび図 17Dの表示レイアウトを続けて表示させてみると、図 19Bに示すように、本来 意図していた表示状態が変質することがわかる。(図 19Aおよび図 19Bでは、後の説 明の為、他のデータが表示されていたり、表示枠が少しずらしてあったり、はみ出てレ ィアウトしてある部分やフォントサイズが調整してある力 ここでは無視する)。 [0025] つまり、図 19Aおよび図 19Bでは、図 17Aおよび図 17Bの表示レイアウトの繋がり 部分、並びに図 17Cおよび図 17Dの表示レイアウトの繋がり部分で、改行されている ように表示されており、図 5Aおよび図 5Bと比べて、明らかに表示結果が異なってい る。つまり、図 19Aおよび図 19Bには、電子データを分割して処理した影響が、本来 意図していない、誤った改行として表れている。 However, when the display layouts of FIGS. 17A and 17B are successively displayed, it can be seen that the originally intended display state is altered as shown in FIG. 19A. Further, when the display layouts of FIG. 17C and FIG. 17D are successively displayed, it can be seen that the originally intended display state changes as shown in FIG. 19B. (In Fig. 19A and Fig. 19B, other data is displayed, the display frame is slightly shifted, the part that is protruded and laid out, and the font size is adjusted for later explanation. Ignore it here). That is, in FIG. 19A and FIG. 19B, a line feed is displayed at a connection portion of the display layouts of FIG. 17A and FIG. 17B and a connection portion of the display layout of FIG. 17C and FIG. The display results are clearly different from those of 5A and FIG. 5B. That is, in FIGS. 19A and 19B, the effect of dividing and processing the electronic data appears as an erroneous line feed that was not originally intended.
[0026] (3)、(4)の問題に関しては、そもそも部分データは、電子データ全体を処理せず に済む所が利点なのに、分割の影響が出な 、ようにするために部分データ自体が大 きくなつてしまっては、この利点が薄まってしまう。また、部分データサイズが小さすぎ ても、ファイル読み込みなどの処理が細切れになってしまい、トータルの処理速度が 遅くなつたり(ファイル読み込みなどはまとめて一度に行った方が一般に速い)、部分 データの管理に必要なメモリなどが多くなつてしまうので、同様に、利点が薄まってし まつ。  [0026] Regarding the problems (3) and (4), although partial data is advantageous in that it is not necessary to process the entire electronic data, the partial data itself is not affected by division. If it gets bigger, this advantage diminishes. Also, if the partial data size is too small, processing such as file reading will be chopped, and the total processing speed will be slow (it is generally faster to read the files all together at once). Similarly, the benefits diminish as more memory is needed to manage the data.
[0027] そこで、できるだけ最適なサイズの部分データを処理するようにし、また、部分デー タの処理結果が影響し合う、あるいは処理結果に分割の影響が表れる場合に、各部 分データの処理結果の繋がりが悪くならないように部分データを処理する方法を取る ことで、これらの問題を解決できるようになる。  [0027] Therefore, partial data having the optimal size is processed as much as possible, and when the processing results of the partial data affect each other or the processing result shows the effect of division, the processing result of each partial data is processed. These problems can be solved by taking a method of processing the partial data so that the connection is not broken.
[0028] したがって、本発明の第 1の目的は、上記の処理を行うのに必要な部分データや、 上記の処理をやりやすくするような補助データを生成するデータ生成方法、およびデ ータ生成装置、およびデータ生成プログラム、およびデータ生成プログラムを記録し た記録媒体を提供することである。  Therefore, a first object of the present invention is to provide a data generation method for generating partial data necessary for performing the above processing, auxiliary data for facilitating the above processing, and a data generation method. An object is to provide a device, a data generation program, and a recording medium on which the data generation program is recorded.
[0029] さらに、本発明の第 2の目的は、特に上記(2)の問題に着目し、電子データを部分 データに分割したことが部分データの処理結果に影響を与える場合に、高速、省リソ ースで処理できると!、う部分データの利点をできるだけ活力しながら、各部分データ の処理結果の繋がりが悪くならないように部分データを処理するデータ処理方法、デ ータ処理装置、データ処理プログラム、およびそれを記録した記録媒体を提供するこ とである。  [0029] Further, the second object of the present invention is to pay attention to the above-mentioned problem (2), and to perform high-speed and low-speed operation when the division of electronic data into partial data affects the processing result of the partial data. Data processing methods, data processing devices, and data processing that process partial data so that connections between the processing results of each partial data do not deteriorate while maximizing the benefits of partial data. It is to provide a program and a recording medium on which the program is recorded.
発明の開示  Disclosure of the invention
[0030] (1) 本発明に係るデータ生成方法は、上記の課題を解決するために、単独で処理 したときの処理結果自体には誤りが無い部分データを、ある分割境界における電子 データの分割によって生成する場合に、その部分データのデータサイズ力 予め定 めた標準データサイズ以下であるかを判断する部分データサイズ判断ステップと、そ の生成される部分データの処理結果に、上記分割境界における分割による所定の影 響が表れるカゝ否かを判断する影響判断ステップと、データサイズが標準データサイズ 以下であり、かつ、上記所定の影響が表れない分割境界を、標準内非依存分割境 界として抽出する標準内非依存境界抽出ステップと、を有することを特徴とする。 [0030] (1) The data generation method according to the present invention performs processing independently to solve the above-described problems. If partial data with no error in the processing result itself is generated by dividing electronic data at a certain division boundary, the data size of the partial data is judged whether it is smaller than a predetermined standard data size. A partial data size determination step, an influence determination step of determining whether or not the processing result of the generated partial data has a predetermined effect due to the division at the division boundary, and a data size equal to or smaller than the standard data size And extracting a dividing boundary where the predetermined influence does not appear as a non-standard-dependent dividing boundary.
[0031] 以降、説明の為、電子データを「分割境界」で単に分割したデータを「分割データ」 と呼ぶことにする。  Hereinafter, for the sake of explanation, data obtained by simply dividing electronic data at “division boundaries” will be referred to as “divided data”.
[0032] 分割データには順番があるとし、相対的に「前の分割データ」、「次の分割データ」と いう言い方をする。この順番は、各分割データを、分割の影響も考慮して順に処理し た処理結果が、電子データ全体の処理結果に一致する時の分割データの処理順で ある。分割データの電子データ中の位置の順番に相当することが多い。  The divided data has an order, and is relatively called “previous divided data” and “next divided data”. This order is the processing order of the divided data when the processing result obtained by sequentially processing the divided data in consideration of the influence of the division matches the processing result of the entire electronic data. It often corresponds to the order of the position of the divided data in the electronic data.
[0033] なお、電子データを分割したもの全てを分割データと呼ぶ訳ではない。ここで主に 対象としている分割データは、処理結果を直接生成する素材となるデータであり、例 えば、文書データの電子データの場合、テキストデータなどが対象となる。従って、電 子データ中のそれ以外の部分、例えば、ヘッダ情報部分などは、処理結果を直接生 成する素材とは言 、がた 、ので、分割データの対象とならな!/、場合もある。  [0033] Note that not all pieces of electronic data that are divided are referred to as divided data. Here, the target divided data is data that is a material that directly generates a processing result. For example, in the case of electronic data of document data, text data is the target. Therefore, other parts in the electronic data, for example, the header information part, are not materials that directly generate the processing result, but may not be subject to the divided data! /. .
[0034] 「分割境界」とは、電子データを 2組以上の分割データに分割する境界である。分 割境界は、電子データ中の位置で表現でき、例えば、バイト単位で表現する場合、 何バイト目の前、あるいは、何バイト目と何バイト目の間、あるいは何バイト目の後、と いう形となる。位置を表す単位系としては、他にも文字数、ビット数、タグ数やそれら の組み合わせなどがある。  [0034] "Division boundary" is a boundary that divides electronic data into two or more sets of division data. The division boundary can be expressed by a position in the electronic data.For example, when expressed in byte units, it is called before the byte, or between the bytes and the bytes, or after the bytes. It takes shape. Other unit systems that represent positions include the number of characters, the number of bits, the number of tags, and combinations thereof.
[0035] 「部分データ」とは、求めた「分割境界」を使って電子データから生成されるデータ で、電子データの一部分のデータを含んでおり、部分データ単独で処理したときに、 含まれる電子データ部分の処理結果自体には誤りが無いデータのことである。  [0035] "Partial data" is data generated from electronic data using the obtained "partition boundary", and includes data of a part of the electronic data, and is included when the partial data is processed alone. This is data that has no error in the processing result itself of the electronic data portion.
[0036] 部分データと分割データとの関係は、 2通り有る。 1つ目は、部分データが、分割境 界を使って電子データから生成された分割データの中から選別された分割データに 、等しい場合である。その選別は、分割データの処理結果自体に誤りの表れない適 切な分割境界を選択することによってなされる。 2つ目は、部分データと分割データと 力 Sイコールではない場合であり、分割データの処理結果自体に誤りが無い状態を作 るための補助的な情報 (後述の処理補助データ)が組み合わせられた分割データの 場合である。 There are two types of relationships between the partial data and the divided data. First, the partial data is converted into divided data selected from among the divided data generated from the electronic data using the dividing boundaries. , If equal. The selection is performed by selecting an appropriate division boundary where no error appears in the processing result of the division data itself. The second is a case where the partial data, the divided data, and the data are not equal, and auxiliary information (processing auxiliary data described later) for creating a state in which the processing result of the divided data itself has no error is combined. This is the case for split data.
[0037] なお、上述した適切な分割境界を選択する処理が、本発明の影響判断ステップお よび標準内非依存境界抽出ステップにおける処理である。  The process of selecting an appropriate division boundary described above is a process in the influence determination step and the standard-independent boundary extraction step of the present invention.
[0038] 部分データに含まれる電子データ部分は、電子データ中の連続した一塊のデータ 部分を構成しているとは限らず、飛び飛びの場合も本発明に含まれるが、通常、連続 した一塊のデータ部分の方が扱い易い。なお、部分データ中の分割データが飛び飛 びでない場合、分割データ同様、順番を持ち、「前の部分データ」、「次の部分デー タ」という言い方をする。  [0038] The electronic data portion included in the partial data does not always constitute a continuous lump of data portion in the electronic data, and discrete data portions are included in the present invention. The data part is easier to handle. If the divided data in the partial data is not skipped, it has the same order as the divided data, and is referred to as “previous partial data” or “next partial data”.
[0039] なお、部分データは、必ずしも電子データと独立した形 (例えば別ファイルなど)で 存在する必要はな 、。電子データと分割境界の情報の組として保持して 、てもよ 、。 部分データが必要な時に、電子データと分割境界の情報の組から動的に生成しても よい。例えば、分割境界データから分割境界の位置情報を得て、電子データから、そ の部分データの範囲に相当する部分のデータを読み込むなどの方法で、部分デー タを動的に生成することができる。  Note that the partial data need not necessarily exist in a form independent of the electronic data (for example, in a separate file). It may be stored as a set of electronic data and information on the division boundary. When partial data is needed, it may be dynamically generated from a set of electronic data and information on a division boundary. For example, partial data can be dynamically generated by, for example, obtaining position information of a division boundary from division boundary data and reading data of a portion corresponding to the range of the partial data from electronic data. .
[0040] これにより、分割データを別途ファイルなどとして生成する必要がなぐ電子データ をそのままお!/、ておけると!、う利点がある。  [0040] As a result, electronic data that does not need to be separately generated as a file or the like is used as it is! / If you can leave it! There are advantages.
[0041] この利点が生力される場合として、例えば、電子データは、暗号化や著作権などの 問題で、ファイルを変更 Z追加したり、分割データに分けてファイルィ匕したりといった ことができない場合がある。また、電子データが例えば CD— ROMなどの書き込み不 可のメディア上に記録されている場合がある。そのような場合でも、電子データをその ままおいておき、補助ファイルとして、分割境界データのファイルなどを別途生成する ことで、対応できる。  [0041] Examples of the case where this advantage is viable are that, for electronic data, for example, the file is changed or added due to encryption or copyright issues, or the file is divided into divided data and filed. It may not be possible. In some cases, electronic data is recorded on a non-writable medium such as a CD-ROM. In such a case, the electronic data can be kept as it is, and a separate boundary data file or the like can be separately generated as an auxiliary file.
[0042] 「単独で処理したときの処理結果自体には誤りが無い」の定義は、電子データの種 類によって異なる。基本的には、部分データを単独で処理した時の処理結果力 電 子データが意味する内容 (電子データが本来意図した内容)の処理結果になってい るかどうかが判断基準となる。 [0042] The definition of "there is no error in the processing result itself when processed alone" differs depending on the type of electronic data. Basically, processing results when partial data is processed independently The criterion is whether or not the result of processing the contents meant by the child data (the contents originally intended by the electronic data) is obtained.
[0043] 例えば、 HTMLデータの場合、処理結果である表示結果は、 WWWブラウザの表 示設定などによって異なる。しかし、 HTMLデータ自身が表示結果を指定するような 制御データを有して!/、る場合に、その制御データの内容が表示結果に反映されて 、 るかどうか、例えば改行タグによって改行がなされているかどうか、フォントタグによる 文字サイズや文字色などの指定が反映されている力、など、タグによる命令結果に沿 つた表示結果が生成されているかどうかが判断基準の一つとなる。  For example, in the case of HTML data, the display result, which is the processing result, differs depending on the display settings of the WWW browser. However, if the HTML data itself has control data that specifies the display result! /, The content of the control data is reflected in the display result. One of the criterion is whether or not the display result according to the command result by the tag is generated, such as whether or not the font tag is used and the power of the specification of the character size and character color by the font tag.
[0044] より具体的には、文字サイズの表示設定が変わって全体の行数が変わっても、改行 タグ位置で改行がされて!/、れば、この場合は「処理結果自体には誤りが無 、」と判断 される。また、フォントタグの開始タグと終了タグの間のデータだけを処理した場合、フ オントタグの指定が反映されな 、ので、この場合は「処理結果自体には誤りが有る」と 判断される。  [0044] More specifically, even if the display setting of the character size is changed and the total number of lines is changed, a line feed is performed at the line feed tag position! / Is null. " If only data between the start tag and the end tag of the font tag is processed, the specification of the font tag is not reflected, and in this case, it is determined that the processing result itself has an error.
[0045] なお、プレーンテキストの場合は、改行コードの文字によって、改行が指示される。  In the case of plain text, a line feed is indicated by a character of a line feed code.
[0046] 「影響」とは、ここでは、ある部分データを処理する際に、他の部分データの処理結 果を参照するかどうかで、部分データの処理結果が変わることを言う。前の部分デー タの処理結果に、次の部分データの処理結果を追加する場合などに変わりやすい。 影響は、部分データの区切り方や部分データの内容などによって、発生したり、発生 しな力つたりする。また同じ部分データであっても、処理の仕方や処理設定などによ つても、発生したり、発生しな力つたりする。  “Influence” here means that the processing result of the partial data changes depending on whether or not to refer to the processing result of another partial data when processing certain partial data. This tends to change when the processing result of the next partial data is added to the processing result of the previous partial data. The impact may or may not occur, depending on how the data is divided and the content of the data. Also, even with the same partial data, it may or may not occur depending on the processing method and processing settings.
[0047] 処理結果が影響を受ける例としては、文書データの部分データを使って、文字を行 に配置する処理を行う場合、前の部分データが最後に配置した文字 (説明の為、「文 字 A」と呼ぶ)の行に、次の部分データが最初に配置する文字 (説明の為、「文字 B」 と呼ぶ)を追加して配置する場合などがある。追加して配置する場合、「文字 A」の隣 に「文字 B」を配置するので、前の部分データの処理結果によって、次の部分データ の処理結果が変わってくる可能性がある。  [0047] As an example where the processing result is affected, when processing of arranging characters on a line using partial data of document data is performed, the previous partial data is the last character (for explanation, "text In some cases, a character (called "Character B" for the sake of explanation) that is first placed by the next partial data is added to the line of "Character A". In the case of additional arrangement, since “character B” is arranged next to “character A”, the processing result of the next partial data may change depending on the processing result of the previous partial data.
[0048] 但し、他の部分データの処理結果を参照したり、次の部分データを前の部分データ と一続きに処理したりしても、結果が変わらないこともある。例えば、「文字 A」が改行 コードだとすると、「文字 B」は次の行の行頭に必ず配置される。この場合、前の部分 データの処理結果がどうであろうと、「文字 B」の配置位置は常に変わらない。すなわ ち、この場合には、「文字 B」を含む部分データの処理結果は、分割の影響を受けな い。 [0048] However, even if the processing result of another partial data is referred to or the next partial data is processed in succession with the previous partial data, the result may not be changed. For example, "letter A" is a new line If it were a code, "letter B" would always be placed at the beginning of the next line. In this case, regardless of the processing result of the previous partial data, the position of “Character B” does not always change. That is, in this case, the processing result of the partial data including “character B” is not affected by the division.
[0049] 処理結果が影響を受けるのは、隣接する前後の部分データの処理結果だけとは限 らず、離れた部分データ間でも影響する場合もある。例えば、 HTMLデータの分割 データまたは部分データを使って表示レイアウトを生成する処理を行う場合、画像に 対し文字の回り込みがある場合に起こる場合がある。画像に回り込んで文字などをレ ィアウトする場合、画像の分、レイアウトできる範囲が限定される。このレイアウト範囲 の限定が影響にあたる。  The processing result is affected not only by the processing results of the adjacent partial data before and after, but may also be affected by distant partial data. For example, when performing processing to generate a display layout using divided data or partial data of HTML data, this may occur when characters run around an image. When characters are laid out around an image, the layout range is limited by the image. This limitation of the layout range has an effect.
[0050] もう少し具体的に説明すると、回り込み画像の情報を持つ部分データは、例えば最 初の部分データであり、残りの部分データは、回り込み画像の情報を持っていない。 このとき、回り込み画像の情報を持っていない部分データには、部分データ中の文 字列が回り込み画像に回り込ませるべき文字列であることを知る手掛力りが無い。  More specifically, partial data having wraparound image information is, for example, the first partial data, and the remaining partial data does not have wraparound image information. At this time, the partial data having no wraparound image information has no clue to know that the character string in the partial data is a character string to be wrapped around the wraparound image.
[0051] 従って、回り込み画像の情報を含む部分データと、回り込み画像の情報を含まない 部分データを別々に処理して、単純に繋ぎ合わせると、まだ回り込ませる余地がある のに、回り込みを解除して、行頭力も文字列を表示させてしまうことが発生しうる。これ は元データが意図するレイアウトとは異なる。  [0051] Therefore, if the partial data including the wraparound image information and the partial data not including the wraparound image information are separately processed and simply connected, there is still room for the wraparound image. As a result, a character string may be displayed at the head of the line. This is different from the layout intended by the original data.
[0052] このようにして、離れたブロック間でも影響が発生することがありうる。  [0052] In this way, an effect may occur even between distant blocks.
[0053] また、処理結果が影響を受ける例として、内部で使用する値 (変数の値)力 各部分 データの処理で変わる場合などもある。例えば、最初の部分データの処理で、変数 C の値を 1と設定し、 2番目と 3番目の部分データで、変数 Cの値を 2倍に設定するとす る。 1、 2、 3番目の部分データの順で処理した場合、 3番目の部分データの処理前は 、変数 Cの値は 2で、処理後は 4となる力 1、 3番目の部分データの順で処理した場 合、 3番目の部分データの処理前は、変数 Cの値は 1で、処理後は 2となる。  Further, as an example in which the processing result is affected, there is a case where the value (variable value) used internally changes depending on the processing of each partial data. For example, suppose that the value of variable C is set to 1 in the processing of the first partial data, and the value of variable C is doubled in the second and third partial data. When processing is performed in the order of the first, second, and third partial data, before the processing of the third partial data, the value of the variable C is 2, and after the processing, the force becomes 4, and the order of the third partial data Before processing the third partial data, the value of variable C is 1 and after processing it is 2.
[0054] なお、影響が有ろうと無力ろうと、各部分データの単独の処理結果は常に意味する 内容が損なわれない。但し、各部分データの処理結果を合わせた場合は、全体とし て部分データの意味する内容が損なわれる(すなわち、影響が表れる)ことはありえる 。例えば先の「文字 A」、「文字 B」の例で言えば、次の部分データを単独で処理すれ ば、文字 Bは最初の文字なので行頭に配置される。文字 Bが行頭に配置された処理 結果を単独で見る場合、処理結果として部分データの意味する内容が損なわれて ヽ ない。 [0054] Regardless of the influence or helplessness, the single processing result of each partial data does not always impair the meaning. However, if the processing results of each partial data are combined, the meaning of the partial data as a whole may be impaired (that is, an influence may appear). . For example, in the case of “Character A” and “Character B”, if the next partial data is processed independently, character B is the first character and is placed at the beginning of the line. When the processing result in which the character B is placed at the beginning of the line is viewed alone, the meaning of the partial data is not impaired as the processing result.
[0055] しかし、「文字 A」を含む前の部分データの処理結果と合わせて見る場合、すなわち 、前の部分データの処理結果の行と、次の部分データの処理結果の行とを、単純に 並べて表示させる場合、上記 2つの部分データ同士のつながり部分において、部分 データの意味する内容が損なわれている場合が出てくる。  However, when viewed together with the processing result of the previous partial data including “character A”, that is, the line of the processing result of the previous partial data and the line of the processing result of the next partial data are simply When displayed side by side, the meaning of the partial data may be lost in the connection between the two partial data.
[0056] 例えば「文字 A」が改行コードで無い場合、「文字 A」の次の文字、すなわち「文字 B 」力 突然、次の行の行頭に配置されていることになり、改行がされているように見え てしまう。すなわち、文書データとしてそこに改行コードの文字は存在しないにもかか わらず、あた力も改行コードの文字が有るかのような処理結果が得られてしまう。  [0056] For example, if "character A" is not a line feed code, the character next to "character A", that is, "character B" is suddenly located at the beginning of the next line, and a line feed is performed. They look like they are. That is, although there is no character of the line feed code in the document data, a processing result as if there is a character of the line feed code is obtained.
[0057] したがって、部分データの処理結果を合わせたときに、電子データを分割したこと の影響が、実際には存在していない擬似データが有るかのような誤った処理結果とし て発現するのだから、合わせた処理結果は部分データの意味する内容が損なわれ て 、ること〖こなる。  [0057] Therefore, when the processing results of the partial data are combined, the effect of dividing the electronic data appears as an erroneous processing result as if there is pseudo data that does not actually exist. Therefore, the combined processing result impairs the meaning of the partial data.
[0058] なお一般に、前の順番の部分データの処理結果から、後の順番の部分データの処 理結果に影響が及ぶ場合ことが多 、。  In general, the processing result of the partial data in the preceding order often affects the processing result of the partial data in the subsequent order.
[0059] 「標準データサイズ」は、予め決まっている値、あるいはユーザーなどに入力しても らうことで得られる。あるいは所定の計算方法で求めても良い。通常、標準データサイ ズは、部分データとして最も望ましいデータサイズにしておく。これは処理する装置の 処理能力や処理の目的などから、ユーザーなどが決めることにするとよい。  [0059] The "standard data size" can be obtained by a predetermined value or by having a user or the like input it. Alternatively, it may be obtained by a predetermined calculation method. Normally, the standard data size is set to the most desirable data size for partial data. This may be determined by the user based on the processing capacity of the processing device and the purpose of the processing.
[0060] 本発明の作用の概要を説明すると、部分データサイズ判断ステップで、ある分割境 界によって生成される部分データのデータサイズを取得し、そのデータサイズが予め 定めた標準データサイズ以下であるかを判断する。  An outline of the operation of the present invention is as follows. In a partial data size determination step, a data size of partial data generated by a certain division boundary is obtained, and the data size is equal to or smaller than a predetermined standard data size. Judge.
[0061] 影響判断ステップでは、上記分割境界によって生成される部分データの処理結果 に、上記分割境界における分割による各種影響の中でも、予め特定しておいた所定 の影響が表れる力否かを判断する。所定の影響の種類は 1通りとは限らず、複数通り でもよい。また、部分データサイズ判断ステップと影響判断ステップとの処理順序は、 どちらが先でもよい。 [0061] In the influence determining step, it is determined whether or not the processing result of the partial data generated by the above-described division boundary has a force that exhibits a predetermined effect specified in advance among various effects due to division at the above-mentioned division boundary. . The type of given impact is not limited to one May be. Either of the partial data size determination step and the influence determination step may be performed first.
[0062] 標準内非依存境界抽出ステップでは、上記両ステップの結果を使って、データサイ ズが標準データサイズ以下であり、かつ、上記所定の影響が表れない分割境界が見 つかれば、その分割境界を標準内非依存分割境界として抽出する。  [0062] In the within-standard non-independent boundary extraction step, if the data size is equal to or smaller than the standard data size and a division boundary where the above-mentioned predetermined influence does not appear is found using the results of both steps, the division is performed. Extract boundaries as intra-standard independent division boundaries.
[0063] 抽出した標準内非依存分割境界を用いて電子データを分割することにより、予め定 めた標準データサイズ以下で、かつ、処理結果に所定の影響が表れることのない部 分データを取得することができる。 [0063] By dividing the electronic data using the extracted standard-independent division boundary, partial data having a size equal to or smaller than a predetermined standard data size and having no predetermined effect on the processing result is obtained. can do.
[0064] 以上の作用力 導き出される効果について、部分データの利用例をあげて説明す る。 The above-described effects derived from the acting force will be described with an example of using partial data.
[0065] 電子データを利用する処理装置で、部分データを利用するようにする。電子データ を利用する場合は、電子データ全体を読み込んで処理するが、部分データを利用す る場合は、必要な部分データだけを読み込んで処理する。  A processing device that uses electronic data uses partial data. When using electronic data, the entire electronic data is read and processed. When partial data is used, only the necessary partial data is read and processed.
[0066] 部分データは、単独で処理しても処理結果に誤りが無いように生成してあるので、 単独の処理結果自体は問題な!/ヽ。  [0066] Since the partial data is generated such that there is no error in the processing result even when the processing is performed alone, the processing result itself is a problem! / ヽ.
[0067] 但し、処理結果の間に影響がある部分データについて、その処理結果を同時に利 用する場合は、影響を考慮して処理を行う必要がある。なぜなら、それぞれの部分デ ータを単独で処理して得られる処理結果を合わせただけでは、影響が考慮されて ヽ な!、ので、合わせた処理結果は正しくな 、ことがある力らである。  [0067] However, when partial data having an influence between the processing results are used simultaneously, the processing needs to be performed in consideration of the influence. This is because the effect is taken into account only by combining the processing results obtained by processing each partial data independently! Therefore, the combined processing result is incorrect.
[0068] そこで、処理結果の間に影響がある複数の部分データについては、その複数の部 分データを一続きに処理する。これにより、影響のある処理結果同士を同時に利用し ても、正しい処理結果が得られるようになる。  [0068] Thus, for a plurality of partial data that have an effect between the processing results, the plurality of partial data are processed in succession. As a result, a correct processing result can be obtained even when the processing results having an influence are used simultaneously.
[0069] 上記のような利用を行うことにより導き出される効果として、まず、部分データは、電 子データ全体を処理するよりも、処理するデータ量が一般に少なくて済むので、高速 で処理でき、かつ、メモリなどのリソースをあまり使わない省リソースの処理が可能とな る効果がある。  [0069] As an effect derived by performing the use as described above, first, the partial data can be processed at a high speed because the amount of data to be processed is generally smaller than the processing of the entire electronic data. This has the effect of enabling resource-saving processing that does not use much resources such as memory.
[0070] しかし、部分データのデータサイズ自体が大きければ、高速、省リソースの効果も、 電子データ全体を処理するよりもましではある力 薄れてきてしまう。 [0071] 本発明では、求められた標準内非依存分割境界によって生成される部分データが 、標準データサイズを超えないデータサイズになっているので、部分データのデータ サイズを抑えることができ、高速、省リソースの効果が薄れることを防止する効果が出 てくる。また、標準データサイズを理想的なデータサイズとするならば、部分データの データサイズを理想的な値に抑えることができ、高速、省リソースの最も望ましい効果 を得ることができる [0070] However, if the data size of the partial data is large, the effects of high speed and resource saving are weakened more than processing the entire electronic data. In the present invention, since the partial data generated by the found standard-independent division boundary has a data size not exceeding the standard data size, the data size of the partial data can be reduced, and This has the effect of preventing the effects of resource savings from diminishing. Also, if the standard data size is set to the ideal data size, the data size of the partial data can be suppressed to the ideal value, and the most desirable effect of high speed and resource saving can be obtained.
なお、標準データサイズを、処理する装置の処理能力や処理の目的などから、ユー ザ一などが決められるようにすることが好ま 、。  It is preferable that the standard data size be determined by the user or the like in accordance with the processing capacity of the processing device and the purpose of the processing.
[0072] また、電子データの処理結果の一部だけを得たい時、電子データの先頭から処理 して、所望の部分の処理結果を得るには、処理時間がかかったり、リソースが大量に 必要になったりすることがある。これに対し、部分データを使うことで、所望の部分が どの部分データに属するかさえ分かれば、その部分データだけを処理すればよいの で、高速、省リソースで処理することができる効果が出てくる。  When it is desired to obtain only a part of the processing result of the electronic data, processing from the beginning of the electronic data to obtain a processing result of a desired part takes a long processing time or a large amount of resources. It may be. On the other hand, by using partial data, only the partial data needs to be processed as long as the desired data belongs to which partial data, so that the effect of high-speed and resource-saving processing can be obtained. Come.
[0073] また、部分データのデータサイズを抑えることで、部分データの処理に必要な時間 やリソースの最大値をある程度予想することができ、処理能力やリソースに限りのある 機器でも、動作を保証し易くなることができる効果が出てくる。  [0073] In addition, by suppressing the data size of the partial data, it is possible to predict the time required for processing the partial data and the maximum value of the resources to some extent, and to guarantee the operation even on a device having limited processing capacity and resources. The effect that can be easily done comes out.
[0074] また、影響がある部分データ同士を処理する際は、影響を考慮して処理する必要 があり、時には既に得られている処理結果を処理しなおす必要もある。しかし、本発 明のように、できるだけ処理結果に影響が表れないような分割境界を選ぶことで、影 響を考慮して処理したり、再処理したりしな 、で済む部分データを増やすことができ る効果が出てくる。  Further, when processing the affected partial data, it is necessary to perform the processing in consideration of the influence, and sometimes it is necessary to reprocess the already obtained processing result. However, as in the present invention, by selecting a division boundary that does not affect the processing result as much as possible, it is possible to increase the partial data that does not need to be processed or reprocessed in consideration of the effect. The effect that can be done comes out.
[0075] なお、分割境界の情報を、電子データとは別に記録しておくことによる利点として、 先に説明した通り、電子データ自体を変更しないで済むという利点があるが、さらに、 処理を柔軟にできるという利点も出てくる。すなわち、電子データ自体は変更せず、 分割境界の情報を差し替えるだけで、分割の仕方を変更することができるので、部分 データ全てを作成し直すより、情報の変更量を最小限にでき、目的に応じて分割の 仕方を変更する、などといったことがやりやすくなる。  As an advantage of recording the information of the division boundary separately from the electronic data, as described above, there is an advantage that the electronic data itself does not need to be changed, but the processing is more flexible. There is also the advantage that you can do it. In other words, since the electronic data itself is not changed, the way of division can be changed simply by replacing the information of the division boundary, the amount of information change can be minimized rather than recreating all the partial data, It is easier to change the division method according to the situation.
[0076] できるだけ標準データサイズ内で分割することにより、標準データサイズを超えない データサイズの部分データが増えることになる。標準データサイズを、処理する装置 の処理能力や処理の目的など力 適当な値にしておけば、各部分データの処理時 間や必要なリソースを、所望の範囲付近に揃えることができる効果が出てくる。 By dividing the data within the standard data size as much as possible, the size does not exceed the standard data size The partial data of the data size increases. If the standard data size is set to an appropriate value such as the processing capacity of the processing device and the purpose of the processing, the processing time of each partial data and the required resources can be adjusted to the vicinity of the desired range. Come.
[0077] うまく標準データサイズ内で全て分割することができたならば、例えば、電子データ の一部のデータを処理したい時、どの部分を選んでも、すなわちどの部分データを 選んでも、処理結果が得られるまでの時間を保障することができるようになり、ユーザ 一の操作感が良くなる利点がある。  [0077] If all the data can be divided within the standard data size, for example, when it is desired to process a part of the electronic data, no matter what part is selected, that is, no matter what part data is selected, the processing result is It is possible to guarantee the time until it is obtained, and there is an advantage that the user's operation feeling is improved.
[0078] なお、電子データの処理結果の一部だけを利用するような用途が多いような電子デ ータには、例えば、映画などの動画データや音楽などの音声データも含まれる。そし て、動画データや音声データなどの例えば再生に関する設定 (再生速度、音量、音 質、色味、コントラスト、フィルタなど)を、部分部分で変化させるような用途を想定した 場合、そのような設定に関するデータを部分データに含ませる、あるいは部分データ と対応付ける形態では、 HTML文書のデータと同様に、部分データ間で分割の影響 が起きる場合が出てくる。  [0078] Note that electronic data that has many uses in which only a part of the processing result of the electronic data is used include, for example, moving image data such as a movie and audio data such as music. If it is assumed that the settings related to playback, such as video data and audio data (playback speed, volume, sound quality, color, contrast, filters, etc.), will be changed in parts, such settings are assumed. In the case where the data related to the partial data is included in the partial data or associated with the partial data, the division may occur between the partial data as in the case of the data of the HTML document.
[0079] このように、動画データや音声データのような電子データについても、本発明のデ ータ生成方法は、既に説明した効果を発揮する。  As described above, the data generation method of the present invention also exerts the effects described above for electronic data such as moving image data and audio data.
(2) 本発明に係るデータ生成装置は、上記の課題を解決するために、単独で処理 したときの処理結果自体には誤りが無い部分データを、ある分割境界における電子 データの分割によって生成する場合に、その部分データのデータサイズ力 予め定 めた標準データサイズ以下であるかを判断する部分データサイズ判断手段と、その 生成される部分データの処理結果に、上記分割境界における分割による所定の影 響が表れるカゝ否かを判断する影響判断手段と、データサイズが標準データサイズ以 下であり、かつ、上記所定の影響が表れない分割境界を、標準内非依存分割境界と して優先的に抽出する標準内非依存境界抽出手段と、を備えたことを特徴とする。  (2) In order to solve the above problem, the data generation device according to the present invention generates partial data having no error in the processing result itself when processed independently by dividing electronic data at a certain division boundary. In this case, the data size of the partial data is determined by a partial data size determining means for determining whether the data size is equal to or smaller than a predetermined standard data size, and the processing result of the generated partial data includes a predetermined Influence determination means for determining whether or not the effect will occur, and a partition boundary whose data size is equal to or smaller than the standard data size and which does not exhibit the above-mentioned predetermined effect is prioritized as a standard-independent partition boundary. And a standard-independent boundary extracting means for selectively extracting.
[0080] 本発明の作用の概要を説明する。 [0080] An outline of the operation of the present invention will be described.
電子データは、主記憶や外部記憶、あるいはネットワーク先の機器などから、例えば ファイルなどの形で得られるとする。まず、得られた電子データから、分割境界(の候 補)を求める。例えば、電子データの先頭力も何バイト目力 といった情報になるが、 これは一時的な情報なので、メモリ上などに記録しておけばよい。分割境界の候補の 求め方は、電子データの種類や目的によって異なるので、ここでは詳しくは説明しな いが、例えば、 HTMLデータの場合、改行を行うタグの前後などになる。 It is assumed that the electronic data is obtained, for example, in the form of a file from a main storage, an external storage, a device at a network destination, or the like. First, a division boundary (a candidate) is obtained from the obtained electronic data. For example, the leading power of electronic data is information such as the number of bytes, Since this is temporary information, it may be recorded on a memory or the like. The method of obtaining the division boundary candidates differs depending on the type and purpose of the electronic data, and therefore will not be described in detail here. For example, in the case of HTML data, the method is before and after a line break tag.
[0081] 次に、部分データサイズ判断手段で、ある分割境界によって生成される部分データ のデータサイズを取得し、そのデータサイズが予め定めた標準データサイズ以下であ るかを判断する。 Next, the data size of the partial data generated by a certain division boundary is acquired by the partial data size determining means, and it is determined whether the data size is equal to or smaller than a predetermined standard data size.
[0082] 影響判断手段では、上記分割境界によって生成される部分データの処理結果に、 上記分割境界における分割による各種影響の中でも、予め特定しておいた所定の影 響が表れるカゝ否かを判断する。所定の影響の種類は 1通りとは限らず、複数通りでも よい。また、部分データサイズ判断手段と影響判断手段との処理順序は、どちらが先 でもよい。  [0082] The influence determining means determines whether or not the processing result of the partial data generated by the division boundary, among various effects due to the division at the division boundary, shows a predetermined effect specified in advance. to decide. The type of the predetermined influence is not limited to one, but may be plural. Either of the partial data size determining means and the influence determining means may be processed first.
[0083] 標準内非依存境界抽出手段では、上記両手段の結果を使って、データサイズが標 準データサイズ以下であり、かつ、上記所定の影響が表れない分割境界が見つかれ ば、その分割境界を標準内非依存分割境界として抽出する。  [0083] In the standard-independent boundary extracting means, using the results of the above two means, if the data size is equal to or smaller than the standard data size and a division boundary which does not show the predetermined effect is found, the division boundary is determined. Is extracted as a standard-independent division boundary.
[0084] 上記の処理を使って、分割データを生成し、生成した分割データの中で、処理結 果自体に誤りが無ぐ適切なデータサイズの分割データを部分データとする処理例 は、既に説明した処理例と同様である。生成した部分データは、例えばメモリ上に記 録したり、ファイルとして記録媒体上に記録したりする。  [0084] A processing example in which divided data is generated using the above-described processing, and among the generated divided data, the divided data having an appropriate data size and having no error in the processing result itself is used as a partial data. This is the same as the processing example described above. The generated partial data is recorded on a memory, for example, or recorded on a recording medium as a file.
[0085] これによる種々の効果は、前述したとおりである。  [0085] Various effects resulting from this are as described above.
(3) 本発明に係るデータ処理方法は、上記の課題を解決するために、電子データ が複数に分割されたデータであり、単独で処理したときの処理結果自体には誤りが 無 、データである部分データを用いて所定の処理を行うデータ処理方法であって、 所望の部分データの処理結果に電子データを分割したことの影響を与える影響部分 データを検出する影響検出ステップと、所望の部分データの処理を行う際、前記影 響部分データが検出された場合には、影響部分データ力 所望の部分データまでの 範囲を一続きのデータとして処理する部分データ処理ステップと、を備えたことを特 徴とする。  (3) In order to solve the above problems, the data processing method according to the present invention is a method in which electronic data is divided into a plurality of pieces of data, and the processing result itself when processed alone has no error, and What is claimed is: 1. A data processing method for performing a predetermined process using a certain partial data, comprising: an influence detecting step of detecting an influence partial data which has an effect of dividing the electronic data into a processing result of a desired partial data; When performing the data processing, a partial data processing step of processing the range up to the desired partial data as a continuous data when the affected partial data is detected. Features.
[0086] また、本発明に係るデータ処理装置は、上記の課題を解決するために、電子デー タが複数に分割されたデータであり、単独で処理したときの処理結果自体には誤りが 無 、データである部分データを用いて所定の処理を行うデータ処理装置であって、 所望の部分データの処理結果に電子データを分割したことの影響を与える影響部分 データを検出する影響検出手段と、所望の部分データの処理を行う際、前記影響検 出手段で影響が検出された場合には、影響部分データ力 所望の部分データまで の範囲を一続きのデータとして処理する部分データ処理手段と、を備えたことを特徴 とする。 [0086] Further, the data processing device according to the present invention provides an electronic data processing device for solving the above-mentioned problems. A data processing device that performs predetermined processing using partial data, which is data obtained by dividing data into a plurality of pieces and processing the data independently when the processing is performed independently. An influence detecting means for detecting an influence part data which has an effect of dividing the electronic data into the processing result of the above, and when processing the desired partial data, when the influence is detected by the influence detection means, Influence partial data force: a partial data processing means for processing a range up to desired partial data as continuous data.
[0087] 上記の構成において、「電子データが複数に分割されたデータ」とは、電子データ を、そのサイズより小さなサイズ (以下、分割サイズという)に分割したデータのことであ る。分割されたデータ間で重なる部分もなぐ分割されたデータを全て足し合わせれ ば、元の電子データに等しくなる。  [0087] In the above configuration, "data obtained by dividing electronic data into a plurality of pieces" refers to data obtained by dividing electronic data into a smaller size (hereinafter, referred to as a divided size). If all of the divided data that overlaps the overlapped portion of the divided data are added together, the original electronic data will be equal.
[0088] 分割サイズは一定とは限らず、様々な場合がある。一般に、分割サイズは、電子デ ータの中身を見て電子データに応じて決められることが多い。以下、電子データを単 に分割して得られた小サイズのデータのことを、既に説明したように分割データと呼  [0088] The division size is not always constant, and may be various. In general, the division size is often determined according to the electronic data by looking at the contents of the electronic data. Hereinafter, small-sized data obtained by simply dividing electronic data is referred to as divided data as described above.
[0089] なお、分割データは、電子データ中の連続した一塊のデータ部分が分割されて!ヽ るとは限らず、飛び飛びに分割されている場合もあり得るが、通常、連続した一塊の データ部分が分割されて 、る方が扱 、易 、。 [0089] Note that the divided data is not necessarily divided into a continuous mass of data portions in the electronic data, and may be divided into discrete portions. The part is divided, and it is easier to handle.
[0090] 「単独で処理したときの処理結果自体には誤りが無い」の定義は、既に説明したと おりである。  The definition of “the processing result itself when processed alone has no error” has already been described.
[0091] 「単独で処理したときの処理結果自体には誤りが無いデータ」とは、そのデータ以 外のデータを使わず、そのデータだけで所定の処理を行うことで、データの意味する 内容が損なわれな 、処理結果が得られるようなデータのことである。電子データを分 割した分割データを基に生成されたこのようなデータのことを、本発明では既に説明 した「部分データ」と呼ぶ。  [0091] "Data that does not have an error in the processing result itself when processed alone" means that data is not used except for the data, and the predetermined processing is performed only with the data, and the meaning of the data is described. Is data for which a processing result can be obtained without impairment. In the present invention, such data generated based on the divided data obtained by dividing the electronic data is referred to as “partial data” described above.
[0092] 部分データには所定の処理に即した順番が伴う。相対的に「前の部分データ」、「 次の部分データ」という言い方をする。この順番は、各部分データを、分割の影響も 考慮して順に処理した処理結果が、電子データ全体の処理結果に一致する時の部 分データの処理順である。部分データの電子データ中の位置の順番に相当すること が多い。 [0092] The partial data is accompanied by an order according to a predetermined process. The terms "previous partial data" and "next partial data" are relatively used. This order is used when the processing result of processing each partial data in order considering the effect of division matches the processing result of the entire electronic data. This is the processing order of minute data. It often corresponds to the order of the position of the partial data in the electronic data.
[0093] なお、既に説明したように、部分データと分割データとはイコールになる場合と、な らない場合とがある。電子データを分割しただけで、単独で処理したときの処理結果 自体には誤りが無い部分データが得られる場合は、部分データと分割データとはィコ ールになる。一方、分割データの処理結果自体に誤りが無い状態を作るための補助 的な情報 (後述の処理補助データ)を組み合わせることが必要な分割データの場合 には、部分データと分割データとはイコールではない。この場合には、分割データと 補助的な情報とを併せて部分データとみなす。  [0093] As described above, the partial data and the divided data may or may not be equal. In the case where partial data having no error in the processing result itself when only the electronic data is divided and processed alone is obtained, the partial data and the divided data are equal. On the other hand, in the case of divided data that needs to be combined with auxiliary information (processing auxiliary data to be described later) to create a state where there is no error in the processing result of the divided data, the partial data and the divided data are not equal. Absent. In this case, the divided data and auxiliary information are considered as partial data.
[0094] 上記の補助的な情報は、複数の分割データが共通に必要とするデータであっても よい。その必要とするデータを各分割データに複製して分配してやれば、単独で処 理したときの処理結果自体には誤りが無いデータ、すなわち部分データが得られる。 しかし、それではデータサイズが大きくなつてしまうので、その必要とするデータを各 分割データが共有することにしてもよい。分割データは互いに重なり合わないと定義 したが、データ共有などの目的がある場合は、重なり合いを認め、共有部分のデータ と分割データとで、部分データとみなすこともある。  [0094] The auxiliary information may be data that is required in common by a plurality of pieces of divided data. If the necessary data is duplicated and distributed to each divided data, data obtained by processing alone without error can be obtained, that is, partial data. However, this would increase the data size, so that the required data may be shared by the divided data. Although it is defined that the divided data does not overlap each other, if there is a purpose such as data sharing, overlapping is allowed, and the data of the shared part and the divided data may be regarded as partial data.
[0095] 「所望の部分データ」は、処理結果を得た!/、部分データのことである力 所望の部 分データは 1つの部分データとは限らず、複数の場合もある。  [0095] The "desired partial data" obtained the processing result! /, A force that is the partial data. The desired partial data is not limited to one partial data, but may be plural.
[0096] 「影響」とは、ここでは、ある部分データを処理する際に、他の部分データと一続き のデータとして処理するかどうかで、部分データの処理結果が変わることを言う。「一 続きのデータとして処理する」とは、連続する部分データをまとめて一つのデータとみ なして処理する意味である。前の部分データの処理結果に、次の部分データの処理 結果を追加する場合などに影響が現れやすい。なぜなら、次の部分データを前の部 分データと一続きに処理するか、次の部分データを前の部分データと切り離して単 独に処理するかによって、次の部分データの処理結果の追加のされ方が変わり易い 力 である。  [0096] The "influence" here means that when processing a certain partial data, the processing result of the partial data changes depending on whether or not to process the partial data as a continuous data. “Process as a series of data” means that continuous partial data is processed as a single piece of data. The effect is likely to appear when the processing result of the next partial data is added to the processing result of the previous partial data. This is because the processing result of the next partial data is added depending on whether the next partial data is processed continuously with the previous partial data or whether the next partial data is processed separately from the previous partial data. It is a force that is easy to change.
[0097] したがって、連続する部分データ同士の繋がり具合 (連続性)を調べることにより、 影響の有無を判定することができる。また、部分データを用いることによる処理の高速 ィ匕のメリットを損なわないためには、部分データ同士の影響を予め調べ、どの部分デ ータがどの部分データに影響を与える力の情報を取得しておき、その情報を影響検 出ステップの実行時に参照できるようにすることが好ま U、。 Therefore, by examining the degree of connection (continuity) between continuous partial data, it is possible to determine the presence or absence of the influence. High-speed processing by using partial data In order not to impair the merits of the dagger, the effects of the partial data are examined in advance, information on which partial data has an effect on which partial data is obtained, and the information is used in the effect detection step. U, preferably to be able to reference at runtime.
[0098] なお、処理結果が影響を受ける例については、前述したとおりである。 [0098] An example in which the processing result is affected is as described above.
[0099] 「所定の処理」は、電子データの種類や目的によって異なる力 一般に電子データ を入力データとして、何らかの出力を行う。例えば HTMLデータの場合、 HTMLデ ータを解析して、表示レイアウトを算出する処理が、「所定の処理」に該当する。 [0099] The "predetermined process" performs some kind of output using electronic data as input data, which generally depends on the type and purpose of electronic data. For example, in the case of HTML data, the processing of analyzing the HTML data and calculating the display layout corresponds to “predetermined processing”.
[0100] 本発明の作用の概要を説明すると、まず、所望の部分データの処理結果を得る際 、各部分データについて、その処理結果が所望の部分データの処理結果に影響を 与えるかどうかを (影響検出手段が)影響検出ステップで検出する。その結果、影響 部分データが検出されたなら、(部分データ処理手段が)影響部分データから所望の 部分データまでの範囲を一続きのデータとして処理する部分データ処理ステップを 実行する。これにより、影響部分データを含めて所望の部分データを処理するので、 所望の部分データの処理結果には、影響部分データ力 受ける影響が反映されるこ とになる。 [0100] To explain the outline of the operation of the present invention, first, when obtaining the processing result of desired partial data, it is determined whether or not the processing result affects the processing result of the desired partial data for each partial data. The influence detecting means detects in the influence detecting step. As a result, when the affected partial data is detected, a partial data processing step of processing the range from the affected partial data to the desired partial data as continuous data (by the partial data processing means) is executed. As a result, the desired partial data including the affected partial data is processed, so that the processing result of the desired partial data reflects the influence of the affected partial data.
[0101] もし、所望の部分データの処理結果に影響を与える影響部分データが存在しない のであれば、(部分データ処理手段が)そのまま所望の部分データを単独で処理して 、所望の処理結果を得ることができる。  [0101] If there is no influential partial data affecting the processing result of the desired partial data, the desired partial data is processed alone (by the partial data processing means), and the desired processing result is obtained. Obtainable.
[0102] 従って、所望の部分データを処理する際に、影響を及ぼされる範囲の部分データ だけを処理して、影響が反映された処理結果を得ることができる。電子データ全体を 処理すれば同様の処理結果を得ることができるのはもちろんである力 それに比べて 、必要最小限の数の部分データを処理するだけで済む。  [0102] Therefore, when processing desired partial data, only the partial data in the affected range can be processed, and a processing result in which the influence is reflected can be obtained. Of course, the same processing result can be obtained by processing the entire electronic data. On the other hand, it is only necessary to process the minimum necessary number of partial data.
[0103] これによつて、データ処理の高速化、省リソース化と!/、う部分データの利点をできる だけ損なわずに、部分データの処理結果が影響し合う場合に、各部分データの処理 結果が損なわれな 、ように、部分データを処理することができると 、う効果を奏する。  [0103] As a result, when the processing results of the partial data influence each other without impairing the advantage of the partial data as well as speeding up the data processing and saving resources, the processing of each partial data is performed. If the partial data can be processed in such a manner that the result is not impaired, there is an effect.
[0104] 本発明のさらに他の目的、特徴、および優れた点は、以下に示す記載によって十 分わ力るであろう。また、本発明の利益は、添付図面を参照した次の説明で明白にな るであろう。 図面の簡単な説明 [0104] Still other objects, features, and advantages of the present invention will be sufficiently enhanced by the following description. Also, the advantages of the present invention will become apparent in the following description with reference to the accompanying drawings. Brief Description of Drawings
[図 1]本発明のデータ生成装置の機能的な構成を示すブロック図である。 FIG. 1 is a block diagram showing a functional configuration of a data generation device of the present invention.
[図 2]図 1または図 41に示す各手段を具体的に実現する装置の構成例を説明する図 である。  FIG. 2 is a diagram illustrating a configuration example of an apparatus that specifically realizes each unit shown in FIG. 1 or FIG. 41.
[図 3]指定最大データサイズ、指定標準データサイズを指定するウィンドウ表示の例を 示す図である。  FIG. 3 is a diagram showing an example of a window display for specifying a specified maximum data size and a specified standard data size.
[図 4A]電子データとして、 HTMLデータ形式の文書データの一例を説明する説明 図である。  FIG. 4A is an explanatory diagram illustrating an example of document data in HTML data format as electronic data.
[図 4B]電子データとして、 HTMLデータ形式の文書データの他の例を説明する説明 図である。  FIG. 4B is an explanatory diagram illustrating another example of document data in HTML data format as electronic data.
[図 5A]図 4Aの電子データ全体を、 WWWブラウザのある表示設定において、表示さ せた例を説明する説明図である。  FIG. 5A is an explanatory diagram illustrating an example in which the entire electronic data of FIG. 4A is displayed in a certain display setting of a WWW browser.
[図 5B]図 4Bの電子データ全体を、 WWWブラウザのある表示設定において、表示さ せた例を説明する説明図である。  FIG. 5B is an explanatory diagram illustrating an example in which the entire electronic data of FIG. 4B is displayed in a certain display setting of a WWW browser.
[図 6A]図 5Aの表示設定を、基準となる文字の大きさを 1. 5倍、表示ウィンドウのサイ ズは同じに設定変更して、図 4Aの HTMLデータを表示させた例を示す説明図であ る。  [Figure 6A] An example of displaying the HTML data in Figure 4A by changing the display settings in Figure 5A to 1.5 times the size of the reference characters and the same display window size It is a figure.
[図 6B]図 5Bの表示設定を、基準となる文字の大きさを 1. 5倍、表示ウィンドウのサイ ズは同じに設定変更して、図 4Bの HTMLデータを表示させた例を示す説明図であ る。  [Fig. 6B] Explanation that shows the example of displaying the HTML data of Fig. 4B by changing the display setting of Fig. 5B to 1.5 times the size of the reference character and the same display window size. It is a figure.
[図 7A]図 4Aの文書データ力 生成された分割データを模式的に説明する説明図で ある。  FIG. 7A is an explanatory view schematically explaining the divided data generated in the document data of FIG. 4A.
[図 7B]図 4Bの HTMLデータを分割した部分データの例を説明する説明図である。  FIG. 7B is an explanatory diagram illustrating an example of partial data obtained by dividing the HTML data in FIG. 4B.
[図 8]前の分割データに影響を受けるかどうかを表す処理補助データの例を説明す る説明図である。 FIG. 8 is an explanatory diagram illustrating an example of processing auxiliary data indicating whether or not it is affected by previous divided data.
[図 9]影響を受ける最前の分割データを表す処理補助データの例を説明する説明図 である。  FIG. 9 is an explanatory diagram illustrating an example of processing auxiliary data representing the earliest divided data affected.
[図 10]電子データ、分割境界データ、分割データ、処理補助データ、依存関係デー タなどを利用するデータ処理装置の外観例を示す模式的な斜視図である。 [Figure 10] Electronic data, division boundary data, division data, processing auxiliary data, dependency data FIG. 3 is a schematic perspective view showing an example of the appearance of a data processing device using a data processing device or the like.
[図 11]部分データの表示レイアウトを生成して表示する処理の一例を示すフローチヤ ート図である。  FIG. 11 is a flowchart illustrating an example of processing for generating and displaying a display layout of partial data.
圆 12]カレント分割データの表示レイアウトを他の分割データの影響を考慮して取得 する処理方法の一例を示すフローチャート図である。 FIG. 12 is a flowchart illustrating an example of a processing method for acquiring a display layout of the current divided data in consideration of the influence of other divided data.
[図 13]図 10の表示部兼タブレット上に、文書データの先頭から 1ページ分の表示レイ アウトを求めた状態を説明する説明図である。  FIG. 13 is an explanatory diagram illustrating a state in which a display layout for one page from the beginning of document data has been obtained on the display unit / tablet in FIG. 10;
[図 14]図 13の状態に続いて、下に 1ページ分の表示範囲の表示レイアウトを求めた 状態を説明する説明図である。  FIG. 14 is an explanatory diagram illustrating a state in which a display layout of a display range for one page has been obtained below the state of FIG. 13;
[図 15]分割データの先頭から下に 1ページ分の表示範囲の表示レイアウトを求めた 状態を説明する説明図である。  FIG. 15 is an explanatory diagram illustrating a state in which a display layout of a display range for one page is obtained from the top of the divided data to the bottom.
圆 16]図 15の状態から、上に 1行分だけ行スクロールした状態を説明する説明図で ある。 [16] FIG. 16 is an explanatory diagram illustrating a state where the line is scrolled upward by one line from the state of FIG.
圆 17A]分割データの表示レイアウトの一例を説明する説明図である。 FIG. 17A is an explanatory diagram illustrating an example of a display layout of divided data.
[図 17B]図 16の状態から、さらに上に 1行分だけ行スクロールした状態を説明する説 明図である。  FIG. 17B is an explanatory diagram illustrating a state where the line is scrolled up by one line from the state of FIG. 16.
[図 17C]図 7Bに示す部分データ 401をレイアウトし終えた状態のレイアウト全体を、 説明の為に仮に表示させた状態を示す説明図である。  FIG. 17C is an explanatory diagram showing a state where the entire layout in a state where the partial data 401 shown in FIG. 7B has been laid out is temporarily displayed for explanation.
圆 17D]図 7Bに示す部分データ 402をレイアウトした状態を示す説明図である。 [17D] FIG. 7B is an explanatory diagram showing a state where the partial data 402 shown in FIG. 7B is laid out.
[図 17E]図 17Cの状態の後、「W」力も始まる文字要素を追加してレイアウトし終えた 状態のレイアウト全体を、説明の為に仮に表示させた状態を示す説明図である。 FIG. 17E is an explanatory diagram showing a state in which the entire layout in a state where the character elements that also start with the “W” force have been added and laid out after the state of FIG. 17C is temporarily displayed for explanation.
[図 17F]図 7Bに示す部分データ 402から部分データ 405までレイアウトされた状態を 示す説明図である。 FIG. 17F is an explanatory diagram showing a state where layout is performed from partial data 402 to partial data 405 shown in FIG. 7B.
[図 18A]図 17Bの状態から、さらに上に 5行分ほど行スクロールした状態を説明する 説明図である。  FIG. 18A is an explanatory diagram illustrating a state where the line is scrolled upward by five lines from the state of FIG. 17B.
圆 18B]図 17Fの状態力も上に 1ページ分の範囲を表示させた状態を示す説明図で ある。 [圆 18B] FIG. 17F is an explanatory view showing a state in which the range of one page is displayed on the state force as well.
[図 18C]図 7Bの電子データを先頭力 表示範囲分を表示した表示レイアウトの例を 示す説明図である。 [Fig. 18C] An example of a display layout showing the display range of the electronic data in Fig. 7B FIG.
圆 19A]個別に生成された分割データの表示レイアウトを単純に並べた状態を説明 する説明図である。 [19A] FIG. 19A is an explanatory diagram illustrating a state in which display layouts of individually generated divided data are simply arranged.
[図 19B]図 7Bに示す部分データ 402の表示レイアウトを生成し直さずに、図 17Fの状 態力も上に 1ページ分の範囲を表示させた状態を示す説明図である。  [FIG. 19B] FIG. 19B is an explanatory diagram showing a state in which the range of one page is displayed on the state force of FIG. 17F without regenerating the display layout of the partial data 402 shown in FIG. 7B.
[図 19C]図 7Bに示す部分データ 405 ·406のレイアウトを生成し終えた状態のレイァ ゥトを示す説明図である。 FIG. 19C is an explanatory diagram showing a layout in a state where the layout of the partial data 405 and 406 shown in FIG. 7B has been generated.
[図 19D]図 7Βに示す部分データ 405 ·406のレイアウトを生成する際に、回り込み画 像を含む部分データの影響を考慮しな力つたために、表示結果に誤りが表れた例を 示す説明図である。  [Fig. 19D] An example in which an error appears in the display result when the layout of the partial data 405 and 406 shown in Fig. 7Β was generated while taking into account the influence of the partial data including the wraparound image. FIG.
[図 19E]図 7Βに示す部分データ 407中の「One such」の部分から 1ページ分、下の 範囲を表示させた例を示す説明図である。  FIG. 19E is an explanatory diagram showing an example in which the range below “One such” in the partial data 407 shown in FIG. 7Β by one page is displayed.
[図 20]図 18Aの状態から、さらに上に 3行分ほど行スクロールした状態を説明する説 明図である。  FIG. 20 is an explanatory diagram illustrating a state where the line is scrolled up by three lines from the state of FIG. 18A.
圆 21]カレント分割データの表示レイアウトを他の分割データの影響を考慮して取得 する処理方法の別の一例を示すフローチャート図である。 [21] FIG. 21 is a flowchart illustrating another example of a processing method for acquiring the display layout of the current divided data in consideration of the influence of other divided data.
[図 22]図 21に示す処理手順に従って、図 16の状態から、さらに上に 1行分だけ行ス クロールした状態を説明する説明図である。  FIG. 22 is an explanatory diagram illustrating a state in which one line has been scrolled further upward from the state of FIG. 16 in accordance with the processing procedure shown in FIG. 21.
圆 23]本発明の実施の一形態に係るデータ生成方法の一例を示すフローチャート図 である。 FIG. 23 is a flowchart illustrating an example of a data generation method according to an embodiment of the present invention.
[図 24]電子データを分割データに分割する分割境界を算出する処理の一方法を説 明するフローチャート図である。  FIG. 24 is a flowchart illustrating a method of calculating a division boundary for dividing electronic data into division data.
圆 25]前回のカレント位置力も今回のカレント位置までの範囲で、標準内依存境界候 補あるいは標準内非依存境界候補を探して、存在すれば設定する処理の一方法を 説明するフローチャート図である。 [25] Fig. 25 is a flowchart illustrating a method of searching for a candidate for a standard-dependent boundary or a standard-independent non-dependent boundary within the range of the current position force up to the current position, and setting it if it exists. .
[図 26]前回のカレント位置力 今回のカレント位置までの範囲で、標準外非依存境界 候補を探して、存在すれば設定する処理の一方法を説明するフローチャート図であ る。 圆 27]分割データを使って、処理補助データを生成する処理の一方法を説明するフ ローチャート図である。 FIG. 26 is a flowchart illustrating a method of searching for a nonstandard non-dependent boundary candidate in the range up to the current position, and setting it if it exists. [27] FIG. 27 is a flowchart illustrating a method of generating processing auxiliary data using divided data.
[図 28]カレント開始タグリスト、カレント終了タグリストのデータ構造を説明する説明図 である。  FIG. 28 is an explanatory diagram illustrating a data structure of a current start tag list and a current end tag list.
圆 29]処理補助データの例を説明する説明図である。 [29] FIG. 29 is an explanatory diagram illustrating an example of processing auxiliary data.
圆 30]求めた分割境界を使って、分割境界データを生成する処理の一方法を説明 するフローチャート図である。 FIG. 30 is a flowchart illustrating a method of generating division boundary data using the obtained division boundary.
圆 31]求めた分割境界を使って、分割境界データを生成する処理の別の一方法を 説明するフローチャート図である。 FIG. 31 is a flowchart illustrating another method of processing for generating division boundary data using the obtained division boundary.
圆 32]分割境界データを使って、電子データ中力も必要な分割データを抜き出してく る方法で使われるファイルのデータ構造を説明する説明図である。 [32] Fig. 32 is an explanatory diagram illustrating a data structure of a file used in a method of extracting divided data that also requires electronic data by using division boundary data.
[図 33]各ファイルカゝら分割データを直接読み出す方法で使われる分割データのファ ィルの構造を説明する説明図である。 FIG. 33 is an explanatory diagram for explaining the structure of a file of divided data used in a method of directly reading divided data from each file card.
[図 34]分割データの各ファイルのファイル名を XML形式で記録した例を示す説明図 である。  FIG. 34 is an explanatory diagram showing an example in which file names of files of divided data are recorded in an XML format.
圆 35]電子データをファイルに記録する際のテキスト形式のファイル構造例を説明す る説明図である。 [35] FIG. 35 is an explanatory diagram illustrating an example of a file structure in a text format when electronic data is recorded in a file.
圆 36]電子データをファイルに記録する際のバイナリ形式のファイル構造例を説明す る説明図である。 FIG. 36 is an explanatory diagram illustrating an example of a binary file structure when electronic data is recorded in a file.
[図 37]分割境界データ、処理補助データおよび依存関係データを一つのファイルに 記録する際のバイナリ形式のファイル構造例を説明する説明図である。  FIG. 37 is an explanatory diagram illustrating an example of a binary file structure when recording division boundary data, processing auxiliary data, and dependency data in one file.
[図 38]図 37とほぼ同じ情報を、テキスト形式で記述したファイルのファイル構造例を 説明する説明図である。 FIG. 38 is an explanatory diagram illustrating an example of a file structure of a file in which substantially the same information as in FIG. 37 is described in a text format.
圆 39]分割データを処理補助データも含めた形でファイルとして記録した場合の、各 ファイルの内容を示した説明図である。 FIG. 39 is an explanatory diagram showing the contents of each file when the divided data is recorded as a file including processing auxiliary data.
[図 40]分割データのファイルを、 XML形式で記録したファイルのファイル構造を説明 する説明図である。  FIG. 40 is an explanatory diagram illustrating a file structure of a file in which a file of divided data is recorded in an XML format.
[図 41]本発明のデータ処理装置の機能的な構成を示すブロック図である。 圆 42]上記データ処理装置の外観例を示す模式的な斜視図である。 FIG. 41 is a block diagram showing a functional configuration of a data processing device of the present invention. [42] FIG. 42 is a schematic perspective view showing an example of the appearance of the data processing device.
圆 43]処理補助データのデータ構造例を説明する説明図である。 [43] FIG. 43 is an explanatory diagram illustrating an example of a data structure of processing auxiliary data.
圆 44]処理補助データの別のデータ構造例を説明する説明図である。 FIG. 44 is an explanatory view for explaining another example of the data structure of the processing auxiliary data.
[図 45]表示レイアウトの基本単位となる表示レイアウト要素データのデータ構造例を 説明する説明図である。  FIG. 45 is an explanatory diagram illustrating a data structure example of display layout element data that is a basic unit of a display layout.
[図 46]表示レイアウト要素データの集まりを管理する行データのデータ構造例を説明 する説明図である。  FIG. 46 is an explanatory diagram illustrating an example of a data structure of row data for managing a collection of display layout element data.
圆 47]行データの情報を説明する説明図である。 [47] It is explanatory drawing explaining the information of line data.
圆 48]部分データの管理データのデータ構造例を説明する説明図である。 [48] FIG. 48 is an explanatory diagram illustrating an example of a data structure of management data of partial data.
[図 49]本発明の実施の一形態に係るデータ処理方法の一例を示すフローチャート図 である。  FIG. 49 is a flowchart illustrating an example of a data processing method according to an embodiment of the present invention.
[図 50]図 49の S 15の処理、すなわちカレント部分データの表示レイアウトを、影響を 考慮して取得する処理の一方法を説明するフローチャート図である。  50 is a flowchart illustrating a method of processing in S15 in FIG. 49, that is, a method of acquiring a display layout of current partial data in consideration of an influence.
[図 51]図 49の S15の処理、すなわちカレント部分データの表示レイアウトを、影響を 考慮して取得する処理の別方法を説明するフローチャート図である。  FIG. 51 is a flowchart illustrating another method of the process of S15 in FIG. 49, that is, a process of acquiring the display layout of the current partial data in consideration of the influence.
圆 52]部分データ力も表示レイアウトを生成する処理の詳細を説明するフローチヤ一 ト図である。 [52] FIG. 52 is a flowchart illustrating details of a process for generating a display layout for partial data output.
圆 53]回り込み画像がある場合の表示レイアウト生成処理の 1段階を説明する説明 図である。 [53] FIG. 53 is an explanatory diagram illustrating one stage of display layout generation processing when a wraparound image is present.
圆 54]回り込み画像がある場合の表示レイアウト生成処理の次の段階を説明する説 明図である。 [54] FIG. 54 is an explanatory diagram illustrating the next stage of the display layout generation process when there is a wraparound image.
[図 55]図 17Fの状態力も上に 1ページ分の範囲を表示させる時の、処理順序を説明 する説明図である。  FIG. 55 is an explanatory diagram illustrating a processing order when displaying a range of one page on the state force of FIG. 17F.
[図 56]図 7Bに示す部分データ 402、 403の表示レイアウトが保存されていて、部分 データ 403の中のあるノ イト位置を基準として上方向に 1ページ分を表示する場合の 処理の、処理順序を説明する説明図である。  [FIG. 56] Processing of processing when the display layout of the partial data 402 and 403 shown in FIG. 7B is stored, and one page is displayed upward with reference to a certain note position in the partial data 403. It is explanatory drawing explaining an order.
[図 57]図 56の場合を、図 51の処理方法に基づいて処理するときの処理手順を説明 する説明図である。 発明を実施するための最良の形態 FIG. 57 is an explanatory diagram illustrating a processing procedure when performing the processing in FIG. 56 based on the processing method in FIG. 51. BEST MODE FOR CARRYING OUT THE INVENTION
[0106] 以下に、図面を参照しつつ、本発明の実施の形態について説明する。図 1に本実 施の形態の波形整形方法を示す。なお、本実施の形態では、従来技術の欄に記載 の各部材と同様な機能を有する部材については、同一の部材番号を付与してそれら の説明を省いた。  [0106] Hereinafter, embodiments of the present invention will be described with reference to the drawings. Figure 1 shows the waveform shaping method of the present embodiment. In the present embodiment, members having the same functions as the members described in the section of the related art are assigned the same member numbers, and descriptions thereof are omitted.
[0107] (実施の第一形態)  [0107] (First embodiment)
以下、本発明の実施の第一形態を図面を参照して説明する。  Hereinafter, a first embodiment of the present invention will be described with reference to the drawings.
[0108] (用語の定義)  [0108] (Definition of terms)
まず、言葉の定義について説明しておく。  First, the definition of words is explained.
[0109] 以降、説明の為、電子データを「分割境界」で単に分割したデータを「分割データ」 と呼ぶことにする。例えば、図 7Aは、電子データとしての HTMLデータの全体を、 6 つの分割データに分割する場合の区切り方の一例を示している。図 7Aからも判るよ うに、分割されたデータ間で重なる部分もなぐまた足りない部分もない。  Hereinafter, for the sake of explanation, data obtained by simply dividing electronic data at “division boundaries” will be referred to as “divided data”. For example, FIG. 7A shows an example of how to divide the entire HTML data as electronic data into six pieces of divided data. As can be seen from FIG. 7A, there is no overlapping part or missing part between the divided data.
[0110] 分割データには順番があるとし、相対的に「前の分割データ」、「次の分割データ」と いう言い方をする。この順番は、各分割データを影響も考慮して順に処理した処理結 果が、電子データ全体の処理結果に一致する時の分割データの処理順である。因 みに、その処理順は、分割データの電子データ中の位置の順番に相当することが多 い。  [0110] Divided data is assumed to have an order, and is relatively referred to as "previous divided data" and "next divided data". This order is the processing order of the divided data when the processing result obtained by sequentially processing the divided data in consideration of the influence matches the processing result of the entire electronic data. Incidentally, the processing order often corresponds to the order of the position of the divided data in the electronic data.
[0111] なお、電子データを分割したもの全てを分割データと呼ぶ訳ではない。ここで主に 対象として!/、る分割データは、処理結果を直接生成する素材となるデータ (素材デー タ)であり、例えば、文書の電子データの場合、テキストデータなどが対象となる。従つ て、電子データ中の素材データ以外の部分、例えば、ヘッダ情報部分などは、処理 結果を直接生成する素材とは言!ヽがた!ヽので、分割データの対象とならな 、場合も ある。  [0111] Note that not all data obtained by dividing electronic data are referred to as divided data. Here, the divided data mainly as data is data (material data) that is a material that directly generates a processing result. For example, in the case of electronic data of a document, text data is a target. Therefore, parts other than the material data in the electronic data, for example, the header information part, are said to be the materials that directly generate the processing results! is there.
[0112] 「分割境界」とは、図 7Aに示すように、電子データを 2組以上の分割データに分割 する境界である。分割境界は、電子データ中の位置で表現でき、例えば、バイト単位 で表現する場合、電子データの先頭力も何バイト目の前、あるいは、何バイト目と何 バイト目の間、あるいは何バイト目の後、という形式を取る。位置を表す単位系として は、他にも文字数、ビット数、タグ数やそれらの組み合わせなどがある。 [0112] The "division boundary" is a boundary that divides electronic data into two or more sets of division data, as shown in FIG. 7A. The division boundary can be expressed by the position in the electronic data.For example, when expressed in byte units, the leading force of the electronic data is also before any byte, or between what byte and what byte, or what byte. Later, take the form. As a unit system that represents position Is the number of characters, the number of bits, the number of tags, and combinations thereof.
[0113] 「部分データ」とは、「分割境界」を使って電子データから生成されるデータで、電子 データの一部分のデータを含んでおり、部分データ単独で処理したときに、上記一 部分のデータの処理結果自体には、後述するような誤りが無いデータのことである。  [0113] "Partial data" is data generated from electronic data using a "division boundary", and includes data of a part of the electronic data. The data processing result itself has no error as described later.
[0114] 部分データと分割データとの関係は、 2通り有る。 1つ目は、部分データが、分割境 界を使って電子データから生成された分割データの中から、選別された分割データ に等しい場合である。その選別は、分割データの処理結果自体に誤りの表れない適 切な分割境界を選択することによってなされる。 2つ目は、部分データと分割データと 力 Sイコールではない場合であり、分割データの処理結果自体に誤りが無い状態を作 るための補助的な情報が組み合わせられた分割データの場合である。  [0114] There are two types of relationships between the partial data and the divided data. The first case is when the partial data is equal to the divided data selected from among the divided data generated from the electronic data using the divided boundaries. The selection is performed by selecting an appropriate division boundary where no error appears in the processing result of the division data itself. The second is a case where the partial data, the divided data, and the force are not equal, and the divided data is a combination of auxiliary information for creating a state in which there is no error in the processing result itself of the divided data. .
[0115] なお、上述した適切な分割境界を選択する処理が、本発明の影響判断ステップお よび標準内非依存境界抽出ステップにおける処理である。 The above-described process of selecting an appropriate division boundary is a process in the influence determination step and the standard-independent boundary extraction step of the present invention.
[0116] 部分データに含まれる電子データ部分は、電子データ中の連続した一塊のデータ 部分を構成しているとは限らず、飛び飛びの場合も本発明に含まれるが、通常、連続 した一塊のデータ部分の方が扱い易い。なお、部分データが飛び飛びでない場合、 分割データ同様、順番を持ち、「前の部分データ」、「次の部分データ」という言い方 をする。 [0116] The electronic data portion included in the partial data does not necessarily constitute a continuous mass of data portion in the electronic data, and the case of discrete data is included in the present invention. The data part is easier to handle. If the partial data is not skipped, it has the same order as the divided data, and is called “previous partial data” or “next partial data”.
[0117] なお、部分データは、必ずしも電子データと独立した形 (例えば別ファイルなど)で 存在する必要はな 、。電子データと分割境界の情報の組として保持して 、てもよ 、。 部分データが必要な時に、電子データと分割境界の情報の組から動的に生成しても よい。例えば、分割境界データから分割境界の位置情報を得て、電子データから、そ の部分データの範囲に相当する部分のデータを読み取るなどの方法で、部分データ を動的に生成することができる。  Note that the partial data need not necessarily exist in a form independent of the electronic data (for example, in a separate file). It may be stored as a set of electronic data and information on the division boundary. When partial data is needed, it may be dynamically generated from a set of electronic data and information on a division boundary. For example, partial data can be dynamically generated by obtaining position information of a division boundary from division boundary data and reading data of a portion corresponding to the range of the partial data from electronic data.
[0118] これにより、分割データを別ファイルなどとして生成する必要がなぐ電子データを そのままお!/、ておけると!、ぅ禾 IJ点がある。  [0118] As a result, there is an IJ point for electronic data that does not need to be generated as a separate file, etc., as it is!
[0119] この利点が生力される場合として、例えば、電子データは、暗号化や著作権などの 問題で、ファイルを変更および Zまたは追加したり、分割データに分けてそれぞれの ファイルを作成したりといったことができない場合がある。また、電子データが例えば CD— ROMなどの書き込み不可のメディア上に記録されている場合がある。そのよう な場合でも、電子データをそのままおいておき、補助ファイルとして、分割境界データ のファイルなどを別途生成することで、上記の各場合に対応できる。 [0119] The case where this advantage comes into play is, for example, in the case of electronic data, due to problems such as encryption and copyright, files may be changed and Z or added, or each file may be created by dividing it into divided data. You may not be able to do that. Also, if the electronic data is It may be recorded on non-writable media such as CD-ROM. In such a case, it is possible to cope with each of the above cases by leaving the electronic data as it is and separately generating a file of division boundary data as an auxiliary file.
[0120] 「単独で処理したときの処理結果自体には誤りが無い」の定義は、電子データの種 類によって異なる。基本的には、元の電子データに含まれていないデータ (擬似デー タと呼ぶことにする)力 あたかも電子データに含まれていたかのような処理結果 (例 えば、意図しない改行、フォントサイズ等)が得られた場合、処理結果に、誤りが表れ ていると定義し、そのような擬似データに対応する処理結果を含まず、元の電子デー タが本来意図した処理結果が得られるとき、処理結果自体に誤りが無 、 [0120] The definition of "the processing result itself when processed alone has no error" differs depending on the type of electronic data. Basically, data that is not included in the original electronic data (referred to as pseudo data) The processing results as if they were included in the electronic data (for example, unintended line breaks, font sizes, etc.) If the processing result is defined as an error, the processing result corresponding to such pseudo data is not included, and if the processing result originally intended by the original electronic data is obtained, There is no error in the result itself,
と定義する。  Is defined.
[0121] なお、「処理結果に誤りが表れない」という表現を、「データの意味する内容が損な われな 、処理結果が得られる」と言 、換えてもょ 、。  [0121] The expression "no error appears in the processing result" may be referred to as "a processing result can be obtained without impairing the meaning of the data".
[0122] 例えば、 HTMLデータの場合、処理結果である表示結果は、 WWWブラウザの表 示設定などによって異なる。この場合、改行タグによって改行がなされているかどうか 、フォントタグによる文字サイズや文字色などの指定が反映されている力、など、タグ による命令結果に沿った表示結果が生成されているかどうかが、処理結果に誤りが 表れていないかどうかの判断基準の一つとなる。例えば、文字サイズの表示設定が 変わって全体の行数が変わっても、改行タグ位置で改行がされていれば、この場合 は「処理結果自体には誤りが無い」と判断される。また、フォントタグの開始タグと終了 タグの間のデータだけを処理した場合、フォントタグの指定が反映されないので、この 場合は「処理結果自体には誤りが有る」と判断される。  [0122] For example, in the case of HTML data, the display result as the processing result differs depending on the display setting of the WWW browser. In this case, whether the display result is generated in accordance with the instruction result by the tag, such as whether a line break has been performed by the line break tag, the force of reflecting the specification of the character size and character color by the font tag, etc. This is one of the criteria for determining whether an error has appeared in the processing result. For example, even if the display setting of the character size changes and the total number of lines changes, if a line break is made at the line break tag position, in this case, it is determined that there is no error in the processing result itself. If only the data between the start tag and the end tag of the font tag is processed, the specification of the font tag is not reflected. In this case, it is determined that the processing result itself has an error.
[0123] なお、プレーンテキストの場合は、改行コードの文字によって、改行が指示される。  [0123] In the case of plain text, a line feed is indicated by a character of a line feed code.
[0124] 処理結果に、誤りが表れた具体例を図 19Aおよび図 19Bに示す。図 18Aに示す 表示結果が、図 19Aに対して、誤りの無い表示結果であるとすると、図 19Aには、「b ased」の後に改行が表れている。また、図 18Bに示す表示結果力 図 19Bに対して、 誤りの無い表示結果であるとすると、図 19Bには、「glass.」の後に改行が表れてい る。  FIG. 19A and FIG. 19B show specific examples in which an error appears in the processing result. Assuming that the display result shown in FIG. 18A is an error-free display result with respect to FIG. 19A, a line feed appears after “based” in FIG. 19A. In addition, assuming that the display result shown in FIG. 18B is error-free compared to the display result shown in FIG. 19B, a line break appears after “glass.” In FIG. 19B.
[0125] つまり、改行タグや改行コードが、元データには無いのにも拘らず、図 19Aおよび 図 19Bには、改行タグや改行コードが擬似データとして、あた力も元データに含まれ て!、たかのような表示結果になって 、る。 [0125] In other words, although the line feed tag and line feed code are not present in the original data, the In FIG. 19B, the line feed tag and the line feed code are included as pseudo data, and the original data also includes the power!
[0126] なお、プレーンテキストの場合は、改行コードの文字によって、改行が指示される。  [0126] In the case of plain text, a line feed is indicated by a character of a line feed code.
[0127] 「処理補助データ」は、分割データを単独で処理して分割データの意味する内容が 損なわれな!/ヽ処理結果を得るには、前記分割データに足りな 、情報 (を補助するデ ータ)である。あるいは、「処理補助データ」は、分割データを部分データとして処理 できるように、分割データを単独で処理するだけでは得られな 、 (不足して 、る)情報 を補助するデータである。  [0127] "Processing auxiliary data" means that processing of the divided data alone does not impair the meaning of the divided data! / ヽ In order to obtain a processing result, information ( Data). Alternatively, the “processing auxiliary data” is data that assists information that is not obtained by simply processing the divided data so that the divided data can be processed as partial data.
[0128] つまり、分割データと処理補助データを合わせて部分データとなる。例えば、前の 分割データ力 効力を引き継ぐべき情報や、後の分割データで処理されるべき情報 、あるいは複数の分割データの処理結果に共通して関係する特定データ (例えば、 制御コード等)などである。  That is, the divided data and the processing auxiliary data are combined into partial data. For example, information to take over the effect of the previous divided data, information to be processed by the later divided data, or specific data (for example, control code, etc.) that is commonly related to the processing results of multiple divided data is there.
[0129] 処理補助データは、電子データや部分データの一部ではなぐ基本的にファイルな どの形で別のデータとして生成されるものである力 データを管理しやすくする為に、 電子データの最初や最後などに電子データの一部として処理補助データを含むよう にする場合もある。  [0129] The processing auxiliary data is basically generated as another data in the form of a file, not a part of the electronic data or partial data. In some cases, processing assistance data is included as part of electronic data at the end or at the end.
[0130] より具体的には、後でさらに説明するが、 HTMLデータの場合、着目している分割 データの前に存在する分割データ中の開始タグで、対応する終了タグがその分割デ ータ以降の分割データに存在する場合、その開始タグが、前の分割データカゝら引き 継ぐべき情報になるので、着目している分割データのための処理補助データに当た る。  [0130] More specifically, as will be described later, in the case of HTML data, the start tag in the divided data existing before the target divided data, and the corresponding end tag is the divided data. If it exists in the subsequent divided data, its start tag becomes information to be taken over from the previous divided data card, and thus corresponds to processing auxiliary data for the focused divided data.
[0131] つまり、前の分割データ中の開始タグの効力は、本来、後の分割データにも及ぶも のであるが、分割の結果、後の分割データを単独で処理する際には、開始タグが読 み込まれないため、その処理結果には開始タグの効力が表れないことになる。結局、 分割によって、本来意図した処理結果にならない分割データが発生する。そこで、開 始タグを後の分割データの処理補助データとして組み合わせることにより、後の分割 データを単独で処理しても、本来の処理結果を得ることができる。  [0131] In other words, the effect of the start tag in the previous divided data originally extends to the subsequent divided data, but as a result of the division, when the subsequent divided data is processed independently, the start tag Is not read, and the processing result does not show the effect of the start tag. Eventually, the division generates divided data that does not result in the intended processing result. Therefore, by combining the start tag as processing auxiliary data for the subsequent divided data, the original processing result can be obtained even if the subsequent divided data is independently processed.
[0132] 処理補助データと分割データは、組として扱われる力 必ずしも一体のデータとして 記録しておく必要はなぐ分散して記録しておいても良い。例えば、処理補助データ だけを集めたファイルなどと ヽぅ形で記録してぉ ヽても良 ヽし、電子データの末尾な どに処理補助データを追加してぉ 、ても良 、。 [0132] The processing auxiliary data and the divided data are treated as a set. If necessary, the information may be dispersed and recorded. For example, it is acceptable to record the data in a form such as a file in which only the processing auxiliary data is collected, or to add the processing auxiliary data to the end of the electronic data or the like.
[0133] また、処理補助データと分割データは、予め作成しておくのが一般的だが、利用時 に動的に生成することも可能である。  [0133] The processing auxiliary data and the divided data are generally created in advance, but can be dynamically generated at the time of use.
[0134] 但し、分割データと処理補助データの組それぞれが共通に必要とするデータが、 電子データ中に存在する場合、必要とするデータを各分割データ (あるいは処理補 助データ)に複製して分配してやれば、単独で分割データの意味する内容が損なわ れない処理結果を得ることもできる。しかし、それでは各分割データ (あるいは処理補 助データ)のデータサイズが大きくなつてしまう。そこで、そのような問題を回避するた めに、分割データ (あるいは処理補助データ)以外の共有部分を使う場合も、「部分 データで処理される」とみなすこととする。  [0134] However, if data required by each set of the divided data and the processing auxiliary data is present in the electronic data, the required data is copied to each divided data (or processing auxiliary data). If distributed, it is possible to obtain a processing result that does not impair the contents of the divided data by itself. However, then, the data size of each divided data (or processing auxiliary data) becomes large. Therefore, in order to avoid such a problem, even when a shared part other than the divided data (or the processing auxiliary data) is used, it is regarded as “processed by partial data”.
[0135] 共通に必要とするデータとしては、例えば、電子データの種類やバージョン情報、 著作権情報、暗号情報などの、いわゆるヘッダ情報などが例としてあげられる。  Examples of commonly required data include so-called header information such as type and version information of electronic data, copyright information, encryption information, and the like.
[0136] 次に、「影響」とは、ここでは、ある部分データを処理する際に、他の部分データの 処理結果を参照するかどうか、あるいは、ある部分データを処理する際に、他の部分 データと一続きのデータとして処理するかどうかで、部分データの処理結果が変わる ことを言う。「一続きのデータとして処理する」とは、連続する部分データをまとめて一 つのデータとみなして処理する意味である。  [0136] Next, the "effect" here refers to whether to refer to the processing result of another partial data when processing certain partial data, or to determine whether to refer to the processing result of another partial data. It means that the processing result of partial data changes depending on whether to process as partial data and continuous data. “Process as a series of data” means that continuous partial data is processed as a single piece of data.
[0137] 例えば、連続する部分データ X, Yについて、部分データ Yを部分データ Xの処理 結果を参照して処理した場合、あるいは部分データ X, Yをこの順番に一続きのデー タとして処理した場合と、そうせずに、それぞれを独立して処理した場合とで、処理結 果に違いが現れるとしたとき、「部分データ Yは、部分データ Xから影響を受ける」とか 、「部分データ Xは、部分データ Yに影響を与える」とか、「部分データ Yは、分割の影 響を受ける」とかのように、本発明では表現することにする。前の部分データ Xの処理 結果に、次の部分データ Yの処理結果を追加する場合などに、影響が現れやすい。  For example, regarding continuous partial data X and Y, when partial data Y is processed with reference to the processing result of partial data X, or partial data X and Y are processed as continuous data in this order If there is a difference in the processing result between the case and the case in which each is processed independently, if the processing result appears to be different, such as "partial data Y is affected by partial data X" or "partial data X Will affect the partial data Y "and" the partial data Y will be affected by the division "in the present invention. The effect is likely to appear when the processing result of the next partial data Y is added to the processing result of the previous partial data X.
[0138] なお、部分データ Yに影響を与える部分データ Xのことを、影響部分データと呼ぶ。  [0138] The partial data X that affects the partial data Y is referred to as affected partial data.
[0139] 先に挙げた図 18Bおよび図 19Bの例では、図 18Bの方が、連続する部分データを 一続きのデータとして処理した場合の処理結果であり、図 19Bの方が、一続きのデー タとして処理しな力つた場合、すなわち個々の部分データを独立に処理して、各処理 結果を合わせた場合の処理結果である。 In the examples of FIGS. 18B and 19B mentioned above, FIG. Fig. 19B shows the processing results when processing as a series of data, and Fig. 19B shows the processing results when processing is not performed as a series of data, that is, processing individual partial data independently and combining the processing results. It is a processing result in the case of having performed.
[0140] このように、前の部分データの処理結果に、次の部分データの処理結果を追加す る場合などに、影響が現れやすい。影響は、部分データの区切り方や部分データの 内容などによって、発生したり、発生しな力 たりする。また同じ部分データであって も、処理の仕方や処理設定などによっても、影響が発生したり、発生しな力つたりする [0140] As described above, the influence is likely to appear when the processing result of the next partial data is added to the processing result of the previous partial data. The effects may or may not occur, depending on how the data is divided and the content of the data. In addition, even if the same partial data is used, depending on the processing method and processing settings, effects may occur or power may not occur.
[0141] 処理結果が影響を受ける例としては、文書データの部分データを使って、文字を行 に配置する処理を行う場合、前の部分データが最後に配置した文字 (説明の為、「文 字 A」と呼ぶ)の行に、次の部分データが最初に配置する文字 (説明の為、「文字 B」 と呼ぶ)を追加して配置する場合などがある。追加して配置する場合、「文字 A」の隣 に「文字 B」を配置するので、前の部分データの処理結果によって、次の部分データ の処理結果が変わってくる可能性がある。 [0141] As an example where the processing result is affected, when a process of arranging a character on a line using partial data of document data is performed, the previous partial data is the last character (for explanation, " In some cases, a character (called "Character B" for the sake of explanation) that is first placed by the next partial data is added to the line of "Character A". In the case of additional arrangement, since “character B” is arranged next to “character A”, the processing result of the next partial data may change depending on the processing result of the previous partial data.
[0142] 但し、前の部分データの処理結果によって結果が変わらな 、こともあるし、前の部 分データの処理結果を参照してもしなくても、結果が変わらないこともある。従って、 他の部分データの処理結果を参照しな力つた場合に、あるいは、一続きのデータとし て処理しな力つた場合に、必ず誤りが表れるというわけではない。例えば、「文字 A」 が改行コードだとすると、「文字 B」は次の行の行頭に必ず配置される。この場合、前 の部分データの処理結果がどうであろうと、「文字 B」の配置位置は常に変わらない。  [0142] However, the result may not change depending on the processing result of the previous partial data, or the result may not change even if the processing result of the previous partial data is referred to or not. Therefore, an error does not always appear when a force is used to refer to the processing result of other partial data or when a force is used to process as a series of data. For example, if "letter A" is a line feed code, "letter B" is always placed at the beginning of the next line. In this case, regardless of the processing result of the previous partial data, the arrangement position of “Character B” does not always change.
[0143] なお、処理結果が影響を受けるのは、隣接する前後の部分データの処理結果だけ とは限らず、離れた部分データ間でも影響する場合もある。例えば、 HTMLデータの 部分データを使って表示レイアウトを生成する処理を行う場合、画像に対するテキス トデータ等の回り込みがある場合に起こる場合がある。画像に回り込んで文字などを レイアウトする場合、画像の分、レイアウトできる範囲が限定される。このレイアウト範 囲の限定が影響に関わってくる。  The effect of the processing result is not limited to the processing result of adjacent partial data before and after, and may be affected even between distant partial data. For example, when performing a process of generating a display layout using partial data of HTML data, this may occur when text data or the like wraps around an image. When characters are laid out around an image, the layout range is limited by the image. This limitation of the layout range has an effect.
[0144] この時、画像に回り込んでレイアウトされる文字など力 複数の部分データから構成 されている場合、画像に回り込んで文字などをレイアウトする指示 (以下、回り込み指 示と呼ぶ)が含まれる部分データは、通常、当該複数の部分データの中の最初の部 分データである。従って、上記回り込み指示を含まない部分データには、部分データ 中の文字列を画像に回り込ませるべきであることを知る手掛力りが無い。なお、上記 回り込み指示を伴う画像のことを、以降、回り込み画像(図 5B参照)と呼ぶ。 [0144] At this time, if the data is composed of a plurality of partial data such as characters wrapped around the image and laid out, an instruction to lay out characters and the like wrapping around the image (hereinafter, wraparound finger) Is usually the first partial data of the plurality of partial data. Therefore, the partial data that does not include the wraparound instruction has no clue to know that the character string in the partial data should be wrapped around the image. The image accompanied with the wraparound instruction is hereinafter referred to as a wraparound image (see FIG. 5B).
[0145] 従って、回り込み画像を含む部分データと、回り込み画像を含まない部分データと を別々に処理して、単純に繋ぎ合わせると、まだ回り込ませる余地があるのに、回り込 み画像を含まない部分データについては、回り込みを解除して、回り込み画像を含 む部分データのレイアウトが終了した次の行の行頭力 文字列を表示させてしまう誤 りが発生しうる。これは元データが意図するレイアウトとは異なる。  Therefore, if the partial data including the wraparound image and the partial data not including the wraparound image are separately processed and simply connected, there is still room for the wraparound image, but the wraparound image is not included. With respect to the partial data, an error may occur in which the wraparound is canceled and the leading character string of the next line after the layout of the partial data including the wraparound image is completed is displayed. This is different from the layout intended by the original data.
[0146] 回り込み画像を含む部分データの表示例を図 19C' 19Dに示す。図 19Cは、本発 明のデータ処理方法により、表示結果に誤りが表れていない場合、図 19Dは、回り 込み画像を含む部分データの影響を考慮しな力 たために、誤りが表れた場合に対 応している。  [0146] FIGS. 19C and 19D show display examples of partial data including a wraparound image. Fig. 19C shows the case where no error appears in the display result by the data processing method of the present invention, and Fig. 19D shows the case where an error appears because the effect of the partial data including the wraparound image was not considered. Yes, it is.
[0147] このようにして、離れた部分データ間でも影響が発生することがありうる。  [0147] In this way, an effect may occur even between distant partial data.
[0148] また、処理順序が処理結果に影響を与える例として、内部で使用する値 (変数の値 )が、各部分データの処理で変わる場合などもある。例えば、最初の部分データの処 理で、変数 Cの値を 1と設定し、 2番目と 3番目の部分データで、変数 Cの値を 2倍に 設定するとする。 1、 2、 3番目の部分データの順で処理した場合、 3番目の部分デー タの処理前は、変数 Cの値は 2で、処理後は 4となる力 1、 3番目の部分データの順 で処理した場合、 3番目の部分データの処理前は、変数 Cの値は 1で、処理後は 2と なる。 [0148] Further, as an example in which the processing order affects the processing result, there is a case where a value (variable value) used internally changes in the processing of each partial data. For example, suppose that the value of variable C is set to 1 in the processing of the first partial data, and the value of variable C is doubled in the second and third partial data. If processing is performed in the order of the first, second, and third partial data, before processing the third partial data, the value of the variable C is 2, and after processing, the force 1 becomes 4, and the force of the third partial data is When processed in order, the value of variable C is 1 before processing the third partial data, and 2 after processing.
[0149] なお、影響が有ろうと無かろうと、各部分データの単独の処理結果は部分データの 定義のとおり、常に部分データの意味する内容が損なわれない (誤りが表れない)。 但し、各部分データの単独の処理結果を合わせた場合には、各部分データを単独 に処理した影響が、全体として部分データの意味する内容が損なわれている(元の 電子データが本来意図して 、な 、処理結果になる)ことはありえる。  [0149] Regardless of whether or not there is an effect, the processing result of each partial data alone does not always impair the meaning of the partial data as defined by the partial data (no error appears). However, when the processing results of each partial data alone are combined, the effect of processing each partial data independently impairs the meaning of the partial data as a whole (the original electronic data originally intended). Therefore, the processing result can be obtained).
[0150] 例えば先の「文字 A」、「文字 B」の例で言えば、文字 Bを含む「次の部分データ」を 単独で処理すれば、文字 B (例えば図 19Bの「When」)は最初の文字なので行頭に 配置される。文字 Bが行頭に配置された処理結果を単独で見る場合、「次の部分デ ータ」の処理結果自体に誤りは無!、。 [0150] For example, in the above example of "character A" and "character B", if the "next partial data" including character B is processed independently, character B (for example, "When" in Fig. 19B) becomes Because it is the first character, Be placed. When viewing the processing result with the letter B at the beginning of the line alone, there is no error in the processing result of the “next partial data” itself! ,.
[0151] しかし、文字 Aを含む「前の部分データ」の処理結果と合わせて見る場合、すなわち 、「前の部分データ」の処理結果の行と、「次の部分データ」の処理結果の行とを、単 純に並べて表示させる場合、そのつながり部分において分割の影響が表れ、部分デ ータの意味する内容が損なわれている場合が出てくる。  [0151] However, when viewed together with the processing result of the "previous partial data" including the character A, that is, the row of the processing result of the "previous partial data" and the row of the processing result of the "next partial data" When they are simply displayed side-by-side, the effect of the division appears at the connection, and the meaning of the partial data may be lost.
[0152] 例えば「文字 A」が改行コードで無い場合、「文字 A」の次の「文字 B」が、突然、次 の行の行頭に配置されていることになり、改行がされているように見えてしまう。しかし 、文書データとしてそこに改行コードの文字は存在しないのだから、合わせた処理結 果には各部分データを単独に処理した影響が表れていることになる。  [0152] For example, if "Character A" is not a line feed code, "Character B" next to "Character A" is suddenly placed at the beginning of the next line. It looks like. However, since the character of the line feed code does not exist there as document data, the combined processing result shows the effect of processing each partial data independently.
[0153] なお一般に、前の順番の部分データの処理結果から、後の順番の部分データの処 理結果に影響が及ぶ、あるいは、前の順番の部分データが、後の順番の部分データ の処理結果に影響を与える場合がほとんどだ力 逆の場合もありえる。  [0153] In general, the processing result of the partial data in the previous order affects the processing result of the partial data in the subsequent order, or the partial data in the previous order is processed in the processing of the partial data in the subsequent order. In most cases, the result is affected.
[0154] 「階層構造」は「木構造」とも呼ばれ、データの要素の関係を、分岐した木の形の構 造として管理する状態をいう。分岐は細力べなるだけであり、分岐した先同士が関係 を持ち合うことはない (持ち合う場合は「ネットワーク構造」と言う)。一般に、分岐して 細かくなつたデータが属する階層を「下の層」、分岐元のデータが属する階層を「上 の層」と、上下関係で呼ぶことが多い。  [0154] The "hierarchical structure" is also called a "tree structure" and refers to a state in which the relationship between data elements is managed as a branched tree-shaped structure. Branching is only a matter of detail, and the branches do not share a relationship (when they do, they are called a "network structure"). In general, the hierarchy to which the branched and finely divided data belongs is often referred to as a “lower layer”, and the hierarchy to which the original data belongs is referred to as an “upper layer” in a vertical relationship.
[0155] 例えば、後述する HTMLデータのタグによる入れ子構造などが階層構造に相当す る。  [0155] For example, a nested structure of HTML data tags described below corresponds to a hierarchical structure.
[0156] 「順序構造」は、データの要素間に上下関係は無いが、その順番に意味があるよう な場合の構造である。データの要素が同じでも、その順番などが変われば、別のデ ータとなる。例えば、 HTMLデータの OLタグに対し下の層となる LIタグは箇条書き の番号表示を行うが、その番号は LIタグの出現する順番によって決まる。  [0156] The "order structure" is a structure in which there is no hierarchical relationship between data elements, but the order is significant. Even if the elements of the data are the same, if the order changes, the data becomes different. For example, the LI tag, which is the layer below the OL tag of HTML data, displays a bulleted number, and the number is determined by the order in which the LI tag appears.
[0157] なお、階層構造の各層で分岐先に順番を持たせているようなデータ構造も、階層 構造に含まれるとしてもよい。また、階層構造や順序構造のデータ要素の区切りと、 部分データの区切りとは必ずしも一致しなくてもよい。  [0157] It should be noted that a data structure in which a branch destination is given an order in each layer of the hierarchical structure may be included in the hierarchical structure. In addition, the division of the data element of the hierarchical structure or the order structure does not always need to coincide with the division of the partial data.
[0158] 「開始位置の階層構造」とは、電子データの最初力 部分データの開始位置までの データで生成される階層構造を意味する。 HTMLデータの例で言えば、開始位置ま でに出現した 1つ以上のタグを繋げた (並べた)文字列で階層構造を表現できる。一 般に、着目している部分データについて上の層の情報だけでよぐ同じ層、あるいは 下の層、タグに挟まれたテキストデータの情報などは省いても良いことが多い。上の 層の情報だけとは、 HTMLデータの例で言えば、開始位置までに出現した 1つ以上 のタグの内、対応する終了タグの存在しない開始タグだけということになる。 [0158] The "hierarchical structure of the starting position" refers to the initial force of electronic data up to the starting position of the partial data. Means a hierarchical structure generated by data. In the case of HTML data, a hierarchical structure can be expressed by a string of one or more tags connected (arranged) that appeared up to the start position. In general, it is often possible to omit the same layer, which is determined by only the information in the upper layer, or the information in the lower layer, text data sandwiched by tags, etc. for the partial data of interest. In the example of HTML data, only the information in the upper layer means only the start tag having no corresponding end tag among one or more tags that have appeared up to the start position.
[0159] 例えば、図 7Aの HTMLデータの最初の分割データ 400'を例にすると、上の層の 情報とは、 HTMLタグの開始タグく HTML >を指し、下の層の情報とは、 fontタグ の開始タグく font color = "red" size = " + 3" >および終了タグく Zfont>を指 す。 [0159] For example, taking the first divided data 400 'of the HTML data in Fig. 7A as an example, the information of the upper layer indicates the start tag of the HTML tag, that is, HTML>, and the information of the lower layer is font Specifies the start tag of the tag font color = "red" size = "+3"> and the end tag of Zfont>.
[0160] 「終了位置の階層構造」とは、部分データの終了位置から電子データの最後までの データで生成される階層構造を意味する。 HTMLデータの例で言えば、終了位置 以降に出現する 1つ以上のタグを繋げた文字列で階層構造を表現できる。一般に、 着目している部分データについて上の層の情報だけでよぐ同じ層、あるいは下の層 、タグに挟まれたテキストデータの情報などは省いても良いことが多い。上の層の情 報だけとは、 HTMLデータの例で言えば、終了位置以降に出現する 1つ以上のタグ の内、対応する開始タグの存在しない終了タグだけということになる。  [0160] The "hierarchical structure of the end position" means a hierarchical structure generated from data from the end position of the partial data to the end of the electronic data. Speaking of the example of HTML data, the hierarchical structure can be represented by a character string that connects one or more tags that appear after the end position. In general, it is often possible to omit the same layer, which is obtained only by the information in the upper layer, or the information in the lower layer, or the text data sandwiched by tags, for the partial data of interest. Only the information in the upper layer means, in the example of HTML data, only one end tag having no corresponding start tag among one or more tags appearing after the end position.
[0161] 「開始位置の順序構造」や「終了位置の順序構造」に関しても、対象とするデータ範 囲は階層構造と同じである。階層構造と違って上下の層は存在しないが、データ範 囲に出てくる情報が順序構造の対象となる。階層構造でも、同じ層や下の層の情報 まで含めた情報で階層構造を構成すれば、階層構造を順序構造の情報を含んだ形 にできる。  [0161] Regarding "ordered structure of start position" and "ordered structure of end position", the target data range is the same as the hierarchical structure. Unlike the hierarchical structure, there is no upper or lower layer, but the information that appears in the data range is the subject of the sequential structure. Even in a hierarchical structure, if the hierarchical structure is composed of information including the information of the same layer and lower layers, the hierarchical structure can include the information of the order structure.
[0162] 例えば、 HTMLデータの例で言えば、複数の LIタグの層は、 OLタグの層の下の 層となるが、対応する終了タグが存在しても省かずに階層構造の情報に含めればよ い。この場合、 OLタグの層に部分データの分割境界があつたとしても、後の部分デ ータの開始位置の順序構造の情報には、前の部分データの LIタグが含まれるので、 LIタグの出現する順序の情報を得ることができるようになる。  [0162] For example, in the case of HTML data, the layers of a plurality of LI tags are layers below the layer of the OL tags. Just include it. In this case, even if there is a division boundary of the partial data in the layer of the OL tag, the information on the order structure of the start position of the subsequent partial data includes the LI tag of the previous partial data. Can be obtained in the order in which appears.
[0163] 「表示レイアウト」とは、文字や画像などの「表示レイアウト要素」の集まりからなるも のであり、表示手段や印刷手段などの出力手段に出力して、ユーザーが視覚的に認 知することができるようにした表示レイアウト要素の配置情報である。一般に、表示レ ィアウトは、各表示レイアウト要素の位置や大きさ、出力する時の形態などの情報を 持っている。 [0163] A "display layout" is a collection of "display layout elements" such as characters and images. This is layout information of display layout elements output to an output unit such as a display unit or a printing unit so that the user can visually recognize it. In general, the display layout has information such as the position and size of each display layout element and the output format.
[0164] 「表示設定」とは、例えば、表示する文字の種類や大きさ、表示レイアウトを生成す る範囲(一般に表示手段の大きさに制約される)、などである。これらの設定を変える ことで、生成される表示レイアウトは変わる。但し、表示レイアウトが変わっても、通常、 各表示レイアウト要素の位置や大きさが変わるだけで、文書データの表現する中身( 文字情報、画像情報など)が変わる訳ではない。  [0164] The "display settings" include, for example, the type and size of characters to be displayed, a range for generating a display layout (generally limited by the size of the display means), and the like. By changing these settings, the generated display layout changes. However, even if the display layout changes, usually only the position and size of each display layout element changes, but the contents (character information, image information, etc.) expressed by the document data do not change.
[0165] 「最大データサイズ」は、標準データサイズ同様、予め決まっている値、あるいはュ 一ザ一などに入力してもらう値、あるいは所定の計算方法によって得られる値などに なる。通常、最大データサイズは、省リソース性や処理速度の高速性等を考慮して、 部分データとして最大限許容されるデータサイズにしておく。これは処理する装置の 処理能力や処理の目的などから、ユーザーなどが決める。  The “maximum data size” is a predetermined value, a value input to a user or the like, a value obtained by a predetermined calculation method, or the like, like the standard data size. Normally, the maximum data size is set to a data size that is the maximum allowable as partial data in consideration of resource saving and high processing speed. This is determined by the user based on the processing capacity of the processing device and the purpose of the processing.
[0166] 「依存関係」とは、どの部分データ間で処理結果に影響があるかと 、うことを示す関 係である。  [0166] The "dependency" is a relationship indicating which partial data has an effect on the processing result.
[0167] 「依存関係データ」は、処理補助データ同様、電子データに付けカ卩えた形にしても 良 、し、電子データとは独立したファイルなどの形式で記録してぉ 、ても良 、。  [0167] Like the processing auxiliary data, the "dependency data" may be added to the electronic data, and may be recorded in a format such as a file independent of the electronic data. .
[0168] 「行」とは、ここでは、表示レイアウト要素の集まりであり、一般に、横一列あるいは縦 一列に並んで配置されている表示レイアウト要素力もなる。全ての表示レイアウト要素 はいずれかの行に属するとする力 回り込み画像のように、複数の行に関わる表示レ ィアウト要素は、分割して各行に属するようにする力 行とは別に管理するようにする  [0168] The "row" here is a group of display layout elements, and generally includes display layout elements arranged in a horizontal row or a vertical row. All display layout elements belong to one row.As in wraparound images, display layout elements related to multiple rows should be managed separately from power rows that are divided and belong to each row. Do
[0169] 「行頭」とは、表示レイアウト要素の行への通常の配置方法で、最初に配置する位 置である。一般に、横一列に配置する横行の場合は左端、縦一列に配置する縦行の 場合は上端となる。なお、所望の部分データの最初の表示レイアウト要素が、回り込 み画像のような特殊な配置を行う表示レイアウト要素や、行とは別管理する表示レイ アウト要素は、行頭から表示されるかどうかの判断対象とはせず、行に配置する次の 通常の表示レイアウト要素 (文字など)を判断対象とする。 [0169] "Beginning of line" is a position where display layout elements are first arranged in a normal arrangement method on a line. In general, the left end is for horizontal rows arranged in a horizontal line, and the upper end is for vertical rows arranged in a vertical line. Whether the first display layout element of the desired partial data is a display layout element that performs a special arrangement such as a wraparound image or a display layout element that is managed separately from a line is displayed from the beginning of the line. Next line to be placed in the row Normal display layout elements (characters, etc.) are to be judged.
[0170] (データ生成装置の構成)  (Configuration of Data Generation Device)
図 1は、本発明の実施の一形態に係るデータ生成方法を実施するデータ生成装置 を示す構成図である。  FIG. 1 is a configuration diagram illustrating a data generation device that performs a data generation method according to an embodiment of the present invention.
[0171] すなわち、データ生成装置の要部を、電子データ取得手段 1、影響判断手段 2、分 割境界データ生成手段 3、分割データ生成手段 4、処理補助データ生成手段 5、依 存関係データ生成手段 6、標準内非依存境界抽出手段 7、標準外非依存境界抽出 手段 8、部分データサイズ判断手段 9、第 1分割境界抽出手段 10、第 2分割境界抽 出手段 11、および第 3分割境界抽出手段 12、の主要な機能ブロックに展開して示す ことができる。  [0171] That is, the main parts of the data generation device are divided into electronic data acquisition means 1, influence determination means 2, division boundary data generation means 3, divided data generation means 4, processing auxiliary data generation means 5, and dependency relation data generation. Means 6, standard-independent boundary extraction means 7, non-standard-independent boundary extraction means 8, partial data size determination means 9, first division boundary extraction means 10, second division boundary extraction means 11, and third division boundary The extraction means 12 can be expanded and shown in the main functional blocks.
[0172] 図 2は、図 1の各手段 1一 12を具体的に実現する装置の構成例である。  FIG. 2 is a configuration example of an apparatus that specifically realizes each of the units 111 to 12 in FIG.
[0173] CPU (central processing unit) 70は、影響判断手段 2、分割境界データ生成手 段 3、分割データ生成手段 4、処理補助データ生成手段 5、依存関係データ生成手 段 6、標準内非依存境界抽出手段 7、標準外非依存境界抽出手段 8、部分データサ ィズ判断手段 9、第 1分割境界抽出手段 10、第 2分割境界抽出手段 11、第 3分割境 界抽出手段 12として機能し、これら各手段 2— 12の処理手順が記述されたプロダラ ムを主記憶 74、外部記憶 75、通信デバイス 77を介したネットワーク先など力も得る。 なお、 CPU70は、必要なデータの読み出しや転送などのために、電子データ取得 手段 1としての機能も担っている。 [0173] The CPU (central processing unit) 70 includes the influence determination means 2, the division boundary data generation means 3, the division data generation means 4, the processing auxiliary data generation means 5, the dependency data generation means 6, and the standard independent. Boundary extraction means 7, non-standard independent boundary extraction means 8, partial data size determination means 9, first division boundary extraction means 10, second division boundary extraction means 11, third division boundary extraction means 12 A program in which the processing procedure of each of these means 2-12 is described can be obtained from a main memory 74, an external memory 75, a network destination via a communication device 77, and the like. Note that the CPU 70 also has a function as electronic data acquisition means 1 for reading and transferring necessary data.
[0174] また、 CPU70は、 CPU70を含めてバス 79を通じ相互に接続されたディスプレイ 7 1、マウス 72、タブレット 73、主記憶 74、外部記憶 75、ボタン 76、通信デバイス 77、 キーボード 78、および Zまたはスピーカ 80とデータのやりとりを行いながら、処理を 行う。 [0174] The CPU 70 includes the display 71, the mouse 72, the tablet 73, the main memory 74, the external memory 75, the button 76, the communication device 77, the keyboard 78, and the Z connected to each other via the bus 79 including the CPU 70. Alternatively, the processing is performed while exchanging data with the speaker 80.
[0175] なお、データのやりとりは、ノ ス 79を介して行う以外にも、通信ケーブルや無線通信 装置などデータを送受信できるものを介して行ってもよい。また、各手段 2— 12の実 現手段としては、 CPUに限らず、 DSP(digital signal processor)や処理手順が回 路として組み込まれて 、るロジック回路などを用いることもできる。  [0175] The data exchange may be performed via a communication cable or a wireless communication device such as a wireless communication device, in addition to via the node 79. The means for realizing each of the means 2-12 is not limited to the CPU, but may be a DSP (digital signal processor) or a logic circuit in which a processing procedure is incorporated as a circuit.
[0176] ディスプレイ 71は、通常はグラフィックカードなどと組み合わされて実現され、グラフ イツクカード上に VRAM (video random access memory)を有し、 VRAM上のデ ータを表示信号に変換して、モニターなどのディスプレイ (表示 Z出力媒体)に送り、 ディスプレイは表示信号を画像として表示する。 [0176] The display 71 is usually realized in combination with a graphic card or the like. It has VRAM (video random access memory) on the IC card, converts the data in VRAM into a display signal, sends it to a display such as a monitor (display Z output medium), and the display displays the display signal as an image I do.
[0177] ユーザーの指示を入力する手段として、マウス 72、タブレット 73、ボタン 76、キーボ ード 78などがあり、ユーザーの指示はバス 79を介して各手段 1一 12に入力される。 この他にもマイクによる音声入力など、様々な入力手段が使用可能である。マウス 72 は、マウスの移動方向と移動距離を検出する検出機器とボタンなど力もなる。タブレツ ト 73は、ペンとペン位置を検出する検出機器カゝらなる。ボタン 76は、メカ-カルもしく は電子的なスィッチなどからなる。キーボード 78は、ボタン(キー)の集まりからなり、 押下したキーに応じた信号を送出する。  [0177] As means for inputting user instructions, there are a mouse 72, a tablet 73, a button 76, a keyboard 78, and the like. The user's instruction is input to each means 111 through a bus 79. In addition, various input means such as voice input using a microphone can be used. The mouse 72 also functions as a detecting device and a button for detecting the moving direction and the moving distance of the mouse. The tablet 73 includes a pen and a detection device for detecting the pen position. Button 76 may be a mechanical or electronic switch. The keyboard 78 is composed of a group of buttons (keys) and sends out a signal corresponding to the pressed key.
[0178] 主記憶 74は、通常は DRAM (dynamic random access memory)やフラッシュメ モリなどのメモリデバイスで構成される。なお、 CPU内部に含まれるメモリやレジスタ なども一種の主記憶として解釈してもよ ヽ。  [0178] The main memory 74 is usually configured by a memory device such as a dynamic random access memory (DRAM) or a flash memory. Note that memories and registers included in the CPU may be interpreted as a kind of main memory.
[0179] 外部記憶 75は、 HDD (hard disk drive)や PC (personal computer)カードなど の装脱着可能な記憶手段である。あるいは CPU70とネットワークを介して有線また は無線で接続された他のネットワーク機器に取り付けられた主記憶や外部記憶を外 部記憶 75として用いることもできる。  [0179] The external storage 75 is a removable storage means such as a hard disk drive (HDD) or a personal computer (PC) card. Alternatively, a main memory or an external memory attached to another network device connected by wire or wirelessly to the CPU 70 via a network can be used as the external memory 75.
[0180] 通信デバイス 77は、ネットワークインターフェースカードなどにより実現され、無線や 有線などにより接続された他のネットワーク機器とデータをやりとりする。  [0180] The communication device 77 is realized by a network interface card or the like, and exchanges data with another network device connected wirelessly or by wire.
[0181] スピーカ 80は、ノ ス 79などを介して送られて来る音声データを音声信号として解釈 し、音声として出力する。出力される音声は、単波長の単純な音の場合もあるし、音 楽や人間の音声など複雑な場合もある。出力する音声が予め決まっている場合、送 られて来るデータは音声信号ではなぐ単なるオン、オフの動作制御信号だけという 場合もある。  [0181] The speaker 80 interprets the audio data transmitted via the node 79 or the like as an audio signal and outputs it as audio. The output voice may be a simple sound of a single wavelength, or it may be complex such as music or human voice. If the audio to be output is predetermined, the transmitted data may be only an on / off operation control signal instead of an audio signal.
[0182] 次に、図 1の各手段 1一 12を各手段間のデータ授受の観点力も説明する。  [0182] Next, the viewpoint of data transmission / reception between the respective means 11 and 12 in Fig. 1 will also be described.
[0183] なお、各手段間でのデータのやりとりは、特に注釈なく「 * *手段から得る」、「 * * 手段へ送る(渡す)」と 、う表現をして 、る時は、主にバス 79を介してデータをやりとり しているとする。その際、直接各手段間でデータのやりとりをする場合もあれば、主記 憶 74や外部記憶 75、通信デバイス 77を介したネットワーク先などを間に挟んでデー タをやりとりする場合もある。 [0183] The data exchange between each means is expressed as "** from the means" or "** sent (passed) to the means" without any particular annotation. Assume that data is exchanged via bus 79. At this time, data may be directly exchanged between each means, In some cases, data is exchanged with a memory 74, an external memory 75, a network destination via the communication device 77, etc. interposed therebetween.
[0184] 電子データ取得手段 1は、例えば CPU70と主記憶 74または外部記憶 75などとで 構成され、電子データを、主記憶 74、外部記憶 75または通信デバイス 77を介したネ ットワーク先など力も得る。この場合、予め用意してある電子データを読み出すことに なる。 [0184] The electronic data acquisition means 1 is composed of, for example, a CPU 70 and a main storage 74 or an external storage 75, and also obtains electronic data from a main storage 74, an external storage 75, or a network destination via the communication device 77. . In this case, electronic data prepared in advance is read.
[0185] なお、電子データ取得手段 1は、例えば、電子データが暗号ィ匕されている場合に、 暗号化された電子データを、主記憶 74または外部記憶 75など力も読み出し、復号し て読み込むこともある。  [0185] For example, when the electronic data is encrypted, the electronic data acquisition means 1 reads out the encrypted electronic data from the main memory 74 or the external memory 75, and decrypts and reads it. There is also.
[0186] 得られた電子データは、影響判断手段 2、分割データ生成手段 4、標準内非依存 境界抽出手段 7、標準外非依存境界抽出手段 8、および第 3分割境界抽出手段 12 に送られる。  [0186] The obtained electronic data is sent to the influence determining means 2, the divided data generating means 4, the non-standard independent boundary extracting means 7, the non-standard independent boundary extracting means 8, and the third divided boundary extracting means 12. .
[0187] 標準内非依存境界抽出手段 7としての CPU70は、主記憶 74、外部記憶 75、また は通信デバイス 77を介したネットワーク先など力も読み取られるプログラムに基づき、 データサイズが標準データサイズ以下の部分データに電子データを分割する 1つ乃 至複数の標準内非依存分割境界を求める。より具体的には、標準内非依存分割境 界は、電子データ取得手段 1から得られる電子データの部分データの候補に関して 、部分データサイズ判断手段 9から得られるデータサイズに関する判断と、影響判断 手段 2から得られる分割の影響に関する判断とから総合的に判断され求められる。求 められた標準内非依存分割境界は、分割境界データ生成手段 3、分割データ生成 手段 4、および第 1分割境界抽出手段 10に送られる。  [0187] The CPU 70 as the standard-independent non-independent boundary extraction means 7 has a data size smaller than or equal to the standard data size based on a program in which power is read such as a main memory 74, an external memory 75, or a network destination via the communication device 77. The electronic data is divided into partial data. More specifically, the intra-standard independent division boundary is used for determining the data size obtained from the partial data size determination means 9 and the influence determination means for the partial data candidates of the electronic data obtained from the electronic data acquisition means 1. It is determined and obtained comprehensively from the judgment on the influence of the division obtained from 2. The obtained intra-standard independent division boundary is sent to division boundary data generation means 3, division data generation means 4, and first division boundary extraction means 10.
[0188] 部分データの候補の求め方は、プログラム上で固定的に決められている場合もある し、求め方の一部や、判断基準として使われる値 (パラメータ)などが、ユーザーに指 示される場合もある。ユーザーからの指示は、例えばディスプレイ 71上に表示された 指示画面を見て、マウス 72、キーボード 78、ボタン 76、またはタブレット 73などの入 力機器を使って行われる。図 3は、指定最大データサイズ、指定標準データサイズを ユーザーが指定するウィンドウ表示の例である。  [0188] The method of obtaining partial data candidates may be fixedly determined in a program, or a part of the method or a value (parameter) used as a criterion is instructed to the user. In some cases. The instruction from the user is performed using an input device such as a mouse 72, a keyboard 78, a button 76, or a tablet 73 while viewing an instruction screen displayed on the display 71. Figure 3 is an example of a window display where the user specifies the specified maximum data size and the specified standard data size.
[0189] 標準外非依存境界抽出手段 8としての CPU70は、上記と同様に読み取られるプロ グラムに基づき、データサイズが予め定めた最大データサイズ以下の部分データに 電子データを分割する 1つ乃至複数の標準外非依存分割境界を求める。より具体的 には、標準外非依存分割境界は、電子データ取得手段 1から得られる電子データの 部分データの候補に関して、部分データサイズ判断手段 9から得られるデータサイズ に関する判断と、影響判断手段 2から得られる分割の影響に関する判断とから総合 的に判断され求められる。求められた標準外非依存分割境界は、分割境界データ生 成手段 3、分割データ生成手段 4、および第 1分割境界抽出手段 10に送られる。 [0189] The CPU 70 as the non-standard-independent boundary extracting means 8 is a program that is read in the same manner as described above. One or more non-standard independent division boundaries for dividing the electronic data into partial data having a data size equal to or smaller than a predetermined maximum data size are obtained based on the datagram. More specifically, the non-standard-independent division boundary is used for determining the data size obtained from the partial data size determination means 9 and the effect determination means 2 for the partial data candidates of the electronic data obtained from the electronic data acquisition means 1. It is determined comprehensively from the judgment on the effect of the division obtained from the above. The obtained non-standard-independent division boundary is sent to division boundary data generation means 3, division data generation means 4, and first division boundary extraction means 10.
[0190] 第 1分割境界抽出手段 10としての CPU70は、上記と同様に読み取られるプロダラ ムに基づき、標準データサイズに最も近 、データサイズの部分データが得られる標 準内非依存分割境界を求める。標準内非依存分割境界の決定には、標準内非依存 境界抽出手段 7から得られる標準内非依存分割境界に関して、標準内非依存分割 境界部分データサイズ判断手段 9から得られる判断を用いる。求められた標準内非 依存分割境界は、分割境界データ生成手段 3および分割データ生成手段 4に送られ る。 [0190] The CPU 70 as the first division boundary extracting means 10 obtains a standard-independent division boundary closest to the standard data size and from which partial data of the data size can be obtained, based on the program read in the same manner as described above. . For the determination of the standard-independent division boundary, the judgment obtained from the standard-independent division boundary data size judging means 9 with respect to the standard-independent division boundary obtained from the standard-independent boundary extraction means 7 is used. The obtained intra-standard-independent division boundary is sent to division boundary data generation means 3 and division data generation means 4.
[0191] 第 2分割境界抽出手段 11としての CPU70は、上記と同様に読み取られるプロダラ ムに基づき、標準データサイズに最も近いデータ位置の標準外非依存分割境界を求 める。標準外非依存分割境界の決定には、標準外非依存境界抽出手段 8から得ら れる標準外非依存分割境界に関して、部分データサイズ判断手段 9から得られる判 断が用いられる。求められた分割境界は、分割境界データ生成手段 3および分割デ ータ生成手段 4に送られる。  [0191] The CPU 70 as the second division boundary extraction means 11 obtains a nonstandard non-standard division boundary at a data position closest to the standard data size based on a program read in the same manner as described above. For the determination of the non-standard-independent division boundary, the judgment obtained from the partial data size determination means 9 regarding the non-standard-independent division boundary obtained from the non-standard-independent boundary extraction means 8 is used. The obtained division boundaries are sent to division boundary data generation means 3 and division data generation means 4.
[0192] 第 3分割境界抽出手段 12としての CPU70は、上記と同様に読み取られるプロダラ ムに基づき、データサイズが最大データサイズを超えな ヽ部分データが得られる分割 境界を求める。ただし、電子データ取得手段 1から得られる電子データの部分データ の候補に関して、標準内非依存境界抽出手段 7でも標準外非依存境界抽出手段 8 でも分割境界が抽出できな!ヽ場合、部分データの処理結果に分割の影響が表れる ことを第 3分割境界抽出手段 12は容認する。求められた分割境界は、分割境界デー タ生成手段 3および分割データ生成手段 4に送られる。  [0192] The CPU 70 as the third division boundary extraction means 12 obtains a division boundary from which partial data whose data size exceeds the maximum data size is obtained, based on the program read in the same manner as described above. However, regarding the partial data candidates of the electronic data obtained from the electronic data acquisition means 1, neither the standard-independent non-dependent boundary extraction means 7 nor the non-standard-independent boundary extraction means 8 cannot extract the division boundary! The third division boundary extraction means 12 accepts that the effect of the division appears in the processing result. The obtained division boundaries are sent to division boundary data generation means 3 and division data generation means 4.
[0193] なお、標準内非依存境界抽出手段 7、標準外非依存境界抽出手段 8、第 1分割境 界抽出手段 10、第 2分割境界抽出手段 11、および Zまたは第 3分割境界抽出手段 12で分割境界を得る際、各手段 7、 8、 10— 12のうちの一方が、各手段 7、 8、 10— 12のうちの他方の抽出結果を見て、分割境界を抽出するかどうか判断しても良いし、 他の手段の抽出結果に関わらず、各手段 7、 8、 10— 12がそれぞれ分割境界の抽 出を試みてもよい。 [0193] It should be noted that within-standard non-dependent boundary extraction means 7, non-standard non-dependent boundary extraction means 8, first division boundary When obtaining the division boundary by the boundary extraction means 10, the second division boundary extraction means 11, and the Z or the third division boundary extraction means 12, one of the means 7, 8, 10-12 is determined by each of the means 7, 8, , 10-12, the extraction result of the other means may be used to determine whether or not to extract the division boundary. Regardless of the extraction results of the other means, each means 7, 8, 10-12 You may try to extract the division boundaries.
[0194] 前者の場合、抽出された分割境界を利用する側である分割境界データ生成手段 3 または分割データ生成手段 4では、各手段 7、 8、 10— 12のいずれか 1つ力も分割境 界が抽出されるだけなので、それを使えばよい。後者の場合は、各手段 7、 8、 10— 1 2のそれぞれ力 抽出される一つ以上の分割境界の内から最も優先度の高い分割境 界を選べばよい。優先度は、抽出する手段によって予め決めておいてもよいし、何ら かの評価関数などを使って優先度を数値ィ匕して求めてもよい。また、優先度をデータ 処理速度の高速性および Zまたは省リソース性の観点で設定することが、本発明の 目的に照らして好ましい。  [0194] In the former case, the division boundary data generation unit 3 or division data generation unit 4, which is the side that uses the extracted division boundary, applies any one of the means 7, 8, 10-12 to the division boundary. Is only extracted, so you can use it. In the latter case, the highest-priority division boundary may be selected from one or more division boundaries that are force-extracted by each of the means 7, 8, and 10-12. The priority may be determined in advance by the extracting means, or may be obtained by numerically denoting the priority using some evaluation function or the like. In addition, it is preferable to set the priority from the viewpoints of high data processing speed and Z or resource saving in view of the object of the present invention.
[0195] 分割境界データ生成手段 3としての CPU70は、上記と同様に読み取られるプログ ラムに基づき、標準内非依存境界抽出手段 7、標準外非依存境界抽出手段 8、第 1 分割境界抽出手段 10、第 2分割境界抽出手段 11、および Zまたは第 3分割境界抽 出手段 12から得られる分割境界データを、主記憶 74、外部記憶 75、または通信デ バイス 77を介したネットワーク先などに、例えばファイルなどの形式で記録する。  [0195] The CPU 70 as the division boundary data generating means 3 is based on the program read in the same manner as described above, and includes the standard-independent boundary extraction means 7, the non-standard-independent boundary extraction means 8, the first division boundary extraction means 10 The divided boundary data obtained from the second divided boundary extracting means 11 and Z or the third divided boundary extracting means 12 is stored in a main storage 74, an external storage 75, or a network destination via a communication device 77, for example. Record in a format such as a file.
[0196] 生成される分割境界データは、処理補助データ生成手段 5および Zまたは依存関 係データ生成手段 6などに送られる。  [0196] The generated division boundary data is sent to the processing auxiliary data generation means 5 and Z or the dependency relation data generation means 6, and the like.
[0197] なお、分割境界データ生成手段 3は、分割境界データをファイルなどの形式で記録 する場合、情報を取り出し易 、ようにヘッダ情報やデータ構造情報などを付加したり 、暗号化したり、電子署名を付加したり、などの処理を行う場合もある。ヘッダ情報や データ構造情報などについては、後で説明する。これらの処理は、分割境界データ 生成手段 3に限らず、分割データ生成手段 4、処理補助データ生成手段 5、および依 存関係データ生成手段 6などでも同様に行われる場合がある。  When the division boundary data is recorded in the form of a file or the like, the division boundary data generating means 3 adds header information or data structure information, etc., encrypts, In some cases, a process such as adding a signature is performed. Header information and data structure information will be described later. These processes are not limited to the division boundary data generation means 3, but may be similarly performed by the division data generation means 4, the processing auxiliary data generation means 5, the dependency relation data generation means 6, and the like.
[0198] 分割データ生成手段 4としての CPU70は、上記と同様に読み取られるプログラムに 基づき、標準内非依存境界抽出手段 7、標準外非依存境界抽出手段 8、第 1分割境 界抽出手段 10、第 2分割境界抽出手段 11、および Zまたは第 3分割境界抽出手段 12から得られる分割境界で、電子データ取得手段 1から得られる電子データを分割 し、部分データを生成する前段階として、分割データを生成する。生成される分割デ ータは、主記憶 74、外部記憶 75、または通信デバイス 77を介したネットワーク先など に、例えばファイルなどの形式で記録される。生成される分割データは、処理補助デ ータ生成手段 5および Zまたは依存関係データ生成手段 6などに送られる。 [0198] The CPU 70 as the divided data generating means 4, based on the program read in the same manner as described above, uses the standard-independent boundary extracting means 7, the non-standard-independent boundary extracting means 8, the first divided boundary Before dividing the electronic data obtained from the electronic data acquisition means 1 with the division boundaries obtained from the boundary extraction means 10, the second division boundary extraction means 11, and the Z or third division boundary extraction means 12, and generating partial data As a stage, divided data is generated. The generated divided data is recorded in a format such as a file on the main memory 74, the external memory 75, or a network destination via the communication device 77, for example. The generated divided data is sent to the processing auxiliary data generating means 5 and Z or the dependency data generating means 6 or the like.
[0199] なお、通常、分割境界データ生成手段 3と分割データ生成手段 4が両方とも処理を 実行することは少なぐ後で説明する分割データの生成の形態に応じてどちらか片方 だけの処理が実行されることが多 、。  [0199] Normally, it is rare that both the division boundary data generation means 3 and the division data generation means 4 execute processing. Only one of the processings depends on the division data generation mode described later. Often performed.
[0200] 処理補助データ生成手段 5としての CPU70は、上記と同様に読み取られるプログ ラムに基づき、前記処理補助データを、その着目している分割データとそれ以外の 分割データとから生成する。前記処理補助データは、分割データを部分データとす るには足りない情報、すなわち分割データを単独で処理して分割データの意味する 内容が損なわれない結果を得るのに足りない情報である。生成される処理補助デー タは、主記憶 74、外部記憶 75、または通信デバイス 77を介したネットワーク先などに 、例えばファイルなどの形式で記録される。  [0200] The CPU 70 as the processing auxiliary data generating means 5 generates the processing auxiliary data from the focused divided data and the other divided data based on the program read in the same manner as described above. The processing auxiliary data is information that is not enough to make the divided data into partial data, that is, information that is not enough to process the divided data by itself and obtain a result that does not impair the meaning of the divided data. The generated processing auxiliary data is recorded in the main storage 74, the external storage 75, or a network destination via the communication device 77, for example, in a file format.
[0201] 分割データは、分割データ生成手段 4から直接得る形態でもよ ヽし、電子データ取 得手段 1から得られる電子データと、分割境界データ生成手段 3から得られる分割境 界データとから間接的に得る形態でもよい。間接的に得るとは、電子データを分割境 界データに基づいて、部分的に切り出して読み込むなどして、処理補助データ生成 手段 5内で分割データを生成する処理などを指す。  [0201] The divided data may be in a form directly obtained from the divided data generating means 4, and indirectly obtained from the electronic data obtained from the electronic data obtaining means 1 and the divided boundary data obtained from the divided boundary data generating means 3. It may be a form that can be obtained in a targeted manner. The term “indirectly” refers to a process of generating divided data in the processing auxiliary data generating unit 5 by partially cutting out and reading electronic data based on the dividing boundary data.
[0202] 依存関係データ生成手段 6としての CPU70は、上記と同様に読み取られるプログ ラムに基づき、前記依存関係データを、部分データから生成する。前記依存関係デ ータは、部分データの処理結果間に依存関係のある部分データの情報である。部分 データの取得方法に関しては、処理補助データ生成手段 5が分割データを取得する 方法と同様である。  [0202] The CPU 70 as the dependency data generation means 6 generates the dependency data from the partial data based on the program read in the same manner as described above. The dependency data is information on partial data having a dependency between the processing results of the partial data. The method for acquiring the partial data is the same as the method by which the processing auxiliary data generating means 5 acquires the divided data.
[0203] 生成される依存関係データは、主記憶 74、外部記憶 75、または通信デバイス 77を 介したネットワーク先などに、例えばファイルなどの形式で記録される。 [0204] なお、分割境界データ生成手段 3で生成される分割境界データ、分割データ生成 手段 4で生成される分割データ、処理補助データ生成手段 5で生成される処理補助 データ、依存関係データ生成手段 6で生成される依存関係データの各種データは、 それぞれ別個のファイルとして生成される場合もあるし、データ同士を一緒にしたファ ィルとして生成される場合もある。また、分割データ以外のデータは、電子データのフ アイルなどに追加する形で記録することもある。 The generated dependency data is recorded in, for example, a file format on the main memory 74, the external memory 75, or a network destination via the communication device 77. [0204] The division boundary data generated by the division boundary data generation means 3, the division data generated by the division data generation means 4, the processing auxiliary data generated by the processing auxiliary data generation means 5, the dependency data generation means The various data of the dependency data generated in 6 may be generated as separate files, or may be generated as a file in which the data are combined. In addition, data other than the divided data may be recorded in a form that is added to a file of electronic data.
[0205] なお、 CPU70は、制御手段 8によって、プログラムまたはユーザー入力に従って指 定される分割データおよびその表示範囲について、表示レイアウト (処理結果)を生 成するレイアウト生成手段として機能することもできる。また、レイアウト生成時には、 処理補助データ生成手段 5から得た処理補助データを、分割データと共に使う場合 もある。生成された表示レイアウトは、主記憶 74または外部記憶 75、あるいは通信デ バイス 77を介したネットワーク先の機器などに送られて保存されたり、ディスプレイ 71 に送られて表示されたりする。  [0205] Note that the CPU 70 can also function as a layout generation unit that generates a display layout (processing result) for the divided data and the display range specified according to a program or user input by the control unit 8. At the time of layout generation, the processing auxiliary data obtained from the processing auxiliary data generating means 5 may be used together with the divided data. The generated display layout is sent to and stored in the main storage 74 or the external storage 75, or to a device at the network destination via the communication device 77, or is sent to the display 71 for display.
[0206] さらに、 CPU70は、各手段 1一 12に必要な制御命令や指示を与え、また、必要な データを各手段 1一 12と双方向でやりとりする統括的な制御手段 8として機能するこ とちある。  Further, the CPU 70 gives necessary control commands and instructions to each means 111, and functions as a general control means 8 for bidirectionally transmitting and receiving necessary data to and from each means 111. There is.
[0207] さらに、 CPU70は、作成した表示レイアウトをディスプレイ 71などに表示するレイァ ゥト表示手段として機能することもできる。なお、ここではディスプレイ 71への表示とし て説明しているが、例えばプリンターへの印刷や、表示レイアウトを記録したファイル へのファイル出力などの場合もある。  [0207] Further, the CPU 70 can also function as layout display means for displaying the created display layout on the display 71 or the like. Here, the description is made as a display on the display 71. However, for example, there may be a case of printing on a printer or outputting a file to a file in which a display layout is recorded.
[0208] (データおよびデータ構造)  [0208] (Data and Data Structure)
次に、データやデータ構造について説明する。  Next, data and a data structure will be described.
[0209] 図 4Aおよび図 4Bは、元データとしての電子データの例を説明する説明図である。  FIGS. 4A and 4B are explanatory diagrams for explaining examples of electronic data as original data.
ここでは、表示設定によって表示レイアウトが変わる文書データの例として、 HTML データ(正確には XHTMLデータ)を使って説明する。枠線の中が HTMLデータで あり、その左側の数字は、説明の為の行番号である。  Here, HTML data (exactly XHTML data) will be described as an example of document data whose display layout changes depending on the display settings. The HTML data is inside the frame, and the number to the left is the line number for explanation.
[0210] 図 5Aは、図 4Aの HTMLデータを WWWブラウザで、ある表示設定の時に表示さ せた例である。また、図 5Bは、図 4Bの HTMLデータを WWWブラウザで、ある表示 設定の時に表示させた例である。ここでは WWWブラウザのウィンドウの大きさは充分 大きぐ図 4Aまたは図 4Bの HTMLデータを一度に表示しきれたとする。 [0210] Fig. 5A is an example in which the HTML data of Fig. 4A is displayed by a WWW browser at a certain display setting. Fig. 5B shows the HTML data of Fig. 4B with a WWW browser. This is an example displayed at the time of setting. Here, it is assumed that the WWW browser window is sufficiently large to display the HTML data of FIG. 4A or 4B at a time.
[0211] 図 6Aは、図 5Aの表示設定を、基準となる文字の大きさを 1. 5倍、表示ウィンドウの 横幅および縦幅は同じに設定して、図 4Aの HTMLデータを表示させた例である。 図 6Bについても同様である。各文字が大きくなつたので、各行の折り返し位置などが 変わっているのが分かる。なお、図 6Aおよび図 6Bでは、図 4Aおよび図 4Bの HTM Lデータ全てを表示しきれないので、先頭の部分だけ表示させている。スクロールバ 一やページめくりボタンなどを使って表示範囲を切り替えれば、表示しきれていない 部分も表示させることは一般に可能である。 [0211] In Fig. 6A, the display setting of Fig. 5A is set to 1.5 times the size of the reference character, and the width and height of the display window are set to be the same, and the HTML data of Fig. 4A is displayed. It is an example. The same applies to FIG. 6B. Since each character has become larger, it can be seen that the wrapping position of each line has changed. In FIG. 6A and FIG. 6B, all the HTML data of FIG. 4A and FIG. 4B cannot be displayed, so only the first part is displayed. By switching the display range using a scroll bar or a page turning button, it is generally possible to display a portion that is not completely displayed.
[0212] 説明の為、 HTMLデータ(正確には XHTMLデータ)の構造について簡単に説明 しておく。前述した「タグ」とは、「く」の文字に始まり、「>」の文字で終わる部分の文 字列のことであり、表示設定を指示する文字列である。例えば図 5Aまたは図 5Bの表 示設定は、図 4Aまたは図 4Bの HTMLデータ中の各種タグによって指定されている [0212] For the purpose of explanation, the structure of HTML data (more precisely, XHTML data) will be briefly described. The “tag” described above is a character string that starts with the character “ku” and ends with the character “>”, and is a character string that instructs display settings. For example, the display settings in Fig. 5A or Fig. 5B are specified by various tags in the HTML data in Fig. 4A or Fig. 4B.
[0213] 一般に、タグは開始タグと終了タグの組からなり、終了タグは「く」の後に「Z」の文 字が続く。タグはそれぞれ「タグ名」を持ち、開始タグは「く」 +「タグ名」 +「>」、終了 タグは「く Z」 +「タグ名」 +「 >」と 、う形式を取る。 [0213] Generally, a tag is made up of a pair of a start tag and an end tag, and the end tag has a character "Z" after "ku". Each tag has a "tag name", the start tag is "ku" + "tag name" + ">", and the end tag is "ku Z" + "tag name" + ">".
[0214] 例えば、図 4Aまたは図 4Bの最初の行は開始タグ「く HTML >」で始まり、最後の 行は、終了タグ「く ZHTML>」で終了している。なお、本明細書では、く HTML >と< ZHTML>の組から成るような各タグをタグ名を使って、「HTMLタグ」などと いう形で呼ぶことにする。  [0214] For example, the first line in Fig. 4A or Fig. 4B starts with a start tag "kuHTML>", and the last line ends with an end tag "kuZHTML>". In this specification, each tag composed of a pair of HTML> and <ZHTML> is referred to as a “HTML tag” using a tag name.
[0215] 開始タグは、表示レイアウトを詳細に設定する情報として、「属性」も持つことができ る。属性は、「属性名」と「属性値」からなり、  [0215] The start tag can also have an "attribute" as information for setting the display layout in detail. An attribute consists of an "attribute name" and an "attribute value"
「くタグ名 属性名 1 = "属性値 1" 属性名 2 ="属性値 2" >」 などという形式で、複数の属性を与えることができる。  Multiple attributes can be given in a format such as "ku tag name attribute name 1 =" attribute value 1 "attribute name 2 =" attribute value 2 ">".
[0216] 開始タグと終了タグの間に挟まれた部分力 タグの効力が及ぶ対象である。タグ以 外の部分は「TEXT」である。例えば、図 4の 2, 3行目の「く font color = "red" si ze = " + 3" >How does LCD works?く/ font >」の部分は、「: How does LCD works?」の TEXTが、 fontタグの対象となる。 [0216] Partial force sandwiched between a start tag and an end tag. The part other than the tag is “TEXT”. For example, the line “ku font color =“ red ”si ze =“ +3 ”> How does LCD works? LCD works? Is the target of the font tag.
[0217] 具体的には、 color属性が redなので、文字色が赤となり、 size属性が + 3なので、 基準フォントサイズより 3段階大きなフォントとなる。図 5Aまたは図 5Bでは、上記の T EXTが確かに大きな文字で表示されている。(なお、文字色は白黒印刷画面ではわ 力りにくいので、ここでは黒で示してある力 フルカラーディスプレイ上では赤で表示 されるとする)。 [0217] Specifically, since the color attribute is red, the character color is red, and since the size attribute is +3, the font is three levels larger than the reference font size. In FIG. 5A or FIG. 5B, the above T EXT is certainly displayed in large characters. (Because the text color is hard to understand on a black-and-white print screen, it is assumed that it is displayed in red on a full color display shown in black here.)
[0218] なお、開始タグと終了タグの間に挟むべき TEXTが存在しない場合は、開始タグと 終了タグを一緒にして、「くタグ名 Z>」としてもよい。例えば、図 4Aまたは図 4Bの 3 行目の「く brZ>」(具体的な意味は後述)はこの例である。  [0218] If there is no TEXT to be inserted between the start tag and the end tag, the start tag and the end tag may be put together to form "ku tag name Z>". For example, “ku brZ>” (the specific meaning will be described later) in the third line of FIG. 4A or FIG. 4B is this example.
[0219] HTMLデータのタグは、前述のように、入れ子構造を持つ、階層構造になって 、る 。ここでは、 HTMLデータは、 XHTML (extensible hyper text markup lang uage)形式あるいは XML (extensible markup language)形式に従うとして、入 れ子構造以外は持てな 、としておく。  [0219] As described above, the tags of the HTML data have a nested structure and a hierarchical structure. Here, it is assumed that the HTML data conforms to the XHTML (extensible hypertext markup language) format or the XML (extensible markup language) format, and cannot have any structure other than the nested structure.
[0220] 例えば、 Aタグと Bタグ力 「く A> < B> < ZB> < ZA>」となるのは入れ子構造 なので、正しい階層構造になっている力 「く A> < B> < ZA> < ZB>」は入れ 子構造ではないので、不可とする。なお、タグが入れ子になっている場合、内側のタ グやその TEXTに対しても、外側のタグの効力は及ぶが、同じタグ名のタグや、同じ タグ名の同じ属性名の属性値に関しては、内側のタグの方が一般に優先される。  [0220] For example, since the A tag and B tag power “ku A> <B> <ZB> <ZA>” is a nested structure, the power “ku A> <B> <ZA that has the correct hierarchical structure > <ZB> ”is not allowed because it does not have a nested structure. Note that when tags are nested, the effect of the outer tag extends to the inner tag and its TEXT, but the tags with the same tag name and the attribute values of the same attribute name with the same tag name are not affected. , The inner tag is generally preferred.
[0221] 図 4Aまたは図 4Bの例では、最上位の階層のタグは 1行目と最終行目の HTMLタ グであり、その下の階層は、 2, 3行目の fontタグ、 brタグなど、多数のタグが続く。ま た、 5行目と 16行目の fontタグの下の階層には、 6行目と 15行目の Pタグ (意味は後 述)が存在する。  [0221] In the example of Fig. 4A or Fig. 4B, the tags at the top level are the HTML tags on the first and last lines, and the font layers and br tags on the second and third lines are below. Many tags follow. In the hierarchy below the font tag on the 5th and 16th lines, there are P tags on the 6th and 15th lines (the meaning is described later).
[0222] 次に、図 4Aまたは図 4Bに出てくる fontタグ以外の各タグの機能について簡単に 説明しておく。 HTMLタグは、 HTML文書であることを宣言しているだけで、表示設 定に対する意味はない。 brタグは、表示レイアウト上で改行を行うことを意味する。な お、 HTMLデータ中の改行コードは通常、無視される。 Pタグは、ノ グラフを意味し 、開始タグで多少の垂直スペースと改行、終了タグで改行と多少の垂直スペースとし て表現される。 Pタグによって挿入される垂直スペースは、文字サイズを基準にして設 定することもできるし、一定サイズに固定することもできる。なお、 WWWブラウザによ つてはインデント表示される場合もある力 ここではインデントは無しとして 、る。 Next, the function of each tag other than the font tag shown in FIG. 4A or 4B will be briefly described. The HTML tag only declares that it is an HTML document and has no meaning for display settings. The br tag means that a line feed is performed on the display layout. Line feed codes in HTML data are usually ignored. The P tag means a graph, and is expressed as a slight vertical space and a line feed at the start tag, and as a line feed and a slight vertical space at the end tag. The vertical space inserted by the P tag is set based on the character size. It can be fixed or fixed to a certain size. Indentation may be displayed depending on the WWW browser. Here, there is no indentation.
[0223] 本発明では、分割境界データ、分割データ、処理補助データ、依存関係データな どのデータを生成する力 これらのデータの生成方法の説明の前に、これらのデータ の利用例について簡単に説明する。  In the present invention, the power of generating data such as division boundary data, division data, processing auxiliary data, and dependency data will be briefly described before describing a method of generating these data. I do.
[0224] まず、利用例で使用するデータについて説明する。  First, data used in a usage example will be described.
[0225] 図 7Aは、図 4Aの文書データ 406から、分割の影響を考慮する前に生成された分 割データ 400'— 405'を模式的に説明する説明図である。各分割データ 400'— 40 5'の区切り(折れ線にて示す)は、実際には、分割境界データとして生成されたり、分 割データ 400'— 405'が個別のファイルなどとして生成されたりするのだ力 ここでは 分割の様子を分かりやすくする為、折れ線として示しておく。  [0225] FIG. 7A is an explanatory diagram schematically illustrating division data 400'-405 'generated before considering the influence of division from the document data 406 of Fig. 4A. The division (indicated by a broken line) of each divided data 400'-405 'is actually generated as divided boundary data, or the divided data 400'-405' is generated as an individual file or the like. The power is shown here as a broken line to make it easier to understand the division.
[0226] なお、各分割データ 400'— 405,を処理補助データを使って、それぞれ単独で処 理して表示したときに、表示結果自体に誤りが無いので、各分割データ 400'— 405 'は、処理補助データを使うことで、いずれも部分データになり得る。  [0226] When each of the divided data 400'-405 is independently processed using the processing auxiliary data and displayed, there is no error in the display result itself. Can be partial data by using the processing auxiliary data.
[0227] 図 8は、影響判断手段 2が図 7Aの分割データ 400'— 405'について分割の影響 を判断し、その判断結果に基づき、依存関係データ生成手段 6が生成した依存関係 データ 140'— 145'のデータ構造を説明する説明図である。分割データ 400'— 40 5 'の各々と依存関係データ 140,一 145 'の各々とが対応する。依存関係データ 14 0'— 145'は配列の形となっており、各依存関係データ 140'— 145 'にインデックス 番号でアクセスできるとする。  FIG. 8 shows that the influence determining means 2 determines the influence of the division on the divided data 400 ′-405 ′ of FIG. 7A, and the dependency data 140 ′ generated by the dependency data generating means 6 based on the determination result. FIG. 146 is an explanatory diagram for explaining the data structure of 145 ′. Each of the divided data 400'-405 'corresponds to each of the dependency relationship data 140 and 145'. The dependency data 140'-145 'is in the form of an array, and each of the dependency data 140'-145' can be accessed by an index number.
[0228] ここでは、依存関係データとして、各分割データの処理結果が、直前の分割データ の処理結果から影響を受けるかどうかの情報を記録している。情報は、「0」か「1」で 記録されており、影響を受ける (影響が有る)場合は「1」、影響を受けない (影響が無 い)場合は「0」で記録されている。例えば、依存関係データ 142'を例にすると、その 内容は「1」なので、着目している分割データ 402'の処理結果力 直前の分割データ 401 'の処理結果から影響を受けることを表す。  [0228] Here, information as to whether or not the processing result of each divided data is affected by the processing result of the immediately preceding divided data is recorded as dependency data. Information is recorded as "0" or "1", and is recorded as "1" if affected (affected) or "0" if not affected (no effect) . For example, when the dependency data 142 'is taken as an example, the content is "1", which indicates that the processing result of the focused divided data 402' is affected by the processing result of the immediately preceding divided data 401 '.
[0229] 図 9は、図 7Aの分割データ 400'— 405'力 別の方法で生成された依存関係デ ータ 150— 155のデータ構造を説明する説明図である。分割データ 400'— 405 'の 各々が、依存関係データ 150— 155の各々に対応する。依存関係データ 150— 15 5は配列の形となっており、各依存関係データ 150— 155にインデックス番号でァク セスできるとする。 FIG. 9 is an explanatory diagram illustrating the data structure of the dependency relationship data 150-155 generated by another method of the divided data 400′-405 ′ of FIG. 7A. Split data 400'-405 ' Each corresponds to each of the dependency data 150-155. The dependency data 150-155 is in the form of an array, and each of the dependency data 150-155 can be accessed by an index number.
[0230] ここでは、各分割データの処理結果が影響を受ける最前の分割データの情報を、 依存関係データとして記録している。その情報は、分割データを特定する情報として 記録されており、ここでは分力り易いように、「分割データ 401 '」(依存関係データ 15 2、 153)などと、影響を受ける分割データのデータ番号としている。分割データを特 定する情報としては、その他にも配列のインデックス番号や、分割データのメモリ上の 番地や、分割データのファイル名などが考えられる。  [0230] Here, the information of the divided data before the processing result of each divided data is affected is recorded as dependency data. The information is recorded as information for specifying the divided data. In this example, “divided data 401 ′” (dependency data 152, 153) and the data of the affected divided data are stored so that they can be easily divided. It is a number. Other information that specifies the divided data includes the index number of the array, the address of the divided data in the memory, and the file name of the divided data.
[0231] なお、影響を受ける分割データが存在しな 、場合は、データは空でも 、し、自身 の分割データを特定する情報を記録していてもよい。図 9では、空で記録する場合も ありえることを示す為に、自身の分割データのデータ番号を括弧書きで示してある( 依存関係データ 150、 151、 154、 155)。  [0231] In the case where there is no affected divided data, the data may be empty or information specifying the own divided data may be recorded. In FIG. 9, the data number of the own divided data is shown in parentheses to indicate that the data may be recorded empty (dependency data 150, 151, 154, 155).
[0232] 図 10は、電子データ、分割境界データ、分割データ、処理補助データ、依存関係 データなどを利用するデータ処理装置の外観例を示して!/、る。本体 300上に表示部 兼タブレット 301、ページめくりボタン 302、 303が設けられている。また、タブレットを 操作するペン 304も備えられて 、る。  FIG. 10 shows an example of the appearance of a data processing apparatus that uses electronic data, division boundary data, division data, processing auxiliary data, dependency data, and the like. A display unit / tablet 301 and page turning buttons 302 and 303 are provided on the main body 300. A pen 304 for operating the tablet is also provided.
[0233] ここでは、電子データとして、表示設定によって異なる表示レイアウトを生成できる 文書データを使い、図 10のデータ処理装置は、上記文書データ、分割境界データ、 分割データ、処理補助データおよび依存関係データなどから、必要なデータを用い て表示レイアウトを生成し、表示することができるとする。  [0233] Here, as the electronic data, document data that can generate a different display layout depending on the display setting is used. The data processing device in FIG. 10 uses the above-described document data, division boundary data, division data, processing auxiliary data, and dependency data For example, it is assumed that a display layout can be generated and displayed using necessary data.
[0234] 表示部兼タブレット 301上には、生成された表示レイアウトが表示される。また、表 示部兼タブレット 301は、データ処理装置の各種設定メニューなどを表示して、タブ レットを使って指やペンなどで設定を変更したりするのにも使われる。  [0234] The generated display layout is displayed on the display unit / tablet 301. The display unit / tablet 301 is also used to display various setting menus of the data processing device and change settings with a finger or a pen using a tablet.
[0235] なお、各種設定などの操作手段として、表示部兼タブレット 301だけでなぐ操作ボ タン類などがこの他にあってもよい。ページめくりボタン 302、 303は、表示部兼タブ レット 301上に表示されている表示レイアウトの表示範囲を切り替える際などに使う。 ペン 304は、リンクジャンプなどの操作や各種設定などのユーザー入力など様々に 利用可能である。 [0235] As operation means for various settings and the like, other operation buttons and the like that can be operated only by the display unit / tablet 301 may be used. The page turning buttons 302 and 303 are used to switch the display range of the display layout displayed on the display unit / tablet 301, for example. The pen 304 is used for various operations such as link jump operation and user input for various settings. Available.
[0236] また、この例では示していないが、この他に、外部記憶としてメモリーカードなどのス ロットや、ネットワークと通信する通信デバイス 77、マウス 72やキーボード 78、マイク などの入力装置、スピーカ 80などの出力装置、などが付属する場合もある。  [0236] Although not shown in this example, other than these, a slot such as a memory card as an external storage, a communication device 77 for communicating with a network, an input device such as a mouse 72 and a keyboard 78, a microphone, and a speaker 80 are provided. An output device, such as, may be attached.
[0237] (データ生成方法の詳細)  [Details of Data Generation Method]
(処理の流れ)  (Processing flow)
次に、分割データ、分割境界データ、処理補助データおよび依存関係データの生 成方法について説明する。  Next, a method of generating the divided data, the divided boundary data, the processing auxiliary data, and the dependency data will be described.
[0238] 図 23は、本発明の実施の一形態に係るデータ生成方法の一例を示すフローチヤ ート図である。 FIG. 23 is a flowchart illustrating an example of a data generation method according to an embodiment of the present invention.
[0239] まずステップ S1 (以下、「ステップ S」を「S」と略記する)では、電子データ取得手段 1が、例えば、予め主記憶 74、外部記憶 75、通信デバイス 77を介したネットワーク先 などに用意してある電子データを読み込む。これにより、電子データ取得手段 1は、 電子データを取得し、連結点 P10 (以下、「連結点 P」を「P」と略記する)を経て、 S2 へ処理が進む。  First, in step S1 (hereinafter, “step S” is abbreviated as “S”), the electronic data acquisition unit 1 transmits, for example, a main storage 74, an external storage 75, a network destination via a communication device 77, or the like in advance. Read the electronic data prepared in. As a result, the electronic data acquisition means 1 acquires the electronic data, and the process proceeds to S2 via the connection point P10 (hereinafter, "connection point P" is abbreviated as "P").
[0240] 次に S2では、影響判断手段 2、処理補助データ生成手段 5、依存関係データ生成 手段 6、標準内非依存境界抽出手段 7、標準外非依存境界抽出手段 8、部分データ サイズ判断手段 9、第 1分割境界抽出手段 10、第 2分割境界抽出手段 11、および Z または第 3分割境界抽出手段 12が、電子データ取得手段 1から電子データを受け取 り、電子データを分割データに分割する分割境界を算出して、 P20を経て、 S3へ処 理が進む。ここでの処理の詳細は、後で図 24などを使って説明する。  [0240] Next, in S2, the influence determining means 2, the processing auxiliary data generating means 5, the dependency data generating means 6, the standard non-dependent boundary extracting means 7, the non-standard non-dependent boundary extracting means 8, the partial data size determining means 9, the first division boundary extraction unit 10, the second division boundary extraction unit 11, and the Z or third division boundary extraction unit 12 receive the electronic data from the electronic data acquisition unit 1 and divide the electronic data into divided data. The dividing boundary is calculated, and the process proceeds to S3 via P20. Details of the processing here will be described later with reference to FIG.
[0241] S3では、分割境界データ生成手段 3が、依存境界抽出手段 7、標準外非依存境界 抽出手段 8、第 1分割境界抽出手段 10、第 2分割境界抽出手段 11、および Zまたは 第 3分割境界抽出手段 12から得られる分割境界を使って、分割境界データを生成し 、 P30を経て、 S4へ処理が進む。あるいは、分割データ生成手段 4が、各手段 7、 8、 10— 12から得られる分割境界を使って、分割データを生成し、 P30を経て、 S4へ処 理が進む。  [0241] In S3, the dividing boundary data generating means 3 includes the dependent boundary extracting means 7, the non-standard independent boundary extracting means 8, the first dividing boundary extracting means 10, the second dividing boundary extracting means 11, and the Z or the third dividing boundary extracting means. The division boundary data is generated using the division boundary obtained from the division boundary extraction means 12, and the process proceeds to S4 via P30. Alternatively, the divided data generating means 4 generates divided data using the dividing boundaries obtained from the means 7, 8, 10-12, and the process proceeds to S4 via P30.
[0242] S4では、処理補助データ生成手段 5が、分割データを使って、処理補助データを 生成して、 P40を経て、 S5へ処理が進む。ここでの処理の詳細は、後で図 27などを 使って説明する。 [0242] In S4, the processing auxiliary data generation means 5 uses the divided data to generate the processing auxiliary data. After generation, the process proceeds to S5 via P40. Details of the processing here will be described later using FIG. 27 and the like.
[0243] S5では、依存関係データ生成手段 6が、分割データを使って、依存関係データを 生成して、 P50を経て、処理を終える。ここでの処理の詳細は、後で図 30、図 31など を使って説明する。  [0243] In S5, the dependency relationship data generation means 6 generates dependency relationship data using the divided data, and ends the process via P50. Details of the processing here will be described later with reference to FIGS.
[0244] なお、 S4および S5で使われる分割データは、上述した通り、分割データ生成手段 4 (S3)力 直接得る場合もあるし、電子データ取得手段 1 (S1)から得られる電子デ ータと、分割境界データ生成手段 3 (S3)から得られる分割境界データとから間接的 に得る場合もある。  [0244] The divided data used in S4 and S5 may be obtained directly from the divided data generating means 4 (S3) as described above, or may be obtained from the electronic data obtaining means 1 (S1). And the division boundary data obtained from the division boundary data generating means 3 (S3) in some cases.
[0245] 以上の S1から S5の処理により、分割境界データ、分割データ、処理補助データ、 依存関係データなどが生成される。  [0245] Through the above processing of S1 to S5, division boundary data, division data, processing auxiliary data, dependency data, and the like are generated.
[0246] (分割境界算出処理)  [0246] (Division boundary calculation processing)
図 24は、図 23の S2の処理、すなわち電子データを分割データに分割する分割境 界を算出する処理の一方法を説明するフローチャート図である。  FIG. 24 is a flowchart illustrating one method of the process of S2 in FIG. 23, that is, a process of calculating a dividing boundary for dividing electronic data into divided data.
[0247] P10を経た S2-1では、部分データサイズ判断手段 9が、下記の指定最大データサ ィズを取得して、 S 2— 2へ処理が進む。  [0247] In S2-1 after P10, the partial data size determination means 9 acquires the following specified maximum data size, and the process proceeds to S2-2.
[0248] S2— 2では、部分データサイズ判断手段 9が、下記の指定標準データサイズを取得 して、 S2— 3へ処理が進む。  [0248] In S2-2, the partial data size determination means 9 acquires the following specified standard data size, and the process proceeds to S2-3.
[0249] 上記指定最大データサイズや指定標準データサイズは、 1つあたりの分割データの サイズに関するパラメータである。すなわち、指定最大データサイズは、処理する装 置の処理速度の高速ィ匕および省リソースの実現を妨げな 、観点で、許容される分割 データの最大サイズである。また、指定標準データサイズは、分割データのサイズとし て最も望ましいサイズであり、処理する装置の処理能力や処理の目的に応じて決め られる。  [0249] The specified maximum data size and the specified standard data size are parameters relating to the size of one piece of divided data. In other words, the specified maximum data size is the maximum size of the divided data that is allowed from the viewpoint that does not hinder realization of high-speed processing and resource saving of the processing device. The designated standard data size is the most desirable size of the divided data, and is determined according to the processing capability of the processing apparatus and the purpose of the processing.
[0250] なお、指定最大データサイズや指定標準データサイズは、プログラム上で固定的に 決められている場合もあるし、一部の方法や判断基準として使われる値 (パラメータ) などをユーザーに指示される場合もある。  [0250] Note that the specified maximum data size and the specified standard data size may be fixedly determined by the program, and the user is instructed in some methods and values (parameters) used as criteria. It may be done.
[0251] ユーザーからの指示は、例えばディスプレイ 71上に表示された指示画面を見て、 マウス 72、キーボード 78、ボタン 76、タブレット 73などの入力機器を使って行われる 。図 3は、指定最大データサイズ、指定標準データサイズを指定するウィンドウ表示の 例である。 [0251] The instruction from the user is, for example, looking at the instruction screen displayed on the display 71, This is done using input devices such as a mouse 72, keyboard 78, buttons 76, and tablet 73. Figure 3 is an example of a window display for specifying the specified maximum data size and the specified standard data size.
[0252] S2— 3では、カレント位置が存在するの力、すなわち電子データを全て読み込んで しまった力どうか、あるいはその後、ユーザー等力も表示開始位置としてカレント位置 の指定があった力どうかを判断し、存在しないと判断される場合は分割境界の算出が 全て終了しているので、 P20へ処理が抜け、存在すると判断される場合は S2— 4へ処 理が進む。なお、最初の分割境界を求める時は、カレント位置は電子データの先頭 に初期化されているとする。なお、 S2— 3の処理は汎用的で、動作主体となる手段は 特に限定されな 、が、ここでは関連の強 、手段 7— 12の 、ずれかとしておく。  [0252] In S2-3, it is determined whether or not the force at which the current position exists, that is, the force at which all the electronic data has been read, or whether the force at the current position has been specified as the display start position also by the user. If it does not exist, the calculation of the dividing boundary has been completed, so the process exits to P20. If it does, the process proceeds to S2-4. When determining the first division boundary, it is assumed that the current position has been initialized to the beginning of the electronic data. Note that the processing in S2-3 is general-purpose, and the means that is the main subject of operation is not particularly limited. However, here, it is assumed that the related strength or the means 7-12 is shifted.
[0253] S2 - 4では、初期設定処理を行!、、 S2 - 5へ処理が進む。初期設定処理として、力 レント位置を新たな分割データの開始位置 (新たな分割境界)に設定し、標準内非依 存境界候補、標準外非依存境界候補、および標準内依存境界候補の設定のクリア が行われる。なお、分割境界位置についても、最初の分割境界位置が求まる前の段 階では、電子データの先頭に初期化されるものとする。  In S2-4, an initial setting process is performed !, and the process proceeds to S2-5. As an initial setting process, the current position is set to the start position (new division boundary) of the new division data, and the setting of the standard-independent boundary candidate, the non-standard-independent boundary candidate, and the standard-dependent boundary candidate is performed. Clearing is performed. Note that the division boundary position is also initialized to the beginning of the electronic data in a stage before the first division boundary position is obtained.
[0254] ここでは「標準内」という言葉は、分割データの開始位置力も指定標準データサイズ 内の範囲を意味し、「標準外」という言葉は、((分割データの開始位置) + (指定標準 データサイズ) )から、 ( (分割データの開始位置) + (指定最大データサイズ) )までの 範囲を意味する。  [0254] Here, the word "in standard" means that the starting position force of the divided data also falls within the specified standard data size, and the word "nonstandard" means (((starting position of divided data) + (specified standard data)). It means the range from (data size)) to ((partition data start position) + (specified maximum data size)).
[0255] また、「非依存境界候補」は、これから求めようとする分割境界で元の電子データを 分割した場合に、分割が処理結果に影響を与えない分割境界の候補を意味し、「依 存境界候補」は、分割が処理結果に影響を与える分割境界の候補を意味する。  [0255] The "independent boundary candidate" means a candidate for a boundary that does not affect the processing result when the original electronic data is divided at the division boundary to be obtained. The “existing boundary candidate” means a candidate for a division boundary where the division affects the processing result.
[0256] ここでは、標準内依存境界候補、標準外非依存境界候補、標準内非依存境界候 補の順で望ましさが増すという判断基準にしておく。つまり、標準内で非依存境界が 最も望ましい。この判断基準は、ユーザーが好みの設定にできるようにしてもよい。  [0256] Here, a criterion that desirability increases in the order of the standard-dependent boundary candidate, the non-standard-independent boundary candidate, and the standard-independent boundary candidate is set. In other words, non-dependent boundaries are most desirable within the standard. This determination criterion may be set so that the user can make a desired setting.
[0257] カレント位置、分割境界位置、標準内非依存境界候補、標準外非依存境界候補お よび標準内依存境界候補は、主記憶 74上などに一時的に記録しておく値である。こ れらは電子データ中の位置を指す。単位は、バイト数や文字数、単語数などが考え られる。 The current position, the division boundary position, the standard-independent non-dependent boundary candidate, the non-standard non-dependent boundary candidate, and the standard-independent boundary candidate are values that are temporarily recorded on the main memory 74 or the like. These indicate positions in the electronic data. The unit may be the number of bytes, characters, words, etc. Can be
[0258] なお、分割データの開始位置は、最初は当然電子データの先頭である。また、 S2- 4の動作主体となる手段は、 S2— 3同様、ここでは関連の強い手段 7— 12のいずれか としておく。  [0258] The start position of the divided data is naturally the beginning of the electronic data at first. In addition, as in S2-3, the means that is the main actor of S2-4 is any of the closely related means 7-12 here.
[0259] S2— 5では、部分データサイズ判断手段 9が、分割データの開始位置 (分割境界位 置)力もカレント位置までのデータサイズが、指定標準データサイズを超えるかどうか 判断し、超えると判断される場合は S2 - 6へ処理が進み、超えないと判断される場合 は PI 1を経て S2— 11へ処理が進む。  [0259] In S2-5, the partial data size determination means 9 determines whether the data size at the start position (division boundary position) of the divided data up to the current position exceeds the specified standard data size, and determines that the data size is exceeded. If so, the process proceeds to S2-6, and if not, the process proceeds to S2-11 via PI1.
[0260] S2 - 6では、影響判断手段 2、標準内非依存境界抽出手段 7が、分割データの開 始位置力もカレント位置までの間に、標準内非依存境界候補は存在するかどうか判 断し、存在すると判断される場合は S2 - 7へ処理が進み、存在しないと判断される場 合は S2— 8へ処理が進む。これは、標準内非依存境界候補に、その存在を示す値が 設定されて ヽるかどうかで判断できる。  [0260] In S2-6, the influence determination means 2 and the standard-independent boundary extraction means 7 determine whether there is a standard-independent boundary candidate between the start position force of the divided data and the current position. However, if it is determined that it exists, the process proceeds to S2-7, and if it is determined that it does not exist, the process proceeds to S2-8. This can be determined by determining whether or not a value indicating the existence of the candidate within the standard-independent boundary is set.
[0261] S2 - 7では、標準内非依存境界抽出手段 7が、標準内非依存境界候補を新たな分 割境界に設定し、 S2— 3へ処理が戻る。これにより、標準内非依存境界候補が、他の 境界候補より優先的に分割境界に設定される。  [0261] At S2-7, the standard-independent boundary extracting means 7 sets the standard-independent boundary candidate as a new division boundary, and the process returns to S2-3. As a result, the non-standard independent boundary candidate is set as a division boundary with priority over other boundary candidates.
[0262] カレント位置が指定標準データサイズを超えたとき(S2— 5)、その時点で標準内非 依存境界候補が既に存在する(S2— 6)のだから、指定標準データサイズ内に収まる 非依存境界候補を見つけたことになり、一番望ましい状態である。新たな分割境界は 、分割境界の配列に加えておく。  [0262] When the current position exceeds the specified standard data size (S2-5), since the standard-independent boundary candidate already exists at that point (S2-6), it fits within the specified standard data size. This is the most desirable state because you have found a boundary candidate. The new division boundary is added to the division boundary array.
[0263] なお、図 24のフローチャート図で説明される一連の処理では、カレント位置を進ま せて、最初に見つ力る標準内非依存境界候補を分割境界として設定している。仮に 、カレント位置以降の場所で他の標準内非依存境界候補が見つ力るとして、どちらの 標準内非依存境界候補を分割境界とした方が、分割データのデータサイズが指定標 準データサイズに近くなるかと言えば、当然、最初に見つかった標準内非依存境界 候補となる。  [0263] In a series of processes described in the flowchart of Fig. 24, the current position is advanced, and the first invisible standard-independent boundary candidate is set as a division boundary. Assuming that another standard-independent boundary candidate can be found at a location after the current position, it is better to use one of the standard-independent boundary candidates as the division boundary, and the data size of the divided data will be the specified standard data size. Is naturally the first candidate within the standard that is found.
[0264] すなわち、これら一連の処理全体が、第 1分割境界抽出手段 10であるとも言える。  That is, it can be said that the whole of the series of processing is the first division boundary extraction means 10.
複数の標準内非依存境界候補を求めて、その中力 分割データのデータサイズが 指定標準データサイズに最も近くなる標準内非依存境界候補を分割境界として抽出 しても良いが、図 24の処理の方が効率が良いので、ここではそれに沿って説明して いる。 A plurality of standard-independent boundary candidates are found, and the data size of the The non-standard-independent boundary candidate closest to the specified standard data size may be extracted as a division boundary, but the processing in FIG. 24 is more efficient, and the description is given here accordingly.
[0265] S2— 8では、部分データサイズ判断手段 9が、分割データの開始位置力もカレント 位置までのデータサイズ力 指定最大データサイズを超えるかどうか判断し、超えると 判断される場合は S2— 9へ処理が進み、超えないと判断される場合は P16を経て S2 12へ処理が進む。  [0265] In S2-8, the partial data size determination means 9 determines whether or not the start position force of the divided data also exceeds the data size force up to the current position, and if it is determined that it exceeds S2-9. The process proceeds to S212 if it is determined that the value does not exceed S16.
[0266] S2 - 9では、影響判断手段 2、標準外非依存境界抽出手段 8、第 2分割境界抽出 手段 11、第 3分割境界抽出手段 12が、((分割データの開始位置) + (指定標準デ ータサイズ) )から、 ( (分割データの開始位置) + (指定最大データサイズ) )までの範 囲に、標準外非依存境界候補は存在するかどうか判断し、存在すると判断される場 合は S2 - 10へ処理が進み、存在しないと判断される場合は S2 - 15へ処理が進む。 これは、標準外非依存境界候補に、その存在を示す値が設定されているかどうかで 判断できる。  [0266] In S2-9, the influence determination means 2, the non-standard independent boundary extraction means 8, the second division boundary extraction means 11, and the third division boundary extraction means 12 determine ((partition data start position) + (specified It is determined whether nonstandard non-dependent boundary candidates exist in the range from (standard data size)) to ((partition data start position) + (specified maximum data size)). The process proceeds to S2-10, and if it is determined that it does not exist, the process proceeds to S2-15. This can be determined by determining whether a value indicating the existence of the non-standard independent boundary candidate is set.
[0267] S2 - 10では、標準外非依存境界抽出手段 8が、標準外非依存境界候補を新たな 分割境界に設定し、 S2 - 3へ処理が戻る。  [0267] In S2-10, the non-standard-independent boundary extraction means 8 sets a non-standard-independent boundary candidate as a new division boundary, and the process returns to S2-3.
[0268] (S2— 8の結果に従って)カレント位置が指定最大データサイズを超えたとき、 (S2- 9の結果に従って)その時点で標準外非依存境界候補が既に存在するのだから、指 定標準データサイズは超えるが、指定最大データサイズ内に収まる非依存境界候補 を見つけたことになる。(S2— 6の結果に従って)標準内非依存境界候補が存在しな いのだから、次善の策として、標準外非依存境界候補を分割境界とする。新たな分 割境界は、分割境界の配列に加えておく。  [0268] When the current position exceeds the specified maximum data size (according to the result of S2-8), the nonstandard non-dependent boundary candidate already exists at that time (according to the result of S2-9). This means that a non-dependent boundary candidate that exceeds the data size but falls within the specified maximum data size has been found. Since there is no intra-standard non-dependent boundary candidate (according to the result of S2-6), a sub-standard non-independent boundary candidate is set as a division boundary as a next best measure. The new division boundary is added to the division boundary array.
[0269] なお、ここでは、最初に見つかる標準外非依存境界候補を分割境界として設定して いるが、 S2— 7同様、仮に、カレント位置以降の場所で他の標準外非依存境界候補 が見つかるとして、分割データのデータサイズが指定標準データサイズに近いのは、 最初に見つかる標準外非依存境界候補となり、これら一連の処理全体が、第 2分割 境界抽出手段 11であるとも言える。複数の標準外非依存境界候補を求めて、その中 力 分割データのデータサイズが指定標準データサイズに最も近くなる標準外非依 存境界候補を分割境界として抽出しても良いが、図 24の処理の方が効率が良いの で、ここではそれに沿って説明している。 [0269] Here, the first nonstandard non-dependent boundary candidate found is set as a division boundary. However, similar to S2-7, another nonstandard nondependent boundary candidate is temporarily found at a location after the current position. If the data size of the divided data is close to the designated standard data size, it is the first nonstandard non-dependent boundary candidate found, and it can be said that the entire series of processes is the second divided boundary extraction means 11. A plurality of non-standard-independent boundary candidates are obtained, and the non-standard-independent data whose data size is closest to the specified standard data size are obtained. The existence boundary candidate may be extracted as a division boundary, but the processing in FIG. 24 is more efficient, and therefore, the description will be made here accordingly.
[0270] (S2-9で標準外非依存境界候補は存在しないと判断された) S2-15では、第 3分 割境界抽出手段 12が、標準内依存境界候補を新たな分割境界に設定し、 S2 - 3へ 処理が戻る。 [0270] (In S2-9, it is determined that there is no nonstandard non-dependent boundary candidate.) In S2-15, the third division boundary extraction unit 12 sets the intrastandard nonstandard boundary candidate as a new division boundary. Processing returns to S2-3.
[0271] (S2— 8の結果に従って)カレント位置が指定最大データサイズを超え、(S2— 9の結 果に従って)標準外非依存境界候補も存在しないのだから、最後の手段として、指定 標準データサイズは超えるが、指定最大データサイズ内に収まる依存境界候補を新 たな分割境界に設定せざるを得な ヽ。標準内依存境界候補に基づ ヽて設定された 分割境界の位置は、通常、前の分割境界位置に指定標準データサイズを加えた位 置となる。これは、この位置まで、依存境界候補しか存在していないからである。新た な分割境界は、分割境界の配列に加えておく。  [0271] As the current position exceeds the specified maximum data size (according to the result of S2-8) and there are no nonstandard independent boundary candidates (according to the result of S2-9), the specified standard data Although the size exceeds, the dependent boundary candidate that falls within the specified maximum data size must be set as a new division boundary. The position of the division boundary set based on the intra-standard dependence boundary candidate is usually the position obtained by adding the specified standard data size to the previous division boundary position. This is because up to this position, only the dependent boundary candidate exists. The new division boundary is added to the division boundary array.
[0272] (S2— 5で指定標準データサイズを超えな ヽと判断された) S2-11では、影響判断 手段 2、標準内非依存境界抽出手段 7および第 3分割境界抽出手段 12が、前回の カレント位置力 今回のカレント位置までの範囲で、標準内依存境界候補あるいは標 準内非依存境界候補を探して、存在すれば設定し、 P15を経て S2 - 13へ処理が進 む。指定標準データサイズに満たないので、分割境界を設定するには至らず、まだ 分割境界候補を探していればよい。ここでの処理の詳細は、後で図 25を使って説明 する。 [0272] (In S2-5, it was determined that the data size did not exceed the specified standard data size.) In S2-11, the influence determination means 2, the standard-independent boundary extraction means 7, and the third division boundary extraction means 12 Current position force Within the range up to the current position, a candidate for a standard-dependent boundary or a standard-independent boundary is searched for and set if it exists, and the process proceeds to S2-13 via P15. Since it is smaller than the specified standard data size, it is not enough to set a division boundary, and it is only necessary to search for division boundary candidates. Details of the processing here will be described later with reference to FIG.
[0273] (S2— 8で指定最大データサイズを超えな 、と判断された) S2— 12では、影響判断 手段 2、標準外非依存境界抽出手段 8が、前回のカレント位置力 今回のカレント位 置までの範囲で、標準外非依存境界候補を探して、存在すれば設定し、 P17を経て S2— 13へ処理が進む。カレント位置は指定標準データサイズを超えたが(S2— 5)、 標準内非依存境界候補は存在せず (S2— 6)、指定最大データサイズには満たな!/、 ( S2— 8)ので、分割境界を設定するには至らず、まだ標準外非依存境界候補を探して いればよい。ここでの処理の詳細は、後で図 26を使って説明する。  [0273] (In S2-8, it was determined that the specified maximum data size was not exceeded.) In S2-12, the impact determination means 2 and the non-standard independent boundary extraction means 8 set the current position A nonstandard non-dependent boundary candidate is searched for in the range up to the position, and if it exists, it is set, and the process proceeds to S2-13 via P17. The current position exceeds the specified standard data size (S2-5), but there is no standard-independent boundary candidate (S2-6), which is less than the specified maximum data size! /, (S2-8) However, it is only necessary to find a non-standard-independent boundary candidate without setting a division boundary. Details of the processing here will be described later with reference to FIG.
[0274] S2— 13では、カレント位置を次の文字、次の単語、または次のタグなどに進めて、 S 2— 14へ処理が進む。カレント位置の進め方は、電子データの種類または分割境界 候補の探し方により、様々な方法が考えられる。また、ここでの処理は、 S2— 11また は S2— 12などの分割境界候補を探す処理の効率にも関わる。 In S2-13, the current position is advanced to the next character, next word, next tag, or the like, and the process proceeds to S2-14. How to advance the current position depends on the type of electronic data or the division boundary Various methods can be considered depending on how to search for candidates. Further, the processing here also relates to the efficiency of processing for searching for a division boundary candidate such as S2-11 or S2-12.
[0275] ここでは、タグと単語を単位として進めることにする。例えば、図 4Aの電子データ 40 6の冒頭の部分では、その単位が「く HTML>」、「く font color = "red" size = " + 3,,>」、 「How 」、 「does 」、 「LCD 」、 「works?」、「く/ font>」、「く brZ> 」などとなる。 日本語など、単語がスペースなどで別れていない文書データの場合、タ グと、単語の代わりに一定の文字数までの塊とを単位とするとよ 、。  [0275] Here, it is assumed that the process proceeds in units of tags and words. For example, in the beginning of the electronic data 406 in FIG. 4A, the units are “KU HTML>”, “KU font color =“ red ”size =“ +3 ,,> ”,“ How ”,“ does ”, "LCD", "works?", "Ku / font>", "ku brZ>" and so on. In the case of document data in which words are not separated by spaces or the like, such as in Japanese, a tag and a block up to a certain number of characters may be used as a unit instead of a word.
[0276] なお、 S2— 13の動作主体となる手段は、 S2— 3同様、ここでは関連の強い手段 7— 12のいずれかとしておく。  [0276] Note that, as in S2-3, the means that is the main subject of operation in S2-13 is any one of the closely related means 7-12 here.
[0277] S2— 14では、カレント位置が存在するの力、すなわち分割境界を求めるために電 子データを全て読み込んでしまったかどうかを判断し、カレント位置が存在すると判 断される場合は S2— 5へ処理が戻り、存在しないと判断される場合は S2— 9へ処理が 進む。判断の処理は、 S2— 3と同じである。  [0277] In S2-14, it is determined whether the current position exists, that is, whether or not all the electronic data has been read in order to obtain the division boundary. If it is determined that the current position exists, S2-14 The process returns to 5, and if it is determined that there is not, the process proceeds to S2-9. The judgment process is the same as S2-3.
[0278] 以上の S2— 1から S2— 15の処理で、図 23の S2の処理、すなわち電子データを分 割データに分割する分割境界を算出する処理を行うことができる。  [0278] In the above-described processing of S2-1 to S2-15, the processing of S2 in Fig. 23, that is, the processing of calculating the division boundary for dividing the electronic data into the divided data can be performed.
[0279] 図 25は、図 24の S2— 11の処理、すなわち前回のカレント位置から今回のカレント 位置までの範囲で、標準内依存境界候補あるいは標準内非依存境界候補を探して 、存在すれば設定する処理の一方法を説明するフローチャート図である。  [0279] Fig. 25 shows the process of S2-11 in Fig. 24, that is, within the range from the previous current position to the present current position, searching for a standard-dependent boundary candidate or a standard-independent non-standard boundary candidate. It is a flowchart figure explaining one method of the setting process.
[0280] 前回のカレント位置力 今回のカレント位置までの範囲に対する処理だ力 ここで は S2— 13でタグと単語を単位としているので、カレント位置について、標準内依存境 界候補になり得る力、あるいは標準内非依存境界候補になり得るかを判断すれば良 い。それ以外の場合は、電子データの種類などにもよる力 例えば、上記範囲中を 1 文字ずつなどの単位で判断を繰り返すなどする必要がある。  [0280] Previous current position force Processing power for the range up to the current current position. Here, since tags and words are used as units in S2-13, the force that can be a standard internal dependent boundary candidate for the current position is Alternatively, it is only necessary to judge whether or not it can be a standard-independent boundary candidate. In other cases, the power depends on the type of electronic data. For example, it is necessary to repeat the judgment in the above range in units of one character at a time.
[0281] P11を経た S2— 11— 1では、影響判断手段 2が、カレント位置 (場合によっては、力 レント位置に加えてその前の位置)を分割境界とする場合、その分割境界の前後の 分割データの処理結果に分割の影響が生じるかどうかを判断し、影響が生じると判 断されれば S2— 11 2へ処理が進み、影響が生じな ヽと判断されれば S2— 11 3へ 処理が進む。 [0282] なおここでは、カレント位置がタグの直後ならば、そのタグの直前も「カレント位置の 前の位置」として、影響が生じるかどうかの判断の対象とする。これは、 Pタグのように その前の位置で強制改行させるタグが存在するからである。カレント位置がタグの直 後でな!/、ならば、カレント位置だけを判断の対象とすればよ!、。 [0281] In S2-11-1 after P11, when the influence determination means 2 uses the current position (possibly in addition to the current position and the position before the current position) as the division boundary, the influence determination means 2 sets the position before and after the division boundary. It is determined whether or not there is an effect of the division on the processing result of the divided data. If it is determined that the effect will occur, the process proceeds to S2—112, and if it is determined that the effect does not occur, the process proceeds to S2—113. Processing proceeds. [0282] Here, if the current position is immediately after the tag, the position immediately before the tag is also regarded as "the position before the current position", and it is determined whether or not the influence occurs. This is because there is a tag that forces a line break at the previous position like the P tag. If the current position is not immediately after the tag! /, Then only the current position should be considered!
[0283] 影響が生じるかどうかは、電子データの種類などによって、様々なので、統一した判 断方法はない。例えば、図 4Aの HTMLデータの場合、改行されるかどうかが一つの 判断基準となる。ここでは、 Pタグの開始タグの前、 Pタグの終了タグの後、 brタグの後 は、強制改行されるとして、その場所を分割境界とする場合は、影響が生じない、つ まり非依存境界候補であると判断し、それ以外の位置は依存境界候補であると判断 する。  [0283] There is no unified judgment method because the influence is varied depending on the type of electronic data and the like. For example, in the case of the HTML data shown in Fig. 4A, one criterion is whether a line break occurs. Here, before the start tag of the P tag, after the end tag of the P tag, and after the br tag, it is assumed that a line break is performed. Judgment is made as a boundary candidate, and other positions are judged as dependency boundary candidates.
[0284] 例えば、「く HTML>」、「く font color = "red" size = " + 3,,>」、「How 」、「 does 」、「LCD 」、「works?」、「く Zfont>」、「く brZ>」、「く font color = "r ed" size = " + 3" >」、「く P>」、「: Liquid」、「Crystal」の順でカレント位置が変わ るとすると、影響が生じない位置は、「く brZ>」の後、「く P>」の前の 2個所となる。 それ以外の位置は、すべて影響が生じる。  [0284] For example, "ku HTML>", "ku font color =" red "size =" +3 ,,> "," How "," dos "," LCD "," works? "," Ku Zfont> ”,“ Ku brZ> ”,“ ku font color = “red” size = “+3”> ”,“ ku P> ”,“: Liquid ”, and“ Crystal ”. There are two locations where no effect occurs after “ku brZ>” and before “ku P>”. All other positions are affected.
[0285] より具体的には、強制改行されない位置を分割境界に設定して、その分割境界で の分割によって生成された前後の分割データから、この順に単独で表示レイアウトを 生成する処理を行ったとする。この場合、後の分割データは、単独処理の結果として 行頭からレイアウトされるため、前の分割データの末尾に不所望な改行という分割の 影響が表れる。したがって、上記の例では、「く brZ>」の後、「く P>」の前の 2個所 以外の位置は、依存境界候補であると判断することになる。  [0285] More specifically, a process in which a position where a forced line break is not set is set as a division boundary, and a display layout is generated independently in this order from the divided data before and after generated by division at the division boundary I do. In this case, since the subsequent divided data is laid out from the beginning of the line as a result of the independent processing, the effect of an undesired line feed at the end of the previous divided data appears. Therefore, in the above example, positions other than the two positions after “ku brZ>” and before “ku P>” are determined to be candidate dependency boundaries.
[0286] なお、 HTMLタグは、文書データが HTMLデータであることを単に宣言する意味 しかないので、ここでは無視して、分割境界の候補とはしないことにする。  [0286] Since the HTML tag merely serves to declare that the document data is HTML data, it is ignored here and is not considered as a candidate for a division boundary.
[0287] (S2-11-1で影響が生じると判断された) S2-11— 2では、第 3分割境界抽出手段 12が、カレント位置 (場合によっては、カレント位置にカ卩えてその前の位置)を標準内 依存境界候補に設定し、 P15を経て S2— 11の処理を抜ける。カレント位置は指定標 準データサイズを超えていないので (S2— 5)、標準内であり、影響を生じるので、依 存境界候補となる。 [0288] (S2-11-1で影響が生じないと判断された) S2-11-3では、標準内非依存境界 抽出手段 7が、カレント位置 (場合によっては、カレント位置にカ卩えてその前の位置) を標準内非依存境界候補に設定し、 P15を経て S2— 11の処理を抜ける。カレント位 置は指定標準データサイズを超えていないので (S2— 5)、標準内であり、影響を生じ ないので、非依存境界候補となる。 [0287] In S2-11-2, the third division boundary extraction means 12 determines the current position (in some cases, moves to the current position, and Position) is set as a candidate for the intra-standard dependence boundary, and the processing exits from S2-11 via P15. Since the current position does not exceed the specified standard data size (S2-5), it is within the standard and has an influence, so it is a candidate for the dependent boundary. [0288] In S2-11-3, it is determined that there is no effect in S2-11-1. In-standard non-dependent boundary extracting means 7 sets the current position (in some cases, (Previous position) is set as a standard-independent boundary candidate, and the processing exits from S2-11 via P15. Since the current position does not exceed the specified standard data size (S2-5), it is within the standard and has no effect, so it is an independent boundary candidate.
[0289] 以上の S2—11—1力ら S2—11—3の処理で、図 24の S2—11の処理、すなわち前回 のカレント位置力 今回のカレント位置までの範囲で、標準内依存境界候補あるいは 標準内非依存境界候補を探して、存在すれば設定する処理を行うことができる。  [0289] In the processing of S2-11-1 and S2-11-3 described above, the processing of S2-11 in Fig. 24, that is, the previous current position force, within the range up to the current position, the candidate within the standard Alternatively, it is possible to search for a standard-independent boundary candidate and perform a setting process if it exists.
[0290] なお、 S2— 11 2、 S2-11 3では、標準内依存境界候補や標準内非依存境界候 補が既に設定されていても、新たに求めた標準内依存境界候補や標準内非依存境 界候補を上書きしている。これにより、指定標準データサイズにできるだけ近い位置 の標準内依存境界候補や標準内非依存境界候補を求めることができるという効果が 出てくる。  [0290] In S2-112 and S2-113, even if the intra-standard dependent boundary candidate and the intra-standard non-dependent boundary candidate have already been set, the newly determined intra-standard dependent boundary candidate and the intra-standard non-standard Dependent boundary candidate is overwritten. As a result, the effect is obtained that a standard-dependent boundary candidate and a standard-independent non-standard boundary candidate at a position as close as possible to the specified standard data size can be obtained.
[0291] 図 26は、図 24の S2— 12の処理、すなわち前回のカレント位置から今回のカレント 位置までの範囲で、標準外非依存境界候補を探して、存在すれば設定する処理の 一方法を説明するフローチャート図である。  [0291] Fig. 26 shows a method of the process of S2-12 in Fig. 24, that is, a process of searching for a non-standard-independent boundary candidate in the range from the previous current position to the current current position and setting it if it exists. It is a flowchart figure explaining.
[0292] P16を経た S2— 12— 1では、影響判断手段 2が、カレント位置 (場合によっては、力 レント位置に加えてその前の位置)を分割境界とする場合、その分割境界の前後の 分割データの処理結果に分割の影響が生じるかどうかを判断し、影響が生じると判 断されれば P17を経て S2— 12の処理を抜け、影響が生じないと判断されれば S2— 1 2— 2へ処理が進む。ここでの判断の処理は、 S2— 11— 1の判断の処理と同じである。  [0292] In S2-12-1 after P16, when the influence determination means 2 uses the current position (possibly in addition to the current position and the position before the current position) as the division boundary, the influence determination means 2 sets It is determined whether or not there is an effect of the division on the processing result of the divided data. If it is determined that the effect will occur, the processing exits from step S2-12 via P17, and if it is determined that the effect does not occur, step S2-12 — Processing proceeds to 2. The processing of the determination here is the same as the processing of the determination of S2-11-1.
[0293] なお、影響が生じると判断される時、「標準外依存境界候補」とすることもできるが、 標準外依存境界候補を分割境界として使うのなら、標準内依存境界候補を使った方 力 処理の高速ィ匕および省リソースの観点で良い場合が多いので、ここでは特に「標 準外依存境界候補」の設定をして 、な 、。  [0293] Note that when it is determined that an effect will occur, a "non-standard dependency boundary candidate" may be used. In many cases, “non-standard dependent boundary candidates” are set here because they are often good from the viewpoint of high-speed processing and resource saving in power processing.
[0294] S2— 12— 2では、標準外非依存境界抽出手段 8が、カレント位置 (場合によっては、 カレント位置に加えてその前の位置)を標準外非依存境界候補に設定し、 P17を経 て S2— 12の処理を抜ける。カレント位置は指定標準データサイズを超えているので( S2— 5)、標準外であり、影響を生じないので、非依存境界候補となる。 [0294] In S2-12-2, the non-standard-independent boundary extraction means 8 sets the current position (in some cases, the current position and the position before it) as a non-standard-independent boundary candidate, and sets P17 to Then, the process exits from step S2-12. Because the current position exceeds the specified standard data size ( S2-5) Since it is nonstandard and has no effect, it is a candidate for an independent boundary.
[0295] 以上の S2— 12— 1から S2— 12— 2の処理で、図 24の S2— 12の処理、すなわち前回 のカレント位置力 今回のカレント位置までの範囲で、標準外非依存境界候補を探し て、存在すれば設定する処理を行うことができる。 [0295] In the above processing from S2-12-1 to S2-12-2, the processing of S2-12 in Fig. 24, that is, the previous current position force, the nonstandard non-standard boundary candidate in the range up to the current position , And if it exists, the setting process can be performed.
[0296] なお、 S2— 12— 2では、標準外非依存境界候補が既に設定されている場合、上書 きして標準外非依存境界候補を設定しても良いが、上書きしないようにする方が良い[0296] In S2-12-2, if non-standard-independent boundary candidates have already been set, they may be overwritten to set non-standard-independent boundary candidates, but do not overwrite them. Is better
。その方が、指定標準データサイズにできるだけ近い位置の標準外非依存境界候補 を求めることができるという効果が出てくる。 . This has the effect that non-standard-independent boundary candidates at positions as close as possible to the specified standard data size can be obtained.
[0297] なお、上述した処理で、分割データの開始位置力 カレント位置までのデータサイ ズが、指定標準データサイズや指定最大データサイズを超えるかどうかを判断して ヽ るが、例えば、指定標準データサイズに加えて所定量を超えない範囲という判断基 準にしてもよい。これは、指定標準データサイズを所定量大きくして、それを超えない という判断基準と同じである。 [0297] In the above-described processing, it is determined whether the data size up to the start position force and the current position of the divided data exceeds the specified standard data size or the specified maximum data size. In addition to the data size, a determination criterion that the range does not exceed a predetermined amount may be used. This is the same as the criterion for increasing the designated standard data size by a predetermined amount and not exceeding it.
[0298] また、例えば、分割データの開始位置力もカレント位置までのデータサイズ力 指 定標準データサイズの前後の所定量の範囲に収まるかどうかなどの判断基準などに してもよい。これにより、分割データの大きさを揃え易くなるという利点が出てくる。つ まり、分割データを利用する際に、極端に大きな分割データや極端に小さな分割デ ータが少なくなるので、処理量が平準化されるという利点が出てくる。 [0298] Further, for example, a criterion for determining whether or not the start position force of the divided data also falls within a predetermined amount range before and after the data size force designated standard data size up to the current position may be used. Thereby, there is an advantage that the sizes of the divided data can be easily made uniform. In other words, when the divided data is used, extremely large divided data and extremely small divided data are reduced, so that there is an advantage that the processing amount is leveled.
[0299] (処理補助データ生成処理) [0299] (Processing auxiliary data generation processing)
図 27は、図 23の S4の処理、すなわち分割データを使って、処理補助データを生 成する処理の一方法を説明するフローチャート図である。各ステップでの動作主体は 、全て、処理補助データ生成手段 5なので、各ステップの説明では、動作主体の記 述を省く。  FIG. 27 is a flowchart illustrating a method of the process of S4 in FIG. 23, that is, a process of generating processing auxiliary data using the divided data. Since the actors in each step are all processing auxiliary data generating means 5, the description of the actors is omitted in the description of each step.
[0300] P30を経た S4— 1では、最初の分割データをカレント分割データに設定して、 S4— 2 へ処理が進む。カレント分割データは、主記憶 74や外部記憶 75上などに記録して おく。  [0300] In S4-1 after P30, the first divided data is set as the current divided data, and the process proceeds to S4-2. The current divided data is recorded in the main memory 74, the external memory 75, or the like.
[0301] S4— 2では、以下で説明するカレント開始タグリストをカレント分割データの開始タグ 文字列に設定し、 S4 - 3へ処理が進む。 [0302] 図 28は、カレント開始タグリストおよびカレント終了タグリストのデータ構造を説明す る説明図である。カレント開始タグリストは、カレント分割データの前に存在している分 割データ力も効力を引き継ぐべき開始タグデータ (文字列)の配列である。また、カレ ント開始タグリストを生成するための開始タグデータの入出力は、ファースト'イン'ラス ト 'アウトの形態を取るため、そのデータ構造はスタック構造である。 [0301] In S4-2, the current start tag list described below is set as the start tag character string of the current divided data, and the process proceeds to S4-3. [0302] FIG. 28 is an explanatory diagram illustrating the data structure of the current start tag list and the current end tag list. The current start tag list is an array of start tag data (character strings) for which the split data existing before the current split data should also take effect. In addition, since the input / output of start tag data for generating the current start tag list takes the form of first 'in' last 'out, the data structure is a stack structure.
[0303] 一方、終了タグリストは、カレント分割データにとって、効力が持続中の開始タグデ 一タと対をなす終了タグデータ (文字列)の配列であり、カレント開始タグリストと同様 に、データ構造はスタック構造である。  [0303] On the other hand, the end tag list is an array of end tag data (character strings) that is paired with the start tag data that is effective for the current divided data, and has the same data structure as the current start tag list. Is a stack structure.
[0304] なお、最初は、カレント開始タグリストおよび終了タグリストはどちらも空である。  [0304] Initially, both the current start tag list and the end tag list are empty.
[0305] 生成したカレント開始タグリストからカレント分割データの一連の開始タグデータを 生成するには、カレント開始タグリストの最初の開始タグデータ力 最後の開始タグデ ータまで順番につなげて文字列を生成すればょ 、。カレント開始タグリストはスタック 構造なので、例えば、図 28に示すカレント開始タグリストの場合、一番下の最初の開 始タグデータ 310から、開始タグデータ 311、 312の順に読み込む。  [0305] In order to generate a series of start tag data of the current divided data from the generated current start tag list, the first start tag data of the current start tag list is sequentially connected to the last start tag data, and a character string is formed. Generate it. Since the current start tag list has a stack structure, for example, in the case of the current start tag list shown in FIG. 28, the start tag data 311 and 312 are read in order from the first start tag data 310 at the bottom.
[0306] 例えば、カレント分割データ力 図 7Aに示す最初の分割データ 400'の場合、その 前に分割データは存在していないので、カレント開始タグリストは空である。従って、 S 4 2として、空のカレント開始タグリストを、分割データ 400'の開始タグ文字列に設 定するから、開始タグ文字列(図 29の処理補助データ 131)は空文字列となる。  [0306] For example, in the case of the first divided data 400 'shown in FIG. 7A, there is no preceding divided data, so the current start tag list is empty. Therefore, as S42, an empty current start tag list is set as the start tag character string of the divided data 400 ′, so that the start tag character string (the processing auxiliary data 131 in FIG. 29) is an empty character string.
[0307] 図 28の開始タグデータ 310— 312は、分割データ 401 'をカレント分割データとし て S4— 2の処理を実行する時の、カレント開始タグリストの状態を示している。このとき のカレント開始タグリストは、カレント分割データが分割データ 400,であったときに作 成されたものである。すなわち、分割データ 401 'が分割データ 400'から効力を引き 継ぐべき開始タグデータとして、分割データ 400'内に終了タグデータが存在してい ない開始タグデータを、処理補助データ生成手段 5が選別した結果、分割データ 40 0'に関する上記カレント開始タグリストが得られる。  [0307] Start tag data 310-312 in Fig. 28 shows the state of the current start tag list when the process of S4-2 is performed using the divided data 401 'as current divided data. The current start tag list at this time was created when the current divided data was divided data 400. That is, the processing auxiliary data generating means 5 selects start tag data for which the end data is not present in the divided data 400 'as the start tag data from which the divided data 401' should inherit the effect from the divided data 400 '. As a result, the current start tag list for the divided data 400 'is obtained.
[0308] こうして、開始タグデータ 310— 312を繋げた分割データ 400'に関するカレント開 始タグリストを、現在のカレント分割データである分割データ 401 'の開始タグ文字列 に設定するから、開始タグ文字列(図 29の処理補助データ 133)は、「く HTML> く font size = " + l" > < P>」となる。 [0308] In this manner, the current start tag list for the divided data 400 'connecting the start tag data 310-312 is set to the start tag character string of the divided data 401' that is the current current divided data. The column (processing auxiliary data 133 in Figure 29) Font size = "+ l"><P>".
[0309] S4— 3では、カレント分割データ中のタグで、カレント開始タグリストを更新して、 S4  [0309] In S4-3, the tag in the current divided data is used to update the current start tag list, and
4へ処理が進む。そのときの更新処理は、開始タグデータの削除と追加である。追 加処理としては、カレント分割データを最初力も順に「パース」し、開始タグが現れた ら、その開始タグから開始タグデータを生成し、生成した開始タグデータをカレント開 始タグリストに追加する。なお、「パース」とは、ここではカレント分割データの文字列を 読み込んで、開始タグや終了タグ、 TEXTを区別することを意味する。  Processing proceeds to 4. The update processing at that time is deletion and addition of start tag data. As additional processing, the current divided data is first "parsed" in order, and when a start tag appears, start tag data is generated from the start tag and the generated start tag data is added to the current start tag list. . Here, “parse” means reading the character string of the current divided data and distinguishing the start tag, end tag, and TEXT.
[0310] また、削除処理としては、上記の「パース」中に、終了タグが現れたら、カレント開始 タグリスト中の最後の開始タグデータを削除する。  [0310] In the deletion process, when an end tag appears in the "parse", the last start tag data in the current start tag list is deleted.
[0311] XHTMLデータや XMLデータは、前述のとおり階層構造を有しているので、開始 タグと終了タグは必ず対応している。また、対応する開始タグと終了タグの区間が、他 の対応する開始タグと終了タグの区間と部分的に重なることはなぐ重なる場合は区 間全体が重なる、すなわち包含関係 (親子関係)しか取れないことになつている。  [0311] Since the XHTML data and the XML data have the hierarchical structure as described above, the start tag and the end tag always correspond. In addition, if the section of the corresponding start tag and end tag partially overlaps with the section of the other corresponding start tag and end tag, the entire section overlaps, that is, only the inclusion relationship (parent-child relationship) can be obtained. Not to be.
[0312] XHTMLデータや XMLデータは上記のような構造を持っており、また、カレント開 始タグリストはスタック構造なので、パース中に現れた終了タグに対応する開始タグは 、必ず最後に追加した開始タグデータとなっているはずである。  [0312] XHTML data and XML data have the above structure, and since the current start tag list is a stack structure, the start tag corresponding to the end tag that appears in the parse must be added at the end. It should be the start tag data.
[0313] 上記の削除処理、追加処理は、パース処理を進めながら、同時に行われる。  [0313] The above-described deletion processing and addition processing are performed at the same time as the parse processing proceeds.
[0314] 例えば、分割データ 400'の場合、タグだけを抜き出してみると、「く HTML>」、「 く font color = "red" size = " + 3,,>」、「く Zfont>」、「く brZ>」、「く font s ize = " + l,,>」、「く P>」が取り出される。  [0314] For example, in the case of the divided data 400 ', if only the tags are extracted, "ku HTML>", "ku font color =" red "size =" +3, >> "," ku Zfont> ", "Ku brZ>", "ku font s ize =" + l ,,> "and" ku P> "are extracted.
[0315] 最初は、カレント開始タグリストは空である。  [0315] Initially, the current start tag list is empty.
[0316] その状態で、まず、 HTMLタグの開始タグが現れるので、「"く HTML>"」の開始 タグ文字列を持つ開始タグデータ 310が生成され、カレント開始タグリストに追加され る。この時点のカレント開始タグリストは、開始タグデータ 310だけである。  [0316] In this state, first, the start tag of the HTML tag appears, so that start tag data 310 having a start tag character string of "" HTML> "" is generated and added to the current start tag list. The current start tag list at this point is only the start tag data 310.
[0317] 次に、 fontタグの開始タグが現れるので、 「"く font color = "red" size = " + 3"  [0317] Next, since the start tag of the font tag appears, "" font color = "red" size = "+ 3"
> "」の開始タグ文字列を持つ開始タグデータ 311が生成され、カレント開始タグリス トに追加される。なお、図 28は分割データ 400'を処理し終えた状態であり、削除処 理が実行されているので、開始タグデータ 311の内容は、ここでの説明とは変わって いる。この時点のカレント開始タグリストは、開始タグデータ 310、 311の 2つである。 > Start tag data 311 having a start tag character string of "" is generated and added to the current start tag list. FIG. 28 shows a state in which the division data 400 'has been processed, and since the deletion processing has been performed, the content of the start tag data 311 differs from the description here. Yes. The current start tag list at this point is the start tag data 310 and 311.
[0318] 次に、上記 fontタグの終了タグが現れるので、カレント開始タグリストに最後に追カロ された開始タグデータ 311が削除される。この時点のカレント開始タグリストは、開始 タグデータ 310だけに戻る。 [0318] Next, since the end tag of the font tag appears, the start tag data 311 last added to the current start tag list is deleted. The current start tag list at this point returns to the start tag data 310 only.
[0319] 次に、 brタグが現れる力 これは空タグで、開始タグと終了タグが一緒になつている ので、ここでは何も処理しない。追加、削除の処理を行ってもよいが、結果は同じであ る。この時点のカレント開始タグリストは、開始タグデータ 310だけである。 [0319] Next, the force that the br tag appears This is an empty tag, and since the start tag and the end tag are put together, nothing is processed here. Addition and deletion may be performed, but the results are the same. The current start tag list at this point is only the start tag data 310.
[0320] 次に、上記と別の fontタグの開始タグが現れるので、「"く font size = " + l" >"j の開始タグ文字列を持つ開始タグデータ 311が生成され、カレント開始タグリストに追 カロされる。この時点のカレント開始タグリストは、開始タグデータ 310、 311の 2つであ る。 [0320] Next, since a start tag of a font tag different from the above appears, start tag data 311 having a start tag character string of “ku font size =“ + l ”>” j is generated, and the current start tag is generated. The current start tag list at this point is the start tag data 310 and 311.
[0321] 最後に、 Pタグの開始タグが現れるので、「"く P>"」の開始タグ文字列を持つ開始 タグデータ 312が生成され、カレント開始タグリストに追加される。この時点のカレント 開始タグリストは、開始タグデータ 310、 311、 312の 3つである。  [0321] Finally, since the start tag of the P tag appears, start tag data 312 having a start tag character string of ""> is generated and added to the current start tag list. The current start tag list at this point is the start tag data 310, 311 and 312.
[0322] これで、図 28の開始タグデータ 310— 312が生成される。  [0322] Thus, start tag data 310-312 in Fig. 28 is generated.
[0323] S4— 4では、カレント分割データ中のタグで、カレント終了タグリストを更新して、 S4  [0323] In S4-4, the current end tag list is updated with the tag in the current divided data, and
5へ処理が進む。  The process proceeds to 5.
[0324] ここでの処理は、 S4— 3の処理と似ており、終了タグデータの削除と追加である。  [0324] The processing here is similar to the processing of S4-3, and is the deletion and addition of end tag data.
[0325] S4— 3では、終了タグが現れたら、カレント開始タグリスト中の最後の開始タグデー タを削除していた力 S4— 4でも同様に、終了タグが現れたら、カレント終了タグリスト 中の最後の終了タグデータを削除する。  [0325] In S4-3, when the end tag appears, the force that deleted the last start tag data in the current start tag list Similarly, in S4-4, when the end tag appears, the force in the current end tag list Delete the last end tag data.
[0326] また、 S4—3では、開始タグが現れたら、その開始タグを持つ開始タグデータを生成 して追加していた力 S4— 4でも同様に、開始タグが現れたら、その開始タグに対応 する終了タグ文字列を生成し、その終了タグ文字列を持つ終了タグデータを生成し て追加する。開始タグに対応する終了タグ文字列を生成する所が少し異なる。  [0326] Also, in S4-3, when the start tag appears, the force generated and added to the start tag data having the start tag S4-4 similarly, when the start tag appears, the start tag appears. Generate the corresponding end tag character string, and generate and add end tag data with the end tag character string. The difference is that the end tag string corresponding to the start tag is generated.
[0327] 例として、 S4— 3で使った分割データ 400'のタグを使って、説明する。  [0327] As an example, description will be made using the tag of the divided data 400 'used in S4-3.
[0328] 最初は、カレント終了タグリストは空である。  [0328] Initially, the current end tag list is empty.
[0329] この状態で、まず、 HTMLタグの開始タグが現れるので、対応する終了タグ文字列 「"く ZHTML>"」を生成し、生成した終了タグ文字列を持つ終了タグデータ 320 が生成され、カレント終了タグリストに追加される。この時点のカレント終了タグリストは 、終了タグデータ 320だけである。 [0329] In this state, first, since the start tag of the HTML tag appears, the corresponding end tag character string “<ZHTML>” ”is generated, and end tag data 320 having the generated end tag character string is generated and added to the current end tag list. The current end tag list at this point is only the end tag data 320.
[0330] 次に、 fontタグの開始タグが現れるので、 「"く Zfont>"」の終了タグ文字列を持 つ終了タグデータ 321が生成され、カレント終了タグリストに追加される。この時点の カレント終了タグリストは、終了タグデータ 320、 321の 2つである。  [0330] Next, since the start tag of the font tag appears, end tag data 321 having an end tag character string of "" Zfont> "" is generated and added to the current end tag list. The current end tag list at this point is the end tag data 320 and 321.
[0331] 次に、 fontタグの終了タグが現れるので、カレント終了タグリストに最後に追加され た終了タグデータ 321が削除される。この時点のカレント終了タグリストは、終了タグ データ 320だけに戻る。  [0331] Next, since the end tag of the font tag appears, the end tag data 321 added last to the current end tag list is deleted. The current end tag list at this point returns to end tag data 320 only.
[0332] 次に、 brタグが現れる力 これは空タグで、開始タグと終了タグが一緒になつている ので、ここでは何も処理しない。追加、削除の処理を行ってもよいが、結果は同じであ る。この時点のカレント終了タグリストは、終了タグデータ 320だけである。  [0332] Next, the force that the br tag appears This is an empty tag, and since the start tag and the end tag are put together, nothing is processed here. Addition and deletion may be performed, but the results are the same. The current end tag list at this point is only the end tag data 320.
[0333] 次に、上記と別の fontタグの開始タグが現れるので、 「"く Zfont>"」の終了タグ 文字列を持つ終了タグデータ 321が生成され、カレント終了タグリストに追加される。 この時点のカレント終了タグリストは、終了タグデータ 320、 321の 2つである。  [0333] Next, since the start tag of the font tag different from the above appears, end tag data 321 having an end tag character string of "" is obtained and added to the current end tag list. The current end tag list at this point is the end tag data 320 and 321.
[0334] 最後に、 Pタグの開始タグが現れるので、 「"く ZP>"」の終了タグ文字列を持つ終 了タグデータ 312が生成され、カレント終了タグリストに追加される。この時点のカレン 卜終了タグリス卜は、終了タグデータ 320、 321、 322の 3つである。  [0334] Finally, since the start tag of the P tag appears, end tag data 312 having an end tag character string of "" ZP> "is generated and added to the current end tag list. At this point, the current end tag list is the end tag data 320, 321 and 322.
[0335] これで、図 28の終了タグデータ 320— 322が生成される。  [0335] Thus, end tag data 320-322 in Fig. 28 is generated.
[0336] なお、 S4— 3と S4— 4の処理は、ここでは説明を分力りやすくする為に別々にパース するように説明した力 1回のパースで両方の処理を同時に行う方が処理効率が良 い。  [0336] The processing of S4-3 and S4-4 is described here as being parsed separately in order to make the description easier to understand. It is better to perform both processing at the same time with a single parse. Efficient.
[0337] S4— 5では、カレント終了タグリストをカレント分割データの終了タグ文字列に設定し 、 S4— 6へ処理が進む。  [0337] In S4-5, the current end tag list is set to the end tag character string of the current divided data, and the process proceeds to S4-6.
[0338] カレント終了タグリストからカレント分割データの終了タグ文字列を生成するには、力 レント終了タグリストの最後の終了タグデータ力 最初の終了タグデータまで順番に つなげて文字列を生成すればよい。カレント終了タグリストはスタック構造なので、例 えば、図 28の場合、一番上の最後の終了タグデータ 322から、終了タグデータ 321 、 320の順に読み込む。 [0338] To generate an end tag character string of the current divided data from the current end tag list, the last end tag data in the current end tag list is generated by connecting the character strings in order up to the first end tag data. Good. Since the current end tag list has a stack structure, for example, in the case of FIG. 28, the end tag data 321 is changed from the last end tag data 322 at the top. , Read in order of 320.
[0339] 例えば、カレント分割データが最初の分割データ 400,の場合、カレント終了タグリ ストは、図 28の終了タグデータ 320— 322となっている。そこで、処理補助データ生 成手段 5が、終了タグデータ 322、 321、 320の順に繋ぐことにより、終了タグ文字列 (図 29の処理補助データ 132)は、「<ZP> <Zfont> <ZHTML>」となる。  For example, when the current divided data is the first divided data 400, the current end tag list is the end tag data 320-322 in FIG. Therefore, the processing auxiliary data generating means 5 connects the end tag data 322, 321 and 320 in this order, so that the end tag character string (processing auxiliary data 132 in FIG. 29) becomes "<ZP> <Zfont> <ZHTML> ".
[0340] S4— 6では、カレント分割データの次の分割データが存在するかどうか判断し、存 在すると判断されれば S4 - 7へ処理が進み、存在しないと判断されれば、 P40 (図 23 )へ処理が抜ける。  [0340] In S4-6, it is determined whether or not the next divided data of the current divided data exists. If it is determined that the data exists, the process proceeds to S4-7. 23) Processing exits.
[0341] S4— 7では、カレント分割データを次の分割データに設定し、 S4— 2へ処理が戻る。  [0341] In S4-7, the current divided data is set to the next divided data, and the process returns to S4-2.
[0342] ここで、もう少し具体例を確認しておくと、例えば、分割データ 401 ' -402'は、プレ ーンテキストデータのみから成るので、図 28に示すカレント開始タグリストに対し、分 割データ 401 ' ·402'に基づいて追加または削除される開始タグは存在しない。従つ て、分割データ 401 ' ·402'の各処理補助データ 133· 135は、分割データ 400'か ら読み込まれた開始タグのみで構成されて 、る。  [0342] Here, to confirm a more specific example, for example, since the divided data 401 '-402' is composed of only plain text data, the divided data 401 '-402' is divided into the current start tag list shown in FIG. There is no start tag added or deleted based on the data 401 '402'. Accordingly, each of the processing auxiliary data 133 and 135 of the divided data 401 'and 402' is composed of only the start tag read from the divided data 400 '.
[0343] 分割データ 401 ' ·402'の各処理補助データ 134· 136についても、分割データ 40 0'から生成された終了タグの処理補助データ 132と同一内容になっている。  [0343] The processing auxiliary data 134 and 136 of the divided data 401 'and 402' have the same contents as the processing auxiliary data 132 of the end tag generated from the divided data 400 '.
[0344] 一方、分割データ 403'の開始タグに関する処理補助データ 137の場合、分割デ ータ 403,力も Ρタグの終了タグが読み込まれるので、 Ρタグの開始タグデータ 312が 削除される。また、分割データ 403'の終了タグに関する処理補助データ 138につい ても、 Ρタグの終了タグデータ 322が削除される。  On the other hand, in the case of the processing auxiliary data 137 related to the start tag of the divided data 403 ′, since the divided data 403 and the end tag of the Ρ tag are read, the タ グ tag start tag data 312 is deleted. Also, regarding the processing auxiliary data 138 relating to the end tag of the divided data 403 ′, the end tag data 322 of the Ρ tag is deleted.
[0345] 以上の S4— 1から S4— 7の処理によって、図 23の S4の処理、すなわち分割データ を使って、処理補助データを生成する処理を行うことができる。  [0345] By the above-described processing of S4-1 to S4-7, the processing of S4 in Fig. 23, that is, the processing of generating processing auxiliary data using the divided data can be performed.
[0346] (依存関係データ生成処理一その 1)  [0346] (Dependency Data Generation Process 1)
図 30は、図 23の S5の処理、すなわち、各手段 7、 8、 10— 12から得られる分割境 界データを使って、依存関係データを生成する処理の一方法を説明するフローチヤ ート図である。各ステップでの動作主体は、全て、依存関係データ生成手段 6なので 、各ステップの説明では、動作主体の記述を省く。  FIG. 30 is a flowchart illustrating one method of processing of S5 in FIG. 23, that is, a method of generating dependency data using the divided boundary data obtained from each of the means 7, 8, and 10-12. It is. Since the actors in each step are all the dependency data generating means 6, the description of the actors is omitted in the description of each step.
[0347] ここでは、分割データの処理結果間の影響は、表示レイアウトを作成する方向が電 子データの前から後ろに向かう方向であるため、前の分割データから後の分割デー タの方向に影響するとしている。この方向が最も一般的である力 もし、後の分割デ 一タカ 前の分割データの方向に影響する電子データの場合は、ここでの説明を逆 にすればよい。また、両方向ありえる場合は、両方向とも処理するようにすればよい。 [0347] Here, the influence between the processing results of the divided data depends on the direction in which the display layout is created. Since the direction is from the front to the back of the child data, it affects the direction from the previous divided data to the subsequent divided data. This direction is the most common force. If it is electronic data that affects the direction of the previous divided data, the description here may be reversed. If both directions are possible, both directions may be processed.
[0348] P40を経た S5A— 1では、最初の分割データの依存関係を「非依存」に設定し、最 初の分割データをカレント分割データに設定して、 S5A— 2へ進む。影響の及ぶ方向 は、前力 後の方向なので、最初の分割データは、その前に分割データが存在して いないため、当然、影響を受けない為である。  [0348] In S5A-1 that has passed through P40, the dependency of the first divided data is set to "independent", the first divided data is set to the current divided data, and the process proceeds to S5A-2. The direction of influence is the direction after the front force, so the first divided data is naturally not affected because there is no preceding divided data.
[0349] 「非依存」か「依存」かの情報は、例えば、図 8のように、「0」、「1」という値で記録し てもよい。  [0349] The information of "independent" or "dependent" may be recorded as values "0" and "1", for example, as shown in FIG.
[0350] S5A— 2では、カレント分割データの次の分割データが存在するかどうか判断し、存 在すると判断されれば S5A— 3へ処理が進み、存在しないと判断されれば、 P50を経 て S5 (図 23)の処理を抜け、本発明のデータ生成方法に関する全ての処理が終了 する。  [0350] In S5A-2, it is determined whether or not the next divided data of the current divided data exists. If it is determined that the data exists, the process proceeds to S5A-3. Then, the process of S5 (FIG. 23) is exited, and all the processes relating to the data generation method of the present invention are completed.
[0351] S5A— 3では、カレント分割データの次の分割データを、新たなカレント分割データ に設定し、 S5A— 4へ処理が進む。  In S5A-3, the next divided data following the current divided data is set as new current divided data, and the process proceeds to S5A-4.
[0352] S5A— 4では、カレント分割データとその前の分割データとの分割境界は、その属 性が「非依存」かどうかを判断し、「非依存」と判断されれば、 S5A - 5へ処理が進み、 「非依存」ではな 、(すなわち「依存」)と判断されれば、 S5A— 6へ処理が進む。  [0352] In S5A-4, the division boundary between the current divided data and the previous divided data determines whether or not the attribute is "independent". If the attribute is determined to be "independent", the S5A-5 The process proceeds to S5A-6 if it is determined that the condition is not "independent" (that is, "dependent").
[0353] 「非依存」である力 「依存」であるかの情報は、図 23の S2で、分割境界を作成する 際に得ることができる。具体的には、図 24の S2-7で標準内非依存分割境界候補を 分割境界とした場合、ある!ヽは S2 - 10で標準外非依存分割境界候補を分割境界と した場合は、その分割境界の属性は「非依存」である。その一方で、 S2-15で、標準 内依存分割境界候補を分割境界とした場合、その分割境界の属性は「依存」である  [0353] Force that is "independent" Information on whether it is "dependent" can be obtained when creating a division boundary in S2 of FIG. Specifically, in S2-7 in Fig. 24, when the in-standard non-dependent division boundary candidate is set as the division boundary, there is a case where the nonstandard non-independent division boundary candidate is set as the division boundary in S2-10. The attribute of the division boundary is “independent”. On the other hand, in S2-15, if the intra-standard dependent dividing boundary candidate is set as the dividing boundary, the attribute of the dividing boundary is “dependent”.
[0354] なお、分割境界データ等、本発明の方法によって生成される各種データのファイル 保存に関しては、後述する。 [0354] Saving of various data generated by the method of the present invention, such as division boundary data, to a file will be described later.
[0355] S5A— 5では、カレント分割データの依存関係データを「非依存」に設定して、 S5A 2へ処理が戻る。 [0355] In S5A-5, the dependency data of the current divided data is set to "independent", The process returns to 2.
[0356] S5A— 6では、カレント分割データの依存関係データを「依存」に設定して、 S5A— 2 へ処理が戻る。  [0356] In S5A-6, the dependency data of the current divided data is set to "dependent", and the process returns to S5A-2.
[0357] 以上の S5A— 1から S5A— 6の処理で、図 23の S5の処理、すなわち、各手段 7、 8、 10— 12から得られる分割境界データを使って、依存関係データを生成する処理を 行うことができる。  [0357] In the above processing of S5A-1 to S5A-6, the dependency data is generated using the processing of S5 in Fig. 23, that is, the division boundary data obtained from each of the means 7, 8, and 10-12. Processing can be performed.
[0358] 分割データ 400'— 405'の場合、分割データ 401 'と分割データ 402'の分割境界 、分割データ 402'と分割データ 403'の分割境界力 改行で分割されていない。した がって、その属性が「依存」となっているため、図 8の処理補助データ 140— 145のよ うな結果が得られる。  [0358] In the case of the divided data 400'-405 ', the division boundary between the divided data 401' and the divided data 402 'and the division boundary force between the divided data 402' and the divided data 403 'are not divided by line feed. Therefore, since the attribute is “dependent”, a result like the processing auxiliary data 140 to 145 in FIG. 8 is obtained.
[0359] (依存関係データ生成処理一その 2)  [0359] (Dependency Data Generation Process 1)
図 31は、図 23の S5の処理、すなわち、各手段 7、 8、 10— 12から得られる分割境 界データを使って、別形態の依存関係データを生成する処理の一方法を説明するフ ローチャート図である。上記別形態の依存関係データとは、図 9に示すように、着目し ている分割データの処理結果が影響を受ける最前の分割データを示すデータのこと である。  FIG. 31 is a flowchart for explaining one method of the process of S5 in FIG. 23, that is, a process of generating another form of dependency data using the divided boundary data obtained from each of the means 7, 8, and 10-12. FIG. As shown in FIG. 9, the dependency data in another form is data indicating the earliest divided data affected by the processing result of the focused divided data.
[0360] 各ステップでの動作主体は、全て、依存関係データ生成手段 6なので、各ステップ の説明では、動作主体の記述を省く。また、影響の方向に関して、図 30での説明同 様、ここでは、前力 後の分割データの方向について説明する。  [0360] Since the operation subject in each step is all the dependency relationship data generation means 6, the description of the operation subject is omitted in the description of each step. Further, regarding the direction of the influence, as in the description of FIG. 30, here, the direction of the divided data after the front force will be described.
[0361] P40を経た S5B-1では、最初の分割データの「最前依存分割データ」を分割デー タ自身に設定し、最初の分割データをカレント分割データに設定して、 S5B— 2へ処 理が進む。最前依存分割データは、自分自身の場合は、空データとしてしまう仕様で もよいが、ここでは一応、自分自身を設定しておくとする。  [0361] In S5B-1 that has passed through P40, the "first-most dependent divided data" of the first divided data is set in the divided data itself, the first divided data is set in the current divided data, and processing is performed in S5B-2. Advances. In the case of own, the foremost dependent divided data may be a specification in which empty data is used, but in this case, it is assumed that the own is set for the time being.
[0362] S5B— 2では、最初の分割データを「ターゲット分割データ」に設定して、 S5B— 3へ 処理が進む。「ターゲット分割データ」とは、現在の最前依存分割データを意味する。  [0362] In S5B-2, the first divided data is set to "target divided data", and the process proceeds to S5B-3. “Target split data” means the current foremost dependent split data.
[0363] S5B— 3では、カレント分割データの次の分割データが存在するかどうか判断し、存 在すると判断されれば S5B— 4へ処理が進み、存在しないと判断されれば、 P50を経 て S5の処理を抜け、全ての処理が終了する。ここでの処理は、 S5A— 2と同様である [0364] S5B— 4では、カレント分割データの次の分割データを、新たなカレント分割データ に設定し、 S5B— 5へ処理が進む。ここでの処理は、 S5A— 3と同様である。 [0363] In S5B-3, it is determined whether or not the next divided data of the current divided data exists. If it is determined that the data exists, the process proceeds to S5B-4. To exit the processing of S5, and all the processing ends. The processing here is the same as S5A-2 [0364] In S5B-4, the next divided data following the current divided data is set as new current divided data, and the process proceeds to S5B-5. The processing here is the same as in S5A-3.
[0365] S5B— 5では、カレント分割データとその前の分割データとの分割境界の属性は、「 非依存」かどうかを判断し、「非依存」と判断されれば、 S5B - 6へ処理が進み、「非依 存」ではな!/、(すなわち「依存」)と判断されれば、 S5B— 7へ処理が進む。ここでの処 理は、 S5A— 4と同様である。  [0365] In S5B-5, it is determined whether the attribute of the dividing boundary between the current divided data and the preceding divided data is "independent", and if it is determined to be "independent", the process proceeds to S5B-6. If it is determined that it is not “independent”! / (Ie, “dependent”), the process proceeds to S5B-7. The processing here is the same as for S5A-4.
[0366] S5B— 6では、カレント分割データをターゲット分割データに設定し、 S5B— 7に処理 が進む。すなわち、 S5B— 5で、カレント分割データとその前の分割データとの分割境 界が「非依存」と判断されたということは、依存関係がこの分割境界の位置でリセットさ れたことを意味するので、カレント分割データの最前依存分割データは自分自身に なる為である。  [0366] In S5B-6, the current divided data is set as the target divided data, and the process proceeds to S5B-7. In other words, in S5B-5, the fact that the dividing boundary between the current divided data and the preceding divided data was determined to be “independent” means that the dependency was reset at the position of this dividing boundary. Therefore, the first dependent divided data of the current divided data is itself.
[0367] なお、 S5B— 5から S5B— 7へ処理が進む時、すなわち前記分割境界の属性が「依 存」の時は、最前依存分割データは変わらず、カレント分割データに引き継がれるこ とになる。  [0367] When the process proceeds from S5B-5 to S5B-7, that is, when the attribute of the division boundary is "dependent", the foremost dependent divided data remains unchanged and is taken over by the current divided data. Become.
[0368] 従って、 S5B— 7では、カレント分割データの最前依存分割データを、その時点で 最前依存分割データとして特定されて ヽるターゲット分割データに設定し、 S5B-3 へ処理が戻る。  [0368] Therefore, in S5B-7, the foremost dependent divided data of the current divided data is set to the target divided data specified as the foremost dependent divided data at that time, and the process returns to S5B-3.
[0369] 以上の S5B— 1から S5B— 7の処理で、図 23の S5の処理、すなわち、各手段 7、 8、 10— 12から得られる分割境界データを使って、別形態の依存関係データを生成す る処理を行うことができる。  [0369] In the above processing of S5B-1 to S5B-7, the processing of S5 in Fig. 23, that is, the dependency data of another form is obtained by using the division boundary data obtained from each means 7, 8, 10-12. Can be generated.
[0370] 分割データ 400'— 405'の場合、分割データ 401 'と分割データ 402'の分割境界 、分割データ 402'と分割データ 403'の分割境界力 改行で分割されていないので 、属性が「依存」となっている。このため、図 9の処理補助データ 150— 155のように、 分割データ 402' -403'に対応する処理補助データ 152· 153が、それより前の分割 データ 401 'を指し、それ以外の処理補助データは、自分自身の分割データを指す と 、う意味の値となって 、る。  [0370] In the case of the divided data 400 '-405', the division boundary between the divided data 401 'and the divided data 402' and the division boundary force between the divided data 402 'and the divided data 403' are not divided by a line feed. Dependency ". Therefore, as shown in the processing auxiliary data 150-155 in FIG. 9, the processing auxiliary data 152 and 153 corresponding to the divided data 402'-403 'point to the previous divided data 401' and the other processing auxiliary data. When the data indicates its own divided data, it becomes a meaningful value.
[0371] (データ記録ファイルの形式) 次に、本発明のデータ生成方法によって生成したこれら分割データ、分割境界デ ータ、処理補助データ、依存関係データなどを、実際にファイルなどの形式で主記憶[0371] (Data recording file format) Next, the divided data, the divided boundary data, the processing auxiliary data, the dependency data, and the like generated by the data generation method of the present invention are actually stored in a main storage in the form of a file or the like.
74上や外部記憶 75上などに記録する際の形式について説明する。 The format for recording on 74 or external storage 75 will be described.
[0372] まず、電子データと分割データおよび分割境界データなどの関係について概略を 説明する。なお、分割データ、分割境界データ、処理補助データ、および依存関係 データなどの細か 、ファイル構造にっ 、ては、後で図を使って説明する。 First, the outline of the relationship between electronic data, division data, division boundary data, and the like will be described. The details of the divided data, the divided boundary data, the processing auxiliary data, the dependency data, and the like, and the file structure will be described later with reference to the drawings.
[0373] 既に説明したように、分割データを得るには、分割境界データを使って、電子デー タ (ファイル)中から必要な分割データを必要になったときに抜き出してくる方法と、算 出した分割境界のデータ位置で電子データを分割して生成した分割データをフアイ ルなどの単位で記録しておき、各ファイルから分割データを直接読み出す場合と、大 きく 2つの方法がある。 [0373] As described above, in order to obtain the divided data, the method of extracting the necessary divided data from the electronic data (file) when it is needed using the dividing boundary data, and a method of calculating There are two main methods: one is to record the divided data generated by dividing the electronic data at the data position of the divided boundary in units such as files, and then read the divided data directly from each file.
[0374] 図 32は、前者の方法で使われるファイルのデータ構造を説明する説明図である。こ こでは、電子データファイル 100'と分割境界データ配列ファイル 110との 2つのファ ィルが作成される。分割境界データ配列ファイル 110には、分割境界データ 111一 1 17が記録されている。電子データファイル 100'の分割境界のデータ位置は、分割 境界データ 111一 117によって求められる。すなわち、分割境界データ 111一 117を 用いることにより、図 32に示すように、電子データファイル 100'から、ヘッダデータ 1 01、分割データ 400'— 405'を任意に抜き出すことができる。  FIG. 32 is an explanatory diagram illustrating the data structure of a file used in the former method. Here, two files, an electronic data file 100 'and a division boundary data array file 110, are created. In the division boundary data array file 110, division boundary data 111-117 is recorded. The data position of the division boundary of the electronic data file 100 'is obtained from the division boundary data 111-117. That is, by using the division boundary data 111-117, the header data 101 and the division data 400'-405 'can be arbitrarily extracted from the electronic data file 100' as shown in FIG.
[0375] 分割境界データ 111は電子データファイル 100'中のヘッダデータ 101と分割デー タ 400'との分割境界の位置を表している。分割境界データ 112は電子データフアイ ル 100,中の分割データ 400'と分割データ 401 'との分割境界の位置を表している。 同様に、分割境界データ 113— 116は、それぞれ対応する分割境界の位置を表して いる。分割境界データ 117は、分割データ 405'の最後の位置を表している。  [0375] The division boundary data 111 indicates the position of the division boundary between the header data 101 and the division data 400 'in the electronic data file 100'. The division boundary data 112 indicates the position of the division boundary between the division data 400 'and the division data 401' in the electronic data file 100. Similarly, the division boundary data 113-116 represents the position of the corresponding division boundary. The division boundary data 117 indicates the last position of the division data 405 '.
[0376] なお、図 32のファイル構造は、必ずこの構造でないといけないということではなぐ 典型的なファイル構造の一つを例としてあげているだけである。例えば、ヘッダデー タ 101を分割データ 400'の前に配置している力 ヘッダデータが必要かどうかは、電 子データの種類やその利用目的によって異なる。ヘッダデータには、電子データの 種類 (フォーマット)やバージョン情報、内部の各種データへのアクセス方法、著作権 情報、暗号化されている場合は暗号情報などが含まれることが多い。また、分割デー タゃ分割境界データも図 32のように並んで配置しな 、と 、けな 、と 、う訳ではなぐ 間隔が空 、て 、ても、それを知る情報がヘッダデータや分割境界データなど力 得 られれば問題ない。 [0376] Note that the file structure in Fig. 32 does not necessarily mean that the file structure must be this structure, but merely shows one of the typical file structures as an example. For example, the necessity of header data in which the header data 101 is arranged before the divided data 400 'is necessary depending on the type of electronic data and the purpose of use. The header data contains the type (format) and version information of the electronic data, how to access various internal data, copyright Information, if encrypted, often includes cryptographic information. Also, if the division data and the division boundary data are not arranged side by side as shown in FIG. 32, the interval is not empty, and the information to know it is header data or division information. There is no problem if you can acquire boundary data.
[0377] 以上のようにして、分割境界データを使って、電子データファイル中力 必要な分 割データを得ることができる。この分割データ取得方法の場合、分割境界データさえ ファイルなどで作成しておけば、電子データファイルをそのまま使うことができる利点 がある。例えば、図 3に示すようなウィンドウを呼び出して、分割データのサイズを変 更する場合でも、分割境界データを算出し直すだけでよいので、処理の高速化に都 合が良い。  [0377] As described above, the necessary division data can be obtained in the electronic data file using the division boundary data. In the case of this division data acquisition method, there is an advantage that the electronic data file can be used as it is if the division boundary data is created in a file or the like. For example, when a window as shown in FIG. 3 is called to change the size of the divided data, it is only necessary to recalculate the division boundary data, which is convenient for speeding up the processing.
[0378] 図 33は、分割データを得る後者の方法、すなわち、各ファイル力 分割データを直 接読み出す方法で使われる分割データのファイルの構造を説明する説明図である。  [0378] Fig. 33 is an explanatory diagram illustrating the file structure of the divided data used in the latter method of obtaining the divided data, that is, the method of directly reading the divided data of each file.
[0379] ヘッダデータ 101、分割データ 400'— 405 'は、ファイル 120— 126として、それぞ れファイルとして記録されている。後は、どの分割データがどのファイルに対応してい るかの情報さえ得られればよい。  [0379] The header data 101 and the divided data 400'-405 'are recorded as files 120-126, respectively. After that, it is only necessary to obtain information on which divided data corresponds to which file.
[0380] 一般に、ファイルはファイル名で区別されることが多いので、例えば、各分割データ のファイル名が得られれば良い。その場合、例えば、各分割データのファイル名は、 ヘッダデータ 101のファイル 120などに別途記録しておくと力 ファイル名の命名規 則を決めておくなどの方法が考えられる。  [0380] In general, files are often distinguished by file names, and therefore, for example, it is only necessary to obtain the file name of each divided data. In this case, for example, if the file name of each divided data is separately recorded in the file 120 of the header data 101 or the like, a naming rule for the file name may be determined.
[0381] 図 34は、分割データの各ファイルのファイル名を XML形式で記録している例であ る。図 34の「分割データリスト」部分、すなわち DividedFileListタグ以下の階層で、 これらのファイル名を記録して!/、る。 DividedFileListタグの下の fileタグの name属 性で、ファイル名を記録している。 fileタグの順番が分割データの順である。  [0381] Fig. 34 is an example in which the file name of each file of the divided data is recorded in the XML format. These file names are recorded in the "division data list" portion of FIG. 34, that is, in the hierarchy below the DividedFileList tag. The file name is recorded in the name attribute of the file tag below the DividedFileList tag. The order of the file tags is the order of the divided data.
[0382] また、図 34では、各分割データのファイルのデータを、同じファイル中に「各フアイ ルのデータ」として記録している力 同じファイル中に記録せず、後で説明する図 40 のように、独立したファイルとして記録してもよい。  [0382] In addition, in Fig. 34, the data of the file of each divided data is recorded in the same file as "data of each file". As described above, it may be recorded as an independent file.
[0383] 以上のようにして、各ファイル力も分割データを直接読み出すことができる。分割境 界データを使って、一部のファイルを読むなどという処理が必要なぐ処理を単純ィ匕 することができる利点がある。また、分割データのサイズを変更する頻度が少ない形 態では、既に記録済みの分割データを読み出すだけでよぐ表示レイアウト等の処理 結果を得ようとする毎に、分割データを生成する必要がないので、処理の高速化に 都合が良い。 As described above, each file can directly read the divided data. Processing that requires processing such as reading some files using the division boundary data is simplified. There are advantages that can be. In addition, in a mode in which the size of the divided data is not frequently changed, it is not necessary to generate the divided data every time the processing result of the display layout or the like is obtained simply by reading the already recorded divided data. Therefore, it is convenient for speeding up the processing.
[0384] 次に、分割データ、分割境界データ、処理補助データ、依存関係データなどの細 カ^、ファイル構造にっ 、て説明する。  Next, the details of the divided data, the divided boundary data, the processing auxiliary data, the dependency data, and the like, and the file structure will be described.
[0385] ファイルへの記録の仕方や構造は色々考えられるが、例えば、テキストデータで記 述するか、ノイナリデータで記述する力 という観点もある。データを 8ビットからなる 1 ノイト単位の文字コードで表現する場合、テキストデータは、一般に英数字や一部の 記号などの 100個前後の文字コードだけ力 なり、バイナリデータはそれ以外の残り の文字 (表現 Z印刷できない制御コードなど)も含めた全 256個の文字コードからな る。  [0385] There are various methods and structures for recording in a file, but for example, there is also a viewpoint of writing in text data or writing data in knowledge data. When data is expressed in 8-bit character codes in units of one knot, text data is generally limited to about 100 character codes such as alphanumeric characters and some symbols, and binary data is the remaining characters. It consists of a total of 256 character codes, including (expression Z control codes that cannot be printed).
[0386] テキストデータは、人間が見て理解することができ、エディタアプリケーションなどで 編集することができるので、扱い易いという利点がある。但し、使える文字コードが制 限されている為、同じ情報量を記述するのに、バイナリデータと比べて、データサイズ が大きくなりやすいという欠点もある。逆にノイナリデータは、扱いにくいが、データサ ィズを小さくしゃす 、利点がある。  [0386] Text data has the advantage of being easy to handle because it can be viewed and understood by humans and edited with an editor application or the like. However, since the character codes that can be used are limited, there is also a disadvantage that the data size tends to be larger than binary data when describing the same amount of information. Conversely, knowledge data is difficult to handle, but has the advantage of reducing the data size.
[0387] 以降の説明では、同じ情報を、テキストデータとバイナリデータの両方の形式で示 すことにする。  [0387] In the following description, the same information will be shown in both text data and binary data formats.
[0388] 図 36は、電子データをファイルに記録する際のバイナリ形式のファイル構造例を説 明する説明図である。  FIG. 36 is an explanatory diagram illustrating an example of a binary file structure when electronic data is recorded in a file.
[0389] 図中の各矩形は、数字ある!/、は文字列のデータである。ここでは説明の為、数字だ け力もなる矩形は固定長の数字データ、「"」 」で囲まれている文字列は可変長の 文字列データ、「"」「"」で囲まれていない文字列は固定長の文字列データ、括弧で 囲まれたデータは可変長のバイナリデータとする。  [0389] Each rectangle in the figure has a number! /, Which is character string data. Here, for the sake of explanation, rectangles with only numerical power are fixed-length numeric data, character strings enclosed by "" "are variable-length character string data, and characters not enclosed by" "and" ". The column is fixed-length character string data, and the data enclosed in parentheses is variable-length binary data.
[0390] ここでは、バイナリデータのファイル構造として、「チャンク構造」を使っている。「チヤ ンク」とは、データの塊であり、通常、そのチャンクのデータサイズや、データの種類を 示す識別文字列などが先頭に記録されて 、る。チャンクの集まりからなる構造が「チ ヤンク構造」である。なお、以降の説明では、「Aのチャンク構造データ」を省略して、「 Aチャンクデータ」あるいは「Aチャンク」と呼ぶことがある。 [0390] Here, a "chunk structure" is used as the file structure of the binary data. A “chunk” is a chunk of data, and usually has a data size of the chunk, an identification character string indicating the type of data, and the like recorded at the beginning. The structure consisting of a collection of chunks Yank structure ". In the following description, “A chunk structure data” may be omitted, and may be referred to as “A chunk data” or “A chunk”.
[0391] チャンク構造の利点として、データアクセスの高速化、データ構造の柔軟性があげ られる。例えば、ある種類のデータだけを得たい場合、先頭カゝら順にチャンクデータ を調べていく。各チャンクデータの先頭部分に記載されている識別文字列を見て、 目 的の種類のデータならば、そのデータサイズ分を読み込めばよぐ 目的の種類のデ ータでないならば、そのデータサイズ分をスキップして読み飛ばし、次のチャンクデー タを調べればよい。これにより、 目的のチャンクデータへのデータアクセスが高速ィ匕さ れる。 [0391] Advantages of the chunk structure include faster data access and flexibility in the data structure. For example, to obtain only a certain type of data, the chunk data is checked in order from the beginning. Look at the identification character string described at the beginning of each chunk data. If the data is of the desired type, it is sufficient to read the data size. If it is not the desired type of data, the data size You can skip reading the minute and skip to the next chunk data. As a result, data access to target chunk data is performed at high speed.
[0392] また、読み飛ばすチャンクデータに関しては、チャンクデータの内部構造を知って いる必要はないので、ファイル構造、すなわち全てのチャンクデータの構造を全て知 らな 、と全く処理ができな 、と!/、うことはなぐ知って 、るチャンクデータだけは処理で きる。従って、ファイル構造の変化に対して強ぐ柔軟に処理することができる利点が ある。  [0392] Also, as for the chunk data to be skipped, it is not necessary to know the internal structure of the chunk data, so that the file structure, that is, the structure of all the chunk data cannot be known at all, cannot be processed at all. ! /, Knowing that you can handle only chunk data. Therefore, there is an advantage that the processing can be performed strongly and flexibly against a change in the file structure.
[0393] 図 36の電子データファイルでは、まず先頭にファイル識別文字列 180がある。ここ では、「MAINDATA— VI. 00」としている。ここでは、「MAINDATA」の部分は、 このファイルの種類が「電子データ」であることを示し、「VI . 00」は、ファイル構造の バージョンを意味するとする。なお、ここではバージョンを識別文字列に含めてしまつ ているが、数字データとして記録してもよい。  [0393] In the electronic data file in Fig. 36, first, a file identification character string 180 is provided at the beginning. Here, “MAINDATA—VI. 00” is used. Here, “MAINDATA” indicates that this file type is “electronic data”, and “VI.00” means the version of the file structure. Here, the version is included in the identification character string, but may be recorded as numerical data.
[0394] ファイル構造は後で変える必要が出てくることがある為、このように、ファイルの種類 だけでなぐバージョン情報も入れることで、柔軟な処理がし易くなる。例えば、処理 系がファイル構造を知っているバージョン番号と比較して、新しいバージョン番号を 持つ電子データの時は、処理を中止したり、ユーザーに処理を続けるかどうか問い合 わせたりといった処理が可能となる。  [0394] Since the file structure may need to be changed later, flexible processing can be easily performed by including version information that is not limited to the file type. For example, when electronic data with a new version number is compared with a version number for which the processing system knows the file structure, processing can be stopped or the user can be asked whether to continue processing. It becomes.
[0395] ファイル識別文字列 180の後、チャンク識別文字列 181から暗号情報 183までが「 暗号情報チャンク」(暗号情報のチャンクデータ)となっている。ここでは、チャンクデ ータは、最初に 3文字の固定文字列からなるチャンク識別文字列 181があり、次に 4 バイトの数字データ力もなるチャンクデータサイズ 182、その後に各チャンクの内部デ ータが続く。チャンクデータサイズは、ここでは、内部データのサイズを表すとする。 [0395] After the file identification character string 180, the chunk identification character strings 181 to the encryption information 183 are "encryption information chunks" (chunk data of encryption information). Here, the chunk data has a chunk identification string 181 consisting of a fixed character string of three characters at the beginning, a chunk data size 182 consisting of a 4-byte numeric data capacity, and then an internal data of each chunk. Data follows. Here, the chunk data size represents the size of internal data.
[0396] 暗号情報チャンクの場合、チャンク識別文字列 181が「ECP」、チャンクデータサイ ズ 182が「4」、内部データである暗号情報 183が固定長文字列「NONE」である。暗 号情報 183は固定長文字列で、文字列長は 4文字なので、チャンクデータサイズ 18 2は「4」となっている。なお、ここではデータサイズの単位として、「バイト」を使ってい る。  [0396] In the case of an encryption information chunk, the chunk identification character string 181 is "ECP", the chunk data size 182 is "4", and the encryption information 183 that is internal data is a fixed-length character string "NONE". Since the cipher information 183 is a fixed-length character string and the character string length is 4 characters, the chunk data size 182 is “4”. Here, “byte” is used as the unit of the data size.
[0397] 暗号情報チャンクは、ここでは以降のデータの暗号ィヒ方法などの情報を示すとする 。ここでは、説明を簡単にする為、「NONE」、すなわち暗号ィ匕されないとしておく。  [0397] The encryption information chunk here indicates information such as the encryption method of the subsequent data. Here, for simplicity of explanation, it is assumed that "NONE", that is, no encryption is performed.
[0398] 暗号情報チャンクの次は、ファイルリストチャンクが続く。ここでは、電子データとして HTMLデータを使う例だ力 本文の HTMLデータだけでなぐ画像データや音声デ ータなどのデータも別途必要だとする。これらのデータの場所を示す為にファイルリス トチャンクを使っている。  [0398] The file list chunk follows the encryption information chunk. In this example, it is assumed that HTML data is used as electronic data. It is assumed that data such as image data and audio data that are not limited to the HTML data in the text are also required separately. We use file list chunks to indicate the location of these data.
[0399] ファイルリストチャンクの内部データでは、リスト数 186がファイルリストの個数を表し 、その後、各ファイルリストのデータが 3つ続く。ファイルリストは、「ファイル位置データ 」と「ファイル名」からなる。「ファイル名」は、各データのファイル名を指し、「ファイル位 置データ」は、そのファイル名のデータの存在するデータチャンクの位置を表す。な お、ここでいう「ファイル名」は、電子データ内部で使われるいわば「内部ファイル名」 である。  [0399] In the internal data of the file list chunk, the number of lists 186 represents the number of file lists, and thereafter, three data of each file list follow. The file list includes “file position data” and “file name”. "File name" indicates the file name of each data, and "File position data" indicates the position of the data chunk where the data of the file name exists. The “file name” here is the so-called “internal file name” used inside the electronic data.
[0400] ここでは、 3つの内部ファイル、「MAIN. HTML」、「IMAGE1. PNG」、「SOUN Dl. WAV」があり、それぞれ 80ノイト目、 875ノイト目、 1034バイト目力も始まるフ アイルデータチャンクに各内部ファイルのデータが記録されていることになる。  [0400] Here, there are three internal files, “MAIN.HTML”, “IMAGE1.PNG”, and “SOUN Dl.WAV”, and file data chunks that start at 80th, 875th, and 1034th bytes, respectively. Is recorded in each of the internal files.
[0401] ファイルリストチャンクの後は、各内部ファイルのデータチャンクが続く。ファイルデ ータチャンクの内部データは、上記 3つの内部ファイルのデータそのものである。  [0401] After the file list chunk, the data chunk of each internal file follows. The internal data of the file data chunk is the data of the above three internal files.
[0402] 図 36の電子データを処理する際は、まずファイルの種類やバージョンをファイル識 別文字列 180で確認し、暗号情報チャンクで、以降のデータの暗号方法などの情報 を得る。そして、その暗号方法に従い、後のデータを解釈する。  [0402] When processing the electronic data shown in Fig. 36, first, the type and version of the file are confirmed by the file identification character string 180, and information such as the encryption method of the subsequent data is obtained by the encryption information chunk. Then, the subsequent data is interpreted according to the encryption method.
[0403] 次に、ファイルリストチャンクを読み込んで解釈する。例えば、ファイルリストの先頭 のファイル力 主となる HTMLファイルだと決めておくとする。そして、主となる HTM Lファイルのデータチャンクの位置を得て、読み込む。 [0403] Next, the file list chunk is read and interpreted. For example, suppose you decide that the file at the top of the file list is the main HTML file. And the main HTM Get and read the position of the data chunk in the L file.
[0404] 読み込まれた HTMLファイルを解釈 Z処理して、その他の内部ファイルが必要に なったら、ファイルリストから内部ファイル名が一致するファイルリストを選び、そのデ ータチャンクの位置を得て、読み込む。 [0404] The read HTML file is interpreted and Z-processed. If other internal files become necessary, a file list with a matching internal file name is selected from the file list, the position of the data chunk is obtained and read.
[0405] このようにして、電子データが記述されているとする。 [0405] It is assumed that electronic data is described in this way.
[0406] 本発明では、電子データは既に生成されているとしているので、ここでは詳しくは説 明しない。  In the present invention, since it is assumed that the electronic data has already been generated, the details will not be described here.
[0407] 図 35は、図 36の電子データをテキスト形式で表現した例である。図 34とほぼ同等 の構造であるが、 IMAGE1.PNGや SOUNDl.WAVといったバイナリ形式のデータも、 MIME64方式でテキスト形式に変換して 、る。バイナリ形式のデータをテキスト形式に 変換する方法は、 MIME64以外の方法でも構わな 、。  FIG. 35 is an example in which the electronic data of FIG. 36 is expressed in a text format. Although the structure is almost the same as that of Fig. 34, binary data such as IMAGE1.PNG and SOUNDl.WAV is also converted to text format by MIME64 method. Any method other than MIME64 may be used to convert binary data to text format.
[0408] 図 37は、分割境界データ、処理補助データおよび依存関係データを一つのフアイ ルに記録する際のバイナリ形式のファイル構造例を説明する説明図である。説明の 為、このファイルを「補助ファイル」と呼ぶことにする。  [0408] Fig. 37 is an explanatory diagram illustrating an example of a binary file structure when the division boundary data, the processing auxiliary data, and the dependency data are recorded in one file. For the sake of explanation, this file will be called the "auxiliary file".
[0409] 補助ファイルであることを示す「SUBDATA VI . 00」がファイル識別文字列 1 [0409] "SUBDATA VI.00" indicating that the file is an auxiliary file has a file identification string 1
60となって!/ヽる。 60!
[0410] その後、分割境界データチャンク、処理補助データチャンクおよび依存関係データ チャンクが記録されている。  [0410] Thereafter, a division boundary data chunk, a processing auxiliary data chunk, and a dependency data chunk are recorded.
[0411] 分割境界データチャンクでは、数字データとして、分割境界データ 111一 117と、 分割データサイズ 163— 168が内部データとして記録される。ここでは、図 7Aの分割 データ 400'— 405'の分割境界データの例を示している。分割データは 6個だが、 分割境界は、最初と最後の境界も含めて 、るので 7個になって 、る。  [0411] In the division boundary data chunk, division boundary data 111-117 and division data sizes 163-168 are recorded as internal data as numerical data. Here, an example of the division boundary data of the division data 400'-405 'in FIG. 7A is shown. The number of divided data is 6, but the number of divided boundaries is 7 including the first and last boundaries.
[0412] 処理補助データチャンクでは、可変長文字列の処理補助データ 131— 142が記録 されている。  [0412] In the processing auxiliary data chunk, processing auxiliary data 131-142 of a variable-length character string is recorded.
[0413] 依存関係データチャンクでは、数字データとして、依存関係データ 140'— 145 'が 記録されている。  [0413] In the dependency data chunk, dependency data 140'-145 'is recorded as numerical data.
[0414] この補助ファイルを読み込んで解釈する処理系は、これらのデータチャンク構造は 事前に知っているとする。 [0415] この補助ファイルのファイル構造のデータを作成する方法について、簡単に説明す る。 [0414] It is assumed that the processing system that reads and interprets this auxiliary file knows these data chunk structures in advance. [0415] A method of creating data of the file structure of the auxiliary file will be briefly described.
[0416] まず、ファイル識別文字列 160は、固定長文字列なので、計算や変換などの処理 を必要とせず、そのまま記録すればよい。  [0416] First, the file identification character string 160 is a fixed-length character string, and therefore does not require processing such as calculation or conversion, and may be recorded as it is.
[0417] 次に分割境界データチャンクだが、最初のチャンク識別文字列 161は、これも固定 長文字列なので、そのまま記録すればよい。 [0417] Next, regarding the division boundary data chunk, the first chunk identification character string 161 is also a fixed-length character string, and may be recorded as it is.
[0418] 次のチャンクデータサイズ 162は、計算して求める必要がある。分割境界データ 11[0418] The next chunk data size 162 needs to be calculated and obtained. Division boundary data 11
1一 117と分割データサイズ 163— 168は、それぞれ 4バイトの数字データで記録さ れるとし、 4 X (7 + 6) = 52より、チャンクデータサイズ 162は「52」となる。 Assuming that each one of 117 and the divided data size of 163-168 are recorded as 4-byte numerical data, the chunk data size 162 is "52" from 4 X (7 + 6) = 52.
[0419] その後の内部データである分割境界データ 111一 117と分割データサイズ 163—[0419] Subsequent internal boundary data, divided boundary data 111-117, and a divided data size of 163—
168は、それぞれ 4バイトの数字データとして記録する。 168 are recorded as 4-byte numerical data.
[0420] これにより、分割境界データチャンク部分が記録される。 [0420] Thereby, the division boundary data chunk portion is recorded.
[0421] 次に、処理補助データチャンクを記録する。最初のチャンク識別文字列 169は、こ れも固定長文字列なので、そのまま記録すればょ 、。  Next, the processing auxiliary data chunk is recorded. Since the first chunk identification character string 169 is also a fixed-length character string, it should be recorded as it is.
[0422] 次のチャンクデータサイズ 162は、計算して求める必要がある。処理補助データ 13 1一 142は既に決定しているので、そのデータサイズの和を求める。可変長文字列は 、最後に値「0」の文字コードを付加するとする。例えば、処理補助データ 131のよう に、文字列が空でも最低 1バイトは必要となる。ここでの各可変長文字列のデータサ ィズの和は、「175」となるので、チャンクデータサイズ 162は「175」として記録される  [0422] The next chunk data size 162 needs to be calculated and obtained. Since the processing auxiliary data 13 1-1 142 has already been determined, the sum of the data sizes is obtained. It is assumed that a variable-length character string is added with a character code having a value “0” at the end. For example, as in the processing auxiliary data 131, at least one byte is required even if the character string is empty. Since the sum of the data sizes of the variable-length character strings is "175", the chunk data size 162 is recorded as "175".
[0423] その後の内部データである処理補助データ 131— 142は、それぞれ可変長文字列 として記録する。 [0423] Processing auxiliary data 131-142, which is internal data thereafter, is recorded as variable-length character strings.
[0424] 次に、依存関係データチャンクを記録する。最初のチャンク識別文字列 171は、こ れも固定長文字列なので、そのまま記録すればょ 、。  Next, the dependency data chunk is recorded. Since the first chunk identification character string 171 is also a fixed-length character string, it should be recorded as it is.
[0425] 次のチャンクデータサイズ 172は、計算して求める必要がある。依存関係データ 14[0425] The next chunk data size 172 needs to be calculated. Dependency data 14
0,一 145,は、それぞれ 1バイトの数字データで記録されるとし、 I X 6 = 1より、チャン クデータサイズ 172は「6」となる。 0 and 1 145 are each recorded as 1-byte numeric data, and IX 6 = 1, so the chunk data size 172 is “6”.
[0426] その後の内部データである依存関係データ 140'— 145 'は、それぞれ 1バイトの数 字データとして記録する。 [0426] Dependency data 140'—145 ', which is internal data thereafter, is a 1-byte number each. Record as character data.
[0427] 以上の処理で、図 37のファイル構造の補助ファイルを記録することができる。  [0427] Through the above processing, the auxiliary file having the file structure shown in Fig. 37 can be recorded.
[0428] 図 38は、図 37とほぼ同じ情報を、テキスト形式で記述したファイルのファイル構造 例を説明する説明図である。説明の為、このファイルも「補助ファイル」と呼ぶことにす る。 [0428] Fig. 38 is an explanatory diagram illustrating an example of a file structure of a file in which substantially the same information as in Fig. 37 is described in a text format. For the sake of explanation, this file will also be called the "auxiliary file".
[0429] ここでは、テキスト形式として、 XML形式を使って記述して 、る。 1行目は、主に X ML形式であることを宣言して 、るだけなので、ここでは詳しくは説明しな 、。  [0429] Here, the text format is described using the XML format. The first line mainly declares that it is in XML format, so we will not explain it in detail here.
[0430] 全体は、 2行目と最後の行の SubDataタグで囲われ、補助ファイルであることを示し ている。バージョン情報は、 version属性で示している。  [0430] The whole is surrounded by the SubData tags on the second and last lines, indicating that it is an auxiliary file. Version information is indicated by a version attribute.
[0431] 分割境界データ、処理補助データ、依存関係データは、それぞれ SubDataタグの "hの boundariesタグ、 assist― dataタグ、 dependency― dataタグで § 述されてい る。これらのタグは、情報をまとめているという意味で、上述したデータチャンクに相当 すると考えればよい。  [0431] The division boundary data, the processing auxiliary data, and the dependency data are described in the "h boundaries tag, assist-data tag, and dependency-data tag of the SubData tag. These tags collect information. In this sense, it can be considered to correspond to the data chunk described above.
[0432] 分割境界データの boundariesタグの下には、各分割境界データを表す boundary タグが存在する。 boundaryタグの pos属性によって、電子データ中の境界位置が示 されている。なお、ここでは各分割データのデータサイズの情報は省略した。  [0432] Below the boundaries tag of the division boundary data, there is a boundary tag representing each division boundary data. The boundary position in the electronic data is indicated by the pos attribute of the boundary tag. Here, information on the data size of each divided data is omitted.
[0433] 処理補助データの assist— dataタグの下には、各分割データの処理補助データを 表す dataタグが存在する。 dataタグの下に、開始タグ文字列を表す start— tagタグ と、終了文字列を表す end— tagタグが存在する。 start— tagタグと end— tagタグの TEXTが、開始タグ文字列、終了タグ文字列そのものとなる。  [0433] Below the assist-data tag of the processing auxiliary data, there is a data tag representing the processing auxiliary data of each divided data. Below the data tag, there are a start-tag tag indicating a start tag character string and an end-tag tag indicating an end character string. The TEXT of the start-tag tag and end-tag tag is the start tag character string and end tag character string itself.
[0434] 依存関係データの dependency— dataタグの下には、各分割データの依存関係 データを表す dataタグが存在する。 dataタグは、 flag属性で、依存関係データの値( ここでは 0か 1)を保持している。  [0434] Under the dependency-data tag of the dependency data, there is a data tag representing dependency data of each divided data. The data tag is a flag attribute and holds the value of dependency data (here, 0 or 1).
[0435] 図 38の形式の補助ファイルの作成の仕方については、上記のようなタグの階層の データを順に記録して 、けばよ 、だけなので、ここでは詳し!/、説明は省略する。  [0435] As to the method of creating the auxiliary file in the format of Fig. 38, the data of the tag hierarchy as described above is recorded in order, and only the data is recorded.
[0436] 図 37のチャンクデータ構造の補助ファイルを作成する際、チャンクデータの内部デ ータのデータサイズを計算する必要がある。しかし、図 38の XML形式の補助フアイ ルを作成する際は、各タグの階層のデータサイズを計算する必要がな 、と 、う利点が ある。これは、データの切れ目は、開始タグと終了タグで識別できるからである。 When creating the auxiliary file having the chunk data structure in FIG. 37, it is necessary to calculate the data size of the internal data of the chunk data. However, when creating the XML-format auxiliary file shown in Fig. 38, it is not necessary to calculate the data size of each tag hierarchy. is there. This is because a break in data can be identified by a start tag and an end tag.
[0437] チャンクデータ構造でも、 XML形式でも、どちらも同じように知らないデータ構造、 すなわち知らな 、チャンク識別文字列を持つチャンクデータや知らな 、タグ名のタグ 、のデータについては、無視したり、処理を中断したりすることができる。但し、 XML 形式の方が、人間が直接理解しやすい為、知らないタグであっても、ある程度、デー タの内容を推測することができ、知らないデータを無視するか処理を中断するかの判 断にその推測を利用したり、あるいは、推測に基づいて処理装置内部の処理方法を 追加 Z変更したりと 、うことがしやす 、利点がある。 [0437] Regardless of the chunk data structure or the XML format, the data structure of unknown data, that is, the data of unknown chunk data having a chunk identification character string or the data of unknown tag name tag is ignored. Or interrupt the process. However, since the XML format is easier for humans to understand directly, it is possible to guess the data content to some extent even with unknown tags, and to ignore unknown data or suspend processing. There is an advantage that the guess is used for the judgment, or the processing method inside the processing device is added or changed based on the guess.
[0438] 次に、図 33のように各分割データをそれぞれファイルとして記録する場合の、フアイ ル構造例を説明する。 [0438] Next, an example of a file structure when each of the divided data is recorded as a file as shown in Fig. 33 will be described.
[0439] まず、各分割データを、図 7Aの分割データ 400'— 405'のまま、それぞれファイル として記録し、処理補助データを別ファイルカゝら読み出して利用するのカゝ、分割デー タ 400,一 405,の各々に処理補助データも含めた形でファイルとして記録するの力、 の 2通り考えられる。  [0439] First, each divided data is recorded as a file as the divided data 400'-405 'in FIG. 7A, and the processing auxiliary data is read from another file card and used. , One 405, and the ability to record as a file in a form that also includes processing auxiliary data.
[0440] 分割データ 400'— 405'のまま、それぞれファイルとして記録する方法に関しては [0440] As for the method of recording each of the divided data 400'-405 'as a file,
、特に説明することはない。 , There is no particular explanation.
[0441] 図 39は、分割データ 400'— 405'を処理補助データも含めた形でファイルとして 記録した場合の、各ファイルの内容を示した説明図である。分割データ 400'— 405'[0441] Fig. 39 is an explanatory diagram showing the contents of each file when the divided data 400'-405 'is recorded as a file including processing auxiliary data. Split data 400'—405 '
1S それぞれ、ファイル 410— 415に対応する。 1S respectively correspond to files 410-415.
[0442] 各ファイルの作成は、各分割データが効力を引き継ぐべき開始タグ文字列を記録し[0442] When creating each file, record the start tag character string that each divided data should take over.
、次に各分割データを記録し、最後に、記録した開始タグ文字列に対応する終了タ グ文字列を記録する、という手順で行われる。 Then, each divided data is recorded, and finally, an end tag character string corresponding to the recorded start tag character string is recorded.
[0443] 例えば、分割データ 401 'に対応するファイル 411の場合、開始タグ文字列として、 図 29の処理補助データ 133の「く HTML > < font size = " + 1,,> < Ρ>」がまず 記録され、次に分割データ 401 'の「Liquid」から「passed 」までが記録され、最後 に、処理補助データ 134の「く ZP > < /font > < /HTML >」が記録されて!、る [0443] For example, in the case of the file 411 corresponding to the divided data 401 ', "kuHTML> <font size =" + 1 ,,> <Ρ> "of the processing auxiliary data 133 in FIG. 29 is used as the start tag character string. First recorded, then the divided data 401 'from "Liquid" to "passed" are recorded, and finally, the processing auxiliary data 134 "ku ZP> </ font> </ HTML> is recorded! To
[0444] なお、ここでは処理補助データと分割データをそのまま記録して ヽるが、他の情報 を付加して、別の形式、例えば、先に説明した図 36のような形式で記録したり、ある いは XML形式で記録したりしてもよ!、。 [0444] Note that the processing auxiliary data and the divided data are recorded as they are here, but other information , And may be recorded in another format, for example, the format shown in FIG. 36 described above, or in an XML format!
[0445] 図 40は、 1つの分割データのファイルを、 XML形式で記録したファイルのファイル 構造を説明する説明図である。分割データであることを示す DividedDataタグの下 に、付加情報である暗号情報の encryptionタグと、分割データの中身である conte ntsタグが存在する。 contentsタグの TEXT部分に、図 7Aの分割データ 400'— 40 5,のいずれかや、図 39のファイル 410— 415のいずれかのテキストを記述すればよ い。 [0445] Fig. 40 is an explanatory diagram illustrating the file structure of a file in which one divided data file is recorded in the XML format. Below the DividedData tag indicating that the data is divided data, there are an encryption tag for encryption information that is additional information and a contents tag that is the content of the divided data. In the TEXT part of the contents tag, the text of one of the divided data 400'-405 in Fig. 7A and the file 410-415 in Fig. 39 may be described.
[0446] なお、 XML形式では、 TEXT部分にタグに使われる記号 (例えば「<」など)を直接 記述することはできないので、 XML形式で決められた所定の変換 (例えば、「く」か ら「& It;」)を行っており、読み出す時は逆の変換を行う。  [0446] In the XML format, the symbol used for the tag (for example, "<") cannot be directly described in the TEXT part. Therefore, a predetermined conversion determined in the XML format (for example, "&It;"), and perform the reverse conversion when reading.
[0447] また、同様の内容を、図 40のようなテキスト形式でなぐ図 36のようなバイナリ形式 で記録することも可能である。 [0447] It is also possible to record the same contents in a binary format as shown in FIG. 36, which is converted into a text format as shown in FIG.
(データの利用例)  (Example of data use)
以上のように生成された分割データ、処理補助データおよび依存関係データを用 Vヽて、所望の分割データに対応する部分の表示レイアウトを生成する処理を具体的 に説明する。  A process of generating a display layout of a portion corresponding to desired divided data using the divided data, processing auxiliary data, and dependency data generated as described above will be specifically described.
[0448] 図 11は、分割境界データ、分割データ、処理補助データ、依存関係データなどの データを利用する例として、表示レイアウトを生成し表示する処理の一例を示すフロ 一チャート図である。なお、以下の各ステップにおける処理の主体は、全て表示レイ アウト生成手段(図示せず)としての CPU70なので、以下の説明においては、動作 主体の記述を省略する。  FIG. 11 is a flowchart showing an example of processing for generating and displaying a display layout as an example using data such as division boundary data, division data, processing auxiliary data, and dependency data. In addition, since the subject of the processing in each of the following steps is the CPU 70 as the display layout generating means (not shown), the description of the subject of the operation is omitted in the following description.
[0449] まずステップ SL1 (以下、「ステップ SL」を「3し」と略記する)では、処理補助データ および依存関係データなどを取得して、 SL2へ処理が進む。分割境界データを使用 する場合は、分割境界データも取得する。なお、処理補助データ、依存関係データ および分割境界データは、例えば、外部記憶 75などにファイルなどとして記録されて いるとする。したがって、 CPU70は必要なときに外部記憶 75などから、必要なデータ を読み出すことができる。 [0450] SL2で、プログラムまたはユーザー入力に従って指定される表示範囲、すなわち表 示範囲の位置と大きさを得て、 SL3へ処理が進む。ここでの処理については、後で 具体例で説明する。 First, in step SL1 (hereinafter, “step SL” is abbreviated as “3”), processing auxiliary data, dependency data, and the like are obtained, and the process proceeds to SL2. If division boundary data is used, also obtain division boundary data. It is assumed that the processing auxiliary data, the dependency data, and the division boundary data are recorded as files in the external storage 75, for example. Therefore, the CPU 70 can read necessary data from the external storage 75 or the like when necessary. [0450] In SL2, the display range specified according to the program or user input, that is, the position and size of the display range is obtained, and the process proceeds to SL3. This processing will be described later with a specific example.
[0451] SL3で、表示範囲の位置が含まれる分割データを求めて、カレント分割データに設 定して、 SL4へ処理が進む。ここでの処理については、後で具体例で説明する。  In SL3, the divided data including the position of the display range is obtained, set as the current divided data, and the process proceeds to SL4. This process will be described later with a specific example.
[0452] SL4で、カレント分割データの表示レイアウトは、必要かどうかを判断し、必要と判 断されれば連結点 PL10 (以降、「連結点 1^」を「1^」と略記する)を経て、 SL5へ処 理が進み、必要ではないと判断されれば、そのときには後述のように SL5以降の処 理によって、表示範囲に対応する表示レイアウトが取得されているので、 SL8へ処理 が進む。  [0452] In SL4, the display layout of the current divided data is determined as to whether it is necessary, and if it is determined to be necessary, the connection point PL10 (hereinafter, "connection point 1 ^" is abbreviated as "1 ^"). After that, the process proceeds to SL5, and if it is determined that it is not necessary, the process proceeds to SL8 because the display layout corresponding to the display range has been obtained by the process after SL5 as described later. .
[0453] 分割データの表示レイアウトが必要かどうかは、その分割データの表示レイアウトが 、表示範囲に含まれるかどうかで判断される。各表示レイアウト要素は、位置と大きさ の情報を持って 、るので、その位置と大きさを表示範囲の位置と大きさと比較するこ とで、判断できる。後で説明する具体例では、図面を使って含まれるかどうかを説明 するが、実際の処理では、位置や大きさの値を使って、計算して判断することになる。  [0453] Whether the display layout of the divided data is necessary is determined based on whether the display layout of the divided data is included in the display range. Since each display layout element has information on the position and size, it can be determined by comparing the position and size with the position and size of the display range. In a specific example to be described later, whether or not it is included will be described using a drawing. However, in actual processing, calculation and determination are performed using values of position and size.
[0454] SL5で、カレント分割データの表示レイアウトを、他の分割データの影響を考慮して 取得して、 PL20を経て、 SL6へ処理が進む。ここでの処理の詳細は、後で図 12、図 13を使って説明する。  [0454] In SL5, the display layout of the current divided data is obtained in consideration of the influence of the other divided data, and the processing advances to SL6 via PL20. Details of the processing here will be described later with reference to FIGS.
[0455] SL6では、カレント分割データの前の分割データは存在するかどうかを判断し、存 在すれば SL7へ処理が進み、存在しなければ SL8へ処理が進む。  [0455] In SL6, it is determined whether or not the divided data before the current divided data exists, and if it exists, the process proceeds to SL7; otherwise, the process proceeds to SL8.
[0456] SL7では、カレント分割データを前の分割データに設定し、 SL4へ処理が戻る。  [0456] In SL7, the current divided data is set to the previous divided data, and the process returns to SL4.
[0457] なお、 SL6、 SL7で、「前の分割データ」でなぐどちらも「次の分割データ」とする場 合もある。これは、前方向にページめくりしているの力、次方向へページめくりしてい るの力、など、処理の目的によってどちらにするか決めればよい。どちらにするかは、 処理の具体例で説明する。  [0457] In SL6 and SL7, both "previous divided data" and "next divided data" may be referred to as "next divided data". This may be determined according to the purpose of the processing, such as the force of turning a page forward or the force of turning a page next. Which one to use will be described in a specific example of processing.
[0458] SL8では、得られた各分割データの表示レイアウト中から、表示範囲に含まれる表 示レイアウトを抜き出し、表示部兼タブレット 301に表示し、処理を終える。  [0458] In SL8, the display layout included in the display range is extracted from the display layout of each of the obtained divided data, displayed on the display unit / tablet 301, and the process ends.
[0459] 以上の SL1から SL8の処理によって、表示範囲の表示レイアウトを生成、表示する ことができる。 [0459] The display layout of the display range is generated and displayed by the above processing of SL1 to SL8. be able to.
[0460] 図 12は、図 11の SL5の処理方法、すなわち、カレント分割データの表示レイアウト を他の分割データの影響を考慮して取得する処理方法の一例を示すフローチャート 図である。  FIG. 12 is a flowchart illustrating an example of the processing method of SL5 in FIG. 11, that is, an example of a processing method of acquiring the display layout of the current divided data in consideration of the influence of other divided data.
[0461] PL10を経た SL5A— 1では、カレント分割データの表示レイアウトを取得して、 SL5 A— 2へ処理が進む。  [0461] In SL5A-1 after passing through PL10, the display layout of the current divided data is acquired, and the process proceeds to SL5A-2.
[0462] カレント分割データは、図 33に基づいて説明したように、ファイルィ匕された分割デ 一タフアイルカも得られる。あるいは、図 32に基づいて説明したように、分割境界デ ータを使って、電子データファイル力も分割データ部分を抜き出して読み込むことで ち得られる。  [0462] As the current divided data, as described with reference to Fig. 33, a divided data dolphin filtered can also be obtained. Alternatively, as described with reference to FIG. 32, the electronic data file strength can also be obtained by extracting and reading the divided data portion using the divided boundary data.
[0463] 分割データの表示レイアウトは、既に生成したものが存在すればそれを使い、存在 しなければ分割データから生成する。生成した表示レイアウトを分割データと対応付 けて主記憶 74上や外部記憶 75上などに記録しておけばよい。  [0463] The display layout of the divided data is used if it already exists, and is generated from the divided data if it does not exist. The generated display layout may be recorded in the main memory 74 or the external memory 75 in association with the divided data.
[0464] 分割データ力 表示レイアウトを生成する際、処理補助データを利用する。例えば 、図 7Aの分割データ 401 'に対して、タグによって指定された元の電子データ(図 4A )の表示結果(図 5A)と同じ表示結果を得るには足りない情報として、図 29に示すよ うに、分割データ 401 'の開始タグ文字列および終了タグ文字列が、それぞれ処理補 助データ 133 · 134として用意されているとする。この場合、分割データ 401 'を解釈 する際、まず、処理補助データ 133の開始タグ文字列を解釈し、次に分割データ 40 1 'を解釈し、最後に処理補助データ 134の終了タグ文字列を解釈する。これによつ て、不完全な HTMLデータである分割データ 401 'を、分割データの意味する内容 が損なわれな ヽ HTMLデータとして解釈することができるようになる。  [0464] Divided data strength When generating a display layout, processing auxiliary data is used. For example, the information shown in FIG. 29 is not enough to obtain the same display result (FIG. 5A) as the display result (FIG. 5A) of the original electronic data (FIG. 4A) specified by the tag for the divided data 401 ′ in FIG. 7A. In this way, it is assumed that the start tag character string and the end tag character string of the divided data 401 'are prepared as the processing auxiliary data 133 and 134, respectively. In this case, when interpreting the divided data 401 ′, first, the start tag character string of the processing auxiliary data 133 is interpreted, then the divided data 401 ′ is interpreted, and finally, the end tag character string of the processing auxiliary data 134 is interpreted. Interpret. As a result, the divided data 401 'which is incomplete HTML data can be interpreted as ヽ HTML data in which the content of the divided data is not impaired.
[0465] なお、分割データ力も表示レイアウトを生成する方法については、本発明とは直接 関係無いので、詳しい説明は省略する。  [0465] Note that the method of generating the display layout for the divided data force is not directly related to the present invention, and thus the detailed description is omitted.
[0466] SL5A— 2では、カレント分割データの直前の分割データの表示レイアウトが、指定 された表示範囲にとって必要かどうかを判断し、必要と判断されれば SL5A— 3へ処 理が進み、必要でないと判断されれば PL20へ処理が抜ける。ここでの処理は、 SL4 の処理と同様である。 [0467] SL5A— 3では、カレント分割データが、直前の分割データから影響を受けるかどう かを判断し、影響を受けると判断される場合は、 SL5A— 4へ処理が進み、影響を受 けないと判断される場合は、 PL20へ処理が抜ける。影響を受けるかどうかの判断は 、図 8の依存関係データ 140'— 145'を参照すればよい。 [0466] In SL5A-2, it is determined whether the display layout of the divided data immediately before the current divided data is necessary for the specified display range. If it is determined that the display layout is necessary, the process proceeds to SL5A-3, and the processing is performed. If not, the process exits to PL20. The processing here is the same as the processing of SL4. [0467] In SL5A-3, it is determined whether or not the current divided data is affected by the immediately preceding divided data. If it is determined that the current divided data is affected, the process proceeds to SL5A-4, and the processing is affected. If it is determined that there is no processing, the processing exits to PL20. The determination as to whether or not it is affected may be made by referring to the dependency data 140'-145 'in FIG.
[0468] なお、生成済みのカレント分割データが、直前の分割データの影響を受けて生成さ れたものである場合、 PL20へ処理を抜けてもよい。直前の分割データの影響を受け て生成されたものであるかどうかを、別途記録しておくようにしておけば、このような判 断ができる。この判断を行うことで、無駄な再生成を避けることができる。  [0468] When the generated current divided data is generated under the influence of the immediately preceding divided data, the process may be exited to the PL20. Such a judgment can be made by separately recording whether or not the data is generated under the influence of the immediately preceding divided data. By making this determination, useless regeneration can be avoided.
[0469] SL5A— 4では、カレント分割データの直前の分割データの表示レイアウトを、他の 分割データの影響を考慮して取得し、 SL5A— 5へ処理を進める。  In SL5A-4, the display layout of the divided data immediately before the current divided data is obtained in consideration of the influence of other divided data, and the process proceeds to SL5A-5.
[0470] 「カレント分割データの表示レイアウトを他の分割データの影響を考慮して取得」す る処理は、 SL5全体の処理に相当する。従ってここでは、カレント分割データを直前 の分割データに仮に設定し、 SL5の処理を再帰的に行い、 SL5の再帰処理後、カレ ント分割データを仮設定力も元の設定に設定し直せばよい。「再帰的」とは、ある処理 の中で、自分自身の処理を呼び出す (行う)ことである。いわば、入れ子のような処理 形態となる。  [0470] The process of "acquiring the display layout of the current divided data in consideration of the influence of other divided data" is equivalent to the entire SL5 process. Therefore, in this case, the current divided data is temporarily set to the immediately preceding divided data, the processing of SL5 is performed recursively, and after the recursive processing of SL5, the temporary setting data of the current divided data may be reset to the original setting. "Recursive" refers to calling (performing) its own process in a process. In other words, the processing form is nested.
[0471] SL5A— 5では、カレント分割データの表示レイアウトを、直前の分割データの表示 レイアウトに続けて生成し、 PL20へ処理が抜ける。  [0471] In SL5A-5, the display layout of the current divided data is generated following the display layout of the immediately preceding divided data, and the processing exits to the PL20.
[0472] 表示レイアウトに続けて生成する、とは、例えば、前の分割データの表示レイアウト 力 行の途中で終わっている時に、次の分割データの最初の表示レイアウトを、途中 で終わって 、る行に追加する形でレイアウトして 、くこと、言 、換えれば分割の影響 を受ける複数の分割データを一続きのデータとして扱 、、処理結果としての表示レイ アウトを生成することである。これについては、後で具体例で説明する。  [0472] The generation following the display layout means that, for example, when the display layout of the previous divided data ends in the middle of the row, the first display layout of the next divided data ends in the middle. In other words, the layout is to be added to the line, in other words, a plurality of divided data affected by the division is treated as a series of data, and a display layout as a processing result is generated. This will be described later with a specific example.
[0473] 以上の SL5A-1から SL5A-5の処理で、図 11の SL5の処理を行うことができるよう になる。  [0473] With the above processing of SL5A-1 to SL5A-5, the processing of SL5 in Fig. 11 can be performed.
[0474] 以上の SL1から SL8の処理について、分割データ 400'— 405' (図 7A)、依存関 係データ 140'— 145' (図 8)を使って、以降、具体的に説明する。  [0474] The above processing of SL1 to SL8 will be specifically described below using the divided data 400'-405 '(Fig. 7A) and the dependency data 140'-145' (Fig. 8).
[0475] 図 13は、図 10の表示部兼タブレット 301上に、文書データの先頭から 1ページ分 の表示レイアウトを求めた状態を説明する説明図である。図 13中の枠線が表示部兼 タブレット 301の表示範囲を示している。この表示範囲の大きさを、以降では、「1ぺ ージ分」と表現することにする。図 13では、枠線からはみ出ている表示レイアウトは、 実際には表示されな ヽ。これは生成された表示レイアウトと表示されて ヽる表示レイ アウト (表示範囲中の表示レイアウト)との関係を説明する為に、このような表現の仕 方をしている。また、枠線の左の数字は、説明に使う行番号である。 [0475] FIG. 13 shows one page from the top of the document data on the display / tablet 301 in FIG. FIG. 4 is an explanatory diagram illustrating a state in which a display layout has been obtained. The frame in FIG. 13 indicates the display range of the display unit / tablet 301. The size of this display range is hereinafter referred to as “one page”. In FIG. 13, the display layout that extends beyond the frame is not actually displayed. This is a method of such expression in order to explain the relationship between the generated display layout and the display layout to be displayed (display layout in the display range). The numbers to the left of the frame are line numbers used for explanation.
[0476] まず、図 11の SL1で、全ての分割データ 400'— 405'について、図 8の依存関係 データおよび図 29の処理補助データなどを取得する。  First, in SL1 in FIG. 11, the dependency data in FIG. 8, the processing auxiliary data in FIG. 29, and the like are obtained for all the divided data 400 ′ to 405 ′.
[0477] 次に、 SL2で、表示範囲の位置と大きさを得る。文書データの先頭から表示するの で、表示範囲の位置は、電子データの最初の表示レイアウトとなる。表示範囲の大き さは 1ページ分とする。  Next, the position and size of the display range are obtained by SL2. Since the document data is displayed from the beginning, the position of the display range is the first display layout of the electronic data. The size of the display area is one page.
[0478] SL3で、最初の表示レイアウトが含まれる分割データは、最初の分割データなので [0478] In SL3, since the divided data including the first display layout is the first divided data,
、分割データ 400'をカレント分割データに設定する。 , Set the divided data 400 'as the current divided data.
[0479] SL4で、まだ表示レイアウトは何も存在せず、分割データ 400'の表示レイアウトは 表示範囲に含まれることは分力つているので、ここでは分割データ 400'は必要と判 断され、 SL5へ処理が進む。 [0479] In SL4, there is no display layout yet, and the display layout of the divided data 400 'is inevitably included in the display range. Therefore, it is determined that the divided data 400' is necessary here. Processing proceeds to SL5.
[0480] SL5で、分割データ 400,の表示レイアウトを、影響を考慮して取得する。 [0480] In SL5, the display layout of the divided data 400 is acquired in consideration of the influence.
[0481] そのために、まず、図 12の SL5A— 1で、分割データ 400,の表示レイアウトを取得 する。表示レイアウトがまだ生成されていないので、ここで生成することになる。生成さ れた表示レイアウトは、図 13の最初の「How does LCD works?」の行と次の空 行となる。 [0481] First, the display layout of the divided data 400 is acquired by SL5A-1 in FIG. Since the display layout has not been generated yet, it will be generated here. The generated display layout is the first “How does LCD works?” Line in Figure 13 and the next blank line.
[0482] SL5A— 2で、分割データ 400'の直前の分割データは存在しな!、ので、 SL5A— 2 から PL20へ処理が抜け、 SL6へ処理が進む。  [0482] In SL5A-2, there is no divided data immediately before the divided data 400 '! Therefore, the processing is skipped from SL5A-2 to PL20, and the processing proceeds to SL6.
[0483] SL6で、分割データ 400'の「次」の分割データとして、分割データ 401 'が存在す るので、 SL7へ処理が進む。 [0483] Since the divided data 401 'exists as the "next" divided data of the divided data 400' in SL6, the process proceeds to SL7.
[0484] ここでは、 SL6と SL7の処理で、「前」の分割データではなぐ「次」の分割データに 関して処理することにする。これは表示範囲が「先頭から 1ページ分」となっている為 である。つまり、表示範囲の上端部分に文書データの最初の表示レイアウトが位置し 、そこから下に 1ページ分の表示レイアウトが必要になるという事なので、最初の分割 データから順方向(次方向)に表示レイアウトを取得していく処理とする必要があるか らである。 [0484] Here, in the processing of SL6 and SL7, processing is performed on the "next" divided data that is not the "previous" divided data. This is because the display range is "one page from the beginning". In other words, the first display layout of the document data is located at the upper end of the display range. This is because a display layout for one page is required below, so it is necessary to obtain the display layout in the forward direction (next direction) from the first divided data.
[0485] SL7では、「次」の分割データ、分割データ 401,をカレント分割データに設定し、 S L4へ処理が戻る。  In SL7, the “next” divided data, divided data 401, is set as the current divided data, and the process returns to SL4.
[0486] SL4では、分割データ 401 'の表示レイアウトが必要かどうかを判断する。表示範囲 の大きさと表示レイアウトなど力も計算して判断するのだが、図 13を見ても分力るとお り、上記 2行では 1ページ分に満たない。そこで、ここでは、生成済みの表示レイアウト は表示範囲に満たな 、ので、分割データ 401 'の表示レイアウトが必要と判断される  [0486] In SL4, it is determined whether or not the display layout of the divided data 401 'is necessary. Judgment is also made by calculating the size of the display range and the display layout, etc., but as shown in Fig. 13, the above two lines are less than one page. Therefore, here, the generated display layout is less than the display range, so it is determined that the display layout of the divided data 401 ′ is necessary.
[0487] SL5で、分割データ 401,の表示レイアウトを、影響を考慮して取得する。 In SL5, the display layout of the divided data 401 is acquired in consideration of the influence.
[0488] そのために、まず、図 12の SL5A— 1で、分割データ 401,の表示レイアウトを取得 する。表示レイアウトがまだ生成されていないので、ここで生成することになる。生成さ れた表示レイアウトは、図 13の 3行目の「Liquid Crystal」で始まる行から 6行目の「 passed 」で終わる行までとなる。  [0488] For this purpose, first, the display layout of the divided data 401 is acquired by SL5A-1 in FIG. Since the display layout has not been generated yet, it will be generated here. The generated display layout is from the line starting with "Liquid Crystal" on the third line in Fig. 13 to the line ending with "passed" on the sixth line.
[0489] SL5A— 2で、分割データ 401 'の直前の分割データ 400'は必要なので、 SL5A—[0489] Since the divided data 400 'immediately before the divided data 401' is required in SL5A-2, SL5A-
3へ処理が進む。 The process proceeds to 3.
[0490] SL5A— 3で、分割データ 401 'が直前の分割データ 400'力 影響を受けな!/、こと は、処理補助データ 141が 0であること力 分かるので、 SL5A— 3から PL20へ処理 が抜け、 SL6へ処理が進む。  [0490] In SL5A-3, the divided data 401 'is not affected by the immediately preceding divided data 400'! This means that the processing auxiliary data 141 is 0, so processing is performed from SL5A-3 to PL20. Is missing and the process proceeds to SL6.
[0491] SL6で、分割データ 401,の次の分割データは、分割データ 402'が存在するので 、 SL7へ処理が進む。  [0491] Since the divided data 402 'exists in the divided data next to the divided data 401 in SL6, the process proceeds to SL7.
[0492] SL7では、次の分割データである分割データ 402'をカレント分割データに設定し、 SL4へ処理が戻る。  [0492] In SL7, the next divided data 402 'is set as the current divided data, and the process returns to SL4.
[0493] SL4では、分割データ 402'の表示レイアウトが必要かどうかを判断する。図 13を見 ても分かるとおり、分割データ 401 'に含まれている「passed 」で始まる行力 既に表 示範囲をはみ出ているので、ここでは分割データ 402'は不要と判断され、 SL8へ処 理が進む。 [0494] SL8で図 13の表示範囲の表示レイアウトが表示され、処理が終了する。 [0493] In SL4, it is determined whether or not a display layout of the divided data 402 'is necessary. As can be seen from FIG. 13, the running force starting with “passed” included in the divided data 401 ′ is already out of the display range, so the divided data 402 ′ is determined to be unnecessary here, and is processed to SL8. The process goes on. [0494] The display layout of the display range in FIG. 13 is displayed on SL8, and the process ends.
[0495] 表示結果は、図 13の通り、表示レイアウト結果として全く問題無い。表示範囲を表 示するのに必要な分割データだけを処理することで、電子データ 406全体を処理し、 表示レイアウトを作成するのと比べて、図 13の場合、およそ 1Z3程度のデータ処理 量で済んでいる。また、この結果、処理に必要なメモリ量も少なくて済む。このように、 分割データを使って処理することで、高速、省リソースで処理できるという利点が出て くる。 [0495] As shown in FIG. 13, the display result has no problem as the display layout result. By processing only the divided data necessary to display the display range, the entire electronic data 406 is processed and the display layout is created.In the case of FIG. 13, the data processing amount is about 1Z3. Done. As a result, the amount of memory required for processing can be reduced. In this way, processing by using the divided data has the advantage that processing can be performed at high speed and with resource saving.
[0496] 図 14は、図 13の状態に続いて、下に 1ページ分の表示範囲の表示レイアウトを求 めた状態を説明する説明図である。図 14の表示レイアウトを求める処理について簡 単に説明する。  [0496] FIG. 14 is an explanatory diagram illustrating a state in which a display layout of a display range for one page is obtained below the state of FIG. Processing for obtaining the display layout in FIG. 14 will be briefly described.
[0497] 図 13の状態に続いて処理されるので、図 13で生成された表示レイアウト、すなわち 分割データ 400'、 401 'の表示レイアウトは保持したままだとする。  Since processing is performed following the state of FIG. 13, it is assumed that the display layout generated in FIG. 13, that is, the display layout of the divided data 400 ′ and 401 ′ is maintained.
[0498] SL2で、図 13では 5行目まで表示されているので、「passed 」で始まる最後の行 である 6行目の表示レイアウトが、表示範囲の位置となる。  [0498] In SL2, since the fifth line is displayed in Fig. 13, the display layout of the sixth line, which is the last line starting with "passed", is the position of the display range.
[0499] 依存関係データの存在が効いてくるのは、前の分割データに影響を受ける分割デ ータを作成する際に、前の分割データのレイアウトが未作成の場合である。図 14の 処理では、影響を受ける前の分割データのレイアウトが作成済なので、以降の処理 については、簡単に説明する。  [0499] The existence of the dependency data is effective when the layout of the previous divided data is not created when the divided data affected by the previous divided data is created. In the processing of FIG. 14, since the layout of the divided data before being affected has already been created, the subsequent processing will be briefly described.
[0500] まず、分割データ 401,の表示レイアウトを取得し、分割データ 402,の表示レイァゥ トを生成する。これは、分割データ 401 'の表示レイアウトに続けて生成するので、図 14の 6行目の「passed 」の後に続けて、分割データ 402,の最初の「through the 」がレイアウトされている。同様に、分割データ 403 'の表示レイアウトが分割データ 40 2'の表示レイアウトに続けて生成される。  First, a display layout of the divided data 401 is obtained, and a display layout of the divided data 402 is generated. Since this is generated following the display layout of the divided data 401 ′, the first “through the” of the divided data 402 is laid out after “passed” on the sixth line in FIG. Similarly, the display layout of the divided data 403 'is generated following the display layout of the divided data 402'.
[0501] そして、分割データ 404' · 405 'の順に表示レイアウトを生成する。生成されたレイ アウトが図 14の状態である。図 14の 6行目から 14行目までが表示範囲として表示さ れる。  [0501] Then, a display layout is generated in the order of the divided data 404 'and 405'. The generated layout is as shown in Fig.14. The sixth to fourteenth lines in FIG. 14 are displayed as the display range.
[0502] 以上は、順方向(下方向、次方向)にページめくりする処理についての説明だが、 逆方向(上方向、前方向)に行スクロールする処理について、以降、説明する。 [0503] 図 15は、分割データ 405'の先頭から下に 1ページ分の表示範囲の表示レイアウト を求めた状態を説明する説明図である。分割データの生成済みの表示レイアウトが 全く無い状態で、分割データ 405'に対して単独の処理を行ったので、図 15の状態 では、分割データ 405,の表示レイアウトしか存在していない。図 15のレイアウトを求 める処理は、表示範囲の位置は異なるが、図 13と同様なので、ここでは省略する。 [0502] The above is the description of the process of turning pages in the forward direction (downward, next direction). The process of performing line scrolling in the reverse direction (upward, forward) will be described below. [0503] FIG. 15 is an explanatory diagram illustrating a state in which a display layout of a display range for one page has been obtained from the beginning of divided data 405 'to the bottom. In the state where there is no display layout in which the divided data has already been generated, the independent processing is performed on the divided data 405 ′. Therefore, in the state of FIG. 15, only the display layout of the divided data 405 exists. The process for obtaining the layout in FIG. 15 is the same as that in FIG. 13 except for the position of the display range, and thus the description is omitted here.
[0504] 図 16は、図 15の状態から、上に 1行分だけ行スクロールした状態を説明する説明 図である。分割データ 405'にカ卩えて、分割データ 404'の表示レイアウト(空行 1行だ け)が追加されている。  [0504] FIG. 16 is an explanatory diagram illustrating a state where the line is scrolled upward by one line from the state of FIG. A display layout (only one blank line) for the divided data 404 'is added to the divided data 405'.
[0505] 図 17Bは、図 16の状態から、さらに上に 1行分だけ行スクロールした状態を説明す る説明図である。分割データ 404' -405'にカ卩えて、分割データ 403'の表示レイァゥ ト(「on」力も始まる 1行目から remployed.」で終わる 4行目まで)が追加されて 、る。  [0505] FIG. 17B is an explanatory diagram illustrating a state in which one line has been scrolled further upward from the state of FIG. The display layout of the divided data 403 '(from the first line where the "on" force starts, to the fourth line ending with remployed.) Is added to the divided data 404' -405 '.
[0506] 分割データ 403'は、「on」という文の途中の単語から始まっている力 表示範囲に おける分割データ 403'の表示レイアウト自体 (すなわち、 employed.および改行) は特に問題はなぐ誤りは表れていない。すなわち、分割データ 403'の表示レイァゥ トは、表示設定を変更して、たまたま 1つの文中の「on」の前で行の折り返しが行われ て ヽる場合と同じであり、改行などの HTMLのタグには従って!/、る。  [0506] The divided data 403 'is composed of a force starting with a word in the middle of the sentence "on". The display layout itself (that is, employed. And line feed) of the divided data 403' in the display range is not particularly problematic. Not appearing. That is, the display layout of the divided data 403 'is the same as the case where the display setting is changed and the line is wrapped before “on” in one sentence, and the HTML such as the line feed is used. Follow the tags! /
[0507] 図 18Aは、図 17Bの状態から、さらに上に 5行分ほど行スクロールした状態を説明 する説明図である。ここでの処理は、分割データ間の影響が関係するので、図 11、 図 12のフローチャートに沿って少し詳しく説明する。  FIG. 18A is an explanatory diagram illustrating a state in which the line is scrolled upward by five lines from the state of FIG. 17B. Since the processing here involves the influence between the divided data, the processing will be described in some detail in accordance with the flowcharts of FIGS.
[0508] まず、図 17Bの状態から、前のページへページめくりする指示が入力されることによ り、図 11のフローが再スタートする。ここでは、処理補助データおよび依存関係デー タを既に取得済みなので、 SL1はスキップされ、 SL2に処理が進む。  First, from the state in FIG. 17B, when an instruction to turn a page to the previous page is input, the flow in FIG. 11 is restarted. Here, since the processing auxiliary data and the dependency data have already been acquired, SL1 is skipped and the processing proceeds to SL2.
[0509] SL2で、図 18Aの場合、表示範囲としては、分割データ 405'の最後の行から上に 1ページ分となる。  [0509] In SL2, in the case of FIG. 18A, the display range is one page above the last row of the divided data 405 '.
[0510] SL3で、分割データ 405 'をカレント分割データに設定し、 SL4へ処理が進む。  [0510] In SL3, the divided data 405 'is set as the current divided data, and the process proceeds to SL4.
[0511] その後、 SL4、 SL5と処理が行われ、分割データ 405'の生成済みの表示レイァゥ トが取得され、 SL6へ処理が進む。 [0511] Thereafter, processing is performed with SL4 and SL5, a display layout in which the divided data 405 'has been generated is obtained, and the processing proceeds to SL6.
[0512] SL6で、分割データ 405,の「前」の分割データとして、分割データ 404'が存在す るので、 SL7で「前」の分割データ 404'をカレント分割データに設定し、 SL4へ処理 が戻る。 [0512] In SL6, the divided data 404 'exists as "before" the divided data of the divided data 405. Therefore, the "previous" divided data 404 'is set as the current divided data in SL7, and the process returns to SL4.
[0513] ここでは、 SL6と SL7の処理で、「次」の分割データではなぐ「前」の分割データに 関して処理することにする。これは表示範囲が「ある行力も上に 1ページ分」となって いる為である。つまり、表示範囲の下端部分に、ある行の表示レイアウトが位置し、そ こから上に 1ページ分の表示レイアウトが必要になるという事なので、ある分割データ (分割データ 405' )から逆方向(前方向)に表示レイアウトを取得していく処理とする 必要がある。  [0513] Here, in the processing of SL6 and SL7, processing is performed on the "previous" divided data that is not the "next" divided data. This is because the display range is set to "one page above the certain power". In other words, the display layout of a certain row is located at the lower end of the display range, and a display layout of one page is required above it. It is necessary to process to acquire the display layout in the forward direction).
[0514] このようにして、カレント分割データを 1つずつ前の分割データにしながら、 SL4力 SL7の繰り返し処理が行われ、分割データ 404'の生成済みの表示レイアウトが取得 される。  [0514] In this way, while the current divided data is set to the previous divided data one by one, the repetition processing of SL4 and SL7 is performed, and the generated display layout of the divided data 404 'is obtained.
[0515] そして、分割データ 403'がカレント分割データとして、 SL5で処理されようとしてい るとする。  [0515] It is assumed that the divided data 403 'is about to be processed in SL5 as current divided data.
[0516] SL5A-1 (分割データ 403,)で、分割データ 403,の生成済みの表示レイアウトが 取得され、 SL5A— 2 (分割データ 403' )へ処理が進む。なお、各ステップ記号の後 の括弧書きは、カレント分割データを意味する。後で再帰的処理を説明する際に、力 レント分割データが何であるかを区別しやすくする為に付記しておく。  [0516] In SL5A-1 (divided data 403,), the generated display layout of divided data 403, is obtained, and the process proceeds to SL5A-2 (divided data 403 '). The parentheses after each step sign indicate the current divided data. When recursive processing is described later, it is added to make it easy to distinguish what the current split data is.
[0517] SL5A-2 (分割データ 403' )で、直前の分割データ 402'が必要であると判断され 、 SL5A— 3 (分割データ 403' )へ処理が進む。図 17Bの状態から 5行ほど上に行ス クロールするのだから、分割データ 403'の表示レイアウトだけでは表示範囲に足りな いのは、図 17Bから目でも確認できる。  [0517] In SL5A-2 (divided data 403 '), it is determined that the immediately preceding divided data 402' is necessary, and the process proceeds to SL5A-3 (divided data 403 '). Since the row is scrolled up by about five rows from the state of FIG. 17B, it can be seen from FIG. 17B that the display layout of the divided data 403 ′ alone is not enough for the display range.
[0518] SL5A-3 (分割データ 403' )で、分割データ 403'力 分割データ 402'の影響を 受けることが、依存関係データ 143'の値が 1であることから分かるので、 SL5A— 4 ( 分割データ 403 ' )へ進む。  [0518] In SL5A-3 (split data 403 '), it can be seen that the value of the dependency data 143' is 1 because the split data 403 'is affected by the split data 402'. Proceed to the divided data 403 ′).
[0519] SL5A-4 (分割データ 403,)では、分割データ 402,を仮にカレント分割データとし て、他の分割データの影響を考慮して、分割データ 402'の表示レイアウトを取得す る。  [0519] In the SL5A-4 (divided data 403,), the display layout of the divided data 402 'is acquired by taking the divided data 402, temporarily as current divided data, taking into account the influence of other divided data.
[0520] 以降は、 SL5A-4 (分割データ 403' )力も再帰的に呼び出される SL5 (分割デー タ 402' )の処理である。 [0520] After that, SL5A-4 (split data 403 ') force is also called recursively. (Step 402 ′).
[0521] SL5A-1 (分割データ 402' )で、分割データ 402'の表示レイアウトが取得され、 S L5A-2 (分割データ 402' )へ処理が進む。分割データ 402の表示レイアウトはまだ 存在しないので、ここでは、分割データ 402'の表示レイアウトが単独で生成される。  [0521] In SL5A-1 (divided data 402 '), the display layout of the divided data 402' is obtained, and the process proceeds to SL5A-2 (divided data 402 '). Since the display layout of the divided data 402 does not yet exist, the display layout of the divided data 402 'is generated alone here.
[0522] 生成された表示レイアウトは、 rthroughjで始まる 1行目から 4行目の「based 」ま でとなる。図 18Aでは処理が全て終わった後の状態となっているので、分割データ 4 03,の最初の「on the broadcastが 4行目で繋がっている力 この時点では生成 された 4行分のレイアウトは、図 17Bの 1行目の上に挿入された形として存在するとす る。つまり、 4行目の「based 」の後は、何も存在せず、あた力も改行されているかの ような状態になっているとする。  [0522] The generated display layout ranges from the first line starting with rthroughj to the fourth line based on "based". In FIG. 18A, the state after all the processing is completed, so the first “on the broadcast of divided data 403, is connected by the fourth line. At this point, the layout of the generated four lines is And it exists as a form inserted above the first line in Fig. 17B.In other words, there is nothing after “based” in the fourth line, as if the power had been broken. Let's say
[0523] SL5A-2 (分割データ 402' )で、直前の分割データ 401 'は、表示範囲に対して必 要でないと判断され、 PL20を経て SL5 (分割データ 402' )の処理を抜け、 SL5A— 5 (分割データ 403, )へ処理が進む (後の再帰処理の説明を参照)。分割データ 402' の表示レイアウトまでで表示範囲が足りるのは、図 18Aから目でも確認できる。なお、 分割データ 401 'が不要と判断されたため、分割データ 402'の表示レイアウトの取得 については、分割データ 401 'からの影響の有無を考慮する必要が無い。従って、単 独で生成された分割データ 402'の表示レイアウトが、あとでそのまま利用される また、 SL5A— 1 (分割データ 402' )で説明した通り、「based 」と「on the broad castjは、別々の行に分かれてしまっている力 後でこの行は一緒になるはずなので 、現在の表示レイアウトの大きさより 1行ほど小さくなる可能性はある。従って、ここで は、表示範囲に足りるかどうかは、少し余裕を見て判断した方がよい。  [0523] In the SL5A-2 (divided data 402 '), it is determined that the immediately preceding divided data 401' is not necessary for the display range, and the processing of the SL5 (divided data 402 ') is exited via the PL20. — 5 (divided data 403,) The processing proceeds (see the description of recursive processing below). The sufficient display range up to the display layout of the divided data 402 'can be visually confirmed from FIG. 18A. Since it is determined that the divided data 401 'is unnecessary, there is no need to consider the influence of the divided data 401' when acquiring the display layout of the divided data 402 '. Therefore, the display layout of the separately generated divided data 402 ′ is used as it is later. Further, as described in SL5A-1 (divided data 402 ′), “based” and “on the broad castj are The force of splitting into separate lines Later this line should be merged, so it can be one line smaller than the current display layout size, so here is It is better to make a judgment with a little extra time.
[0524] SL5A-5 (分割データ 403, )で、分割データ 403,の表示レイアウトが破棄された 後、分割データ 402'の表示レイアウトに続けて、分割データ 403'の表示レイアウト が再生成され、 PL20を経て、 SL6 (分割データ 403' )へ処理が進む。ここでは、「on the broadcastで始まる行から「employed.」で終わる行に相当する部分の図 1 7Bに示す表示レイアウトが破棄され、図 18Aの 4行目の「based 」に続けて、「on t he broadcasts以降の文字力 再レイアウトされる。その結果、図 18Aの表示レイァ ゥトとなる。 [0525] SL6 (分割データ 403' )で、前の分割データ 402'は存在するので、 SL7、 SL4 (分 割データ 402' )と処理が進むものの、この時点で表示範囲は既に満たされているた め、分割データ 402'が必要ないと SL4 (分割データ 402' )で判断される。この結果、 SL8へ処理が進み、 SL8で図 18Aの表示範囲が表示され、表示処理が終了する。 [0524] After the display layout of the divided data 403 is discarded in the SL5A-5 (the divided data 403,), the display layout of the divided data 403 'is regenerated following the display layout of the divided data 402', The processing advances to SL6 (divided data 403 ') via PL20. Here, the display layout shown in Fig. 17B of the portion corresponding to the line beginning with "on the broadcast" to the line ending with "employed." Is discarded, and "on" is added after "based" in the fourth line of Fig. 18A. The characters after t he broadcasts are laid out again, resulting in the display layout of Figure 18A. [0525] Since the previous divided data 402 'exists in SL6 (divided data 403'), processing proceeds with SL7 and SL4 (divided data 402 '), but the display range is already satisfied at this point. Therefore, it is determined by SL4 (divided data 402 ') that the divided data 402' is not necessary. As a result, the process proceeds to SL8, the display range in FIG. 18A is displayed on SL8, and the display process ends.
[0526] 以上の処理について、特に SL5での再帰処理を分かりやすくする為、処理手順を まとめると以下のようになる。  [0526] Regarding the above processing, in order to make the recursive processing in SL5 particularly easy to understand, the processing procedure is summarized as follows.
[0527] SL5A-1 (分割データ 403, )  [0527] SL5A-1 (split data 403,)
I I
SL5A-2 (分割データ 403, ) SL5A-2 (split data 403,)
I I
SL5A-3 (分割データ 403, ) SL5A-3 (split data 403,)
I I
SL5A-4 (分割データ 403 ' ) SL5A-4 (split data 403 ')
I (再帰処理開始)  I (Start recursive processing)
SL5A-1 (分割データ 402' )  SL5A-1 (split data 402 ')
I I
SL5A-2 (分割データ 402' ) SL5A-2 (split data 402 ')
I (再帰処理終了)  I (end of recursion)
SL5A-5 (分割データ 403, )  SL5A-5 (split data 403,)
図 18Aでは、分割データ 402'は、「through」という文の途中の単語から始まって いるが、分割データ 402'の表示レイアウト自体に特に問題はないのは、図 17Bと同 様である。分割データ 402'と分割データ 403,の間で分割されてしまって 、る文も、 図 18Aでは、分割の影響が考慮された結果として、一続きの文として誤り無くレイァゥ トされている。  In FIG. 18A, the divided data 402 ′ starts with a word in the middle of the sentence “through”, but there is no particular problem with the display layout of the divided data 402 ′ as in FIG. 17B. In FIG. 18A, a sentence that has been divided between the divided data 402 ′ and the divided data 403 is laid out without error as a continuous sentence as a result of considering the influence of the division.
[0528] 図 17Bと図 18Aを比べると、例えば図 17Bの 4行目と図 18Aの 7行目の「employe d.」の行は、行末の位置が異なる。し力しどちらも、 HTMLの表示結果としては問題 ない。  When FIG. 17B and FIG. 18A are compared, for example, the fourth line in FIG. 17B and the seventh line of “employe d.” In FIG. 18A have different end positions. However, neither of them has any problem in displaying HTML.
[0529] 比較として、本発明のように分割データ 403'のレイアウトを再度生成しなおさず、分 割データ 402,のレイアウトを単純に、分割データ 403,のレイアウトの前に挿入する だけの処理を行った状態力 図 19Aである。分割データ 402,の最後のレイアウトで ある 4行目の「based 」と、分割データ 403,の最初のレイアウトである 5行目の「on」 力 本来、図 18Aのようにつながるはず力 つながっておらず、別の行となってしまつ ている。図 19Aを見ただけでは、 4行目の「based 」の後に改行が入っているように 見えてしまう。改行を指示する brタグや Pタグ力 この場所に存在する訳ではないの で、これは誤った処理結果である。 [0529] As a comparison, the layout of the divided data 403 'is not generated again as in the present invention, but FIG. 19A is a state force obtained by simply performing the process of inserting the layout of the split data 402 before the layout of the split data 403. The “based” on the fourth line, which is the last layout of the divided data 402, and the “on” force on the fifth line, which is the first layout of the divided data 403, are originally connected as shown in FIG. 18A. Instead, they are on separate lines. Just looking at Figure 19A, it looks like there is a line break after “based” on the fourth line. This is an incorrect processing result because it does not exist at this place.
[0530] このように、分割データ間の影響を考慮して、必要最小限の分割データを処理する ことで、高速、省リソースで処理できるという分割データの処理の利点をできるだけ損 なわずに済む。さらに、分割データの処理結果が影響し合っていても、各分割データ の処理結果の繋がりが悪くならないように処理することができるという種々の効果が出 てくる。 [0530] As described above, by processing the minimum necessary number of divided data in consideration of the influence between the divided data, the advantage of the processing of the divided data, which can be processed at high speed and with resource saving, can be minimized. . Furthermore, even if the processing results of the divided data influence each other, various effects can be obtained such that the processing results of the divided data can be processed so as not to deteriorate the connection.
[0531] 図 20は、図 18Aの状態から、さらに上に 3行分ほど行スクロールした状態を説明す る説明図である。  [0531] FIG. 20 is an explanatory diagram illustrating a state where the line is scrolled three lines further upward from the state of FIG. 18A.
[0532] SL3で、カレント分割データを、分割データ 404'に設定する以外は、図 18Aでの 処理の説明と途中までほぼ同様である。前述の SL5A— 2 (分割データ 402' )の後の 処理が異なるので、それ以降の処理にっ 、て説明する。  [0532] Except for setting the current divided data to the divided data 404 'in SL3, the description of the processing in FIG. Since the processing after SL5A-2 (divided data 402 ') is different, the subsequent processing will be described.
[0533] SL5A-2 (分割データ 402' )で、直前の分割データ 401 'が今回の表示範囲には 必要であると判断され、 SL5A— 3 (分割データ 402' )へ処理が進む。図 18Aの状態 力 3行ほど上に行スクロールするのだから、分割データ 402'の表示レイアウトだけ では表示範囲に足りないのは、図 18Aから目でも確認できる。 [0533] In SL5A-2 (divided data 402 '), it is determined that the immediately preceding divided data 401' is necessary for the current display range, and the process proceeds to SL5A-3 (divided data 402 '). The state shown in FIG. 18A Since the line scrolls up by about three lines, it can be visually confirmed from FIG. 18A that the display layout of the divided data 402 ′ alone is not enough for the display range.
[0534] SL5A-3 (分割データ 402' )で、分割データ 402'力 分割データ 401 'の影響を 受けることが、依存関係データ 142'の値が 1であることから分かるので、 SL5A— 4 ( 分割データ 402' )へ処理が進む。 In SL5A-3 (split data 402 ′), it can be seen from the dependency data 142 ′ that the value of the split data 402 ′ is affected by the split data 401 ′. The process proceeds to the divided data 402 ').
[0535] SL5A-4 (分割データ 402,)では、分割データ 401,を仮にカレント分割データとし て、他の分割データの影響を考慮して、表示レイアウトを取得する。 [0535] In the SL5A-4 (divided data 402,), the display layout is acquired in consideration of the influence of other divided data, assuming that the divided data 401, is the current divided data.
[0536] 以降は、 SL5A-4 (分割データ 402' )力 再帰的に呼び出される SL5 (分割デー タ 401 ' )の処理である。 [0537] SL5A-1 (分割データ 401 ' )で、分割データ 401 'の表示レイアウトが取得され、 S L5A-2 (分割データ 401 ' )へ処理が進む。分割データ 401 'の表示レイアウトはまだ 存在しないので、ここで生成される。 [0536] The processing of SL5A-4 (divided data 402 ') is a process of SL5 (divided data 401') called recursively. [0537] The display layout of the divided data 401 'is acquired by SL5A-1 (divided data 401'), and the process proceeds to SL5A-2 (divided data 401 '). Since the display layout of the divided data 401 'does not yet exist, it is generated here.
[0538] 生成された表示レイアウトは、図 20中の「Liquid」で始まる 1行目から 4行目の「pas sed 」までとなる。図 20で、「passed 」の行が、図 18Aの 1行目の「through」の行と 別の行であるのは、先に説明した図 18Aでの処理と同様である。  [0538] The generated display layout is from the first line starting with "Liquid" to the "pas sed" on the fourth line in FIG. In FIG. 20, the row of “passed” is different from the row of “through” in the first row of FIG. 18A, similar to the processing in FIG. 18A described above.
[0539] SL5A-2 (分割データ 401 ' )で、直前の分割データ 400'は必要でな 、と判断され るので、 PL20を経て SL5 (分割データ 401 ' )の処理を抜け、 SL5A— 5 (分割データ 402' )へ処理が進む。分割データ 401 'の表示レイアウトまでを取得すれば表示範 囲が足りるのは、図 20から目でも確認できる。  [0539] Since it is determined that the immediately preceding divided data 400 'is not necessary in SL5A-2 (divided data 401'), the processing of the SL5 (divided data 401 ') is passed through the PL20 and SL5A-5 ( The process proceeds to the divided data 402 '). It can be confirmed from FIG. 20 that the display range is sufficient if the display layout of the divided data 401 ′ is acquired.
[0540] SL5A-5 (分割データ 402,)で、分割データ 402,の表示レイアウトが破棄された 後、生成され、 PL20を経て SL5 (分割データ 402,)の処理を抜け、 3 5八ー5 (分割 データ 403' )へ処理が進む。ここでは、「through」で始まる行から「based 」までに 相当する部分の図 18Aに示す分割データ 402 'の表示レイアウトが破棄され、図 20 の 4行目の「passed 」に続けて、「through」以降の分割データ 402,力 再レイァゥ トされる。その結果、図 20の表示レイアウトとなる。  [0540] After the display layout of the divided data 402, is destroyed in the SL5A-5 (divided data 402,), it is generated, and the processing of the SL5 (divided data 402,) is passed through the PL20. The process proceeds to (divided data 403 '). Here, the display layout of the divided data 402 ′ shown in FIG. 18A in the portion corresponding to the line starting from “through” to “based” is discarded, and after “passed” on the fourth line in FIG. , And the subsequent divided data 402, are relayed. As a result, the display layout shown in FIG. 20 is obtained.
[0541] この後、分割データ 402,、分割データ 401,をカレント分割データとして SL4— SL 7の繰り返し処理を行い、 SL8へ処理が進む。なお、分割データ 402'の生成済み表 示レイアウトは、分割データ 401,の影響を受けて生成されているので、 31^5八ー3 (分 割データ 402' )から PL20へ処理が抜ける。この為、分割データ 402'が、無駄に再 生成することは避けられる。  [0541] Thereafter, the divided data 402 and the divided data 401 are used as the current divided data, and the processing of SL4-SL7 is repeated, and the processing proceeds to SL8. Since the generated display layout of the divided data 402 'is generated under the influence of the divided data 401, the processing exits from 31 ^ 5-8-3 (divided data 402') to the PL20. Therefore, unnecessary regeneration of the divided data 402 ′ can be avoided.
[0542] 図 20の表示レイアウト自体に特に問題はないのは、図 17B、図 18Aと同様である。  [0542] There is no particular problem in the display layout itself in FIG. 20 as in FIGS. 17B and 18A.
分割データ 401,と分割データ 402,の間、分割データ 402,と分割データ 403,の間 で分割されてしまっている文も、図 20では繋がってレイアウトされている。  In FIG. 20, the sentence that is divided between the divided data 401 and the divided data 402 and between the divided data 402 and the divided data 403 is also connected and laid out in FIG.
[0543] このように、分割データ間の影響を考慮して遡りながら処理することで、複数の分割 データが連続して影響されていても、各分割データの処理結果の繋がりが悪くならな As described above, by performing the processing while going back in consideration of the influence between the divided data, even if a plurality of the divided data are continuously affected, the connection of the processing result of each divided data does not deteriorate.
V、ように処理することができる効果が出てくる。 V, the effect can be processed as follows.
[0544] 次に、図 21は、図 11の SL5の処理方法、すなわち、カレント分割データの表示レイ アウトを他の分割データの影響を考慮して取得する処理方法の別の一例を示すフロ 一チャート図である。 [0544] Next, Fig. 21 shows the processing method of SL5 in Fig. 11, that is, the display layout of the current divided data. FIG. 21 is a flowchart illustrating another example of a processing method for obtaining an out-of-out considering the influence of other divided data.
[0545] PL10を経た SL5B— 1では、カレント分割データに影響を与える最前の分割データ を求めて、 SL5B— 2へ処理が進む。最前の分割データは、図 9の依存関係データ 15 [0545] In the SL5B-1 that has passed through the PL10, the process proceeds to the SL5B-2 in order to find the earliest divided data that affects the current divided data. The first split data is the dependency data in Fig. 9.
0— 155を参照すればよい。 See 0-155.
[0546] SL5B— 2では、最前の分割データから、カレント分割データまでを、一続きのデー タとみなして、表示レイアウトを生成し、 PL20へ処理が抜ける。なお、既に生成済み の表示レイアウトがあるのならば、生成する必要は無い。 [0546] In SL5B-2, a display layout is generated by regarding the data from the foremost divided data to the current divided data as continuous data, and the processing exits to the PL20. If there is a display layout already generated, there is no need to generate one.
[0547] 以上の SL5B— 1から SL5B— 2の処理で、図 11の SL5の処理を行うことができるよう になる。 [0547] With the processing of SL5B-1 to SL5B-2, the processing of SL5 in Fig. 11 can be performed.
[0548] 図 21のフローチャートの処理を使って、分割データ 400'— 405'および依存関係 データ 150— 155を利用した具体例を説明する。  [0548] A specific example using the divided data 400'-405 'and the dependency data 150-155 will be described using the processing of the flowchart in Fig. 21.
[0549] 図 17Bと同じ状態と表示範囲、すなわち、図 16の状態から、さらに上に 1行分だけ 行スクロールした状態の表示範囲を求めるとする。この時、最終的に求められる表示 レイアウトの状態を説明するの力 図 22である。 [0549] It is assumed that the same state and display range as in Fig. 17B, that is, the display range in a state where the line is scrolled one line further upward from the state in Fig. 16 are obtained. At this time, the power to explain the state of the display layout finally required is shown in FIG.
[0550] SL5B-1 (分割データ 403, )で、分割データ 403,に影響を与える最前の分割デ ータは、依存関係データ 153より、分割データ 401 'であることが分かる。 [0550] In the SL5B-1 (divided data 403,), the first divided data affecting the divided data 403, is understood from the dependency relationship data 153 to be the divided data 401 '.
[0551] なお、図 8の形式の依存関係データでも、影響を与える最前の分割データを求める ことは可能である。対応する依存関係データから前方向に遡り、最初に 0になる依存 関係データを発見したら、その依存関係データに対応する分割データが、影響を与 える最前の分割データとなる。 [0551] Note that even with the dependency data in the format of Fig. 8, it is possible to obtain the divided data that is the earliest influencing data. Going forward from the corresponding dependency data and finding the dependency data that first becomes 0, the split data corresponding to the dependency data becomes the first split data that has an effect.
[0552] SL5B-2 (分割データ 403,)で、分割データ 401, -402' · 403,の順で表示レイァ ゥトを生成する。但し、分割データ 402'、 403'は、前の分割データの表示レイアウト に続ける形で生成する。 [0552] The display layout is generated in the order of the divided data 401, -402 ', and 403 in the SL5B-2 (divided data 403,). However, the divided data 402 'and 403' are generated in a form following the display layout of the previous divided data.
[0553] 以上の SL5B— 1から SL5B— 2の処理で、図 22の表示レイアウトが得られる。図 22 の表示レイアウト自体に特に問題はな 、。 [0553] The display layout of Fig. 22 is obtained by the above processing from SL5B-1 to SL5B-2. There is no particular problem with the display layout in Fig. 22.
[0554] ここで、図 12のフローチャートの手法と図 21のフローチャートの手法との違いにつ いて説明する。 [0555] 図 12のフローチャートの手法を使った図 17B、図 18Aおよび図 20には、表示範囲 の位置を上に変化させた時に表示レイアウトの変化が発生してしまっている。例えば 、図 17Bの 1行目の最初の「on」は、図 18Aでは 4行目の 3単語目になっている。また 、図 18Aの 1行目の最初の「through」は、図 20では 4行目の 2単語目になっている 。このような変化は、読む者にとって、今まで読んでいた行中の個所が少し変わって しまう結果になるので、文章が追いにくぐ使いづらい。 [0554] Here, the difference between the method of the flowchart of FIG. 12 and the method of the flowchart of FIG. 21 will be described. [0555] FIGS. 17B, 18A, and 20 using the method of the flowchart of FIG. 12 show that the display layout changes when the position of the display range is changed upward. For example, the first “on” on the first line in FIG. 17B is the third word on the fourth line in FIG. 18A. In addition, the first “through” on the first line in FIG. 18A is the second word on the fourth line in FIG. Such a change would make it difficult for the reader to follow the sentence, as the result would be a slight change in the part of the line that had been read.
[0556] 一方、図 21のフローチャートの手法を使うと、図 22の状態から表示範囲の位置を 上に変化させても、表示レイアウトは変化しない。常に図 5Aと同じ表示レイアウトのま まである。  [0556] On the other hand, when the method of the flowchart of Fig. 21 is used, the display layout does not change even if the position of the display range is changed upward from the state of Fig. 22. It always has the same display layout as in Figure 5A.
[0557] 二つの手法の差は、表示範囲内の分割データに影響を与える分割データのチエツ ク対象を、表示範囲に一部でも含まれる分割データに限るか、表示範囲に関係なぐ 着目している分割データ力 影響が及ぶ最前の分割データまでの全ての分割データ とする力 の違いである。  [0557] The difference between the two methods is that the check target of the divided data that affects the divided data within the display range is limited to the divided data that is at least partially included in the display range, or is not related to the display range. This is the difference in the power of all the divided data up to the last divided data affected.
[0558] 前者の手法は、表示範囲外の分割データの表示レイアウトを生成しないので、表示 範囲の表示レイアウトを初めて生成する際のデータ処理量を抑えることができる利点 がある。但し、表示範囲を変えると、表示レイアウトが変わってしまう場合がある点と、 表示範囲を変えると、生成済みの表示レイアウトを破棄して再度生成し直すと!、う無 駄な処理が発生する場合がある点の 2つの欠点もある。  [0558] The former method does not generate a display layout of the divided data outside the display range, and thus has an advantage that the amount of data processing when the display layout of the display range is generated for the first time can be suppressed. However, if the display range is changed, the display layout may change.If the display range is changed, the generated display layout will be discarded and re-generated! There are also two drawbacks in that they may.
[0559] 逆に、後者の手法は、表示範囲外であっても表示レイアウトを生成するので、表示 範囲の表示レイアウトを初めて生成する際のデータ処理量が増えてしまう場合がある 欠点がある。但し、表示範囲を変えても、表示レイアウトが変わらない点と、表示範囲 を変えても、生成済みの表示レイアウトを破棄して再度生成し直すと 、う無駄な処理 が発生しな 、点の 2つの利点もある。  [0559] Conversely, the latter method generates a display layout even outside the display range, and thus has a disadvantage that the amount of data processing when the display layout of the display range is generated for the first time may increase. However, the point that the display layout does not change even if the display range is changed, and that if the generated display layout is discarded and re-generated even if the display range is changed, unnecessary processing does not occur. There are also two advantages.
[0560] どちらの手法を使うかは、高速性や省リソース性を重視するか、表示が変わらないこ とを重視するか、など、動作環境や目的を考慮して、選択すればよい。  [0560] Which method to use may be selected in consideration of the operating environment and purpose, such as whether to emphasize high-speed or resource saving or to keep the display unchanged.
[0561] 以上、分割データ、分割境界データ、処理補助データおよび依存関係データの利 用例について説明した。  [0561] The use examples of the divided data, the divided boundary data, the processing auxiliary data, and the dependency data have been described above.
[0562] 最後に、上記で述べた方法については、ここで述べた組み合わせだけに限らず、 あらゆる組み合わせが可能である。 [0562] Finally, the methods described above are not limited to the combinations described here. Any combination is possible.
[0563] なお、本発明で生成するデータと、例えば MPEG形式のデータなどとの処理方法 の違いについて、説明しておく。  [0563] The difference in the processing method between the data generated by the present invention and, for example, MPEG format data will be described.
[0564] 本発明では、「単独で処理しても、それ自体の処理結果には誤りが無 、分割データ[0564] In the present invention, "Even if processed alone, there is no error in the processing result of itself,
」を対象としている。説明の為、上記のように定義した分割データを、以降、「部分デ ータ」と呼ぶことにする。 Is targeted. For the sake of explanation, the divided data defined above will be hereinafter referred to as “partial data”.
[0565] 既に説明した MPEGの GOPは、電子データが複数に分割されたデータであり、単 体で処理可能なデータなので、本発明で言う「部分データ」に相当する。しかし、 MP EGの GOPの処理結果である復元された画像フレームは、常に同じ結果となる。  [0565] The MPEG GOP described above is data obtained by dividing electronic data into a plurality of pieces, and is data that can be processed independently, and thus corresponds to "partial data" in the present invention. However, the restored image frame that is the processing result of the GOP of the MPEG always has the same result.
[0566] また、前の GOPの復元結果によって、後の GOPの復元結果が影響されることはな い。このため、複数の GOPの復元結果を得るには、単純に前の GOPの復元結果と、 次の GOPの復元結果をつなぎ合わせればよ!/、。  [0566] Also, the restoration result of the previous GOP is not affected by the restoration result of the previous GOP. Therefore, to obtain the restoration results of multiple GOPs, simply combine the restoration results of the previous GOP and the next GOP! / ,.
[0567] これに対し、本発明で例として挙げて!/、る HTMLデータは、 WWWブラウザの表示 設定によって、表示結果が変わることを前提に設計された言語仕様である。すなわち 、表示設定が変わっても、表示結果の与える論理的意味 (例えば、強制改行や画像 に対する文字の回り込みなど)が変わらなければ、どのような表示を行っても分割デ ータの意味する内容が損なわれな ヽとされる。  [0567] On the other hand, HTML data given as an example in the present invention is a language specification designed on the assumption that the display result changes depending on the display setting of the WWW browser. That is, as long as the logical meaning of the display result (for example, forced line break or the wraparound of characters in the image) does not change even if the display setting is changed, the content of the divided data means no matter what display is performed. Is not impaired.
[0568] また、 HTMLデータの部分データの場合、前の部分データの処理結果が、次の部 分データの処理結果に論理的な意味で影響を与えることがある。例えば、改行タグ 以外の所で、元の電子データを部分データに分割した場合などである。従って、単 純に前の部分データの処理結果に、次の部分データの処理結果をつなぎ合わせる だけでは、全体として論理的意味が変わってしまうことがあり、分割データの意味する 内容が損なわれて ヽることがある(図 19 Aおよび図 19B参照)。  [0568] In the case of partial data of HTML data, the processing result of the previous partial data may logically affect the processing result of the next partial data. For example, the original electronic data is divided into partial data at places other than the line feed tag. Therefore, simply joining the processing result of the next partial data to the processing result of the previous partial data may change the logical meaning as a whole, and the meaning of the divided data may be lost. (See Figures 19A and 19B).
[0569] つまり、部分データを扱う際、データのもつ特質に合わせて、本発明で説明した利 用例のように処理方法を変えてやる必要がある。本発明では、特に部分データ間の 処理結果の影響に着目し、分割データの意味する内容が損なわれない処理結果を 得やす 、データを生成するようにして 、る。  That is, when handling partial data, it is necessary to change the processing method as in the usage example described in the present invention in accordance with the characteristics of the data. The present invention pays particular attention to the influence of the processing result between partial data, and generates data so as to obtain a processing result in which the meaning of the divided data is not impaired.
[0570] また、 MPEGの GOPは、 HTMLデータのタグによる階層構造のような構造は持つ ておらず、それらの構造に関する補助情報などを使わなくても処理できるというのも異 なる点である。 [0570] Also, the GOP of MPEG has a structure such as a hierarchical structure using HTML data tags. Another difference is that they can be processed without using auxiliary information on their structure.
[0571] なお、 GOPでなぐ GOP中の差分画像を部分データとして考えれば、前後の部分 データに影響を受けるように見える力 差分画像だけでは画像フレームを復元できず 、「単独で処理可能」ではないので、部分データではない。基準画像や関連する差分 画像を補助情報として付加すれば、部分データとみなすことは不可能ではな 、が、 それらの補助情報をつけたものは、結局、 GOPと同じになってしまう。常に同じ結果 であるなど、 GOPとの違いに関して説明した理由がそのままあてはまるので、やはり、 本発明が対象する部分データとは異なる。  [0571] Note that if the difference image in the GOP is considered as partial data, the image frame cannot be restored only with the difference image that appears to be affected by the preceding and following partial data. Since it is not, it is not partial data. If the reference image and the related difference image are added as auxiliary information, it is not impossible to regard it as partial data, but the one with such auxiliary information is the same as the GOP. The reason explained for the difference from the GOP, such as the same result, always applies, and is again different from the partial data targeted by the present invention.
[0572] なお、本発明に係るデータ生成方法を、電子データを複数の分割データに分割す る分割境界に関して、分割データを単独で処理して正しい処理結果を得るには、前 記分割データに足りない情報である処理補助データを、前記分割データと他の分割 データとから生成する処理補助データ生成ステップと、分割データと処理補助データ の組を単独で処理しても正しい処理結果が得られ、かつ、分割データのデータサイ ズが指定最大データサイズを超えない、という条件を満たす分割境界を求め、また前 記条件を満たしつつ、分割境界の前の分割データの処理結果が、分割境界の後の 分割データの処理結果に影響を与えない分割境界が存在するのならばその分割境 界を優先して求める分割境界算出ステップと、分割境界算出ステップ力 得られる分 割境界で電子データを分割して、分割データを生成する分割データ生成ステップと、 を有するように構成してもよ 、。  [0572] The data generation method according to the present invention must be applied to the above-mentioned divided data in order to independently process the divided data and obtain a correct processing result with respect to the division boundary for dividing the electronic data into a plurality of divided data. A processing auxiliary data generating step of generating processing auxiliary data, which is insufficient information, from the divided data and other divided data, and a correct processing result can be obtained even if a set of the divided data and the processing auxiliary data is processed alone. In addition, a division boundary that satisfies the condition that the data size of the division data does not exceed the specified maximum data size is obtained, and the processing result of the division data before the division boundary is satisfied while satisfying the above conditions. If there is a division boundary that does not affect the processing result of the subsequent division data, the division boundary calculation step for giving priority to the division boundary and the division boundary calculation step power A divided data generating step of dividing the electronic data at the divided boundary to generate the divided data.
[0573] 以下、本発明のその他の特徴点についてまとめておく。  [0573] Other features of the present invention will be summarized below.
(a) 本発明に係るデータ生成方法は、上記標準内非依存分割境界が存在しない場 合に、予め定めた最大データサイズ以下で、かつ、分割の影響が表れない分割境界 を、標準外非依存分割境界として抽出する標準外非依存境界抽出ステップをさらに 備えたことを特徴とする。  (a) In the data generation method according to the present invention, when the above-mentioned standard-independent division boundary does not exist, the division boundary smaller than a predetermined maximum data size and in which the influence of the division does not appear is defined as a non-standard non-standard division boundary. The method further comprises a nonstandard non-dependent boundary extraction step of extracting as a dependent division boundary.
[0574] 上記の構成では、上記標準内非依存分割境界が存在しな!、場合に、部分データ のデータサイズの条件を緩和する。すなわち、部分データのデータサイズに、標準デ ータサイズより大きく最大データサイズ以下と ヽぅ条件を付ける。そのデータサイズの 範囲内で、分割の影響が表れない分割境界を抽出する。 In the above configuration, in the case where the above-mentioned standard-independent division boundary does not exist !, the condition of the data size of the partial data is relaxed. That is, a condition that the data size of the partial data is larger than the standard data size and equal to or smaller than the maximum data size is set. Of that data size Within the range, a division boundary where the influence of division does not appear is extracted.
[0575] これにより、分割の影響が表れない適切な処理結果を得られる上に、部分データの データサイズを許容範囲内に抑えることができ、高速、省リソースの効果が薄れること を防止できるという効果が出てくる。 [0575] As a result, it is possible to obtain an appropriate processing result in which the influence of the division does not appear, and it is also possible to suppress the data size of the partial data within an allowable range, thereby preventing the effects of high speed and resource saving from being reduced. The effect comes out.
[0576] なお、「最大データサイズ」は、標準データサイズ同様、予め決まって 、る値、ある ヽ はユーザーなどに入力してもらう値、あるいは所定の計算方法によって得られる値な どになる。通常、最大データサイズは、部分データとして最大限許容されるデータサ ィズにしておく。これは処理する装置の処理能力や処理の目的などから、ユーザーな どが決めるようにすることが好ま 、。 [0576] The "maximum data size" is, like the standard data size, a predetermined value, a certain value is a value to be input by a user or the like, or a value obtained by a predetermined calculation method. Normally, the maximum data size is set to the maximum allowable data size for partial data. This is preferably determined by the user or the like in accordance with the processing capacity of the processing device and the purpose of the processing.
[0577] 部分データを生成する処理の概要は、先に標準内非依存境界抽出ステップを使う 作用と同様、順に分割境界を求め、部分データを生成することを繰り返す。ただ、部 分データを生成するのに使う分割境界を設定する処理が異なってくるので、その処 理部分についてだけさらに説明する。 [0577] The outline of the process of generating the partial data is similar to the operation of first using the intra-standard independent boundary extraction step, in which the division boundaries are sequentially obtained and the generation of the partial data is repeated. However, since the process of setting the division boundary used to generate the partial data differs, only the processing part will be further described.
[0578] まず、標準内非依存境界抽出ステップで分割境界を求めてみる。 [0578] First, a division boundary is determined in the standard-independent boundary extraction step.
[0579] もし、標準内非依存境界抽出ステップで標準内非依存分割境界が求められた場合[0579] If a standard-independent division boundary is obtained in the standard-independent boundary extraction step
、その標準内非依存分割境界を部分データを生成するのに使う分割境界として設定 する。もし複数の標準内非依存境界が求められたら、その中の一つを何らかの方法 で選んで、次の分割境界として設定する。 , And set the standard-independent division boundary as the division boundary used to generate the partial data. If multiple intra-standard independent boundaries are determined, one of them is selected in some way and set as the next division boundary.
[0580] もし、標準内非依存境界抽出ステップで分割境界を求められな力つた場合、標準 外非依存境界抽出ステップに移行し、部分データサイズ判断ステップと影響判断ス テツプの結果を使って、データサイズが最大データサイズ以下であり、かつ、上記所 定の影響が表れない分割境界を求める。部分データサイズ判断ステップの処理は、「 標準データサイズ」が「最大データサイズ」に変わる以外は、既に説明した処理と同様 である。 [0580] If the dividing boundary cannot be obtained in the standard-independent boundary extraction step, the process proceeds to the non-standard-independent boundary extraction step, and the results of the partial data size determination step and the influence determination step are used. Find a division boundary where the data size is less than or equal to the maximum data size and the above-mentioned effects do not appear. The processing of the partial data size determination step is the same as the processing described above, except that “standard data size” is changed to “maximum data size”.
[0581] もし標準外非依存境界抽出ステップで上記条件を満たす分割境界が見つかれば、 その分割境界を標準外非依存分割境界として抽出し、部分データを生成するのに使 う分割境界として設定する。  [0581] If a division boundary satisfying the above conditions is found in the non-standard independent boundary extraction step, the division boundary is extracted as a non-standard independent division boundary and set as a division boundary used to generate partial data. .
[0582] もし標準外非依存境界が一つも求められな力つたら、新たな分割境界を求めるため の他のステップへ移行すればよ!、。 [0582] If no non-standard independent boundaries are found, a new partitioning boundary can be found. Just move on to the other steps!
[0583] 以上の処理が、部分データを生成するのに使う分割境界を設定する処理である。 [0583] The above process is a process of setting a division boundary used to generate partial data.
[0584] これにより、標準内非依存分割境界が抽出できない場合でも、標準外非依存分割 境界があれば使うことで、各部分データの処理時間や必要なリソースを、可能ならば 理想的な範囲内 (標準データサイズ)に、それが無理なら、できるだけ許容できる範 囲内(最大データサイズ)に抑えやすくなる効果が出てくる。部分データのデータサイ ズをできるだけ抑えることによる利点は、先に標準内非依存境界抽出ステップに関し て説明した利点と同様である。 [0584] As a result, even when a non-standard independent division boundary cannot be extracted, if there is a non-standard independent division boundary, the processing time of each partial data and necessary resources can be reduced to an ideal range if possible. If this is not possible within the standard data size, it will be easier to keep it within the allowable range (maximum data size). The advantages of keeping the data size of the partial data as small as possible are the same as the advantages described above for the intra-standard independent boundary extraction step.
(b) 本発明に係るデータ生成方法は、上記の課題を解決するために、求まった標準 内非依存分割境界の内、上記標準データサイズに最も近 ヽデータ位置における標 準内非依存分割境界を抽出する第 1の分割境界抽出ステップをさらに備えたことを 特徴とする。  (b) In order to solve the above-mentioned problem, the data generation method according to the present invention provides a standard-independent division boundary at a data position closest to the standard data size among the obtained standard-independent division boundaries. The method further comprises a first division boundary extraction step of extracting
[0585] 本発明の作用の概要を説明すると、部分データを生成する処理の概要は、先に標 準内非依存境界抽出ステップを使う作用で説明したのと同様、順に分割境界を求め 、部分データを生成することを繰り返す。ただ、部分データを生成するのに使う分割 境界を設定する処理が異なってくるので、その処理部分についてだけ説明する。  [0585] The outline of the operation of the present invention is as follows. The outline of the process of generating partial data is similar to the operation using the standard-independent boundary extraction step, in which division boundaries are obtained in order. Repeat generating data. However, since the process of setting the division boundary used to generate the partial data differs, only the processing part will be described.
[0586] まず、標準内非依存境界抽出ステップで分割境界を求めてみる。これは既に説明 した処理である。  [0586] First, a division boundary is determined in the standard-independent boundary extraction step. This is the process already described.
[0587] もし、標準内非依存境界抽出ステップで標準内非依存分割境界が一つしか求めら れな力つた場合、その標準内非依存分割境界を部分データを生成するのに使う分割 境界として設定する。  [0587] If only one intra-standard independent division boundary is obtained in the intra-standard independent boundary extraction step, the intra-standard independent division boundary is used as a division boundary used to generate partial data. Set.
[0588] もし複数の標準内非依存境界が求められたら、その中で標準データサイズに最も 近くなるような標準内非依存境界を、第 1の分割境界抽出ステップで抽出して、次の 分割境界として設定する。  [0588] If a plurality of non-standard-independent boundaries are obtained, a non-standard-independent boundary that is closest to the standard data size is extracted in the first division boundary extraction step, and the next division is performed. Set as a boundary.
[0589] もし、標準内非依存境界抽出ステップで分割境界を求められな力つた場合は、新た な分割境界を求めるための他のステップへ移行すればよい。  [0589] If the division boundary cannot be obtained in the intra-standard independent boundary extraction step, the process may be shifted to another step for obtaining a new division boundary.
[0590] 以上の処理が、部分データを生成するのに使う分割境界を設定する処理である。  [0590] The above process is a process of setting a division boundary used to generate partial data.
[0591] これにより、標準内非依存分割境界で、できるだけ標準データサイズに近い部分デ ータサイズで分割することができるので、標準データサイズ内で、小さなデータサイズ の数が減る傾向になる。小さなデータサイズの数が減るということは、部分データの数 が減ると 、うことである。電子データの一部のデータを部分データとして処理すること で、省メモリ、高速に処理することはできる力 あまりに部分データの数が増えてしまう と、今度はそれを管理するのに必要なメモリや処理、補助情報などが増えてしまうの で、利点を打ち消してしまう。部分データの数が増えすぎないように、電子データの 中身や目的に応じて、標準データサイズを適当な値に設定してやることで、利点と欠 点のノランスを利点が最大となるようにすることができる効果が出てくる。 [0591] As a result, partial data that is as close to the standard data size as possible at the Since data can be divided by data size, the number of small data sizes tends to decrease within the standard data size. A decrease in the number of small data sizes means a decrease in the number of partial data. By processing part of the electronic data as partial data, it is possible to save memory and process at high speed. If the number of partial data increases too much, the memory and memory required to manage it Since the number of processing and auxiliary information increases, the advantage is negated. Set the standard data size to an appropriate value according to the content and purpose of the electronic data so that the number of partial data does not increase too much so that the advantage and the gap of the disadvantages are maximized. The effect that can be done comes out.
[0592] また、処理される部分データのサイズも標準データサイズ付近に揃えやすくなるの で、例えば、電子データの一部のデータを処理したい時、どの部分を選んでも、すな わちどの部分データを選んでも、処理結果が得られるまでの時間が揃!、やすくなる。 部分データの処理時間にできるだけばらつきを持たせたくないような場合に効果が 出てくる。  [0592] Also, the size of the partial data to be processed can be easily adjusted to the vicinity of the standard data size. For example, when processing a part of the electronic data, it is possible to select any part, that is, which part Even if you select the data, the time until the processing result is obtained is even! This is effective when you do not want the processing time of the partial data to vary as much as possible.
(c) 本発明に係るデータ生成方法は、上記の課題を解決するために、求まった標準 外非依存分割境界の内、上記標準データサイズに最も近 ヽデータ位置における標 準外非依存分割境界を抽出する第 2の分割境界抽出ステップをさらに備えたことを 特徴とする。  (c) In order to solve the above-mentioned problem, the data generation method according to the present invention provides a non-standard independent division boundary at a data position closest to the standard data size among the obtained non-standard independent division boundaries. The method further comprises a second division boundary extraction step of extracting
[0593] 上記の構成では、既に説明した第 1の分割境界設定ステップにおける標準内非依 存分割境界が標準外非依存分割境界に置き換わるだけのことなので、同様の作用 効果を得ることができる。  In the above configuration, the same effect can be obtained because the standard-independent division boundary in the first division boundary setting step described above is merely replaced with the non-standard-independent division boundary.
[0594] また、標準外非依存分割境界であっても、できるだけ標準データサイズに近 、部分 データサイズで分割することができるので、標準データサイズと最大データサイズの 間のデータサイズで、大きなデータサイズの数が減る傾向になる。大きなデータサイ ズの数が減るということは、省メモリ、高速に処理する効果が増すということになる。 [0594] Even at non-standard independent division boundaries, data can be divided by the partial data size as close as possible to the standard data size, so large data sizes can be obtained between the standard data size and the maximum data size. The number of sizes tends to decrease. Decreasing the number of large data sizes increases the effect of memory-saving and high-speed processing.
(d) 本発明に係るデータ生成方法は、上記の課題を解決するために、上記標準内 非依存分割境界も上記標準外非依存分割境界も存在しな!、場合に、上記最大デー タサイズを超えないデータ位置の分割境界を抽出する第 3の分割境界抽出ステップ をさらに備えたことを特徴とする。 [0595] 上記の構成によれば、元になる電子データには、標準内非依存分割境界も標準外 非依存分割境界もどちらも存在しないということである。つまり、最大データサイズを 超えないデータサイズを持ち、かつ、分割の影響も表れない部分データを生成できる 分割境界は存在しな ヽこと〖こなる。 (d) In order to solve the above-mentioned problem, the data generation method according to the present invention does not include the above-mentioned standard-independent division boundary and the above-mentioned non-standard-independent division boundary! The method further comprises a third division boundary extraction step of extracting a division boundary at a data position not exceeding. [0595] According to the above configuration, the original electronic data has neither a standard-independent division boundary nor a non-standard-independent division boundary. In other words, there is no division boundary that can generate partial data that has a data size that does not exceed the maximum data size and is not affected by division.
[0596] このような場合、データサイズの条件を最大データサイズをさらに大きくするように緩 和するというのではなぐ分割の影響が処理結果に表れることを許容する。  [0596] In such a case, it is allowed that the effect of division, which is not to relax the data size condition to further increase the maximum data size, appears in the processing result.
[0597] その代わり、最大データサイズを超えないデータ位置の分割境界を抽出する。  [0597] Instead, a division boundary at a data position that does not exceed the maximum data size is extracted.
[0598] これにより、どのような場合でも、最大データサイズ内に部分データのデータサイズ を抑えることができるようになる。部分データのデータサイズの上限が決まれば、部分 データを処理するのに必要なメモリ、処理リソースの上限が決まるので、余分なメモリ や処理リソースを用意する必要がな 、と 、う利点が出てくる。  [0598] Thus, in any case, the data size of the partial data can be suppressed within the maximum data size. Once the upper limit of the data size of the partial data is determined, the upper limit of the memory and processing resources required to process the partial data is determined, so there is no need to prepare extra memory or processing resources. come.
[0599] 同時に、処理時間の上限も決まるので、リアルタイム処理がしゃすいという利点が出 てくる。また、ユーザーの処理待ち時間を一定時間以内に抑えることができるという利 点も出てくる。  [0599] At the same time, since the upper limit of the processing time is also determined, there is an advantage that real-time processing is slow. Another advantage is that the processing wait time of the user can be kept within a certain time.
[0600] 但し、第 3の分割境界設定ステップにお 、て、標準データサイズに最も近 、データ 位置に、分割境界を設定するようにしてもよい。これにより、処理速度の高速化と省リ ソースの効果を最適化し、さらに各部分データの処理時間や必要なリソースの値を、 所望の範囲付近に揃えることができるという効果を得ることができる。  [0600] However, in the third division boundary setting step, the division boundary may be set at the data position closest to the standard data size. As a result, the effects of increasing the processing speed and saving resources can be optimized, and furthermore, the processing time of each partial data and the value of the required resource can be brought close to a desired range.
(e) 本発明に係るデータ生成方法は、上記の課題を解決するために、抽出された分 割境界で上記電子データを分割して、分割データを生成する分割データ生成ステツ プと、分割データを部分データとするには足りない情報である処理補助データを、着 目した分割データとそれ以外の分割データとから生成する処理補助データ生成ステ ップと、をさらに有することを特徴とする。  (e) In order to solve the above problems, the data generation method according to the present invention divides the electronic data at the extracted division boundary to generate divided data, Is characterized by further comprising a processing auxiliary data generation step of generating processing auxiliary data, which is information that is insufficient information to be used as partial data, from the focused divided data and other divided data.
[0601] 「処理補助データ」とは、分割データを単独で処理して分割データの意味する内容 が損なわれない処理結果を得るには、前記分割データに足りない情報である。  [0601] "Processing auxiliary data" is information that is insufficient for the divided data in order to process the divided data independently and obtain a processing result that does not impair the meaning of the divided data.
[0602] 例えば、前の分割データ力 効力を引き継ぐべき情報や、後の分割データで処理 されるべき情報、ある 、は複数の分割データの処理結果に共通して関係する特定デ ータ(例えば、制御コード等)などである。 [0603] 一例として、電子データが HTMLデータの場合、前の分割データ中にある開始タ グが存在し、その開始タグに対応する終了タグがその分割データ以降に存在する場 合、その開始タグが処理補助データに当たる。 [0602] For example, information to take over the effect of the previous divided data, information to be processed by the subsequent divided data, and certain data that are commonly related to the processing results of a plurality of divided data (eg, , Control code, etc.). [0603] As an example, when the electronic data is HTML data, if a start tag exists in the previous divided data and an end tag corresponding to the start tag exists after the divided data, the start tag is used. Corresponds to the processing auxiliary data.
[0604] つまり、前の分割データ中の開始タグの効力は、本来、後の分割データにも及ぶも のであるが、分割の結果、後の分割データを単独で処理する際には、開始タグが読 み込まれないため、その処理結果には開始タグの効力が表れないことになる。結局、 分割によって、本来意図した処理結果にならない分割データが発生する。そこで、開 始タグを後の分割データの処理補助データとして組み合わせることにより、後の分割 データを単独で処理しても、本来の処理結果を得ることができる。  [0604] In other words, the effect of the start tag in the previous divided data originally extends to the subsequent divided data, but as a result of the division, when the subsequent divided data is processed independently, the start tag Is not read, and the processing result does not show the effect of the start tag. Eventually, the division generates divided data that does not result in the intended processing result. Therefore, by combining the start tag as processing auxiliary data for the subsequent divided data, the original processing result can be obtained even if the subsequent divided data is independently processed.
[0605] 処理補助データと分割データは、組として扱われる力 必ずしも一体のデータとして 記録しておく必要はなぐ分散して記録しておいても良い。例えば、処理補助データ だけを集めたファイルなどと ヽぅ形で記録してぉ ヽても良 ヽし、電子データの末尾な どに処理補助データを追加してぉ 、ても良 、。  [0605] The processing auxiliary data and the divided data are not necessarily required to be recorded as integral data, and may be recorded in a dispersed manner. For example, it is acceptable to record the data in a form such as a file in which only the processing auxiliary data is collected, or to add the processing auxiliary data to the end of the electronic data.
[0606] また、処理補助データと分割データは、予め作成しておくのが一般的だが、利用時 に動的に生成することも可能である。  [0606] The processing auxiliary data and the divided data are generally created in advance, but can be dynamically generated at the time of use.
[0607] 但し、分割データと処理補助データの組それぞれが共通に必要とするデータが、 電子データ中に存在する場合、必要とするデータを各分割データ (あるいは処理補 助データ)に複製して分配してやれば、単独で分割データの意味する内容が損なわ れない処理結果を得ることもできる。しかし、それでは各分割データ (あるいは処理補 助データ)のデータサイズが大きくなつてしまうので、分割データ (あるいは処理補助 データ)以外の共有部分を使う場合も、「部分データで処理される」とみなすこととする  [0607] However, in the case where data that is commonly required by each set of the divided data and the processing auxiliary data exists in the electronic data, the necessary data is copied to each divided data (or the processing auxiliary data). By distributing, it is possible to obtain a processing result that does not impair the contents of the divided data by itself. However, this would increase the data size of each divided data (or processing auxiliary data). Therefore, even if a shared part other than the divided data (or processing auxiliary data) is used, it is regarded as “processed with partial data”. To be
[0608] 共通に必要とするデータとしては、例えば、電子データの種類やバージョン情報、 著作権情報、暗号情報などの、いわゆるヘッダ情報などが例としてあげられる。 [0608] Examples of commonly required data include so-called header information such as the type and version information of electronic data, copyright information, and encryption information.
[0609] 本発明の作用の概要を説明すると、部分データを生成する処理の概要は、先に標 準内非依存境界抽出ステップや標準外非依存境界抽出ステップを使う作用で説明 したのと同様、順に分割境界を求め、部分データを生成することを繰り返す。部分デ ータを分割データと処理補助データの組として生成するので、処理補助データ生成 ステップでの処理補助データの生成処理部分についてだけ説明する。 [0609] The outline of the operation of the present invention is as follows. The outline of the process of generating partial data is the same as that described earlier for the operation using the standard-independent boundary extraction step and the non-standard-independent boundary extraction step. , Are sequentially obtained, and the generation of partial data is repeated. Since partial data is generated as a set of divided data and processing auxiliary data, processing auxiliary data generation Only the process of generating the processing auxiliary data in the steps will be described.
[0610] なお、分割データを一つ作る度に部分データを生成するのではなぐ分割データを 全て作ってから、部分データを生成する方法も可能である。どちらの方法が良いかは 、電子データの種類や使う目的による。処理補助データを生成するのに、後の分割 データも必要になる場合は、後者の方法の方が処理しやす 、。  [0610] It is also possible to generate partial data after generating all the divided data instead of generating partial data each time one divided data is generated. Which method is better depends on the type of electronic data and the purpose of use. If the later divided data is also needed to generate the processing auxiliary data, the latter method is easier to process.
[0611] ここでは、説明が分力りやすいように、 HTML形式の電子データの分割データに対 して、処理補助データを生成するとする。 HTML形式のデータの場合、タグの適用 範囲を開始タグと終了タグで示す。開始タグと終了タグは、一般に 1対 1対応である。  [0611] Here, it is assumed that the processing auxiliary data is generated for the divided data of the electronic data in the HTML format so that the description can be easily explained. In the case of data in HTML format, the applicable range of the tag is indicated by a start tag and an end tag. Start tags and end tags generally have a one-to-one correspondence.
[0612] HTML形式のデータを分割境界で分割すると、開始タグと終了タグが別の分割デ ータに分かれてしまう場合が考えられる。この場合、タグの適用範囲に含まれる分割 データでありながら、開始タグあるいは終了タグあるいは両方が含まれな 、分割デー タが存在しえる。それらの分割データは、単独で処理した時の処理結果は、タグを正 しく解釈できていないので、正しい処理結果ではなくなつてしまう。従って、分割デー タ単独では、部分データとなりえない。  [0612] When the HTML format data is divided at the division boundary, the start tag and the end tag may be divided into different division data. In this case, there may be divided data that does not include the start tag or the end tag, or both, even though the data is within the applicable range of the tag. For those divided data, the processing result when processed alone is not correct because the tag cannot be interpreted correctly. Therefore, divided data alone cannot be used as partial data.
[0613] そこで、処理補助データ生成ステップでは、部分データとして分割データに足りな い開始タグや終了タグを、処理補助データとして生成する。  [0613] Therefore, in the processing auxiliary data generation step, start tags and end tags that are insufficient for the divided data as partial data are generated as processing auxiliary data.
[0614] 部分データとして分割データに足りない開始タグや終了タグの抽出の方法としては 、例えば、最初の分割データ力も順に分割データを見ていき、開始タグと終了タグの 対応を取っていく。ある分割データ中で出てきた開始タグに対応する終了タグがその 分割データ中に存在していなければ、その分割データには対応する終了タグが足り ないことになる。そこで、対応する終了タグをその分割データの処理補助データにカロ える。  [0614] As a method of extracting the start tag and the end tag that are insufficient for the divided data as the partial data, for example, the divided data is also sequentially looked at for the first divided data, and the correspondence between the start tag and the end tag is taken. If the end tag corresponding to the start tag appearing in a certain divided data does not exist in the divided data, the end tag corresponding to the divided data is insufficient. Therefore, the corresponding end tag is included in the processing auxiliary data of the divided data.
また、その次の分割データに関しては、開始タグが足りないことになるので、開始タグ をその分割データの処理補助データにカ卩える。  In addition, since the start tag is insufficient for the next divided data, the start tag is added to the processing auxiliary data of the divided data.
[0615] 開始タグを含む分割データと対応する終了タグを含む分割データの間に、一つ以 上の分割データが存在する場合は、その間の分割データは、開始タグと終了タグの 両方が足りないことになるので、両方のタグを処理補助データに加える。 [0615] If there is one or more divided data between the divided data including the start tag and the corresponding divided data including the end tag, the divided data between them is sufficient for both the start tag and the end tag. Therefore, both tags are added to the processing auxiliary data.
[0616] なお、前の分割データから得られる処理補助データ(この例では開始タグ)と、後の 分割データ力も得られる処理補助データ(この例では終了タグ)は、分けて記録して おいた方が、後で部分データとして処理する場合に都合が良い。 [0616] The processing auxiliary data (start tag in this example) obtained from the previous divided data and the subsequent It is convenient to separately record the processing auxiliary data (the end tag in this example) from which the divided data power is also obtained when processing as partial data later.
[0617] 以上の処理によって、処理補助データを生成することができる。  [0617] Through the above processing, processing auxiliary data can be generated.
[0618] 部分データを処理する場合は、分割データと処理補助データを使って処理する。  [0618] When processing the partial data, the processing is performed using the divided data and the processing auxiliary data.
例えば、 HTMLデータの例の場合、最初にその分割データに足りない開始タグの処 理補助データ、次に分割データ、最後にその分割データに足りない終了タグの処理 補助データ、の順で読み込めば、部分データとして扱えることになる。このように、処 理補助データを生成する際、前の分割データカゝら得られる処理補助データ (この例 では開始タグ)と、後の分割データ力 得られる処理補助データ (この例では終了タ グ)を分けておくと、処理しやすいことがある。  For example, in the case of the example of HTML data, if the processing data for the start tag that is insufficient for the divided data is read first, then the divided data, and finally the processing auxiliary data for the end tag that is missing for the divided data, then , Can be handled as partial data. As described above, when generating the processing auxiliary data, the processing auxiliary data obtained from the previous divided data (the start tag in this example) and the processing auxiliary data obtained from the subsequent divided data (the end tag in this example). ) May be easier to process.
[0619] これによつて、部分データを直接作成せず、分割データと処理補助データの組とし て扱うことができるので、単純に分割した分割データだけでは部分データを生成でき ないような電子データであっても、処理補助データを利用することで、部分データとし て扱うことができる利点がある。  [0619] As a result, since partial data can be handled as a set of divided data and processing auxiliary data without directly creating partial data, electronic data that cannot be generated by simply dividing divided data alone can not be generated. However, there is an advantage that it can be handled as partial data by using the processing auxiliary data.
[0620] なお、処理補助データを電子データとは別に記録しておくことによる利点は、分割 データを分割境界の情報として、電子データとは別に記録しておくことによる利点と 同様である。  [0620] The advantage obtained by recording the processing auxiliary data separately from the electronic data is the same as the advantage obtained by recording the divided data separately from the electronic data as division boundary information.
(D 本発明に係るデータ生成方法は、上記の課題を解決するために、部分データの 処理結果間に依存関係があることを示す情報である依存関係データを生成する依存 関係データ生成ステップを有することを特徴とする。  (D The data generation method according to the present invention has a dependency data generation step of generating dependency data, which is information indicating that there is a dependency between the processing results of the partial data, in order to solve the above problem. It is characterized by the following.
[0621] 「依存関係」とは、どの部分データ間で処理結果に影響があるかということを示す関 係である。 [0621] "Dependency" is a relationship that indicates which partial data has an effect on the processing result.
[0622] 「依存関係データ」は、処理補助データ同様、電子データに付け加えた形にしても 良 、し、電子データとは独立したファイルなどの形式で記録してぉ 、ても良 、。  [0622] Like the processing auxiliary data, the "dependency data" may be added to the electronic data, or may be recorded in a format such as a file independent of the electronic data.
[0623] 本発明の作用の概要を説明すると、まず、部分データの処理結果間で影響がある かどうかは、分割境界が標準内非依存分割境界または標準外非依存分割境界なら ば、その分割境界の前後の分割境界には影響がないと判断し、標準内非依存分割 境界でも標準外非依存分割境界でもないならば、その分割境界の前後の分割境界 には影響があると判断する。 [0623] An outline of the operation of the present invention is as follows. First, whether or not there is an influence between the processing results of partial data is determined if the division boundary is a standard-independent division boundary or a non-standard-independent division boundary. It is judged that there is no effect on the division boundary before and after the boundary, and if neither the standard-independent division boundary nor the non-standard-independent division boundary, the division boundary before and after that division boundary is determined. Is determined to have an effect.
[0624] 分割境界が、標準内非依存分割境界でも標準外非依存分割境界でもな!ヽ時、影 響があるかどうかは、電子データの種類や分割境界の位置を見て、依存関係データ 生成ステップで個々に判断するしかない。例えば、 HTMLデータの場合、 brタグや p タグなど、改行を意味するタグの前後を分割境界とする場合は、影響がないと判断で きる。単語の途中などの位置を分割境界とする場合は、影響があると判断できる。  [0624] The dividing boundary is neither a standard-independent nor a non-standard-independent dividing boundary! At this time, the only way to determine whether or not there is any impact is to determine the type of electronic data and the position of the dividing boundary in the dependency data generation step. For example, in the case of HTML data, if there is a division boundary before and after a tag indicating a line break, such as a br tag or a p tag, it can be determined that there is no effect. When a position such as the middle of a word is used as the division boundary, it can be determined that there is an effect.
[0625] この判断より、どの部分データと部分データの間に影響があるかどうかが求められる ので、この情報を依存関係データとして依存関係データ生成ステップで生成すれば よい。  [0625] From this determination, it is determined whether there is an effect between any of the partial data and the partial data. This information may be generated as dependency data in the dependency data generation step.
[0626] 生成された依存関係データは、部分データを処理する時に利用される。各部分デ ータの処理結果を単独で利用する場合は、特に依存関係データを利用しなくても良 いが、各部分データの処理結果を複数まとめて利用する場合は、依存関係データを 利用して、依存関係を考慮して処理する必要がある。  [0626] The generated dependency data is used when processing the partial data. Dependency data does not need to be used when the processing result of each partial data is used alone, but when multiple processing results of each partial data are used together, dependency data is used. Then, it is necessary to process in consideration of the dependency.
[0627] 具体的には、影響を与える方の部分データを先に処理し、その後に影響を受ける ほうの部分データを影響を考慮して処理する。  [0627] Specifically, the affected partial data is processed first, and subsequently the affected partial data is processed in consideration of the influence.
[0628] 例えば、先の HTMLデータの例で言えば、単語の途中などが分割境界となってい る場合、前の部分データを先に処理し、前の部分データのレイアウトデータが得られ る。レイアウトデータは、単語の前半までとなる。次に、後の部分データを、前の部分 データのレイアウトデータに追加する形で処理する。「影響を考慮した」状態とは、こ の場合、「追加する」ということであり、既存のレイアウトデータの最後の文字に続けて 、レイアウトすることである。前の部分データの最後のレイアウトデータである単語の前 半部分と、後の部分データの最初のレイアウトデータである単語の後半部分が繋がり 、一つの単語として連続して 、るようなレイアウトデータとなる。  [0628] For example, in the case of the above-described HTML data, if the middle of a word or the like is a division boundary, the previous partial data is processed first, and the layout data of the previous partial data is obtained. The layout data is up to the first half of the word. Next, the subsequent partial data is processed by being added to the layout data of the previous partial data. In this case, the state “considering the influence” means “add”, ie, laying out the last character of the existing layout data. The first half of the word, which is the last layout data of the previous partial data, and the second half of the word, the first layout data of the subsequent partial data, are connected to form layout data that is continuous as one word. Become.
[0629] もし、後の部分データを「影響を考慮しない」状態で生成したら、後の部分データの 最初のレイアウトデータである単語の後半部分は、行の先頭にレイアウトしてしまう。 後の部分データの処理結果だけを単独で見る分には問題な 、が、前の部分データ の処理結果と合わせてみると、単語の途中で改行が入っているかのように見える。元 々の電子データでは、改行のタグなどは入っていないので、これは全体としては誤つ た処理結果となってしまう。 [0629] If the subsequent partial data is generated in a "not considering influence" state, the latter half of the word, which is the first layout data of the subsequent partial data, is laid out at the beginning of the line. It is problematic to see only the processing result of the subsequent partial data alone, but when combined with the processing result of the previous partial data, it looks as if a line break is inserted in the middle of the word. Since the original electronic data does not include line break tags, this is incorrect as a whole. Result.
[0630] このように、影響があるかどうかの情報を使って複数の部分データを処理することで 、処理結果自体には誤りが無いようにすることができる効果が出てくる。見方を変えれ ば、依存関係データを用いることにより、複数の部分データを一つの大きな部分デー タとして扱うことができるとも言える。  [0630] As described above, by processing a plurality of partial data using the information as to whether or not there is an effect, an effect is obtained in which the processing result itself can be made free from errors. From a different perspective, it can be said that by using dependency data, a plurality of partial data can be treated as one large partial data.
[0631] なお、影響があるかどうかの情報を、部分データの内容を見て判断することも不可 能ではないが、依存関係データとしてまとまっていれば、影響があるかどうかの情報 を事前に素早く得ることができる効果が出てくる。  [0631] It is not impossible to determine whether or not there is an effect by looking at the contents of the partial data. However, if the information is summarized as dependency data, the information as to whether or not there is an effect can be determined in advance. The effect can be obtained quickly.
[0632] なお、本発明として記載した構成を、前記発明として記載した各構成と、必要に応 じて組み合わせることができる。  [0632] Note that the configuration described as the present invention can be combined with the respective configurations described as the above invention as needed.
(g) 本発明に係るデータ生成方法は、上記の課題を解決するために、依存関係デ ータ生成ステップにおいて、依存関係データを生成する対象となる部分データを、各 部分データの直前あるいは直後ある ヽは両方の部分データとすることを特徴とする。  (g) In the data generation method according to the present invention, in order to solve the above-described problem, in the dependency data generation step, partial data for which dependency data is to be generated is set immediately before or immediately after each partial data. One ヽ is characterized by both partial data.
[0633] 上述したように、影響を考慮して部分データを処理する時は、影響を与える方の部 分データを先に処理し、その後に影響を受けるほうの部分データを影響を考慮して 処理する。  [0633] As described above, when processing the partial data in consideration of the influence, the partial data that is affected is processed first, and the partial data that is affected later is considered in consideration of the influence. To process.
[0634] その際、影響を与える方の部分データをどの範囲まで探すのかによって、処理が変 わってくる。直前あるいは直後の部分データだけを探す対象とする場合は、着目して V、る部分データとその直前ある 、は直後あるいは両方の部分データとの間の影響か ら依存関係データを生成するようにすれば十分である。  [0634] At this time, the processing varies depending on the extent to which partial data to be affected is searched. When searching for only the partial data immediately before or immediately after, focus on V, the partial data and the immediately preceding partial data should generate dependency data from the effect between the immediate and both partial data. That is enough.
[0635] 分割境界を求める際に直接得られる情報は、隣りあう 2つの部分データ間で影響が あるかどうかなので、直前あるいは直後あるいは両方の部分データに関する依存関 係データは、分割境界を求める際に、生成しやすいという効果がある。  [0635] The information directly obtained at the time of obtaining the division boundary is whether or not there is an effect between two adjacent partial data. Therefore, the dependency data on the immediately preceding or next partial data or both partial data is obtained at the time of obtaining the division boundary. Has the effect of being easy to generate.
(h) なお、本発明に係るデータ生成方法は、依存関係データ生成ステップにおいて (h) In the data generation method according to the present invention, in the dependency data generation step,
、部分データの処理結果が依存する最前あるいは最後あるいは両方の部分データを 特定する情報を、上記依存関係データとすることを特徴としてもよ!ヽ。 Alternatively, the information for specifying the partial data before or after which the processing result of the partial data depends, or both, may be the dependency data!
[0636] 上述したように、部分データを影響を考慮して処理する時は、影響を与える方の部 分データを先に処理し、その後に影響を受けるほうの部分データを影響を考慮して 処理する。 [0636] As described above, when processing the partial data in consideration of the influence, the partial data that is affected is processed first, and the partial data that is affected later is considered in consideration of the influence. To process.
[0637] その際、影響を与える方の部分データをどの範囲まで探すのかによって、処理が変 わってくる。部分データの処理結果が依存する最前ある 、は最後ある 、は両方の部 分データを探す対象とする場合は、多少の処理が必要となる。  [0637] At that time, the processing varies depending on the extent to which the partial data to be affected is searched. If the processing result of the partial data depends first, is the last, and if both of the partial data are to be searched, some processing is required.
[0638] 本発明の作用の概要を説明すると、分割境界を求める時に得られる情報は、隣りあ う 2つの部分データ間で影響があるかどうかなので、依存関係データ生成ステップは 、ある部分データが影響を受ける最前あるいは最後のデータは、影響を受ける部分 データを順方向あるいは逆方向に順に迪つていき、影響を受ける部分データが無く なるまで迪る処理を行う。最後にたどり着いた影響を受ける部分データが、ある部分 データに対して最前あるいは最後の部分データである。最前か最後かは、迪る方向( 順方向 Z逆方向)で決まる。  [0638] To explain the outline of the operation of the present invention, the information obtained when obtaining the division boundary is whether or not there is an effect between two adjacent partial data. For the first or last data affected, the affected partial data is sequentially added in the forward or backward direction, and the process is continued until there is no affected partial data. The last affected partial data is the first or last partial data for a certain partial data. The front or the last is determined by the direction (forward direction Z reverse direction).
[0639] 求まった最前ある!/、は最後ある!/、は両方の部分データを特定する情報を、依存関 係データ生成ステップが依存関係データとして生成する。  [0639] The foremost found! / And the last are! /, The information for specifying both partial data is generated as dependency data by the dependency data generation step.
[0640] 着目した部分データの処理結果が依存する最前、最後または両方の部分データが 判ると、その最前の部分データ力 着目した部分データまでをひとまとめに処理する こと、あるいは着目した部分データ力 最後の部分データまでをひとまとめに処理す ること、あるいは最前の部分データ力 最後の部分データまでをひとまとめに処理す ることが可能になる。この結果、電子データ全体を処理する場合と同じ処理結果が常 に得られる効果が出てくる。  [0640] If the processing result of the focused partial data depends on the first, last, or both partial data, the partial data strength at the front can be processed collectively up to the focused partial data, or the focused partial data strength can be determined. It is possible to process up to partial data at once, or to process the last partial data at once. As a result, the same processing result as when processing the entire electronic data is always obtained.
[0641] これに対し、最前あるいは最後ではなぐその途中から処理結果を生成すると、処 理結果自体は部分データの意味する内容が損なわれな 、が、最前あるいは最後か らの影響を引き継がない分、電子データ全体を処理する場合と、処理結果が異なる。 その場合、途中より上のデータの処理結果を、途中から下の処理結果とそのまま一 緒にしてしまうと、途中部分の接続がお力しくなつてしまう。それを防ぐためには、途 中から下の処理結果を再度作り直さな 、と 、けな 、と 、う欠点がある。  [0641] On the other hand, if the processing result is generated halfway from the front or the end, the processing result itself does not lose the meaning of the partial data, but it does not inherit the effect from the front or the last. The processing result is different from the case where the entire electronic data is processed. In this case, if the processing result of the data above the middle part is made to be the same as the processing result of the middle part below, the connection in the middle part will be powerful. In order to prevent this, there is a drawback that the lower processing result must be recreated from the middle.
[0642] 本発明で生成される依存関係データを使えば、電子データ全体を処理する場合と 同じ処理結果が常に得られるので、一度作った処理結果を作り直す必要がないとい ぅ禾 IJ点がある。 [0643] なお、影響を受ける最前あるいは最後あるいは両方の部分データの情報を持つ依 存関係データを用いなくても、影響を受ける最前ある 、は最後あるいは両方の部分 データを得ることは可能である。 [0642] If the dependency data generated by the present invention is used, the same processing result as when processing the entire electronic data is always obtained, so it is not necessary to re-create the processing result once created. . [0643] Note that it is possible to obtain the last or both partial data for the first, the last, and the affected data without using the dependency data that has the information on the first, last, or both of the affected data. .
[0644] 例えば、各部分データについて、直前あるいは直後あるいは両方の部分データか ら影響を受けるかどうかの情報があれば、本発明で影響を受ける最前あるいは最後 の部分データの依存関係データを生成する処理と同様の処理を行うことにより、求め ることはでさる。  [0644] For example, if there is information on whether or not each partial data is affected by the previous or next partial data or both of them, the dependency data of the first or last partial data affected by the present invention is generated. By performing the same processing as the processing, it is easier to find.
[0645] しかしそれでは、処理する際に時間が力かってしまうので、予め影響を受ける最前 あるいは最後あるいは両方の部分データを求めておくことで、この処理時間を省くこ とができる利点が出てくる。  [0645] However, in that case, the processing time is time-consuming, so that the processing time can be saved by previously obtaining the partial data before or after being affected, or both. .
[0646] さらに、本発明に係るデータ生成方法において、前記電子データは、表示設定によ つて異なる表示レイアウトを生成できる文書データであり、部分データの処理は、部 分データの表示レイアウトを生成する処理であることを特徴としてもよい。 [0646] Further, in the data generation method according to the present invention, the electronic data is document data capable of generating a different display layout depending on display settings, and the processing of the partial data generates a display layout of the partial data. It may be characterized in that it is a process.
[0647] 上述したように、部分データを使って処理する利点の一つに、「電子データの処理 結果の一部だけを得たい時に、該当する部分データだけを処理すればよいので、高 速、省リソースで処理できる」という利点がある。 [0647] As described above, one of the advantages of processing using partial data is that when only a part of the processing result of electronic data is to be obtained, only the relevant partial data needs to be processed, so that high-speed processing is possible. , And can be processed with reduced resources. "
[0648] この利点を生力し易い電子データとしては、電子データの処理結果の一部だけを 見るような用途が多いような電子データが考えられる。 [0648] As electronic data that can easily bring about this advantage, electronic data that can be used in many cases, such as viewing only a part of the processing result of electronic data, can be considered.
[0649] 例えば書籍は、目次や索引を見て、所望のページを開いたり、しおりをはさんで次 回にそこ力 読み始めたりするような使用形態が多い。書籍を電子化したものがいわ ば「文書データ」であり、文書データも紙の書籍同様の使い方がされる。 [0649] For example, in a book, there are many usage forms in which a desired page is opened by looking at a table of contents or an index, and reading is started next time with a bookmark in between. The electronic version of a book is "document data," and the document data is used in the same way as a paper book.
[0650] 従って、文書データは、本発明のように、部分データを使って、電子データの処理 結果の一部だけを高速、省リソースで処理できると 、う利点が生力せる電子データで ある。 [0650] Therefore, as in the present invention, the document data is an electronic data that has the advantage that if only a part of the processing result of the electronic data can be processed with high speed and resource saving using the partial data. .
[0651] し力も、文書データは、表示設定によって異なる表示レイアウトを生成できる上に、 文書データを分割する境界の位置によって、表示レイアウトに分割の影響が出たり出 な力つたりすると!/、う特徴も持って 、る。  [0651] The document data can generate different display layouts depending on the display settings. In addition, depending on the position of the boundary for dividing the document data, the display layout may be affected by division or may not be possible! /, It also has features.
[0652] すなわち、表示設定によって異なる表示レイアウトを生成できる文書データの場合、 例えば HTMLデータを WWWブラウザで表示する場合が典型的だ力 その表示レイ アウトが表示設定などによって変わっても、そのことによる不都合は無い。その為、分 割境界の位置が必ずしも切りの良!、所 (例えば改行の前後など)ではなくても、その 部分データ単体の表示レイアウトがお力しいとはユーザーに感じられないので、部分 データ単体力 誤りの無い処理結果を得ることができる。その代わり、切りの良くない 所で文書データを分割すると、その前後の部分データ間で、処理結果に影響が生じ ることになる。 [0652] That is, in the case of document data in which different display layouts can be generated depending on display settings, For example, it is typical to display HTML data on a WWW browser. Even if the display layout changes depending on the display settings, there is no inconvenience. Therefore, even if the position of the dividing boundary is not necessarily a good cut, or a place (for example, before or after a line feed), the user does not feel that the display layout of the partial data alone is powerful, so the partial data Able to obtain error-free processing results. On the other hand, if the document data is divided at a poorly cut place, the processing result will be affected between the partial data before and after the document data.
[0653] これに対し、本発明では、非依存分割境界候補に関する処理など、部分データ間 で処理結果に影響が生じにく 、ような工夫を盛り込んで 、るので、表示設定によって 異なる表示レイアウトを生成でき、処理が表示レイアウトの生成であるような文書デー タについて、本発明の効果が特に生きてくる。  [0653] On the other hand, in the present invention, the processing result is not affected between partial data, such as the processing relating to the independent division boundary candidate, and such a device is incorporated. The effect of the present invention is particularly effective for document data which can be generated and whose processing is generation of a display layout.
(0 本発明に係るデータ生成プログラムは、上記の課題を解決するために、上記デ ータ生成装置が備える各手段として、コンピュータを機能させることを特徴とする。  (0) The data generation program according to the present invention is characterized by causing a computer to function as each unit included in the data generation device in order to solve the above problems.
[0654] また、本発明に係るデータ生成プログラムは、上記の課題を解決するために、上記 データ生成方法が備える各ステップをコンピュータに実行させることを特徴とする。 [0654] Further, in order to solve the above-described problems, a data generation program according to the present invention causes a computer to execute each step of the data generation method.
[0655] また、本発明に係る記録媒体は、上記の課題を解決するために、上記データ生成 プログラムを記録したことを特徴とする。 [0655] In order to solve the above problems, a recording medium according to the present invention is characterized by recording the data generation program.
[0656] これにより、上記記録媒体、またはネットワークを介して、一般的なコンピュータにデ ータ生成プログラムをインストールすることによって、該コンピュータを用いて上記の データ生成方法を実現する、言い換えれば、該コンピュータをデータ生成装置として 機會させることができる。  [0656] Thus, by installing the data generation program on a general computer via the recording medium or the network, the data generation method is realized using the computer. A computer can be operated as a data generation device.
[0657] なお、上記で述べた発明につ 、ては、ここで述べた組み合わせだけに限らず、あら ゆる組み合わせが可能である。  [0657] The invention described above is not limited to the combinations described here, but can be any combination.
[0658] (実施の第二形態)  [0658] (Second embodiment)
以下、本発明の実施の第二形態を図面を参照して説明する。  Hereinafter, a second embodiment of the present invention will be described with reference to the drawings.
[0659] (用語の定義)  [0659] (Definition of terms)
まず、言葉の定義について説明しておく。  First, the definition of words is explained.
[0660] 「電子データが複数に分割されたデータ」とは、電子データを、そのサイズより小さ なサイズ (以下、分割サイズという)に分割したデータのことである。以下、電子データ を単に分割して得られた小サイズのデータのことを前述したとおり分割データと呼ぶ。 [0660] "Data obtained by dividing electronic data into a plurality of pieces" means that electronic data is smaller than its size. Data that is divided into different sizes (hereinafter referred to as division sizes). Hereinafter, small-size data obtained by simply dividing electronic data is referred to as divided data as described above.
[0661] 例えば、図 7Bは、電子データとしての他の HTMLデータの全体を、 9つの分割デ ータに分割する場合の区切り方の一例を示している。図 7Bからも判るように、分割さ れたデータ間で重なる部分もなぐまた足りない部分もない。分割サイズは一定とは 限らず、様々な場合がある。  [0661] For example, FIG. 7B shows an example of a division method when the whole of other HTML data as electronic data is divided into nine division data. As can be seen from FIG. 7B, there is no overlapping part or missing part between the divided data. The division size is not always fixed and may be various.
[0662] 一般に、分割サイズは、想定する利用環境で扱い易いサイズ前後に揃える方が、 高速、省リソースで分割データを処理するには有利である。分割サイズがあまり大き すぎると、処理速度が遅くなつたり、リソースが大量に必要になったりする問題がある 。逆に小さすぎると、分割データを管理する処理が増えてしまったり、管理情報などが 膨れ上がってしまう問題がある。適正な分割サイズを求めるには、例えば、ユーザが 処理待ちを許容できる時間を決めて、想定する利用環境でその時間内に処理できる データ量を目安にするなどすればよい。  [0662] In general, it is advantageous to process divided data at high speed and with resource saving if the division size is set to a size that is easy to handle in the assumed usage environment. If the division size is too large, there is a problem that the processing speed becomes slow or a large amount of resources are required. On the other hand, if the size is too small, there is a problem that the number of processes for managing the divided data increases and the management information and the like expand. In order to determine an appropriate division size, for example, the user can determine a time during which processing can be allowed to wait, and use the amount of data that can be processed within that time in an assumed usage environment as a guide.
また、適正なサイズの概要が求まっているとした場合、個々の分割データの分割位置 を適正サイズの前後のどの位置にするかは、電子データの中身を見て決められること が多い。例えば、電子書籍の例で言えば、ノラグラフなどの単位を基に分割位置を 決めたり、改行を分割位置に決めたりする。  In addition, if an outline of an appropriate size is determined, it is often determined from the contents of the electronic data which of the divided positions of the divided data is located before or after the appropriate size. For example, in the case of an electronic book, a division position is determined based on a unit such as a noragraph, or a line feed is determined as a division position.
[0663] なお、分割データは、電子データ中の連続した一塊のデータ部分が分割されて生 成されるとは限らず、飛び飛びに分割される場合もあり得るが、通常、連続した一塊 のデータ部分が分割されて 、る方が扱 、易 、。  [0663] Note that the divided data is not necessarily generated by dividing a continuous chunk of data part in the electronic data, and may be divided into discrete parts. The part is divided, and it is easier to handle.
[0664] 「単独で処理したときの処理結果自体には誤りが無い」の定義は、(実施の第一形 態)で説明したとおりである。  [0664] The definition of "there is no error in the processing result itself when processed alone" is as described in (First Embodiment).
[0665] 本発明の目的は、元データを分割して処理する場合に、図 19Bに示したような誤り が処理結果に表れるのを防止することである。  An object of the present invention is to prevent an error as shown in FIG. 19B from appearing in a processing result when original data is divided and processed.
[0666] 「単独で処理したときの処理結果自体には誤りが無いデータ」とは、そのデータ以 外のデータを使わず、そのデータだけを用いて所定の処理を行うことで、処理結果に 誤りが表れないようなデータのことである。このようなデータのことを、本発明では前述 した「部分データ」または「ブロックデータ」と呼ぶ。以下、「部分データ」の呼称を用い る。 [0666] "Data having no error in the processing result itself when processed alone" means that a predetermined process is performed using only the data without using the data other than the data, and thus the processing result is obtained. Data that does not show errors. In the present invention, such data is referred to as “partial data” or “block data”. In the following, we use the term "partial data" The
[0667] すなわち、「部分データ」は、「元になる電子データが複数に分割されたデータであ り、かつ、単独で処理したときの処理結果自体には誤りが無いデータ」である。  That is, the “partial data” is “data obtained by dividing the original electronic data into a plurality of pieces and having no error in the processing result itself when processed independently”.
[0668] 図 7Bの例でいえば、 9つの分割データのことを、部分データ 400— 408と呼ぶが、 なぜそう呼べるのかについては、後で詳述する。  In the example of FIG. 7B, the nine divided data are referred to as partial data 400 to 408. The reason why such data can be called will be described later in detail.
[0669] なお、部分データには順番があるとし、相対的に「前の部分データ」、「次の部分デ ータ」という言い方をする。この順番は、上記の誤りが表れるか否力も考慮して各部分 データを順に処理した処理結果が、電子データ全体をひとまとまりに処理したときの 処理結果に一致する時の部分データの処理順である。因みに、その処理順は、部分 データの電子データ中の位置の順番に相当することが多い。  [0669] It should be noted that the partial data has an order, and is relatively referred to as "previous partial data" or "next partial data". This order is based on the processing order of the partial data when the processing result obtained by processing each partial data in order considering whether or not the above error appears appears matches the processing result obtained when the entire electronic data is collectively processed. is there. Incidentally, the processing order often corresponds to the order of the position of the partial data in the electronic data.
[0670] なお、複数の分割データが共通に必要とするデータ力 電子データ中に存在する 場合、必要とするデータを各分割データに複製して分配してやれば、単独で処理す ることができる。しかし、それでは分割データのデータサイズが大きくなつてしまうので 、共通に必要とするデータを共有する場合もある。つまり、分割データは互いに重なり 合わないと定義したが、データ共有などの目的がある場合は、重なり合いを認める。  [0670] When a plurality of pieces of divided data are present in electronic data that is required in common, if the required data is copied and distributed to each piece of divided data, it can be processed independently. However, in that case, the data size of the divided data becomes large, so that commonly needed data may be shared. In other words, it is defined that the divided data does not overlap each other, but if there is a purpose such as data sharing, overlapping is allowed.
[0671] あるいは共有部分としてのデータは、どの分割データを処理する場合でも、共有部 分の記憶先力 事前に読み込まれることを前提にすれば、その前提がある分割デー タは単体で処理できるデータと 、える。  [0671] Or, as for the data as the shared part, if any of the divided data is processed, if the storage capacity of the shared part is assumed to be read in advance, the divided data with that premise can be processed alone. With data.
[0672] 共通に必要とするデータとしては、例えば、電子データの種類やバージョン情報、 著作権情報、暗号情報などの、いわゆるヘッダ情報などが例としてあげられる。  [0672] Examples of commonly required data include so-called header information such as the type and version information of electronic data, copyright information, and encryption information.
[0673] このとき、共通に必要とするデータを用いることにより、分割データを単独で処理し たときの処理結果自体には誤りが表れないのであれば、その分割データは共通に必 要とするデータと併せて部分データとみなすことができる。  [0673] At this time, if data that is required in common is used and the processing result itself when the divided data is independently processed does not show an error, the divided data is required in common It can be regarded as partial data together with the data.
[0674] また、部分データは、例えばメインデータとサブデータとに構造ィ匕され、サブデータ がメインデータの処理を補助するように構成されていてもよい。また、そのメインデー タとサブデータとが別々の記憶領域に互いに対応付けて格納されていてもよい。そ のようなサブデータについては、後で具体的に説明するが、例えば、前の分割デー タカ 効力を引き継ぐべき情報や、後の分割データで処理されるべき情報、あるいは 複数の分割データの処理結果に共通して関係する特定データ (例えば、制御コード 等)などがサブデータの例である。 [0674] Further, the partial data may be structured, for example, into main data and sub data, and the sub data may be configured to assist processing of the main data. Further, the main data and the sub data may be stored in different storage areas in association with each other. Such sub-data will be described in detail later.For example, information to take over the effect of the previous divided data, information to be processed by the subsequent divided data, or Specific data (for example, a control code or the like) commonly associated with the processing result of a plurality of divided data is an example of the sub data.
[0675] 図 7Bの上記部分データ 400— 408は、実際には上記メインデータに相当し、図 43 または図 44に示す処理補助データ 100— 108、 600— 608力 上記サブデータに 相当する。これについては、後で詳述する。  The partial data 400-408 in FIG. 7B actually corresponds to the main data, and corresponds to the processing auxiliary data 100-108, 600-608 shown in FIG. 43 or FIG. This will be described later in detail.
[0676] なお、部分データと部分データの処理結果とは対応しているので、以降の説明では 、「部分データ」という言葉を、その処理結果の意味を含めて使うことがある。例えば、 「部分データ Aの処理結果が部分データ Bの処理結果に影響する」 t 、う表現を省略 して、「部分データ Aが部分データ Bに影響する」と表現することがある。  [0676] Since the partial data and the processing result of the partial data correspond to each other, in the following description, the term "partial data" may be used including the meaning of the processing result. For example, the expression “the partial data A affects the partial data B” may be omitted, and the expression “the partial data A affects the partial data B” may be omitted.
[0677] 「所望の部分データ」は、処理結果を得た!/、部分データのことである力 所望の部 分データは 1つの部分データとは限らず、複数の場合もある。例えば、図 42に示すよ うな表示結果を得た 、場合に、そのような表示結果を得るために必要になる部分デ ータの全てが、所望の部分データである。  [0677] The "desired partial data" obtained the processing result! /, Which is the partial data The desired partial data is not limited to one partial data, but may be plural. For example, when a display result as shown in FIG. 42 is obtained, all of the partial data required to obtain such a display result is the desired partial data.
[0678] 「影響」の意味と具体例につ!、ては、(実施の第一形態)で説明したとおりである。  [0678] The meaning and specific examples of "influence" are as described in (First Embodiment).
[0679] 次に、「(部分データを用いた)所定の処理」は、電子データの種類や目的によって 異なるが、一般に電子データを入力データとして、何らかの出力を得るための処理を 指す。例えば HTMLデータの場合、 HTMLデータを解析して、表示レイアウトを算 出することになる。 [0679] Next, "predetermined processing (using partial data)" generally refers to processing for obtaining some output using electronic data as input data, although the processing differs depending on the type and purpose of electronic data. For example, in the case of HTML data, the display layout is calculated by analyzing the HTML data.
[0680] 「先に処理する」とは、処理の順番から言えば、所望の部分データの処理結果に影 響を与えることが検出された部分データを処理してから、その影響を引き継いで (考 慮して)、次に、所望の部分データを処理することを意味する。  [0680] "Process first" means, in terms of the processing order, processing the partial data detected to affect the processing result of the desired partial data, and then taking over the effect ( Next, it means to process the desired partial data.
[0681] 「所望の部分データ中の一部の部分データ」とは、所望の部分データが複数あり、 その中のいくつかの部分データという意味で、部分データ単位での話である。部分デ ータをさらに分割したデータという意味ではない。 [0681] The "partial data in the desired partial data" means that there are a plurality of desired partial data, and some of them are partial data units, and is a unit of partial data. It does not mean that the partial data is further divided data.
[0682] 「所望の処理範囲」は、出力結果を取得しょうとする電子データの範囲を意味し、何 らかの指標で指定される。例えば、文書データならば、「何行目から何行目」、ある ヽ は「何文字目から何文字目」、あるいは「全体の何パーセントから何パーセント」、 t ヽ うような指標によって、所望の処理範囲を指定する。 [0683] このように範囲の始点と終点を指定する以外にも、ある基準点とその基準点の周囲 の範囲という指定の方法もある。例えば、「何行目力も何行分」、あるいは「何行目か ら、表示手段に表示される範囲分 (ドット数など)」、などの指定の仕方が可能である。 基準点や範囲は、処理範囲を最終的に指定することができれば、処理結果の単位( 「行」など)でなくてもよい。例えば、「電子データ(あるいは部分データ)の先頭力も何 ノイト目のデータ」を基準点としてもよ ヽ。 [0682] The "desired processing range" means a range of electronic data for which an output result is to be obtained, and is specified by some index. For example, in document data, “from what line to what line”, a certain あ る is “from what character to what character” or “from what percentage to what percentage of the whole” Specify the processing range of. [0683] In addition to specifying the start point and end point of the range, there is also a method of specifying a reference point and a range around the reference point. For example, it is possible to specify “how many lines and how many lines”, or “from what line to the range displayed on the display means (the number of dots, etc.)”. The reference point and the range need not be the unit of the processing result (such as “line”) as long as the processing range can be finally specified. For example, the reference point may be “data at the head of any number of electronic data (or partial data)”.
[0684] 「処理補助データ」「階層構造」「開始位置の階層構造」「表示レイアウト」「表示設定 」「行」「行頭」の各意味については、(実施の第一形態)で説明したとおりである。  [0684] The meanings of "processing auxiliary data", "hierarchical structure", "hierarchical structure of start position", "display layout", "display setting", "line", and "head of line" are as described in the first embodiment. It is.
[0685] 「所望の部分データの表示レイアウトが含まれる行」力否かの判断は、通常は、所望 の部分データから生成される最初の行に対してだけ行えば、足りる場合が多い。  [0685] In general, it is often sufficient to judge whether a "line including a display layout of desired partial data" is only the first line generated from the desired partial data.
[0686] なお、行とは別に管理する表示レイアウト要素の場合は、検出対象の部分データの 行の表示範囲を行方向(縦行なら縦方向、横行なら横方向)に伸ばしたときに、別管 理する表示レイアウト要素の表示範囲と重なるかどうかで影響を判断する。  [0686] In the case of a display layout element managed separately from a row, when the display range of the row of the partial data to be detected is extended in the row direction (vertical for vertical rows, horizontal for horizontal rows), The effect is determined based on whether it overlaps the display range of the display layout element to be managed.
[0687] 「行末力も表示レイアウトを算出する」とは、行末の表示レイアウト要素に続いて、新 たな表示レイアウト要素を配置するように、その新たな表示レイアウト要素の表示位置 を算出することである。通常、行末の表示レイアウト要素の隣に新たな表示レイアウト 要素を配置する場合が多い。  [0687] "Calculate the display layout also for the line ending force" is to calculate the display position of the new display layout element so as to arrange the new display layout element following the display layout element at the end of the line. is there. Usually, a new display layout element is often arranged next to the display layout element at the end of the line.
[0688] なお、以降の説明では、説明を具体的にして分かりやすくする為、「電子データ」を 「表示設定によって表示レイアウトが変わる文書データ」、「処理結果」を「表示レイァ ゥト」に置き換えて説明するが、後で説明する図 49の基本部分のフローチャートなど の処理の流れは、元通りに電子データと処理結果に置き直してもほぼ同様に処理で きる。  [0688] In the following description, "electronic data" will be referred to as "document data whose display layout changes depending on the display settings" and "processing result" will be referred to as "display layout" in order to make the description concrete and easy to understand. Although the description will be replaced, the flow of processing such as the flowchart of the basic part in FIG. 49 described later can be performed in almost the same manner even if the electronic data and the processing result are replaced as before.
[0689] (データおよびデータ構造)  [0689] (Data and data structures)
次に、本発明に関わる各種データやそれらのデータ構造を図 4Bに示すが、図 4A に基づ!/、て (実施の第一形態)で既に説明したので、その説明を省略する。  Next, various data and their data structure related to the present invention are shown in FIG. 4B, which has already been described based on FIG. 4A in (First Embodiment) and will not be described.
[0690] なお、図 4Bの 28行目に示す IMGタグは、挿絵をあらわし、 src属性によって、挿絵 の画像ファイル名などが指定され、 align属性によって、挿絵と TEXTとの表示の仕 方 (挿絵が回り込み画像力否力)が指定される。図 4Bの IMGタグでは、画像ファイル 名が TFT. png、 alignが rightとなっている。 rightは、挿絵を右端に配置させて、そ の周囲に回りこむように TEXTをレイアウトすることを意味する。図 5Bでは、挿絵のあ る行では挿絵の分、行の幅が小さくなつてレイアウトされて 、る。 [0690] The IMG tag shown in line 28 of Fig. 4B represents an illustration, the src attribute specifies the image file name of the illustration, etc., and the align attribute specifies how to display the illustration and TEXT (illustration Wraparound image force). In the IMG tag in Figure 4B, the image file The name is TFT.png and align is right. Right means that the illustration is placed on the right end and the TEXT is laid out around it. In FIG. 5B, the rows with the illustrations are laid out such that the width of the rows is reduced by the amount of the illustrations.
[0691] 図 7Bは、図 4Bの HTMLデータを分割した部分データ例を説明する説明図である 。 HTMLデータは、部分データ 400— 408の 9つに分割されている。但し、 HTML データの場合、各種タグを構成するそれぞれの開始タグと終了タグとは、分割によつ て異なる部分データに分離することが多い。開始タグのみ、または終了タグのみを含 む部分データは、それ単独ではタグが機能しないため、厳密には部分データではな ぐ単なる分割データである。なぜなら、部分データとは、単体で処理してもデータの 意味する内容が損なわれな 、処理結果が得られるデータだ力 である。  [0691] FIG. 7B is an explanatory diagram illustrating an example of partial data obtained by dividing the HTML data of FIG. 4B. HTML data is divided into nine parts, 400-408. However, in the case of HTML data, the start tag and end tag that make up various tags are often separated into different partial data by division. Strict data containing only the start tag or only the end tag is not a partial data but strictly a mere divided data because the tag does not function by itself. The reason is that partial data is data that can be processed and obtained without any loss of the meaning of the data.
[0692] それにも拘らず、部分データ 400— 408を部分データと呼ぶのは、その処理時に、 部分データ 400— 408の処理を補助するデータ (後述)を読み込むことが前提になつ ているからであり、その結果、部分データ 400— 408は、単体で処理してもデータの 意味する内容が損なわれな 、処理結果が得られるデータとして扱われるからである。  [0692] Nevertheless, the partial data 400-408 is called partial data because it is premised that data (described later) that assists the processing of the partial data 400-408 is read at the time of processing. As a result, as a result, the partial data 400 to 408 are treated as data from which a processing result can be obtained without impairing the meaning of the data even when processed alone.
[0693] なお、電子データの分割方法に関しては、本発明の主旨ではないので、ここでは具 体的で詳細な処理手順の説明は省略し、図 7Bのように分割された部分データが予 め用意されているとする。  [0693] Note that the method of dividing the electronic data is not the gist of the present invention, and thus a detailed description of the specific processing procedure is omitted here, and the partial data divided as shown in FIG. It is assumed that it is prepared.
[0694] 図 43は、部分データ 400— 408の処理を補助する処理補助データのデータ構造 例を説明する説明図である。処理補助データ 100— 108は、それぞれ図 7Bの部分 データ 400— 408〖こ対応しているとする。処理補助データ 100— 108は、配列の形 で管理され、インデックス番号などでアクセスできるとする。  [0694] Fig. 43 is an explanatory diagram illustrating an example of the data structure of processing auxiliary data that assists processing of partial data 400 to 408. It is assumed that the processing auxiliary data 100 to 108 correspond to the partial data 400 to 408 in FIG. 7B, respectively. It is assumed that the processing auxiliary data 100-108 is managed in the form of an array and can be accessed by an index number or the like.
[0695] 処理補助データは、図 43に示すように、「開始バイト」、「バイトサイズ」、「影響有無」 、「開始タグ補助情報」、「終了タグ補助情報」の情報からなる。「開始バイト」は、各部 分データの先頭のデータが、元の文書データの先頭力も何バイト目(0力も数える)に 位置するかを示す。「バイトサイズ」は、各部分データのデータサイズをバイト単位で 示したものである。なお、バイト単位でなぐ例えば文字数単位などにしてもよいが、 データの読み込みなどにはバイト単位の方が便利である場合が多い。  As shown in FIG. 43, the processing auxiliary data includes “start byte”, “byte size”, “presence / absence of influence”, “start tag auxiliary information”, and “end tag auxiliary information”. The “start byte” indicates how many bytes (the zero force is counted) the leading data of the original document data is located at the leading byte of the original document data. “Byte size” indicates the data size of each partial data in bytes. Note that, for example, a unit of characters may be used instead of a byte unit, but in many cases, a byte unit is more convenient for reading data.
[0696] 「影響有無」は、着目して 、る部分データの処理結果力 他の部分データから影響 を受けるかどうかに関する情報である。例えば、処理補助データ 102を例にすると、「 影響有無」は「有」なので、着目して 、る部分データ 402が、他の部分データ (具体的 には直前の部分データ)力も影響を受けることを表す。これにつ 、ては後で図 50や 図 51のフローチャート図の説明に関連して、さらに説明する。 [0696] "Presence / absence of influence" focuses on the processing result of partial data. Information about whether or not to receive For example, when the processing auxiliary data 102 is taken as an example, the “presence / absence” is “presence”, so that attention is paid to the fact that the partial data 402 is affected by the power of other partial data (specifically, the immediately preceding partial data). Represents This will be further described later in connection with the description of the flowcharts in FIGS. 50 and 51.
[0697] 「開始タグ補助情報」と「終了タグ補助情報」は、タグの階層構造の情報を補助する 情報である。その役割は、文書データ全体の先頭から最後まで解釈せず、各部分デ ータを単独で解釈する時に、文書データ全体の先頭力 最後まで解釈するのと同等 の処理結果が得られるようにすることである。ここでは、開始タグまたは終了タグの文 字列で構成した情報を「開始タグ補助情報」または「終了タグ補助情報」とする。  [0697] "Start tag auxiliary information" and "end tag auxiliary information" are information that assists information on the hierarchical structure of tags. Its role is not to interpret the entire document data from the beginning to the end, but to interpret each partial data independently so that the same processing result as interpreting the entire document data to the beginning and end can be obtained. That is. Here, information constituted by a character string of a start tag or an end tag is referred to as “start tag auxiliary information” or “end tag auxiliary information”.
[0698] 開始タグ補助情報に関しては、対応する開始タグと終了タグの組み合わせが、着目 して 、る部分データの前に存在する以前の部分データの 、ずれかに存在するのなら ば、上記開始タグと終了タグとが属する階層は対応する部分データの階層構造には 直接影響しな ヽので、一般に開始タグ補助情報にも影響しな ヽ。  [0698] Regarding the start tag auxiliary information, if the combination of the corresponding start tag and end tag exists in the gap of the previous partial data existing before the partial data, Since the hierarchy to which the tag and the end tag belong does not directly affect the hierarchical structure of the corresponding partial data, it generally does not affect the start tag auxiliary information.
[0699] 一方、開始タグだけが以前の部分データ中に存在し、対応する終了タグが以前の 部分データ中に存在しない場合は、その開始タグと終了タグとが属する階層の下に、 着目している部分データの階層構造が属することを意味するので、開始タグ補助情 報にその意味するところをを補う情報を入れておく。すなわち、開始タグ補助情報は 、効力が継続中の開始タグが以前の部分データ中に存在していることを示す情報で あり、より具体的には、効力が継続中の開始タグである。  [0699] On the other hand, when only the start tag exists in the previous partial data and the corresponding end tag does not exist in the previous partial data, attention is paid below the hierarchy to which the start tag and the end tag belong. This means that the hierarchical structure of the partial data that belongs to it belongs, so information that supplements the meaning is included in the start tag auxiliary information. That is, the start tag auxiliary information is information indicating that the start tag whose effect is continuing exists in the previous partial data, and more specifically, the start tag whose effect is continuing.
[0700] 図 7Bおよび図 43に示すように、例えば、部分データ 400は先頭の部分データなの で、処理補助データ 100の開始タグ補助情報は何も無 、。  As shown in FIG. 7B and FIG. 43, for example, since the partial data 400 is the leading partial data, there is no start tag auxiliary information of the processing auxiliary data 100.
[0701] 部分データ 401に関しては、以前の部分データは部分データ 400である。部分デ ータ 400中の fontタグと brタグは、対応する開始タグと終了タグの組が部分データ 4 00中に存在する力 HTMLタグは、開始タグ(1行目)だけで、終了タグ (45行目)が 部分データ 400中に存在しない。従って、処理補助データ 101の開始タグ補助情報 は、効力が継続中の開始タグである「く HTML >」となる。  [0701] Regarding the partial data 401, the previous partial data is the partial data 400. The font tag and the br tag in the partial data 400 are the force that the pair of the corresponding start tag and end tag exists in the partial data 400. The HTML tag is only the start tag (the first line) and the end tag ( (Line 45) does not exist in the partial data 400. Accordingly, the start tag auxiliary information of the processing auxiliary data 101 is “kuHTML>”, which is a start tag that is in effect.
[0702] 同様に、部分データ 402に関しては、以前の部分データは部分データ 400、 401 である。開始タグく HTML>の効力が継続中であるのは、部分データ 401の場合と 同様である。部分データ 400、 401中の 2番目の fontタグと Pタグは、開始タグ(5行 目、 6行目)だけで、終了タグ(16行目、 15行目)が部分データ 400、 401中に存在し ないから、その効力が部分データ 402において継続中である。従って、処理補助デ ータ 102の開始タグ補助情報は、開始タグの出現する順に従って、「く HTMLXf ont size = " + l" > < P>」となる。 [0702] Similarly, regarding the partial data 402, the previous partial data are the partial data 400 and 401. The validity of the start tag <HTML> is still in effect for partial data 401. It is the same. The second font tag and P tag in the partial data 400 and 401 are only the start tag (line 5 and line 6), and the end tag (line 16 and line 15) is included in the partial data 400 and 401. Since it does not exist, its effectiveness is ongoing in partial data 402. Therefore, the start tag auxiliary information of the processing auxiliary data 102 is “く HTMLXfont size =“ + l ”><P> in the order in which the start tags appear.
[0703] 一方、「終了タグ補助情報」は、開始タグ補助情報の逆で、効力が継続中の開始タ グと対をなすべき終了タグを示す情報であり、より具体的にはその終了タグである。先 頭部分データから着目して 、る部分データまでの部分データ中に出てきた開始タグ に対応する終了タグの内、先頭部分データから着目している部分データまでの部分 データ中に存在しな 、終了タグを対象とすればょ 、。  [0703] On the other hand, the "end tag auxiliary information" is the opposite of the start tag auxiliary information, and is information indicating an end tag that should be paired with a start tag that is in effect, and more specifically, the end tag. It is. Of the end tags corresponding to the start tag appearing in the partial data up to the partial data from the beginning partial data, the end tags that do not exist in the partial data from the start partial data to the partial data of interest , And the end tag.
[0704] 図 7Bおよび図 43に示すように、例えば、部分データ 400の場合、先頭の部分デー タカも対応部分データまでの部分データは、部分データ 400自身だけである。部分 データ 400中の fontタグと brタグは、対応する開始タグと終了タグの組が部分データ 400中に存在する力 HTMLタグは、開始タグ(1行目)だけで、終了タグ (45行目) が部分データ 400中に存在しない。従って、処理補助データ 100の終了タグ補助情 報は、効力が継続中の開始タグ「 < HTML >」と対をなすべき終了タグ「 < ZHTM L>」となる。  As shown in FIGS. 7B and 43, for example, in the case of the partial data 400, the partial data up to the corresponding partial data is also only the partial data 400 itself. The font tag and br tag in the partial data 400 are the force that the pair of the corresponding start tag and end tag exists in the partial data 400. The HTML tag is only the start tag (line 1) and the end tag (line 45). ) Does not exist in the partial data 400. Accordingly, the end tag auxiliary information of the processing auxiliary data 100 is an end tag “<ZHTM L>” that should be paired with the start tag “<HTML>” that is still in effect.
[0705] 部分データ 401に関しては、先頭の部分データ力 対応部分データまでの部分デ ータは、部分データ 400、 401である。開始タグく HTML>の効力が «続中である のは、部分データ 400の場合と同様である。部分データ 400、 401中の 2番目の font タグと Pタグは、開始タグ(5行目、 6行目)だけで、終了タグ(16行目、 15行目)が部 分データ 400、 401中に存在しない。従って、処理補助データ 101の終了タグ補助 情報は、終了タグの出現する順に従って、「< ZP> < Zfont> < ZHTML>」とな る。  [0705] As for the partial data 401, the partial data up to the leading partial data force corresponding partial data are the partial data 400 and 401. The effect of the opening tag <HTML> is still in effect as in the case of the partial data 400. The second font tag and P tag in the partial data 400 and 401 have only the start tag (line 5 and line 6), and the end tag (line 16 and line 15) has the partial data 400 and 401. Does not exist. Therefore, the end tag auxiliary information of the processing auxiliary data 101 is “<ZP> <Zfont> <ZHTML>” in the order in which the end tags appear.
[0706] なお、図 7Bでは示していないが、各部分データで共通に必要とするデータが存在 する場合もある。例えば、表示全体の背景色など、表示処理全体の設定の情報など である。これらの情報は、全体を挟むようなタグで表現される場合もある力 単に HT ML文書の先頭の方で、開始タグと終了タグの組で表現される場合もある。いわばへ ッダ情報的な記述のされかたである。 [0706] Although not shown in Fig. 7B, there may be data that is required in common for each partial data. For example, information on the settings of the entire display processing, such as the background color of the entire display. Such information may be expressed by a tag that sandwiches the whole. It may be expressed simply by a pair of a start tag and an end tag at the head of the HTML document. So to speak It is a way of describing information.
[0707] その場合、これらのヘッダ情報は、各ブロックの開始 Z終了タグ補助情報には現れ ない。しかし、これらのヘッダ情報を解釈しておかないと、背景色などが正確に表現さ れなくなってしまう。そこで、それら、共通に必要とするデータは、共通に必要であるこ とを別途フラグなどで記しておく。これにより、各部分データを解釈する前に、共通部 分を解釈することができるので、不都合は起きない。  [0707] In this case, these pieces of header information do not appear in the start Z end tag auxiliary information of each block. However, if the header information is not interpreted, the background color and the like will not be accurately represented. Therefore, the fact that these commonly required data are required in common is separately indicated by a flag or the like. Thus, the common part can be interpreted before interpreting each partial data, so that no inconvenience occurs.
[0708] 処理補助データの生成方法に関しては、本発明の主旨ではないので、具体的で詳 細な処理手順の説明は、図 52のフローチャートに基づいて後述することにし、ここで は、部分データを解析して生成された、図 43のような処理補助データが予め用意し てあるとする。  [0708] Since the method of generating the processing auxiliary data is not the gist of the present invention, a specific and detailed description of the processing procedure will be described later with reference to the flowchart of Fig. 52. It is assumed that processing auxiliary data as shown in FIG. 43 generated by analyzing the data is prepared in advance.
[0709] なお、既に触れたように、図 7Bの各部分データ 400— 408は、正確には単独では 処理できない「分割データ」であり、処理補助データの開始タグ補助情報、終了タグ 補助情報を使うことで、単独に処理できる「部分データ」となる。  [0709] As already mentioned, each of the partial data 400-408 in Fig. 7B is "division data" that cannot be processed by itself, and the start tag auxiliary information and the end tag auxiliary information of the processing auxiliary data are By using it, it becomes "partial data" that can be processed independently.
[0710] もし、処理補助データの開始タグ補助情報、終了タグ補助情報を使わな!/ヽとすれば 、各分割データに、開始タグ補助情報、終了タグ補助情報を追加しないといけない。 例えば、図 7Bの部分データ 401の最初には開始タグ補助情報として「 < HTML >」 を、部分データ 401の末尾には終了タグ補助情報として、「く ZP> <Zfont> <Z HTML >」を追加する必要がある。  [0710] If the start tag auxiliary information and the end tag auxiliary information of the processing auxiliary data are not used! / ヽ, the start tag auxiliary information and the end tag auxiliary information must be added to each divided data. For example, at the beginning of the partial data 401 in FIG. 7B, "<HTML>" is used as start tag auxiliary information, and at the end of the partial data 401, "<ZP> <Zfont> <ZHTML>" is used as end tag auxiliary information. Need to be added.
[0711] このように、分割データも、開始タグ補助情報、終了タグ補助情報等の必要な情報 を補ってやれば、その必要な情報を追加した部分データと同様に扱える。従って、本 発明では、分割データの処理時に共に処理する処理補助データを別個に付随させ た形式を持つ分割データを、部分データの範疇に含め、「分割データ」でなく「部分 データ」と呼ぶことにする。  [0711] As described above, if the necessary information such as the start tag auxiliary information and the end tag auxiliary information is supplemented, the divided data can be handled in the same manner as the partial data to which the necessary information is added. Therefore, in the present invention, the divided data having a format in which the processing auxiliary data to be processed together when the divided data is processed is separately included in the category of the partial data, and is referred to as “partial data” instead of “divided data”. To
[0712] 図 44は、処理補助データの別のデータ構造例を説明する説明図である。図 43の データ構造例とほぼ同様であるが、図 43の「影響有無」の項が、図 44では「影響部 分データ」となっている。「影響部分データ」とは、各部分データに影響を与える最前 の部分データについての情報だ力 これについては後で図 51の説明に関連して説 明する。 [0713] 次に、表示レイアウトのデータ構造例について説明しておく。 [0712] Fig. 44 is an explanatory diagram for explaining another example of the data structure of the processing auxiliary data. The data structure is almost the same as the data structure example in Fig. 43, but the item "presence / absence" in Fig. 43 is "effected data" in Fig. 44. “Influenced partial data” is information on the first partial data that affects each partial data. This will be described later with reference to the description of FIG. [0713] Next, an example of the data structure of the display layout will be described.
[0714] 図 45は、表示レイアウトの基本単位となる表示レイアウト要素(以降、単に「要素」と 略記する場合もある)のデータ構造例を説明する説明図である。要素は、図 5Bなど での表示上は、各文字や各画像などに相当する。  [0714] FIG. 45 is an explanatory diagram illustrating an example of the data structure of a display layout element (hereinafter, may be simply abbreviated as "element") as a basic unit of the display layout. Elements correspond to each character and each image on the display such as Fig. 5B.
[0715] 各要素(表示レイアウト要素データ;番号 120— 122で示す)は、例えば図 45に示 すように、「種類」、「開始バイト」、「バイトサイズ」、「オフセット X」、「オフセット Y」、「幅[0715] Each element (display layout element data; indicated by numbers 120 to 122) includes, for example, “type”, “start byte”, “byte size”, “offset X”, and “offset” as shown in FIG. Y "," Width
」、「高さ」、「内容」の情報を持つ。 ”,“ Height ”, and“ contents ”.
[0716] 「種類」は、要素の種類を表し、ここでは「文字」を表す「CHAR」と「画像」を表す「I[0716] The "type" represents the type of the element. Here, "CHAR" for "character" and "I" for "image"
MAGEJだけが例として挙がっている力 それ以外にも、例えば動画要素など、様々 な種類の要素を持つことは可能である。 The power that only MAGEJ gives as an example In addition, it is possible to have various types of elements, such as video elements.
[0717] 「開始バイト」は、その要素が電子データ中のどこで記述されているかを表す。ここ では、図 4Bの HTMLデータ中で、その要素を表す TEXTの部分あるいはタグの先 頭力 先頭から何バイト目かで表すとする。 [0717] The "start byte" indicates where the element is described in the electronic data. Here, in the HTML data of Fig. 4B, it is assumed that the element is represented by the TEXT part representing the element or the number of bytes from the head of the tag.
[0718] 「バイトサイズ」は、その要素が、電子データ中で記述されるのに要したデータ量を 表す。ここでは、図 4Bの HTMLデータ中で、その要素を表す文字のバイト数や、場 合によってはタグも含めたバイト数で表すとする。例えば、 HTMLデータ中の 1文字 がそのまま要素となっていて、その 1文字が例えば Shift— JISで表現されていたら、 バイトサイズは「2」となる。 [0718] "Byte size" indicates the amount of data required for that element to be described in electronic data. Here, it is assumed that in the HTML data of FIG. 4B, the element is represented by the number of bytes of a character representing the element and, in some cases, the number of bytes including the tag. For example, if one character in HTML data is an element as it is and that one character is expressed in, for example, Shift-JIS, the byte size is "2".
[0719] 「オフセット X」、「オフセット Y」につ!/、ては、図 46の行データのデータ構造例と一緒 に、後で説明する。 [0719] "Offset X" and "Offset Y" will be described later together with the data structure example of the row data in Fig. 46.
「幅」、「高さ」は、要素の表示する時の大きさを表す。単位は画素(ドット)などでよい。 「内容」は、各要素を表示する内容を表すデータである。文字要素の場合、文字コー ド、画像要素の場合、画像データなどとなる。  "Width" and "height" represent the size of the element when it is displayed. The unit may be a pixel (dot). "Content" is data representing the content of displaying each element. In the case of a character element, it is a character code, and in the case of an image element, it is image data.
[0720] 図 46は、上記要素の集まりを管理する行データ(番号 200— 222で示す)のデータ 構造例を説明する説明図である。各行データは、図 5Βなどでの表示上は、各行に相 当する。なお、以降、「表示上の行」と「行データ」は 1対 1対応になるので、どちらの 場合も、単に「行」と表現する場合がある。  [0720] Fig. 46 is an explanatory diagram illustrating an example of the data structure of row data (indicated by numbers 200 to 222) that manages the collection of the above elements. Each line data corresponds to each line on the display such as Fig. 5Β. In the following, since “line on display” and “line data” have a one-to-one correspondence, in both cases, they may be simply expressed as “line”.
[0721] 行データは、要素を 0個以上持つことができる。所有する(管理する)要素は、表示 上、各行の範囲に属する文字などの要素に相当する。要素が 0個の行は、空行とな る。図 5Bの回り込み画像のような画像要素を、どのようにして管理するかはいろいろ 方法があるが、ここでは画像を各行の高さで複数に分割して、各行の画像要素として 管理するようにする。 [0721] Row data can have zero or more elements. Elements owned (managed) are displayed The above corresponds to elements such as characters belonging to the range of each line. A line with zero elements is a blank line. There are various ways to manage image elements such as the wraparound image in Fig. 5B, but here we divide the image into multiple parts at the height of each line and manage them as image elements in each line. I do.
[0722] 行データは、図 46に示すように、「高さ」、「配置可能開始位置」、「配置可能終了位 置」、「次要素配置位置」、「要素数」、「要素配列」の情報を持つ。  [0722] As shown in FIG. 46, the row data includes "height", "placeable start position", "placeable end position", "next element position", "number of elements", and "element array". With information.
「要素配列」は、行データが 1行内で管理している要素の配列、「要素数」は、 1行内 で管理している要素の数である。「要素配列」には、 1行内に含まれる各要素を特定 する情報が入っている。ここでは、わ力りやすいように、該情報を図 45の各要素に割 り当てられた番号としている。実際には、「要素配列」を構成するデータは、各要素の 配列インデックスやメモリアドレスなどとなることが多い。  “Element array” is the array of elements managed by the row data in one row, and “Number of elements” is the number of elements managed in one row. The “element array” contains information specifying each element included in one line. Here, the information is a number assigned to each element in FIG. 45 for easy understanding. In practice, the data that makes up the “element array” is often the array index or memory address of each element.
「高さ」は、管理している要素を全て含む外接矩形の高さとする。  “Height” is the height of a circumscribed rectangle including all managed elements.
[0723] 図 47は、行データの情報を説明する説明図で、図 5Bの最初の行の行データの例 で説明する。要素は、「How does LCD works?」の文の各文字である。各要素 は、図 47では、各文字を囲む矩形で表している。例えば「How」の「o」の字の周囲の 矩形 503などである。矩形 505内は何も表示がないが、これは「 」(空白文字)の要 素である。  [0723] Fig. 47 is an explanatory diagram for explaining the information of the row data, which is described using an example of the row data of the first row in Fig. 5B. The elements are the letters of the sentence "How does LCD works?" Each element is represented by a rectangle surrounding each character in FIG. For example, a rectangle 503 around the letter "o" of "How". Although nothing is displayed in the rectangle 505, this is an element of "" (blank character).
[0724] なお、図が込み入ってわ力りに《なるので、表示された文字を点線で示している。  [0724] Note that the displayed characters are indicated by dotted lines because the figures are complicated and cluttered.
また、各矩形は、実際は文字の外接矩形であるが、表示が分力りにくいので、少し大 きめに図示してある。後で説明する行の矩形 500も同様に少し大きめに図示してある  Although each rectangle is actually a circumscribed rectangle of the character, it is slightly larger because it is difficult to display. The row rectangle 500 described later is also shown slightly larger.
[0725] これらの文字の集まりを囲む、すなわち「How does LCD works?」の文を囲 む外接矩形 500が行データの範囲を示す。この範囲の高さ LHが図 46の「高さ」とな る。 [0725] A circumscribed rectangle 500 surrounding a group of these characters, that is, a sentence “How does LCD works?” Indicates the range of line data. The height LH in this range is the “height” in FIG.
[0726] 矩形 500の行内で各文字の位置は決まって!/、る。この位置を表すのが、図 45の「 オフセット X」、「オフセット Y」である。ここでは、各行の矩形の左上隅を原点とし、右 方向を +Χ方向、下方向を +Υ方向としたときに、「オフセット X」、「オフセット Υ」は、 各要素の矩形の左上隅の位置を表すとするので、行矩形内の各要素の相対的なず れ量 (オフセット量)を表して 、る。 [0726] The position of each character in the line of the rectangle 500 is fixed! This position is indicated by “Offset X” and “Offset Y” in FIG. Here, when the origin is the upper left corner of the rectangle in each row, the right direction is + Χ direction, and the lower direction is + Υ direction, “Offset X” and “Offset Υ” are the upper left corner of the rectangle of each element. Since it represents the position, the relative displacement of each element in the row rectangle The amount of offset (offset).
[0727] 「配置可能開始位置」、「配置可能終了位置」、「次要素配置位置」は、表示レイァゥ トを生成する時に使う情報だが、これは後で表示レイアウトの生成方法の説明の時に 詳しく説明する。 [0727] The "placeable start position", "placeable end position", and "next element position" are information used when generating a display layout, which will be described in detail later in the description of a display layout generating method. explain.
[0728] 図 46の各行データ 200、 201、 222などは、配列などの形で管理され、インデックス 番号などでアクセスできるとする。  [0728] It is assumed that the row data 200, 201, 222, and the like in Fig. 46 are managed in the form of an array and can be accessed by an index number or the like.
[0729] 詳しくは後で説明するが、文書データから、後述するレイアウト生成手段 5で、図 45 の要素データや図 46の行データのような形式で、表示レイアウトが生成されるとする 。また、後述するレイアウト表示手段 8では、この形式のデータを使って、表示範囲の 表示レイアウトを表示する。  As will be described in detail later, it is assumed that a display layout is generated from document data in a format such as the element data in FIG. 45 or the row data in FIG. 46 by the layout generating means 5 described later. The layout display means 8 described later uses the data in this format to display the display layout of the display range.
[0730] 図 48は、部分データの管理データ(以降、「ブロック管理データ」と呼ぶ)のデータ 構造例を説明する説明図である。ブロック管理データ (番号 300— 308で示す)は、「 開始行」、「終了行」、「最終レイアウト行」、「処理補助データ」の情報を持つ。  [0730] FIG. 48 is an explanatory diagram illustrating an example of the data structure of management data of partial data (hereinafter, referred to as "block management data"). The block management data (indicated by numbers 300 to 308) has information of “start line”, “end line”, “final layout line”, and “processing auxiliary data”.
[0731] 「開始行」、「終了行」、「最終レイアウト行」は、各部分データから生成された行デー タに関する情報であり、数字(200、 222等)は、図 46に示す行データに対して付与 されたデータ番号を指している。まだ行データを生成していない場合は、空欄とする  [0731] The "start row", "end row", and "final layout row" are information on the row data generated from each partial data, and the numbers (200, 222, etc.) are the row data shown in FIG. Points to the data number assigned to. Leave blank if no row data has been generated yet
[0732] 「開始行」、「終了行」は、部分データ力 生成された要素データが含まれる最初と 最後の行データを意味する。行データは、ここでは分力り易いように図 46の各行デー タに付したデータ番号で示している力 実際の行データは、行データ配列のインデッ タス番号や行番号、行データのメモリアドレスなどになる。 [0732] The "start row" and "end row" mean the first and last row data that includes the generated element data. The row data is indicated by the data number attached to each row data in Fig. 46 so that it can be easily divided. The actual row data is the index number and row number of the row data array, and the memory address of the row data. And so on.
[0733] 「最終レイアウト行」は、部分データから生成される最後の要素データが属する行デ ータである。「終了行」と「最終レイアウト行」は、同じ行データの場合もあるし、ブロック 管理データ 302のように異なる場合もある。  [0733] The "final layout row" is row data to which the last element data generated from the partial data belongs. The “end row” and the “final layout row” may be the same row data or may be different like the block management data 302.
[0734] 異なる場合は、例えば、図 7Bの部分データ 406のように、部分データが回り込み画 像を含んでいるような場合である。例えば、部分データ 406を単独で処理した表示結 果を図 19Dに示す。この例のように、回り込み画像のレイアウトに必要な行数に比べ て、その部分データに含まれる TEXTを回り込み画像の周囲に回り込むようにレイァ ゥトするのに要する行数の方が少ないとき、その TEXTのレイアウトの終了行は、回り 込み画像のレイアウトの終了行まで達しない。このような場合、「終了行」は、画像要 素の最後の行データで表すが、「最終レイアウト行」は、その部分データで回り込みさ せていた TEXTの最後の行データで表す。従って、行の前後関係で言えば、「終了 行」は常に「最終レイアウト行」以降となる。 [0734] The different case is, for example, a case where the partial data includes a wraparound image as in the partial data 406 of Fig. 7B. For example, FIG. 19D shows a display result obtained by processing the partial data 406 independently. As shown in this example, the TEXT included in the partial data is wrapped around the wrap-around image compared to the number of lines required for the layout of the wrap-around image. When the number of lines required for printing is smaller, the end line of the TEXT layout does not reach the end line of the wraparound image layout. In such a case, the “end line” is represented by the last line data of the image element, while the “final layout line” is represented by the last line data of the TEXT wrapped by the partial data. Therefore, in the context of the rows, the “end row” always follows the “final layout row”.
[0735] 図 48の「処理補助データ」は、各部分データに対応する前述の処理補助データを 示す情報である。ここも実際の処理補助データは、処理補助データのインデックス番 号やメモリアドレスなどで表す場合が多 、。  [0735] "Processing auxiliary data" in Fig. 48 is information indicating the above-described processing auxiliary data corresponding to each partial data. Also in this case, the actual processing auxiliary data is often represented by an index number or a memory address of the processing auxiliary data.
[0736] (本発明のポイントとなる処理の概要) [0736] (Overview of processing that is the key of the present invention)
詳細な処理を説明する前に、本発明のポイントとなる処理の一つである、影響を与 える部分データと所望の部分データとを一続きのデータとして処理する処理例につ いて、簡単に説明しておく。詳細は、また後で説明する。  Before describing the detailed processing, a brief description will be given of a processing example of processing the partial data having an effect and the desired partial data as one continuous data, which is one of the processings that is the key of the present invention. Let me explain. Details will be described later.
[0737] 例えば、図 7Bの部分データ 402だけを用い、その一部が表示されるように表示レイ アウトを生成して表示させた状態が図 17Dである。 [0737] For example, FIG. 17D shows a state in which only the partial data 402 of FIG. 7B is used, and a display layout is generated and displayed so that a part thereof is displayed.
[0738] 「When」力 行目の行頭からレイアウトされている。図 17Dでは、レイアウトの様子 が分力りやすいように、表示枠を超える部分についても、示している。実際には、ユー ザ等による表示位置の指定に基づいて、表示枠内の行である「pass」力 始まる 3行 目以降だけが、図 17Dの例では表示されている。 [0738] The "When" power line is laid out from the beginning of the line. FIG. 17D also shows a portion beyond the display frame so that the layout can be easily understood. Actually, based on the display position specified by the user or the like, only the third and subsequent lines starting with the “pass” force, which is a line in the display frame, are displayed in the example of FIG. 17D.
[0739] 図 17Dの状態力もさらに上の部分をスクロールなどして表示させるとする。これを実 行するのに、本発明のデータ処理方法によらない場合には、部分データ 400·401 の表示レイアウトをそれぞれ単独で処理し、図 17Dの部分データ 402の表示レイァゥ トと行単位で単純に結合させることになる。このようにして表示させた状態力 図 19B である。 [0739] The state force in Fig. 17D is also displayed by scrolling the upper portion. If this is not performed by the data processing method of the present invention, the display layouts of the partial data 400 and 401 are individually processed, and the display layout of the partial data 402 in FIG. It will simply be combined. The state force displayed in this manner is shown in FIG. 19B.
[0740] 図 19Bに示すように、部分データ 401 ·402の区切りに位置する「glass.」「When」 との間で改行された誤りが表れた表示結果が得られている。しかし、図 7Bの部分デ ータ 401と部分データ 402を見ると、「glass.」「When」との間に改行を指示する brタ グは存在しない。  [0740] As shown in FIG. 19B, a display result in which an error in which a line feed has occurred between "glass." And "When" positioned at the break of the partial data 401 and 402 is obtained. However, looking at the partial data 401 and the partial data 402 in FIG. 7B, there is no br tag indicating a line feed between “glass.” And “When”.
[0741] 従って、図 19Bの表示結果には、 HTMLデータを部分データに分割した影響が現 れているため、 HTMLデータを分割せずに処理した場合の表示結果と、 HTMLデ ータを部分データに分割して、各部分データを単独に処理して繋ぎ合わせた表示結 果とは一致していない。 [0741] Therefore, the display result of Fig. 19B shows the effect of dividing HTML data into partial data. Therefore, the display result when the HTML data is processed without division and the display result when the HTML data is divided into partial data and each partial data is processed independently and connected are one. I haven't.
[0742] 本発明で例として挙げている HTMLデータは、 WWWブラウザの表示設定によつ て、表示結果が変わることを前提に設計された言語仕様であり、表示設定が変わって も、表示結果の与える論理的意味 (例えば、強制改行や画像の回り込みなど)が変わ らなければ、どのような表示を行っても誤りが無い、つまり元データの意味する内容が 損なわれないとされる。 [0742] The HTML data given as an example in the present invention is a language specification designed on the assumption that the display result changes according to the display setting of the WWW browser. If the logical meaning given by (for example, forced line break or wrapping around the image) does not change, it is assumed that there is no error in any display, that is, the meaning of the original data is not damaged.
[0743] また、 HTMLデータは、部分データに分割したことが、部分データの処理結果に論 理的な意味で影響を与えることがある。例えば、上記の図 19Bの例のように改行タグ 以外の所で、元データを部分データに分割した場合や、図 19Dの例のように回り込 み画像を含む部分データを考慮せずに、次の部分データを処理した場合などである  [0743] In addition, the division of the HTML data into partial data may logically affect the processing result of the partial data. For example, when the original data is divided into partial data at a place other than the line feed tag as in the example of FIG. 19B above, or without considering the partial data including the wraparound image as in the example of FIG. 19D, For example, when processing the following partial data
[0744] 従って、単純に前の部分データの処理結果に、次の部分データの処理結果をつな ぎ合わせるだけでは、全体として元データの意味する内容が変わってしまうことがあり 、処理結果に誤りが表れることがある。 [0744] Therefore, simply joining the processing result of the next partial data to the processing result of the previous partial data may change the meaning of the original data as a whole. Errors may appear.
[0745] つまり、部分データを扱う際、データのもつ特質に合わせて、処理方法を変えてや る必要がある。そこで本発明では、特に部分データ間の処理結果の影響に着目し、 誤りが表れない処理結果が得られるような工夫を施している。より具体的には、ある部 分データが他の部分データに影響を与えることが検出されると、それらの部分データ をひとまとまりのデータとして扱い、処理をする。これにより、上記影響が反映された適 切な処理結果を得ることができる。  [0745] In other words, when handling partial data, it is necessary to change the processing method according to the characteristics of the data. In view of this, the present invention pays particular attention to the effect of the processing result between partial data, and devises a processing result that does not show an error. More specifically, when it is detected that one partial data affects another partial data, the partial data is treated as a set of data and processed. As a result, it is possible to obtain an appropriate processing result in which the above-mentioned influence is reflected.
[0746] 以上、概略的に説明した本発明のデータ処理方法で、実際に部分データを読み込 んで、表示レイアウトを表示させる例を、図面を使って説明する。  [0746] An example in which partial data is actually read and a display layout is displayed by the data processing method of the present invention which has been schematically described above will be described with reference to the drawings.
[0747] まず最初は、図 7Bの部分データ 400の先頭から下に 1ページ分 (表示手段の高さ) だけ表示させるとする。部分データ 400は最初の部分データであり、最初の行データ によって構成されているので、「How does LCD works?」の TEXTがレイアウト される。この時点での部分データ 400のブロック管理データ(図 48)には、開始行、最 終行、最終レイアウト行として全て 1行目が記録される。 [0747] First, it is assumed that only one page (height of the display means) is displayed below the top of the partial data 400 in Fig. 7B. Since the partial data 400 is the first partial data and is constituted by the first line data, the TEXT of “How does LCD works?” Is laid out. At this point, the block management data of the partial data 400 (Fig. 48) includes the start row and the last row. The first line is recorded as the last line and the last layout line.
[0748] これだけでは、 1ページ分に満たないとして、次に部分データ 401をレイアウトする。 Assuming that this is less than one page, the partial data 401 is laid out next.
部分データ 401は、部分データ 400の最終レイアウト行、すなわち 1行目に続いてレ ィアウトを行う。このとき、部分データ 400の最終要素として改行を指示する brタグが 検出される。このため、次の部分データ 401は、新たな行の頭力 表示レイアウトを作 成すればよいことになる。すなわち、部分データ 400の最終要素として brタグが検出 されたことにより、部分データ 400は次の部分データ 401に影響を与えないことが検 出される。  The partial data 401 is laid out following the final layout row of the partial data 400, that is, the first row. At this time, a br tag indicating a line feed is detected as the last element of the partial data 400. Therefore, for the next partial data 401, it is only necessary to create a headline display layout of a new line. That is, since the br tag is detected as the last element of the partial data 400, it is detected that the partial data 400 does not affect the next partial data 401.
[0749] 部分データ 401のレイアウトでは、最初に Pタグが存在するので、 1行目を改行して 、 2行目を垂直スペース分の空行とし、 3行目の行頭から「L」力 始まる文字要素をレ ィアウトすることになる。  [0749] In the layout of the partial data 401, since the P tag exists at the beginning, the first line is broken, the second line is made a blank line for the vertical space, and the "L" force starts from the beginning of the third line You will lay out the character elements.
[0750] 部分データ 401をレイアウトし終えた状態のレイアウト全体を、説明の為に仮に表示 させたのが、図 17Cである。周囲の矩形が表示手段の表示範囲だとする。説明の為 、行番号を矩形の左横に振っている。図 17Cは、 5行目の「glass.」で終わっている。 部分データ 401の最後には brタグなどは存在しないので、改行はされない。従って、 この時点での部分データ 401のブロック管理データは、開始行が 2行目で、最終行と 最終レイアウト行が 5行目となる。  [0750] FIG. 17C shows the entire layout in a state where the layout of partial data 401 has been completed, for the sake of explanation. It is assumed that the surrounding rectangle is the display range of the display means. For explanation, the line numbers are assigned to the left side of the rectangle. Figure 17C ends on the fifth line with "glass." Since there is no br tag or the like at the end of the partial data 401, a line break is not performed. Accordingly, the block management data of the partial data 401 at this point is such that the start line is the second line, and the last line and the final layout line are the fifth line.
[0751] これでも 1ページ分に満たないので、次に部分データ 402をレイアウトする。このとき 、部分データ 401の最終要素として改行を指示する brタグは検出されず、また、部分 データ 402の先頭要素から、 Pタグも検出されない。このことから、次の部分データ 40 2は、前の部分データ 401から影響を受けることが検出される。  [0751] Since this is still less than one page, the partial data 402 is laid out next. At this time, no br tag indicating a line feed is detected as the last element of the partial data 401, and no P tag is detected from the first element of the partial data 402. From this, it is detected that the next partial data 402 is affected by the previous partial data 401.
[0752] これにより、部分データ 402は、部分データ 401の最終レイアウト行、すなわち 5行 目において、レイアウトが途切れないようにレイアウトされる。つまり、部分データ 402 の「W」力 始まる文字要素を 5行目に追カ卩してレイアウトして 、く。  As a result, the partial data 402 is laid out so that the layout is not interrupted in the final layout row of the partial data 401, ie, the fifth row. That is, the character elements starting with the “W” force of the partial data 402 are added to the fifth line and laid out.
[0753] そのようにしてレイアウトした結果が図 17Eである。部分データ 401の最後の「glass .」と部分データ 402の最初の「When」が続けて 1つの行にレイアウトされている。図 5Bと比べてみても、全く同じようにレイアウトされ、元の電子データの意味する内容を 損なわな 、表示結果が得られて 、る。 [0754] このように、部分データ 401、 402の順に処理する場合に、部分データ 401が、部 分データ 402に影響を与えることが検出されると、部分データ 401と部分データ 402 を個別に処理するのではなぐ一続きのデータとして処理をする。その結果、例えば 、部分データ 401の最終レイアウト行において、レイアウトが途切れないように部分デ ータ 402をレイアウトすると 、つたように、影響が反映された適切な処理結果を得るこ とがでさる。 [0753] Fig. 17E shows the result of the layout. The last “glass.” Of the partial data 401 and the first “When” of the partial data 402 are laid out in a single row. Compared to FIG. 5B, the layout is exactly the same, and the display result is obtained without losing the meaning of the original electronic data. As described above, when it is detected that the partial data 401 affects the partial data 402 when the partial data 401 and 402 are processed in this order, the partial data 401 and the partial data 402 are separately processed. It is processed as a series of data that does not need to be done. As a result, for example, when the partial data 402 is laid out so that the layout is not interrupted in the final layout line of the partial data 401, an appropriate processing result in which the influence is reflected can be obtained as described above.
[0755] このように、前の部分データの最終レイアウト行に引き続いて、後の部分データをレ ィアウトしていくことで、改行などが入らない部分データの分け方をしていても、一続き のデータとして処理できるので、続けて自然にレイアウトすることができる効果が出て くる。  [0755] As described above, by laying out the subsequent partial data following the final layout line of the previous partial data, even if the method of dividing the partial data that does not include line breaks is Since the data can be processed as the data, the effect that the layout can be naturally continued comes out.
[0756] 次に、途中の部分データの途中の文字力 表示する場合について説明する。図 7 Bの部分データ 402の 10行目の「Each」を含む行から下に 1ページ分の範囲を表示 させるとする。この時点では、いずれの部分データの表示レイアウトも保存されていな いとする。  [0756] Next, a case will be described in which character strength in the middle of partial data is displayed. It is assumed that a range of one page is displayed below the line including “Each” on the 10th line of the partial data 402 in FIG. 7B. At this time, it is assumed that the display layout of any partial data has not been saved.
[0757] 表示開始位置の指定は、実際には、「バイト位置 180」などとバイト数で指定されて いるとする。これはリンクジャンプなどで指定されているとする。その位置を含む部分 データは、図 43の処理補助データ 102の開始バイト 150とバイトサイズ 201から、処 理補助データ 102に対応する部分データ 402だと分かる。  [0757] It is assumed that the display start position is actually specified by the number of bytes such as "byte position 180". It is assumed that this is specified by a link jump or the like. From the start byte 150 and byte size 201 of the processing auxiliary data 102 in FIG. 43, it can be seen that the partial data including the position is the partial data 402 corresponding to the processing auxiliary data 102.
[0758] 部分データ 402をレイアウトした状態が図 17Dである。最終的に「Each」を含む行 から表示を開始するので、分かり易いように、最終表示状態に合わせてある。実際は 、図 17Dの 1、 2行目は表示されないのは既に説明したとおりである。  FIG. 17D shows a state where partial data 402 is laid out. Finally, the display is started from the line containing "Each", so that it is adjusted to the final display state for easy understanding. Actually, as described above, the first and second lines in FIG. 17D are not displayed.
[0759] 但し、図 17Eの部分データ 402から生成した 5— 9行目と比較すると、「When」が図 17Dでは 1行目の行頭 (先頭)となって 、る。これは前の部分データ 401に続 ヽてレ ィアウトせず、言い換えれば、前の部分データ 401の影響を考慮せず、部分データ 4 02単独でレイアウトしても、指定された表示範囲について誤りの全く無い表示を得る ことができる為である。  However, when compared with the 5th to 9th lines generated from the partial data 402 in FIG. 17E, “When” is the first line in FIG. 17D. This does not lay out following the previous partial data 401, in other words, irrespective of the influence of the previous partial data 401, even if the partial data 402 is laid out alone, the specified display range will be incorrect. This is because it is possible to obtain a display that is completely absent.
[0760] このように、表示範囲によって、該当する部分データを単独で処理して表示レイァゥ トを得てもよいと判断する点も、本発明のデータ処理方法の特徴点である。すなわち 、影響検出ステップの前に、所望の部分データの最初の表示レイアウト要素が、表示 レイアウトの出力対象である表示媒体において行頭力 表示される力否かを調べるレ ィアウト調査ステップを実行し、上記最初の表示レイアウト要素が、行頭から表示され る場合、前記影響検出ステップを実行しないようにしてもよい。上記行頭は、出力媒 体の表示を開始する先頭位置でもよ 、し、表示途中の行の行頭であってもよ 、。 [0760] As described above, it is a feature of the data processing method of the present invention that it is determined that the corresponding partial data may be independently processed depending on the display range to obtain the display layout. Ie Before the influence detecting step, a layout investigating step is carried out to check whether the first display layout element of the desired partial data is a head force displayed on the display medium which is the output target of the display layout. When the display layout element is displayed from the beginning of the line, the influence detection step may not be performed. The head of the line may be the head position where the display of the output medium is started, or may be the head of a line that is being displayed.
[0761] 例えば図 17Fにおいて、「LCD alio ws」で始まるパラグラフ(部分データ 404に相 当)の最初の表示レイアウト要素 (LCD)は、常に行頭から表示されるので、この部分 データ 404については、影響検出ステップを実行しなくても、誤りの無い表示結果を 得ることができる。  [0761] For example, in FIG. 17F, the first display layout element (LCD) of a paragraph beginning with “LCD alio ws” (corresponding to the partial data 404) is always displayed from the beginning of the line. An error-free display result can be obtained without executing the influence detection step.
[0762] また、図 17D. 17Fに示すように、「When」で始まるパラグラフ(部分データ 402に 相当)の任意の表示レイアウト要素(同図の場合、「pass」)が表示範囲の先頭位置か ら表示される場合でも、部分データ 402の表示結果には誤りが表れない。したがって 、このような場合、すなわち部分データの任意の表示レイアウト要素が表示範囲の先 頭位置から表示される場合に、その部分データにっ 、て影響検出ステップを実行し ない点も、本発明の特徴点である。  [0762] Also, as shown in FIGS. 17D and 17F, an arbitrary display layout element (in this case, “pass”) of a paragraph beginning with “When” (corresponding to the partial data 402) is located at the beginning of the display range. However, no error appears in the display result of the partial data 402 even when the data is displayed. Therefore, in such a case, that is, when an arbitrary display layout element of the partial data is displayed from the head position of the display range, the effect detection step is not performed on the partial data. It is a feature point.
[0763] 続!、て、これだけでは、 1ページ分に満たな 、として、部分データ 403、 404、 405 まで続けてレイアウトされるとする。図 17Fは部分データ 405までレイアウトされた状 態を説明する説明図である。この 3行目から 15行目までが実際に表示される範囲で ある。  [0763] Continuing! It is assumed that this alone is less than one page, and the layout is continued to partial data 403, 404, and 405. FIG. 17F is an explanatory diagram illustrating a state where the layout up to the partial data 405 is performed. The third to fifteenth lines are the range that is actually displayed.
[0764] この表示レイアウトは、図 5Bと比べると、前半部の部分データ 402·403の処理結 果において異なっている。しかし、改行などは指示された通りにレイアウトされている ので、 HTMLデータの表示としては、何も誤りは無い。 HTMLデータの先頭の部分 データ 400、 401をレイアウトしなくても、誤りが表れることなく HTMLデータをレイァ ゥトすることができている。表示に必要な範囲だけをレイアウトすればよいので、高速 、省リソースで誤りの無いレイアウトを生成することができるという特段の効果が出てく る。  [0764] This display layout is different from the processing result of the partial data 402 and 403 in the first half as compared with FIG. 5B. However, since line breaks are laid out as instructed, there is no error in displaying HTML data. Even without laying out the data 400 and 401 at the beginning of the HTML data, the HTML data can be laid out without any error. Since the layout only needs to be laid out in a range necessary for display, a special effect that a high-speed, resource-saving and error-free layout can be generated can be obtained.
[0765] (データ処理装置の構成)  [0765] (Configuration of data processing device)
図 41は、本発明の実施の一形態に係るデータ処理方法を実施するデータ処理装 置を示す構成図である。 FIG. 41 shows a data processing apparatus that performs a data processing method according to an embodiment of the present invention. FIG.
[0766] より具体的には、データ処理装置の要部を、部分データ取得手段 21、処理補助デ ータ取得手段 22、影響検出手段 23、部分データ必要性判断手段 24、レイアウト生 成手段 25、制御手段 26、レイアウト保存手段 27、レイアウト表示手段 28、最前部分 データ検出手段 29、の主要な機能ブロックに展開して示すことができる。  [0766] More specifically, the main parts of the data processing apparatus are divided into a partial data acquisition unit 21, a processing auxiliary data acquisition unit 22, an influence detection unit 23, a partial data necessity determination unit 24, a layout generation unit 25 , Control means 26, layout storage means 27, layout display means 28, and foremost data detection means 29.
[0767] 図 2は、図 41の各手段 21— 29を具体的に実現する装置の構成例である。 [0767] FIG. 2 is a configuration example of an apparatus that specifically realizes the means 21 to 29 of FIG.
[0768] CPU (central processing unit) 70は、影響検出手段 23、部分データ必要性判 断手段 24、レイアウト生成手段 25、制御手段 26、レイアウト保存手段 27、レイアウト 表示手段 28、最前部分データ検出手段 29として機能し、これら各手段 23— 29の処 理手順が記述されたプログラムを主記憶 74、外部記憶 75または通信デバイス 77を 介したネットワーク先など力も得る。なお、 CPU70は、必要なデータの読み出しや転 送などのために、部分データ取得手段 21および処理補助データ取得手段 22として の機能も担っている。 [0768] The CPU (central processing unit) 70 includes the influence detection means 23, the partial data necessity determination means 24, the layout generation means 25, the control means 26, the layout storage means 27, the layout display means 28, and the foremost partial data detection means. It functions as 29 and obtains a program in which the processing procedure of each of the means 23-29 is described, such as a main memory 74, an external memory 75, or a network destination via the communication device 77. Note that the CPU 70 also has a function as a partial data acquisition unit 21 and a processing auxiliary data acquisition unit 22 for reading and transferring necessary data.
[0769] なお、 CPU70と、ディスプレイ 71、マウス 72、タブレット 73、主記憶 74、外部記憶 7 5、ボタン 76、通信デバイス 77、キーボード 78、および Zまたはスピーカ 80とデータ のやりとりの仕方についての説明、および図 2の各部の説明については、(実施の第 一形態)で説明したとおりであるから、省略する。  [0769] Note that the method of exchanging data with the CPU 70, display 71, mouse 72, tablet 73, main memory 74, external memory 75, buttons 76, communication device 77, keyboard 78, and Z or speaker 80 The description of each part in FIG. 2 and FIG. 2 is the same as that described in the first embodiment, and a description thereof will not be repeated.
[0770] 次に、図 41の各手段 21— 29を各手段間のデータ授受の観点力も説明する。  [0770] Next, the viewpoint of data transmission / reception between the units 21 to 29 in Fig. 41 will also be described.
[0771] 部分データ取得手段 21は、例えば CPU70と主記憶 74または外部記憶 75などと で構成され、部分データを、上記ネットワーク先など力も得る。この場合、予め用意し てある部分データを読み出すことになる。  [0771] The partial data acquisition means 21 is composed of, for example, the CPU 70 and the main storage 74 or the external storage 75, and obtains the partial data from the network destination or the like. In this case, the previously prepared partial data is read.
[0772] なお、部分データ取得手段 21は、例えば、部分データが予め用意されていない場 合、読み出そうとする部分データに相当する部分のデータを、主記憶 74または外部 記憶 75などに格納された電子データ中力も探してきて、読み込むこともある。  [0772] For example, when the partial data is not prepared in advance, the partial data acquisition unit 21 stores the data of the part corresponding to the partial data to be read in the main memory 74 or the external storage 75. It may also search for and read electronic data that has been processed.
[0773] より具体的には、部分データ取得手段 21は、処理補助データ取得手段 22から処 理補助データを取得し、その取得した処理補助データから、部分データに関する情 報、例えば、各部分データの開始バイト位置とバイトサイズを読み取って、その情報 に従って、電子データを部分的に読み出すことにより、目的の部分データを得ること ができる。あるいは、部分データ取得手段 21は、上記部分データに関する情報にカロ えて電子データを取得し、部分データに関する情報を用いて電子データを分割する ことにより、部分データを生成してもよい。 [0773] More specifically, the partial data obtaining means 21 obtains processing auxiliary data from the processing auxiliary data obtaining means 22, and obtains information on the partial data from the obtained processing auxiliary data, for example, each partial data. To obtain the desired partial data by reading the start byte position and byte size of the Can do. Alternatively, the partial data obtaining means 21 may generate the partial data by obtaining the electronic data in consideration of the information on the partial data and dividing the electronic data using the information on the partial data.
[0774] 得られた部分データは、影響検出手段 23および Zまたはレイアウト生成手段 25な どに送られる。 [0774] The obtained partial data is sent to the influence detection means 23 and Z or the layout generation means 25.
[0775] 処理補助データ取得手段 22は、例えば CPU70と主記憶 74または外部記憶 75な どとで構成され、処理補助データを、上記ネットワーク先などカゝら得る。この場合、予 め用意してある処理補助データを読み出すことになる。  [0775] The processing auxiliary data acquisition means 22 is composed of, for example, the CPU 70 and the main storage 74 or the external storage 75, and can obtain the processing auxiliary data from the network destination or the like. In this case, the processing auxiliary data prepared in advance is read.
[0776] なお、処理補助データ取得手段 22は、例えば、処理補助データの中から、必要な 情報を抜き出す場合、処理補助データのデータ構造を解析して、必要な情報を求め ることもある。得られた処理補助データは、部分データ取得手段 21、影響検出手段 2 3、レイアウト生成手段 25および Zまたは最前部分データ検出手段 29などに送られ る。  [0776] For example, when extracting necessary information from the processing auxiliary data, the processing auxiliary data acquiring unit 22 may analyze the data structure of the processing auxiliary data to obtain necessary information. The obtained processing auxiliary data is sent to the partial data acquisition unit 21, the influence detection unit 23, the layout generation unit 25, the Z or the frontmost partial data detection unit 29, and the like.
[0777] 影響検出手段 23としての CPU70は、部分データ取得手段 21から得られる部分デ ータ、レイアウト生成手段 25やレイアウト保存手段 27から得られる部分データの表示 レイアウトまたは処理補助データ取得手段 22から得られる処理補助データなどを使 つて、所望の部分データとその直前の部分データとをそれぞれ単独に処理すること 力 処理結果 (ここでは表示レイアウト)〖こ影響を与えるかどうかを検出する。あるいは 直前の部分データだけでなぐそれより前の部分データからの影響も検出する場合も ある。検出結果は、影響検出手段 23から制御手段 26に送られる。  [0777] The CPU 70 serving as the influence detecting means 23 displays the partial data obtained from the partial data obtaining means 21 and the partial data obtained from the layout generating means 25 and the layout storing means 27. The desired partial data and the partial data immediately before it are individually processed using the obtained processing auxiliary data, etc. Power Processing result (here, display layout) Detects whether or not this has any effect. Alternatively, it may detect the influence of the previous partial data rather than just the previous partial data. The detection result is sent from the influence detecting means 23 to the control means 26.
[0778] 部分データ必要性判断手段 24としての CPU70は、レイアウト表示手段 28から得ら れる表示範囲と、制御手段 26を介して得られる各部分データの表示レイアウトの範 囲などとから、制御手段 26で指定される部分データについて、その処理結果 (表示 レイアウト)が必要かどうかを判断し、判断結果を制御手段 26に送る。  [0778] The CPU 70 as the partial data necessity judging means 24 determines the control means from the display range obtained from the layout display means 28 and the display layout range of each partial data obtained through the control means 26. It is determined whether or not the processing result (display layout) is necessary for the partial data designated by 26, and the determination result is sent to the control means 26.
[0779] レイアウト生成手段 25としての CPU70は、制御手段 26で指定される部分データを 、部分データ取得手段 21から得て、図 45の要素データや図 46の行データのような 形式で、表示レイアウトを生成する。また、レイアウト生成手段 25は、処理補助データ 取得手段 22から得た処理補助データを、レイアウト生成時に部分データと共に使う 場合もある。生成された表示レイアウトは、レイアウト保存手段 27に送られて保存され たり、レイアウト表示手段 28に送られて表示されたりする。なお、部分データは、制御 手段 26から直接指定されず、レイアウト保存手段 27を介して指定される場合もある。 [0779] The CPU 70 as the layout generating means 25 obtains the partial data specified by the control means 26 from the partial data acquiring means 21 and displays the partial data in a format such as the element data in Fig. 45 or the row data in Fig. 46. Generate a layout. The layout generating means 25 uses the processing auxiliary data obtained from the processing auxiliary data obtaining means 22 together with the partial data when generating the layout. In some cases. The generated display layout is sent to the layout storage unit 27 and stored, or sent to the layout display unit 28 and displayed. In some cases, the partial data is not directly specified by the control unit 26 but is specified through the layout storage unit 27.
[0780] 制御手段 26としての CPU70は、各手段 21— 25、 27— 29を制御および指示し、ま た、必要なデータを各手段 21— 25、 27— 29とやりとりする。なお、図 41では、制御 手段 26と各手段 21— 25、 27— 29との制御 Z指示、データのやりとりを示す線は、 全て示すと図が見にくくなるので主要な線だけ示しているが、基本的に制御手段 26 と各手段 21— 25、 27— 29とは制御 Z指示、データなどを、双方向でやりとりを行つ ているとする。 [0780] The CPU 70 as the control means 26 controls and instructs each means 21-25, 27-29, and exchanges necessary data with each means 21-25, 27-29. In FIG. 41, the lines indicating the control Z instruction and data exchange between the control means 26 and each of the means 21-25 and 27-29 are shown only as the main lines because if all the lines are shown, the diagram becomes difficult to see. Basically, it is assumed that the control means 26 and each of the means 21-25 and 27-29 exchange control Z instructions, data, and the like in two directions.
[0781] レイアウト保存手段 27としての CPU70は、レイアウト生成手段 25から得られる部分 データの表示レイアウト(処理結果)を、主記憶 74や外部記憶 75、あるいは通信デバ イス 77を介したネットワーク先の機器などに保存する。保存されている表示レイアウト は、レイアウト表示手段 28、影響検出手段 23および Zまたは制御手段 26に渡される  [0781] The CPU 70 as the layout storage unit 27 stores the display layout (processing result) of the partial data obtained from the layout generation unit 25 in the main storage 74, the external storage 75, or the device at the network destination via the communication device 77. And save it. The stored display layout is passed to layout display means 28, influence detection means 23 and Z or control means 26.
[0782] また、制御手段 26からの指示に基づいて、制御手段 26で指定された部分データ の表示レイアウト生成を、レイアウト生成手段 25に要請する場合もある。また、制御手 段 26からの指示に基づいて、制御手段 26で指定された部分データの保存されてい る表示レイアウトを破棄したり、あるいはレイアウト生成手段 25から新たに得る表示レ ィアウトで上書き保存したりする場合もある。 In some cases, based on an instruction from the control unit 26, the layout generation unit 25 may be requested to generate a display layout of the partial data specified by the control unit 26. Further, based on an instruction from the control means 26, the display layout in which the partial data specified by the control means 26 is stored is discarded, or the data is overwritten and saved with a display layout newly obtained from the layout generation means 25. Or in some cases.
[0783] なお、後で図 48などで説明する表示レイアウト生成に必要な情報は、レイアウト生 成手段 25、制御手段 26およびレイアウト保存手段 27のいずれが保存 Z管理するの でもよい。  [0783] Information necessary for generating a display layout, which will be described later with reference to Fig. 48 and the like, may be stored and managed by any of the layout generation unit 25, the control unit 26, and the layout storage unit 27.
[0784] レイアウト表示手段 28としての CPU70は、表示レイアウト生成手段 25あるいはレイ アウト保存手段 27から得られる表示レイアウトをディスプレイ 71などに表示する。なお 、ここではレイアウト表示手段 28の出力動作をディスプレイ 71への表示として説明し ているが、例えばプリンターへの印刷や、表示レイアウトを記録したファイルへのファ ィノレ出力などでもよい。  The CPU 70 as the layout display means 28 displays the display layout obtained from the display layout generation means 25 or the layout storage means 27 on a display 71 or the like. Here, the output operation of the layout display means 28 is described as a display on the display 71, but it may be, for example, printing on a printer, or outputting a file to a file in which a display layout is recorded.
[0785] 最前部分データ検出手段 29としての CPU70は、処理結果を得たい部分データを 制御手段 26から指定されたときに、その部分データに影響を与える最前あるいは最 後の部分データを特定する情報を処理補助データ取得手段 22から得て、制御手段 26に送る。あるいは最前部分データ検出手段 29は、制御手段 26を通じて各部分デ ータやその表示レイアウトを取得して、処理結果を得た!/、部分データに対する影響を 判断して、影響を与える最前あるいは最後の部分データを求めて、制御手段 26に送 る。 [0785] The CPU 70 as the foremost partial data detecting means 29 extracts the partial data for which the processing result is to be obtained. When specified by the control means 26, information for specifying the first or last partial data affecting the partial data is obtained from the processing auxiliary data acquisition means 22 and sent to the control means 26. Alternatively, the foremost partial data detecting means 29 obtains each partial data and its display layout through the control means 26 and obtains the processing result! /, Judges the influence on the partial data, and determines the effect before or after the influence. The obtained partial data is sent to the control means 26.
[0786] 図 42は、本発明に係るデータ処理装置の外観例を示している。本体 1400上に表 示部兼タブレットうい、前ページめくりボタン 1420および次ページめくりボタン 1430 が設けられている。また、タブレットを操作するペン 1440も備えられている。  [0786] Fig. 42 shows an example of the appearance of a data processing device according to the present invention. On the main body 1400, a display / tablet button, a previous page turning button 1420 and a next page turning button 1430 are provided. There is also a pen 1440 to operate the tablet.
[0787] 表示部兼タブレット 1410は入出力装置(ディスプレイ 71およびタブレット 73等)、レ ィアウト表示手段 28に相当する。表示部兼タブレット 1410上には、レイアウト生成手 段 25で生成された表示レイアウト、あるいはレイアウト保存手段 27で保存されて ヽた 表示レイアウトが表示される。また、データ処理装置の各種設定メニューなどを表示し て、表示部兼タブレット 1410を使って指やペン 1440などで設定を変更したりするの にも使われる。  [0787] The display unit / tablet 1410 corresponds to the input / output device (the display 71 and the tablet 73, etc.) and the layout display means 28. The display layout generated by the layout generation means 25 or the display layout stored by the layout storage means 27 is displayed on the display / tablet 1410. It is also used to display various setting menus of the data processing device and to change settings with a finger or a pen 1440 using the display unit / tablet 1410.
[0788] なお、各種設定などの操作手段として、表示部兼タブレット 1410だけでなぐ操作 ボタン類などがこの他にあってもよい。前ページめくりボタン 1420、次ページめくりボ タン 1430は、表示部兼タブレット 1410上に表示されている表示レイアウトの表示範 囲を切り替える際などに使う。ペン 1440は、リンクジャンプなどの操作や各種設定な どのユーザ入力など様々に利用可能である。  [0788] As operation means for various settings and the like, operation buttons or the like that can be operated only with the display unit / tablet 1410 may be used. The front page turning button 1420 and the next page turning button 1430 are used to change the display range of the display layout displayed on the display unit / tablet 1410, for example. The pen 1440 can be used variously for operations such as link jump and user input such as various settings.
[0789] また、この例では示していないが、この他に、外部記憶 75としてメモリーカードなど のスロットや、ネットワークと通信する通信デバイス 77、マ 2やキーボード 78、マイクな どの入力装置、スピーカ 80などの出力ウス 7装置、などが本体 1400に付属する場合 もめる。  [0789] In addition, although not shown in this example, in addition to the above, as the external storage 75, a slot such as a memory card, a communication device 77 for communication with a network, a keyboard and a keyboard 78, an input device such as a microphone, a speaker 80 If an output mouse device such as 7 is included with the main unit 1400, it is also determined.
[0790] (データ処理方法の詳細)  [0790] (Details of data processing method)
以下、各部分データの処理結果の繋がりが悪くならないような部分データの処理方 法を詳細に説明する。  Hereinafter, a method of processing the partial data so that the connection of the processing results of the respective partial data is not deteriorated will be described in detail.
[0791] その処理方法のポイントは、次のように要約できる。 [0792] (1)所望の部分データの周囲の部分データの処理結果力 所望の部分データの処 理結果に分割による影響を与えるかどうかを影響検出手段 3で検出する。 [0791] The points of the processing method can be summarized as follows. (1) Processing Result Power of Partial Data Surrounding Desired Partial Data The influence detecting means 3 detects whether or not the processing result of the desired partial data is affected by the division.
[0793] (2)影響を与える場合は、その部分データ力 所望の部分データまでを一続きのデ ータとして、レイアウト生成手段 5で処理する。 [0793] (2) If an influence is exerted, the layout data generation unit 5 processes the partial data force up to the desired partial data as continuous data.
[0794] (3)さらに、先に処理する部分データに関しても、その周囲の部分データ力 影響を 受けないかどうかを検出し、影響があれば、影響を与える部分データをさらに含めて 一続きに処理する。 [0794] (3) Further, regarding the partial data to be processed first, it is detected whether or not the peripheral data is affected by the surrounding data. To process.
[0795] (4)これらの処理を影響が検出されなくなるまで繰り返す。 [0795] (4) These processes are repeated until no influence is detected.
[0796] (処理例 1) [0796] (Processing example 1)
図 49は、本発明の実施の一形態に係るデータ処理方法の一例を示すフローチヤ ート図である。  FIG. 49 is a flowchart illustrating an example of a data processing method according to an embodiment of the present invention.
[0797] まずステップ S 11 (以下、「ステップ S」を「S」と略記する)では、処理補助データ取 得手段 22が、処理補助データを取得し、 S12へ処理が進む。例えば、予め主記憶 7 4、外部記憶 75または通信デバイス 77を介したネットワーク先などに用意してある処 理補助データを、処理補助データ取得手段 22が読み込むとする。  [0797] First, in step S11 (hereinafter, "step S" is abbreviated as "S"), the processing auxiliary data obtaining unit 22 obtains processing auxiliary data, and the process proceeds to S12. For example, it is assumed that the processing auxiliary data acquisition unit 22 reads processing auxiliary data prepared in advance in the main memory 74, the external storage 75, or a network destination via the communication device 77, or the like.
[0798] なお、図 43に示す「影響有無」の判定処理、および図 44に示す「影響ブロック」の 決定処理にっ 、ては、図 52に示すフローチャートを参照して後述する。  [0798] The "influence / non-effect" determination processing shown in FIG. 43 and the "influence block" determination processing shown in FIG. 44 will be described later with reference to the flowchart shown in FIG.
[0799] なお、ここでは各部分データの処理補助データを一度に読み込んで!/、るが、各プロ ックの処理補助データが必要になる時点で個々に読み込むのでもよい。読み込まれ た処理補助データは、図 43のようなデータ構造であるとする。  [0799] Here, the processing auxiliary data of each partial data is read at a time! /, But may be read individually when the processing auxiliary data of each block becomes necessary. It is assumed that the read processing auxiliary data has a data structure as shown in FIG.
[0800] 次に S12では、制御手段 26が、所望の表示レイアウト範囲を、マウス 72、タブレット 73、ボタン 76またはキーボード 78等からのユーザ入力による情報として取得して、 S 13へ進む。表示レイアウト範囲は、例えば「基準位置」と「サイズ」とを組み合わせた 形式で表現されるが、文書データのデータ範囲で示す場合と、表示手段上の表示サ ィズで示す場合の大きく 2つ考えられる。  [0800] Next, in S12, the control means 26 acquires a desired display layout range as information input by a user from the mouse 72, the tablet 73, the button 76, the keyboard 78, or the like, and proceeds to S13. The display layout range is expressed, for example, in the form of a combination of “reference position” and “size”. There are two types of display layout ranges: the case where it is indicated by the data range of document data and the case where it is indicated by the display size on the display means Conceivable.
[0801] 文書データのデータ範囲で表示レイアウト範囲を示す場合、例えば、「文書データ の nバイト目力 mバイト目の間のデータ」という形、つまり「文書データ中の基準デー タ位置 (n)」と「データサイズ (m)」の形になる。データ範囲で示される場合、所望の 表示レイアウト範囲に対応する部分データを特定することは簡単である。これは、図 4 3の処理補助データ中の各部分データの開始バイトとバイトサイズの情報を使えば、 nバイト目、 mバイト目がどの部分データ中なのかは簡単に求めることができるからで ある。 [0801] When the display layout range is indicated by the data range of the document data, for example, "data between the nth byte and the mth byte of the document data", that is, "reference data position (n) in the document data" And "data size (m)". When indicated by the data range, the desired It is easy to specify the partial data corresponding to the display layout range. This is because, using the start byte and byte size information of each partial data in the processing auxiliary data in FIG. 43, it is easy to determine which partial data is in the nth and mth bytes. is there.
[0802] 一方、表示手段上の表示サイズで示す場合、例えば、「文書データの nバイト目を 基準に、下に pドット分」という形、つまり「文書データ中のデータ位置」と「表示サイズ」 の形になる。データ位置としての nバイト目がどの部分データ中なのかは、処理補助 データなどを使えば簡単に求めることができる力 そこ力 pドット分下の表示レイァゥ トを作成するのに必要な部分データを求めるのは簡単ではない。  [0802] On the other hand, in the case of indicating the display size on the display means, for example, the form "p dots below based on the nth byte of the document data", that is, "data position in document data" and "display size" In the form of The part of the n-th byte as the data position is determined by the power that can be easily obtained by using processing auxiliary data. It is not easy to ask.
[0803] 本発明では、部分データ間の表示レイアウトの影響を問題としているので、所望の 表示レイアウト範囲に必要な部分データの範囲を求めることが重要となる。文書デー タのデータ範囲で示す場合は、必要な部分データは簡単に求まるので、以降では、 処理の難 、、表示手段上の表示サイズで示す場合にっ 、て説明する。  In the present invention, since the influence of the display layout between the partial data is a problem, it is important to find the range of the partial data necessary for the desired display layout range. In the case of showing in the data range of the document data, necessary partial data can be easily obtained. Therefore, the following description will be made in terms of difficult processing and the case of showing in the display size on the display means.
[0804] なお、「文書データ中のデータ位置」と「表示サイズ」の形で表示レイアウト範囲を表 す手法としては、様々なバリエーションがある。  [0804] There are various variations in a method of expressing the display layout range in the form of "data position in document data" and "display size".
[0805] 文書データ中のデータ位置は、例えば、スクロールバーなどの割合 (パーセント)で 表す方法も考えられる。しかし、割合は、文書データ全体のデータサイズ (バイト単位 )が分力 ていれば、相互に変換可能なので、結局、何バイト目かという表現と本質 的に変わらない。従って、以降では何バイト目かという表現の仕方で説明する。  [0805] The data position in the document data may be represented by, for example, a ratio (percent) of a scroll bar or the like. However, if the data size (byte unit) of the entire document data is a component, the ratio can be converted to each other, so the expression is essentially the same as the number of bytes. Therefore, the following description will be made in terms of the number of bytes.
[0806] また、バイト単位でなぐ例えば「文字数」単位などで指定することも可能である。こ れも相互に変換可能である。 1文字は一般に 1一 3バイトで表されるので、バイト単位 の方が「文字数」単位より細力 、と言える。あるいは、「タグ」単位での指定も可能であ る。例えば、 3番目に出てくる Pタグ、という形である。タグは文字で構成されるので、 単位の大きさとしては、「バイト」≤「文字」≤「タグ」、となる。ここでは、上記 3つの中で 最も細かい指定が可能なバイト単位で、データ位置が指定されるとしておく。  [0806] In addition, it is also possible to specify in units of bytes, for example, in units of "number of characters". This is also interchangeable. Since one character is generally represented by 13 bytes, it can be said that the byte unit is finer than the "character number" unit. Alternatively, it is also possible to specify in "tag" units. For example, the third P tag. Since the tag is composed of characters, the unit size is "byte" ≤ "character" ≤ "tag". Here, it is assumed that the data position is specified in the byte unit which can be specified most finely among the above three.
[0807] 「表示サイズ」も同様に、文書データ全体の表示レイアウトサイズ (ドット)を 100%と した割合で表現することも可能で、それは表示範囲のドット数と相互変換可能なのは データ位置の場合と同様である。しかし、部分データを使って処理する場合の利点 は、文書データ全体を処理しなくても一部の部分データだけを処理することによる高 速性や省リソース性が主となる。文書データ全体の表示レイアウトサイズを得るには、 文書データ全体のレイアウト処理が必要となるので、この手法は部分データの利点を 無意味にしてしまう。従って、表示サイズを割合で指定することは現実的でない。 [0807] Similarly, the "display size" can also be expressed as a ratio of the display layout size (dots) of the entire document data as 100%, and the number of dots in the display range can be mutually converted with the data position. Is the same as However, the advantages of processing with partial data Mainly, high speed and resource saving by processing only a part of data without processing the entire document data are the main. In order to obtain the display layout size of the entire document data, layout processing of the entire document data is necessary, and this method makes the advantage of partial data meaningless. Therefore, it is not realistic to specify the display size in proportion.
[0808] また、実際の利用シーンでも、スクロールバーやページめくりボタンなどで表示を指 示する時、「表示サイズは表示手段に表示できる範囲」という意識で利用していること がほとんどである。従って、以降では何ドット分かという表現の仕方で表示サイズを処 理するものとする。  [0808] Even in actual usage scenes, when using a scroll bar, a page turning button, or the like to indicate a display, the display is often used with the awareness that "display size is a range that can be displayed on the display means". Therefore, hereinafter, the display size is processed in a manner of expressing how many dots.
[0809] 文書データ中のデータ位置と表示サイズとの関係でも、表示範囲のどこにデータ位 置の基準を置くかで変わってくる。表示範囲の先頭に基準を置く場合は、「文書デー タの nバイト目を基準に、下に pドット分」という表現になり、表示範囲の内部に基準を 置く場合は、「文書データの nバイト目を基準に、上に pドット分、下に qドット分」という 表現になり、表示範囲の最後に基準を置く場合は、「文書データの nバイト目を基準 に、上に pドット分」という表現になる。  [0809] The relationship between the data position in the document data and the display size also depends on where in the display range the data position reference is set. If the reference is placed at the beginning of the display range, the expression is “p dots below the nth byte of the document data”, and if the reference is placed inside the display range, “n The expression is p dots above and q dots below, based on the byte.If the reference is placed at the end of the display range, `` p dots above the nth byte of the document data Expression.
[0810] その中で、本実施の形態では、「文書データの nバイト目を基準に、上に pドット分、 下に qドット分」という表現で所望の表示レイアウト範囲が得られるとする。なぜなら、 p や qが 0の場合、先頭や最後に基準を置く場合と同等になる力もである。  [0810] Among them, in the present embodiment, it is assumed that a desired display layout range can be obtained by the expression "up to p dots and down to q dots based on the nth byte of the document data". Because if p or q is 0, it is the same force as if you set the reference at the beginning or end.
[0811] なお、所望の表示レイアウト範囲がどのようにユーザ力 得られるかだ力 まず表示 サイズは、多くの場合、表示手段 (表示ウィンドウ)の縦サイズ WH (ドット)と思って良 いので、常に p + q=WH、である。なお、ここでは主に横行のコンテンツを上下にスク ロールさせながら読む使用状況を想定して 、るので、表示手段 (表示ウィンドウ)の縦 サイ WHを使った力 縦行のコンテンツならば、横サイズを使えばよい。  [0811] How the user can obtain the desired display layout range First, the display size is often the vertical size WH (dot) of the display means (display window). Always p + q = WH. In this case, we mainly assume the usage of reading horizontal content while scrolling it up and down. Therefore, the power of the display means (display window) using the vertical size WH is used. You can use
[0812] なお、以降、「ページ」は、表示手段 (表示ウィンドウ)に表示されるだけの範囲や、 表示手段 (表示ウィンドウ)に表示されるだけの表示レイアウトを意味するとする。「前 ページ」、「次ページ」は、現在のページの表示レイアウトの前あるいは次の 1ページ 分を意味するとする。「前ページ」や「次ページ」に表示範囲を切り替える操作を、「前 ページめくり」、「次ページめくり」と表現する。  [0812] Hereinafter, "page" means a range only displayed on the display means (display window) or a display layout only displayed on the display means (display window). The "previous page" and "next page" mean one page before or next to the display layout of the current page. The operation of switching the display range to "previous page" or "next page" is referred to as "previous page turning" or "next page turning".
[0813] 文書データを最初に読む時は、先頭から 1ページ分を読むのが普通なので、その 場合、基準データ位置として n=0、となり(先頭は 0バイト目とする)、上の表示レイァ ゥトは無 、ので、 p = 0、 q=WH、となる。 [0813] When reading document data for the first time, it is normal to read one page from the top. In this case, n = 0 as the reference data position (the beginning is the 0th byte), and there is no display layout above, so that p = 0 and q = WH.
[0814] リンクジャンプやページジャンプなどで所定の表示レイアウト範囲が指定される場合 、ジャンプ先が指定されているはずなので、文書データ中のデータ位置は、そこから 得られるはずである。例えば、 HTMLでは、リンク元で、 Aタグの href属性で、 [0814] When a predetermined display layout range is specified by a link jump, a page jump, or the like, a jump destination must be specified, and the data position in the document data should be obtained therefrom. For example, in HTML, in the link source, in the href attribute of the A tag,
「、、、く A href = " # target" >リンク元く/ A >、、、」 ",,,,, A href =" # target "> Link source / A ,,,,,"
として、リンク先の情報が示される。ここでは、同文書データ中の「 」という場所 である。それに対応して、同文書データ中のどこかで、  , The information of the link destination is shown. Here, it is a place called "" in the document data. In response, somewhere in the document data,
「、、、 <A name = "target" >リンク先く ZA>、、、」  ",,, <A name = "target"> ZA to link to ,,,,"
などと、 Aタグの name属性で、「target」 t 、う場所が指定されて 、るはずである。  For example, in the name attribute of the A tag, "target" t and the location should be specified.
[0815] これによつて、 WWWブラウザなどでは、「リンク元」という TEXTの表示レイアウトを マウスでクリックなどすれば、「リンク先」を含む表示レイアウト範囲が表示される。すな わちリンクジャンプである。図 42では、タブレット兼ディスプレイ 1410をペン 1440で、 ユーザが操作することなどに相当する。  [0815] As a result, in a WWW browser or the like, when the display layout of TEXT "link source" is clicked with a mouse or the like, a display layout range including "link destination" is displayed. That is, it is a link jump. In FIG. 42, this corresponds to the user operating the tablet / display 1410 with the pen 1440.
[0816] この場合、「リンク先」の文字列の先頭文字 (あるいはそれを囲む Aタグの先頭文字) 力 文書データ中で何バイト目になるかは、制御手段 26が事前に調べることができる 。そこで、その情報を別途データベースやファイルなどに記録するなどしておき、「tar get」の場所が何バイト目かを制御手段 26がすぐに知ることができるようにしておくとよ い。図 43の処理補助データのデータ構造に、新たな項目を追加して、記録しておい てもよい。  [0816] In this case, the first character of the character string of the “link destination” (or the first character of the A tag surrounding the character) can be determined in advance by the control means 26 as to the byte in the document data. . Therefore, the information may be separately recorded in a database or a file, or the like, so that the control means 26 can immediately know the byte position of the "tar get" location. A new item may be added to the data structure of the processing auxiliary data in FIG. 43 and recorded.
[0817] 事前に調べず、リンクジャンプ時に、文書データ全体を解釈して、「target」の場所 を調べることもできるが、先に述べた表示レイアウトのパーセント指定の話と同様、部 分データを使う利点が失われるので、事前に調べておくようにした方がよい。  [0817] Without checking in advance, when link jumping, the entire document data can be interpreted and the location of “target” can be checked. However, similar to the case of the percentage specification of the display layout described above, The advantage of using it is lost, so it is better to check beforehand.
[0818] なお、スクロールバーなどで所定の表示レイアウト範囲が指定される場合、位置は パーセントなどの割合で指定されるが、その割合力もデータ位置が求められれば、表 示範囲に関しては、リンクジャンプと同等である。割合力もデータ位置を求める方法と しては、文書データ全体のデータサイズを 100%とする方法もある力 他にも例えば 、特願 2002-139310において本願発明者が提案している力 表示レイアウトサイズ の推定も一部含んでデータ位置を求める方法がある。 [0818] When a predetermined display layout range is specified by a scroll bar or the like, the position is specified by a percentage or the like. However, if the data position is also obtained for the percentage power, the display range is determined by link jump. Is equivalent to As a method of determining the data position, the method of setting the data size of the entire document data to 100% is also a method for calculating the data position. Other than the above, for example, the force proposed by the present inventor in Japanese Patent Application No. 2002-139310 Display layout size There is a method of obtaining the data position including a part of the estimation.
[0819] リンクジャンプで、基準となるデータ位置が得られるとして、表示範囲をどうするかは 、表示アプリケーションや表示装置によって異なる。多くの WWWブラウザでは、基準 となるデータ位置を表示範囲の先頭 (p = 0、 q=WH)としている力 表示範囲の中央 (p = q=WH/2)とする場合もある。  [0819] Assuming that a reference data position can be obtained by link jump, what to do with the display range depends on the display application or display device. In many WWW browsers, the reference data position is defined as the head of the display range (p = 0, q = WH) and the center of the force display range (p = q = WH / 2).
[0820] なお、リンクジャンプ以外にも、例えば、しおり機能などでも同様の指定を行うことが できる。表示アプリケーションや表示装置が、文書データの表示を終える時、最後に 表示していた表示レイアウト範囲を、しおりデータなどとして外部記憶 75などに記録 する。記録する内容は、「文書データ中のデータ位置」と「表示サイズ」の形式でよい 。表示サイズが固定あるいは不要ならば、文書データ中のデータ位置だけでもよい。  [0820] In addition to the link jump, for example, the same designation can be performed by a bookmark function or the like. When the display application or the display device finishes displaying the document data, the display layout range displayed last is recorded in the external memory 75 or the like as bookmark data. The content to be recorded may be in the form of “data position in document data” and “display size”. If the display size is fixed or unnecessary, only the data position in the document data may be used.
[0821] そして、次に表示アプリケーションや表示装置が文書データを表示しょうとする時、 レイアウト生成手段 25等がしおりデータを読み込んで、得られた文書データ中のデ ータ位置などを所望の表示レイアウト範囲とすることで、前回、文書データの表示を 終えた表示レイアウト範囲とほぼ同じ表示レイアウト範囲を表示することができるように なる。  [0821] Then, the next time a display application or display device attempts to display the document data, the layout generating means 25 or the like reads the bookmark data and displays the data position or the like in the obtained document data as desired. By setting the layout range, it is possible to display a display layout range that is almost the same as the display layout range for which the display of the document data has been completed last time.
[0822] 所望の表示レイアウト範囲をどのようにユーザ力も得るかに関して、文書データを最 初に読む時と、リンクジャンプやページジャンプなどで所定の表示レイアウト範囲が指 定される場合について説明した力 実際の利用では、前ページや次ページの表示レ ィアウト範囲を所望の表示レイアウト範囲とする利用シーンも多い。  [0822] Regarding how to obtain a user's power to obtain a desired display layout range, the power described when reading document data for the first time and when a predetermined display layout range is specified by link jump or page jump, etc. In actual use, there are many usage scenes in which the display layout range of the previous page or the next page is set as a desired display layout range.
[0823] 例えば、文書データを次ページめくりする場合は、「現ページの最終行の次行から 、下に 1ページ分」が所望の表示レイアウト範囲となる。次ページめくりの指示は、図 4 2の次ページめくりボタン 1430を押すなどの操作で、ユーザによって入力されるとす る。  [0823] For example, when turning the document data to the next page, the desired display layout range is "one page down from the line following the last line of the current page". It is assumed that the next page turning instruction is input by the user by an operation such as pressing a next page turning button 1430 in FIG.
[0824] 「現ページの最終行の次行」をデータ位置の形に変換することは可能だ力 後で S 13で説明する通り、データ位置が必要なのは、どの部分データに属するかを得る為 でもあるので、ここでは無理にデータ位置の形には変換せず、「表示位置」 +「表示 サイズ」の形式で指定するとする。「表示位置」は、表示レイアウト上の位置になるが、 ここでは、「現ページの最終行の次行の開始位置」ある 、は「現ページの最終行の最 終位置」などと 、う表現になる。 [0824] It is possible to convert "the next line after the last line of the current page" into the form of data position. As described later in S13, the data position is needed to obtain which partial data belongs. However, here it is assumed that the data position is not forcibly converted to the form of "display position" + "display size". The “display position” is a position on the display layout. In this example, “start position of the next line after the last line of the current page” is “the last position of the last line of the current page”. End position "and so on.
[0825] この他、行間隔をどうするかと力、前のページの行と一部だぶらせるのかどうかとか 、行の途中まで表示されている場合はどうするなど、どこ力も表示させるかという細か い仕様は、表示アプリケーションや表示装置によって様々である。本発明では「現ぺ ージの最終行の次行の開始位置」が「表示位置」として指定されるとする。  [0825] In addition to this, detailed specifications such as how to display line spacing, whether to partially overlap the line on the previous page, and what to do if the line is displayed halfway, etc. Varies depending on the display application and the display device. In the present invention, it is assumed that the “start position of the line following the last line of the current page” is designated as the “display position”.
[0826] 同様に、前ページめくりの場合は、「現ページの開始行の前行の終了位置から 1ぺ ージ分」を所望の表示レイアウト範囲とする。その他にも、 1行だけ前後にスクロール したり、所定ドットだけ前後にスクロールしたりなどという指定の仕方は様々考えられる 力 指定の仕方はページめくりと基本が一緒なので、説明は省略する。  [0826] Similarly, in the case of page-turning, the desired display layout range is "one page from the end position of the line preceding the start line of the current page". In addition, there are various ways to specify forward / backward scrolling by one line or scrolling forward / backward by a predetermined dot, etc. Force The way of specifying force is basically the same as turning a page, so the description is omitted.
[0827] 以上のように、 S12では、所望の表示レイアウト範囲が、「文書データ中のデータ位 置」と「表示サイズ」の形式、あるいは、「表示位置」と「表示サイズ」の形式で指定され るとする。  [0827] As described above, in S12, the desired display layout range is specified in the format of "data position in document data" and "display size" or in the format of "display position" and "display size". Suppose it is done.
[0828] 次に、 S13では、制御手段 26が、 S 12で得られる所望の表示レイアウト範囲の表示 レイアウトを生成することのできる部分データ、言い換えれば、所望の表示レイアウト 範囲に属する (該当する)部分データを求めて、カレント部分データに設定する。ここ では、 S 12で得られる基準データ位置を含む部分データを、図 43の処理補助データ から求めればよい。  [0828] Next, in S13, the control unit 26 determines that the partial data that can generate the display layout in the desired display layout range obtained in S12, in other words, belongs to the desired display layout range (applicable) The partial data is obtained and set as the current partial data. Here, the partial data including the reference data position obtained in S12 may be obtained from the processing auxiliary data in FIG.
[0829] 上記の「所望の表示レイアウト範囲に属する (該当する)部分データ」とは、一部分 でも所望の表示レイアウト範囲に属する部分データを意味する。  [0829] The "partial data belonging to (applicable to) the desired display layout range" means partial data belonging to even a part of the desired display layout range.
[0830] なお、レイアウトを取得した部分データを後でチェックする為、「取得開始部分デー タ」と「取得終了部分データ」という情報を設けておき、それらの情報として、上述の力 レント部分データを設定しておく。ここでは、図 48に基づいて後述するブロック管理 データのデータ番号 300等あるいはインデックス番号を設定しておけばよ 、。  [0830] In order to check the partial data for which the layout has been acquired later, information such as "acquisition start partial data" and "acquisition end partial data" is provided. Is set. Here, the data number 300 or the like or the index number of the block management data described later with reference to FIG. 48 may be set.
[0831] より具体的には、基準データ位置が「文書データ中のデータ位置」の形式の場合、 nバイト目という形で指定されている。図 43の処理補助データの各ブロックの開始バ イトとバイトサイズを使って、  [0831] More specifically, when the reference data position is in the format of "data position in document data", it is specified in the form of the nth byte. Using the starting byte and byte size of each block of processing auxiliary data in Figure 43,
(部分データの開始バイト)≤n< (部分データの開始バイト) + (部分データのバイト サイズ) を満たす部分データを求めればょ 、。 (Start byte of partial data) ≤n <(start byte of partial data) + (byte size of partial data) Find partial data that satisfies.
[0832] 基準データ位置が、「表示位置」の形式の場合、現在表示している表示レイアウトの 部分データが何かは分っているので、表示位置の部分データを求めればよい。これ は表示して 、る行データの範囲を管理する情報である、図 48のブロック管理データ を使って求めることができる。表示している行データの範囲は、制御手段 26やレイァ ゥト表示手段 28などで別途管理しているとする。  [0832] When the reference data position is in the format of "display position", the partial data of the display layout currently displayed is known, so the partial data of the display position may be obtained. This can be obtained by using the block management data shown in FIG. 48, which is information for managing the range of the displayed row data. It is assumed that the range of the displayed line data is separately managed by the control unit 26, the layout display unit 28, and the like.
[0833] 例えば、「現ページの最終行の次行の開始位置」の場合、現ページの最終行とは、 表示している最後の行データに相当する。この次行は、図 46の行データ配列で、「 現ページの最終行」の次の行データを見れば分かる。  [0833] For example, in the case of "the start position of the next line after the last line of the current page", the last line of the current page corresponds to the last line data displayed. The next line can be understood by looking at the line data next to “the last line of the current page” in the line data array of FIG.
[0834] もし、次の行データが存在するのならば、その行データの属する部分データをカレ ント部分データとすればよい。どの行データがどの部分データに属するかは、図 48の ブロック管理データから、  If the next row data exists, the partial data to which the row data belongs may be set as the current partial data. Which row data belongs to which partial data can be determined from the block management data in Fig. 48.
(部分データの開始行)≤ (行データ)≤ (部分データの最終レイアウト行) を満たす部分データを求めることで分かる。なおここで、不等号は、行データの前後 順で判断する力 実際は、行データ配列中でのインデックス番号の大小で判断しても よい。  It can be found by finding partial data that satisfies (start row of partial data) ≤ (row data) ≤ (final layout row of partial data). In this case, the inequality sign is determined by the order of the row data. Actually, the inequality sign may be determined by the index number in the row data array.
[0835] もし、次の行データが存在しない場合は、まだその行データを生成する部分データ の表示レイアウトが生成されて ヽな 、ことを意味するので、「現ページの最終行」の部 分データの次の部分データをカレント部分データとすればょ 、。「現ページの最終行 [0835] If the next line data does not exist, it means that the display layout of the partial data for generating the line data has not yet been generated. Let the next partial data of the data be the current partial data. "Last line on current page
」の部分データは、図 48のブロック管理データから求められるので、その次の部分デ ータである。 Is obtained from the block management data in FIG. 48, and is the next partial data.
[0836] S14では、部分データ必要性判断手段 24が、カレント部分データの処理結果が、 所望の表示レイアウト範囲の表示に必要かどうかを判断し、必要と判断されれば連結 点 P100 (以降、「連結点 P」を「P」と略記する)を経て S15へ進み、必要でないと判断 されれば P200を経て S16へ進む。ここでの処理の詳細は、後で説明する。この S14 の処理は、特許請求の範囲に記載の部分データ必要性判断ステップに相当する。  [0836] In S14, the partial data necessity determining means 24 determines whether or not the processing result of the current partial data is necessary for displaying a desired display layout range. The process advances to S15 via “connection point P” (abbreviated as “P”). If it is determined that it is not necessary, the process advances to S16 via P200. Details of the processing here will be described later. The process in S14 corresponds to a partial data necessity determining step described in the claims.
[0837] S15では、影響検出手段 23、部分データ必要性判断手段 24、レイアウト生成手段 25、制御手段 26、レイアウト保存手段 27などが、カレント部分データの表示レイァゥ トを、影響を考慮して取得し、 P200を経て S16へ進む。 [0837] In S15, the influence detection unit 23, the partial data necessity determination unit 24, the layout generation unit 25, the control unit 26, the layout storage unit 27, and the like use the current partial data display layer. And take into account the impact, then proceed to S16 via P200.
[0838] 「カレント部分データの表示レイアウトを、影響を考慮して取得する」とは、カレント部 分データに影響を与える部分データなどとカレント部分データとを一続きのデータと して処理するようにして、影響が無!、ような表示レイアウトを生成する処理をすることで ある。ここでの処理の詳細は、後で説明する。 [0838] "Acquiring the display layout of the current partial data in consideration of the influence" means that the partial data that affects the current partial data and the current partial data are processed as a continuous data. Then, processing to generate a display layout that has no effect! Details of the processing here will be described later.
[0839] なお、ここでの処理は、「影響検出処理」および「部分データ処理ステップ」などの本 発明のポイントに関わる重要な処理を含んでいる。 [0839] The process here includes important processes related to the points of the present invention, such as "effect detection process" and "partial data processing step".
[0840] S16では、制御手段 26が、所望の表示レイアウト範囲に関して S13で設定した「取 得開始部分データ」の前の部分データが存在するかどうかを判断し、存在すれば S1[0840] In S16, the control means 26 determines whether or not there is partial data before the "acquisition start partial data" set in S13 with respect to the desired display layout range.
7へ進み、存在しなければ S18へ進む。 Proceed to 7; if not, proceed to S18.
[0841] 例えば、図 48で、取得開始部分データが部分データ 301だとすると、その前の部 分データ 300が存在する。取得開始部分データが部分データ 300だとすると、その 前の部分データは存在しな 、。 [0841] For example, in Fig. 48, if the acquisition start partial data is the partial data 301, the partial data 300 before it exists. If the acquisition start partial data is partial data 300, there is no partial data before that.
[0842] S17では、制御手段 26が、取得開始部分データの前の部分データをカレント部分 データに設定し、 S 14へ戻る。 [0842] In S17, the control means 26 sets the partial data before the acquisition start partial data as the current partial data, and returns to S14.
[0843] S 14から S 17の繰り返し処理で、基準データ位置を含む所望の部分データから前 方の部分データに関して、表示レイアウトの生成に必要と判断される部分データの処 理結果 (表示レイアウト)が得られる。 [0843] In the repetition processing of S14 to S17, the processing result of the partial data determined to be necessary to generate the display layout (display layout) for the partial data ahead of the desired partial data including the reference data position (display layout) Is obtained.
[0844] S18では、制御手段 26が、 S13で設定した取得終了ブロックをカレント部分データ に設定し直して、 S21へ進む。 [0844] In S18, the control means 26 resets the acquisition end block set in S13 to current partial data, and proceeds to S21.
S21では、制御手段 26が、取得終了部分データの次の部分データが存在するかど うかを判断し、存在すれば S22へ進み、存在しなければ S23へ進む。部分データの 存在を調べる方向は逆だが、 S 16と同様の処理である。  In S21, the control means 26 determines whether or not there is partial data next to the acquisition end partial data. If there is, the process proceeds to S22. If not, the process proceeds to S23. The direction of checking the existence of partial data is reversed, but the process is the same as S16.
[0845] S22では、制御手段 26が、取得終了部分データの次の部分データをカレント部分 データに設定し、 S 19へ処理が戻る。  [0845] In S22, the control means 26 sets the partial data next to the acquisition end partial data as the current partial data, and the process returns to S19.
[0846] S19では、部分データ必要性判断手段 24が、カレント部分データの処理結果が、 所望の表示レイアウト範囲の表示に必要かどうかを判断し、必要と判断されれば S20 へ処理が進み、必要でないと判断されれば S21へ処理が進む。判断方法は、 S14と 同じである。この S19の処理も、特許請求の範囲に記載の部分データ必要性判断ス テツプに相当する。 [0846] In S19, the partial data necessity determining means 24 determines whether the processing result of the current partial data is necessary for displaying a desired display layout range. If it is determined that the processing result is necessary, the process proceeds to S20. If it is determined that it is not necessary, the process proceeds to S21. The judgment method is S14 Is the same. The processing of S19 also corresponds to the partial data necessity determination step described in the claims.
[0847] S20では、影響検出手段 23、部分データ必要性判断手段 24、レイアウト生成手段 25、制御手段 26、レイアウト保存手段 27などが、カレント部分データの表示レイァゥ トを、影響を考慮して取得し、 S21へ進む。 S15とほぼ同様の処理である。  [0847] In S20, the influence detection means 23, the partial data necessity determination means 24, the layout generation means 25, the control means 26, the layout storage means 27, and the like obtain the display layout of the current partial data in consideration of the influence. Then, proceed to S21. This is almost the same processing as S15.
[0848] S 19から S22の繰り返し処理で、基準データ位置を含む所望の部分データ力も後 方の部分データに関して、必要と判断される部分データの処理結果が得られる。  [0848] In the repetitive processing of S19 to S22, the processing result of the partial data determined to be necessary is obtained with respect to the desired partial data including the reference data position and the subsequent partial data.
[0849] S23では、レイアウト表示手段 28が、 S 11— S22の処理によって取得された全ての 必要な部分データの表示レイアウトを用いて、所望の表示レイアウト範囲の表示レイ アウトを表示して、処理を終了する。  [0849] In S23, the layout display unit 28 displays a display layout of a desired display layout range using the display layout of all necessary partial data acquired in the processing of S11 to S22, and performs processing. To end.
[0850] 「表示開始行データ」と「表示終了行データ」の情報を設定するための処理にっ ヽ ては後で説明するとして、 S11— S23までの処理で設定されるとする。レイアウト表示 手段 28による表示処理は、表示開始行データ力も表示終了行データまで、順に表 示手段上に表示するだけである。表示は表示レイアウト要素単位で行うとして、表示 する行データ中の表示レイアウト要素配列中の各表示レイアウト要素を順に表示する 。表示レイアウト要素の表示位置は、  [0850] The process for setting the information of "display start line data" and "display end line data" will be described later, and is assumed to be set in the processes from S11 to S23. The display processing by the layout display means 28 only displays the display start line data and the display end line data on the display means in order. Assuming that display is performed in units of display layout elements, display layout elements in a display layout element array in row data to be displayed are sequentially displayed. The display position of the display layout element is
(要素データの X座標) = (要素データのオフセット X)  (X coordinate of element data) = (Offset of element data X)
(要素データの Y座標) = (行データの Y座標) + (要素データのオフセット Y) で求まる。行データの Y座標は、最初の表示開始行データの Y座標を 0とし、  (Y coordinate of element data) = (Y coordinate of row data) + (offset Y of element data). For the Y coordinate of the line data, set the Y coordinate of the first display start line data to 0,
(行データの Y座標) = (前の行データの Y座標) + (前の行データの高さ) + (行 間隔)  (Y coordinate of row data) = (Y coordinate of previous row data) + (height of previous row data) + (line spacing)
で求まる。行間隔は所定の値でもよいし、行データの高さに所定の割合を掛けた値 でもよい。  Is determined by The line interval may be a predetermined value or a value obtained by multiplying the height of the line data by a predetermined ratio.
[0851] 図 5Bは、図 7Bの電子データを先頭から表示した表示レイアウトの例である。周囲 の枠は、表示手段の表示範囲である。表示範囲を超える分については表示されてい ない。  [0851] FIG. 5B is an example of a display layout in which the electronic data of FIG. 7B is displayed from the top. The surrounding frame is the display range of the display means. The part beyond the display range is not displayed.
[0852] 以上の S11から S23の処理で、所望の表示レイアウト範囲に関して、分割の影響を 考慮した表示レイアウトを生成して、表示することができるようになる。 [0853] 次に、図 49の S14の処理、すなわち、カレント部分データの処理結果力 所望の表 示レイアウト範囲の表示に必要力どうかを部分データ必要性判断手段 24が判断する 処理 (部分データ必要性判断ステップ)の詳細にっ 、て説明する。 [0852] Through the processing from S11 to S23, a display layout can be generated and displayed for a desired display layout range in consideration of the influence of division. [0853] Next, the processing of S14 in Fig. 49, that is, the processing result power of the current partial data is determined by the partial data necessity determination means 24 as to whether or not it is necessary to display the desired display layout range (the processing (partial data required). The details of the sex determination step will be described.
[0854] まず、既に生成済みの表示レイアウトが所望の表示レイアウト範囲を満たす力どうか を判断する。既に生成済みの表示レイアウトは、図 46の行データ配列で管理されて いるので、この行データ配列で判断する。  First, it is determined whether or not the already generated display layout is capable of satisfying a desired display layout range. Since the already generated display layout is managed in the row data array in FIG. 46, the determination is made based on this row data array.
[0855] 最初に基準データ位置の行データが存在するかどうかを調べる。  [0855] First, it is checked whether or not row data at the reference data position exists.
[0856] 基準データ位置が「文書データ中のデータ位置」の形式の場合、 nバイト目という形 で指定されて 、る。図 45の要素データの「開始バイト」と「バイトサイズ」の情報を使 ヽ  [0856] When the reference data position is in the format of "data position in document data", it is specified in the form of the nth byte. Use the “start byte” and “byte size” information of the element data in Figure 45.
(要素データの開始バイト)≤n< (要素データの開始バイト) + (要素データのバ イトサイズ) (Start byte of element data) ≤n <(start byte of element data) + (byte size of element data)
を満たす要素データを持つ行データを求める。行データ配列の各行データ、さらに その行データ中の要素データ配列の各要素データに関して、上式を満たすかどうか を、要素データ配列、行データ配列で順に調べていけばよい。  Find row data with element data that satisfies For each row data of the row data array and each element data of the element data array in the row data, it is sufficient to sequentially check whether the above expression is satisfied by using the element data array and the row data array.
[0857] 基準データ位置が、「表示位置」の形式の場合、行として指定されて ヽるので、存在 する力しないかはすぐに分かる。例えば、基準データ位置が「現ページの最終行の 次行」であれば、現ページの最終行を図 46の行データ配列から探し、その次の行デ ータが存在するかどうかを調べればょ ヽ。  [0857] If the reference data position is in the form of "display position", it is specified as a line, so it is immediately known whether or not there is any force. For example, if the reference data position is “the line next to the last line of the current page”, the last line of the current page is searched from the line data array in FIG. 46, and if the next line data exists, it is checked. Yeah.
[0858] 基準データ位置の行データが存在しない場合は、カレント部分データは必要と判 断する。これは、図 49のフローチャートで、まず最初に S13で、基準データ位置の部 分データを決めており、後の S 15でその処理結果 (表示レイアウト)を得るようにして V、るので、基準データ位置の部分データの処理結果が未だ存在しな 、と 、うことは、 現在のカレント部分データは、 S 13で設定された基準位置の部分データであり、今か ら処理結果を得ようとしている部分データ (所望の部分データ)であることが分力るか らである。  [0858] If there is no line data at the reference data position, it is determined that the current partial data is necessary. This is a flowchart of FIG. 49. First, in S13, the partial data of the reference data position is determined, and in S15, the processing result (display layout) is obtained so that V is obtained. If the processing result of the partial data at the data position does not yet exist, it means that the current current partial data is the partial data at the reference position set in S13, and it is attempted to obtain the processing result from now. This is because it is a component to be partial data (desired partial data).
[0859] 基準データ位置の行データが存在する場合、その行データを持つ部分データを求 める。これは図 48のブロック管理データから求まる。もし、基準データ位置の行デー タを持つ部分データ力 判断対象のカレント部分データなら、当然、このカレント部分 データは必要と判断される。 [0859] If the line data at the reference data position exists, the partial data having the line data is obtained. This is obtained from the block management data shown in FIG. If the line data at the reference data position If it is the current partial data to be judged, this current partial data is naturally judged to be necessary.
[0860] 基準データ位置の部分データと比較して、判断対象のカレント部分データが前なら ば、基準データ位置力 所望の表示レイアウト範囲として指定された前方向のサイズ 分 (Pドット)の表示レイアウトが既に存在するかどうかを調べる。  [0860] Compared with the partial data at the reference data position, if the current partial data to be judged is ahead, the reference data position force The display layout of the size in the forward direction designated as the desired display layout range (P dots) Checks if exists already.
[0861] すなわち、判断対象のカレント部分データの後の部分データの「開始行」から基準 位置の行までのレイアウトの高さ PHを、 [0861] That is, the height PH of the layout from the “start row” of the partial data after the current partial data to be determined to the row at the reference position is
(基準位置の行)  (Line of reference position)
ΡΗ= ∑ ( (行データ iの高さ) + (行間隔))  ΡΗ = ∑ ((height of line data i) + (line spacing))
i= (開始行)  i = (start line)
で求める。  Ask for.
[0862] p≤PHならば、カレント部分データの後の部分データから、基準位置の部分データ までだけで、所望の表示レイアウト範囲として指定された前方向のサイズ分の表示レ ィアウトが生成できると!、うことなので、カレント部分データは必要無 、と判断できる。  [0862] If p≤PH, a display layout of the size in the forward direction specified as a desired display layout range can be generated only from the partial data after the current partial data to the partial data at the reference position. !, It can be determined that the current partial data is unnecessary.
[0863] もし、 p>PHならば、カレント部分データの後の部分データだけでは上方向のレイ アウトが足りな 、と 、うことなので、カレント部分データは必要と 、うことになる。  [0863] If p> PH, it means that the layout in the upward direction is not sufficient only with the partial data after the current partial data, so that the current partial data is necessary.
[0864] 例えば、基準位置の部分データが図 48の部分データ 304だとして、判断対象の力 レント部分データが部分データ 301だったとする。この場合、部分データ 302の開始 行から、部分データ 304の基準位置の行データまでの高さを求めて、部分データ 30 1の表示レイアウトが必要力否かを判断することになる。  [0864] For example, suppose that the partial data at the reference position is the partial data 304 in Fig. 48 and the current partial data to be determined is the partial data 301. In this case, the height from the start row of the partial data 302 to the row data at the reference position of the partial data 304 is determined to determine whether the display layout of the partial data 301 is necessary.
[0865] 上述のカレント部分データ力 基準位置の部分データ (所望の部分データ)の直前 の部分データである場合、部分データ必要性判断ステップにおいて、所望の部分デ ータの直前あるいは直後の部分データ (部分データ 301)が必要力どうかの判断に、 所望の部分データ (部分データ 302)および連続する部分データ(部分データ 303、 304)の表示レイアウト(処理結果)を使って!/、ることになる。  [0865] If the current partial data is the partial data immediately before the partial data at the reference position (desired partial data), in the partial data necessity determination step, the partial data immediately before or immediately after the desired partial data is determined. To determine whether the (partial data 301) is necessary, use the display layout (processing result) of the desired partial data (partial data 302) and continuous partial data (partial data 303, 304) to determine! / Become.
[0866] 若しくは、見方を変えて、上述のカレント部分データ (部分データ 301)を所望の部 分データとみなした場合には、所望の部分データが必要かどうかの判断に、所望の 部分データの後に連続する一つ以上の部分データ (部分データ 302— 304)の処理 結果を使っていることになる。また、基準データ位置の部分データと比較して、判断 対象のカレント部分データが後ならば、所望の部分データが必要力どうかの判断に、 所望の部分データの前に連続する一つ以上の部分データの処理結果を使うことにな る。 [0866] Alternatively, if the above-mentioned current partial data (partial data 301) is regarded as desired partial data in a different point of view, the determination of whether or not the desired partial data is necessary is performed. Processing of one or more subsequent partial data (partial data 302-304) You are using the result. Also, if the current partial data to be determined is later than the partial data at the reference data position, one or more consecutive partial data before the desired partial data can be used to determine whether the desired partial data is necessary. You will use the data processing results.
[0867] 基準データ位置の部分データと比較して、カレント部分データが後の場合も、前方 向の判断方法と方向を逆にして考えれば、同様に処理できる。つまり、基準データ位 置の行データから、カレント部分データの前の部分データの「最終レイアウト行」まで のレイアウトの高さを求めて、所望の表示レイアウト範囲として指定された、基準デー タ位置力 後方のサイズ分 (qドット)と比較すればよ!、。  [0867] In the case where the current partial data is later than the partial data at the reference data position, the same processing can be performed if the method of determining the forward direction and the direction are reversed. In other words, the height of the layout from the line data at the reference data position to the “final layout line” of the partial data before the current partial data is obtained, and the reference data position designated as the desired display layout range is obtained. Compare with the size of the back (q dot)!
[0868] このようにして、カレント部分データの表示レイアウトが、所望の表示レイアウト範囲 に含まれるかどうかで、カレント部分データの表示レイアウトが必要力どうかを判断す る S 14の処理を行うことができる。  [0868] In this manner, the process of S14 for determining whether the display layout of the current partial data is necessary is performed based on whether the display layout of the current partial data is included in a desired display layout range. it can.
[0869] 本発明の部分データ必要性判断ステップにより、指定された処理範囲の処理結果 を得るのに不要な部分データについては、影響検出ステップを実行しないことになる ので、影響検出ステップの処理を簡易化することができ、処理の高速化に寄与する。  [0869] In the partial data necessity determination step of the present invention, the effect detection step is not executed for the partial data that is not necessary to obtain the processing result of the specified processing range. It can be simplified, and contributes to speeding up of processing.
[0870] 図 50は、図 49の S15の処理、すなわちカレント部分データの表示レイアウトを、影 響を考慮して取得する処理の一方法を説明するフローチャート図である。  [0870] FIG. 50 is a flowchart illustrating a method of S15 in FIG. 49, that is, a method of acquiring the display layout of the current partial data in consideration of the influence.
[0871] P100を経た S15A-1では、レイアウト生成手段 25、制御手段 26など力 S14で必 要と判断されたカレント部分データの表示レイアウトを取得して、 S15A— 2へ進む。 取得した表示レイアウトをレイアウト保存手段 27に記憶させておけば、必要に応じて カレント部分データの表示レイアウトを取り出すことができる。また、カレント部分デー タの表示レイアウトが、影響を考慮して作成し直された場合には、レイアウト保存手段 27に記憶されたカレント部分データがクリアされたり、上書きして書き換えられたりす る。  [0871] In S15A-1 via P100, the display layout of the current partial data determined to be necessary by the force S14, such as the layout generation means 25 and the control means 26, is acquired, and the flow advances to S15A-2. If the acquired display layout is stored in the layout storage unit 27, the display layout of the current partial data can be extracted as needed. Further, when the display layout of the current partial data is recreated in consideration of the influence, the current partial data stored in the layout storage unit 27 is cleared or overwritten and rewritten.
[0872] なお、 S15A-1は、影響検出ステップの前に、所望の部分データの処理結果を取 得して保持する本発明の部分取得ステップに相当する。  [0872] Step S15A-1 corresponds to a partial acquisition step of the present invention in which a processing result of desired partial data is acquired and held before the influence detection step.
[0873] レイアウト保存手段 27は、カレント部分データの表示レイアウトが保存されていなけ れば、レイアウト生成手段 25にカレント部分データの表示レイアウトの生成を求める。 これに応じて、レイアウト生成手段 25は、カレント部分データの表示レイアウトを生成 して、生成した表示レイアウトをレイアウト保存手段 27に渡す。レイアウト保存手段 27 は、レイアウト生成手段 25から得られるカレント部分データの表示レイアウトを主記憶 74または外部記憶 75のような記録手段などに保存すると共に、制御手段 26にカレ ント部分データの表示レイアウトを渡す。 [0873] If the display layout of the current partial data is not stored, the layout storage unit 27 requests the layout generation unit 25 to generate a display layout of the current partial data. In response, the layout generation unit 25 generates a display layout of the current partial data, and passes the generated display layout to the layout storage unit 27. The layout storage unit 27 stores the display layout of the current partial data obtained from the layout generation unit 25 in a recording unit such as the main memory 74 or the external storage 75, and stores the display layout of the current partial data in the control unit 26. hand over.
[0874] なお、レイアウト保存手段 27を用いない場合は、その都度、レイアウト生成手段 25 で部分データの表示レイアウトを生成して、制御手段 26に渡すことになる。  [0874] When the layout storage unit 27 is not used, the layout generation unit 25 generates a display layout of the partial data and transfers it to the control unit 26 each time.
[0875] S15A— 2では、部分データ必要性判断手段 24が、カレント部分データの直前の部 分データが、所望の表示レイアウト範囲を表示するために必要かどうかを判断し、必 要であると判断されれば S15A— 3へ進み、必要でな!、と判断されれば P200へ抜け る。必要かどうかの判断の仕方は、判断対象となる部分データがカレント部分データ でなぐその直前の部分データになるだけで、 S14の処理と同様である。  [0875] In S15A-2, the partial data necessity determining means 24 determines whether the partial data immediately before the current partial data is necessary to display a desired display layout range, and determines that it is necessary. If it is determined, proceed to S15A-3. If not, exit to P200. The method of determining whether or not it is necessary is the same as the processing in S14, except that the partial data to be determined is the partial data immediately before the current partial data.
[0876] なお、カレント部分データの直前の部分データの必要性判断の為に、カレント部分 データの処理結果を得る場合には、直前の部分データが上記影響部分データに該 当するとしても、直前の部分データとその特定された部分データとを一続きのデータ として処理しな 、ことにする。  [0876] When the processing result of the current partial data is obtained to determine the necessity of the partial data immediately before the current partial data, even if the immediately preceding partial data corresponds to the above-described affected partial data, The partial data and the specified partial data are not processed as a continuous data.
[0877] なぜなら、もし直前の部分データがカレント部分データに対する前述の影響部分デ ータに該当する時、カレント部分データの処理結果を得る前に直前の部分データの 処理を行わなければいけないとすると、矛盾が起こるからである。  [0877] Because, if the previous partial data corresponds to the above-mentioned affected partial data with respect to the current partial data, it is necessary to process the previous partial data before obtaining the processing result of the current partial data. This is because contradictions occur.
[0878] つまり、直前の部分データが必要かどうかを判断する為に、カレント部分データの 処理結果が必要とされる一方、カレント部分データの処理結果を得るために直前の 部分データの処理結果が必要とされることになり、カレント部分データと直前の部分 データの間で、互いの処理結果を必要とするという矛盾が起こる。あるいは無限の繰 り返し処理が実行される。  [0878] In other words, while the processing result of the current partial data is needed to determine whether the previous partial data is necessary, the processing result of the previous partial data is needed to obtain the processing result of the current partial data. Therefore, there is a contradiction between the current partial data and the immediately preceding partial data, which requires mutual processing results. Alternatively, infinite repetition processing is performed.
[0879] そこで、直前の部分データの必要性判断の為に、カレント部分データの処理結果を 得る際には、直前の部分データが上記影響部分データに該当するとしても、直前の 部分データを処理しないことにする。これにより、処理に矛盾や無限の繰り返しが発 生することを防ぐことができる。 [0880] S15A— 3では、影響検出手段 23が、カレント部分データの表示レイアウトが、直前 の部分データの表示レイアウトに影響を受けるかどうかを判断 (影響検出ステップの 実行)し、影響を受けると判断される場合は S15A— 4へ進み、影響を受けないと判断 される場合は P200へ抜ける。これにより、影響検出ステップで影響部分データが検 出されな ヽ場合は、取得したカレント部分データの表示レイアウトを使った表示処理 に進むことが可能になる。 [0879] In order to determine the necessity of the immediately preceding partial data, when obtaining the processing result of the current partial data, even if the immediately preceding partial data corresponds to the above-mentioned affected partial data, the processing of the immediately preceding partial data is performed. I will not do it. As a result, inconsistency and infinite repetition of the processing can be prevented. [0880] In S15A-3, the influence detecting means 23 determines whether or not the display layout of the current partial data is affected by the display layout of the immediately preceding partial data (execution of the effect detection step). If determined, proceed to S15A-4, otherwise, exit to P200. As a result, if the affected part data is not detected in the influence detection step, it is possible to proceed to the display processing using the display layout of the acquired current part data.
[0881] 影響を受けるかどうかを判断するには、例えば、図 43の処理補助データを利用す る方法がある。図 43の「影響有無」の項は、各部分データの処理結果に影響を与え るかどうかに関する情報 (影響情報)であり、ここでは、各部分データが直前の部分デ ータに影響を受けるかどうかを表している。  [0881] In order to determine whether or not it is affected, for example, there is a method using the processing auxiliary data in Fig. 43. The section “Presence or absence of influence” in FIG. 43 is information (impact information) on whether or not the processing result of each partial data is affected.Here, each partial data is affected by the previous partial data. Or not.
[0882] また、図 43の「開始タグ補助情報」は、前述のように、ある着目した部分データにつ いて、効力が継続中の開始タグの存否を表している。例えば、図 7Bの部分データ 40 2に着目すると、その部分データ 402に対応する処理補助データ 102には、く font size = " + l" >という開始タグ補助情報が含まれている。従って、く font size = " + 1" >と!、う開始タグ補助情報を影響検出ステップの実行時に影響検出手段 23が検 出することにより、部分データ 402には、く font size = " + l" >という開始タグの効 力が継続中であると、判定することができる。この結果、直前の部分データ 401を影 響部分データの候補にすることができる。  [0882] In addition, the "start tag auxiliary information" in Fig. 43 indicates, as described above, whether or not there is a start tag that is still in effect for certain focused partial data. For example, focusing on the partial data 402 in FIG. 7B, the processing auxiliary data 102 corresponding to the partial data 402 includes start tag auxiliary information of font size = “+ l”>. Therefore, font size = "+1">! When the influence detection means 23 detects the start tag auxiliary information at the time of executing the influence detection step, the effect of the start tag "font size =" + l "> is continued in the partial data 402. Can be determined. As a result, the immediately preceding partial data 401 can be made a candidate for the affected partial data.
[0883] 部分データ 401に対して、部分データ 400が影響部分データになるかどうかは、同 様に、部分データ 401に対応する処理補助データ 101を調べればよい。すると、処 理補助データ 101には、く font size = " + l" >という開始タグ補助情報が含まれて いないので、部分データ 401が、その開始タグを保有している最前の影響部分デー タであると判定することができる。これにより、部分データ 402の表示レイアウトを得る には、部分データ 401 ·402を一続きのデータとして処理すればよいことが判る。  [0883] Whether or not the partial data 400 becomes the affected partial data with respect to the partial data 401 may be determined by checking the processing auxiliary data 101 corresponding to the partial data 401 in the same manner. Then, the processing auxiliary data 101 does not include the start tag auxiliary information of “font size =“ + l ”>. Therefore, the partial data 401 is the last affected partial data having the start tag. Can be determined. As a result, in order to obtain the display layout of the partial data 402, it is understood that the partial data 401 and 402 should be processed as a continuous data.
[0884] なお、所望の部分データの直前あるいは直後の部分データは、所望の部分データ の処理結果に影響を与える可能性が相対的に大きいため、直前あるいは直後の部 分データから調べ始めることは、影響部分データの検出効率を高めることになる。従 つて、所定の処理結果を得るのに必要が無い部分データを、影響部分データの検出 対象にするような無駄な処理を抑制する効果が得られる。 [0884] Since the partial data immediately before or immediately after the desired partial data is relatively likely to affect the processing result of the desired partial data, it is not possible to start examining the partial data immediately before or immediately after the desired partial data. Thus, the detection efficiency of the affected part data is improved. Therefore, partial data that is not necessary to obtain a predetermined processing result is The effect of suppressing unnecessary processing that is targeted can be obtained.
[0885] 処理補助データを使わな!/ヽ場合は、部分データや表示レイアウトを直接調べて判 断するしかない。判断の仕方については、後で図 52を用いて、表示レイアウトの生成 の仕方についての説明と合わせて説明する。 [0885] When the processing auxiliary data is not used, the only choice is to directly examine the partial data and display layout. The method of determination will be described later with reference to FIG. 52 along with the description of the method of generating a display layout.
[0886] 一般に、部分データや表示レイアウトを直接調べて判断するよりも、予め作成済み の処理補助データ上の影響に関する情報を使って判断する方が、高速、省リソース で判断できる利点が出てくる。 [0886] In general, it is faster and more resource-saving to make a determination using information on the influence on the previously created processing auxiliary data than to make a determination by directly examining the partial data and display layout. come.
[0887] S15A— 4では、直前の部分データを一時的にカレント部分データとして設定し、 S1[0887] In S15A-4, the previous partial data is temporarily set as the current partial data.
5の処理を行い、カレント部分データの設定を戻して、 S15A— 5へ進む。 S15A— 4の 処理は、 S15A-1から S15A-5の処理を繰り返す、いわゆる再帰的な処理となる。 Performs the processing of 5 and returns the setting of the current partial data, and proceeds to S15A-5. The process of S15A-4 is a so-called recursive process that repeats the processes of S15A-1 to S15A-5.
[0888] この繰り返し処理は、 S15A—2 S15A—3 、カレント部分データ(一時的なものも 含む)の直前の部分データが必要でないと判断されるか、影響を与えないと判断され るまで、繰り返されることになる。簡単に言えば、影響のある前のブロックを全て処理 するまで遡って処理する(繰り返す) t ヽうことである。 [0888] This iterative process is repeated until S15A-2 S15A-3, the partial data immediately before the current partial data (including the temporary data) is determined to be unnecessary or has no effect. Will be repeated. Put simply, it means to process (repeat) till all the previous blocks affected have been processed.
[0889] S15A— 5では、レイアウト生成手段 25が、カレント部分データの表示レイアウトを生 成して、レイアウト保存手段 27やレイアウト表示手段 28に渡して、 P200へ抜ける。 [0889] In S15A-5, the layout generation unit 25 generates a display layout of the current partial data, passes the display layout to the layout storage unit 27 and the layout display unit 28, and exits to P200.
[0890] 以上の S15A— 1から S15A— 5の処理によって、図 49の S15の処理、すなわちカレ ント部分データの表示レイアウトを、影響を考慮して取得し直す処理を行うことができ る。 [0890] The processing of S15A-1 to S15A-5 described above enables the processing of S15 in Fig. 49, that is, the processing of reacquiring the display layout of the current partial data in consideration of the influence.
[0891] また、 S15A-1から S15A-5の処理を繰り返す再帰的な処理によって、所望の部 分データに対する影響部分データ、その影響部分データにさらに影響する影響部分 データのように、影響を与え合う全ての部分データが抽出され、それらの部分データ がレイアウト生成手段 25によって一続きのデータとして処理される。従って、 S15A— 1から S15A— 5の処理を繰り返す再帰的な処理力 本発明の部分データ処理ステツ プに相当し、レイアウト生成手段 25が、本発明の部分データ処理手段に相当する。  [0891] In addition, the recursive processing that repeats the processing from S15A-1 to S15A-5 gives an effect such as the affected part data to the desired part data and the affected part data that further affects the affected part data. All matching partial data are extracted, and those partial data are processed by the layout generating means 25 as a series of data. Therefore, the recursive processing power of repeating the processing from S15A-1 to S15A-5 corresponds to the partial data processing step of the present invention, and the layout generating means 25 corresponds to the partial data processing means of the present invention.
[0892] また、 S15A— 1から S15A— 5の処理を繰り返す再帰的な処理において、カレント部 分データの表示レイアウトを新たに取得してレイアウト保存手段 27に保持し直すとき に、影響部分データ力 カレント部分データまでの範囲を一続きのデータとして処理 したという情報を、処理補助データ 100— 108、 600— 608等のよう〖こ、カレント部分 データの処理結果に関連付けて保持しておくとよい。 [0892] Also, in a recursive process in which the processes from S15A-1 to S15A-5 are repeated, when the display layout of the current portion data is newly acquired and stored again in the layout storage means 27, the influence portion data capacity is reduced. Process the range up to the current partial data as a continuous data It is preferable to hold the information that the processing has been performed in association with the processing result of the current partial data, such as the processing auxiliary data 100-108, 600-608, and the like.
[0893] これにより、一続きのデータとして処理したという情報を参酌することができ、カレント 部分データの表示レイアウトを後で使う場合に、改めて影響検出ステップを実行する 必要が無くなり、処理の効率ィ匕を図ることができる。  [0893] This makes it possible to take into account the information that the data has been processed as a series of data. When the display layout of the current partial data is used later, it is not necessary to execute the influence detection step again, and the processing efficiency is improved. A dagger can be planned.
[0894] 図 51は、図 49の S15の処理、すなわちカレント部分データの表示レイアウトを、影 響を考慮して取得する処理の別の一方法を説明するフローチャート図である。  [0894] FIG. 51 is a flowchart illustrating another method of the process of S15 in FIG. 49, that is, a process of acquiring the display layout of the current partial data in consideration of the influence.
[0895] P100を経た S15B-1では、最前部分データ検出手段 29が、カレント部分データ の表示レイアウトに影響を与える最前の部分データを求めて (影響検出ステップの実 行)、 S15B— 2へ進む。カレント部分データが前の部分データに影響を受けない場 合は、最前の部分データは、カレント部分データ自身とする。  [0895] In S15B-1 after P100, the foremost partial data detection means 29 obtains the foremost partial data that affects the display layout of the current partial data (execution of the influence detection step), and proceeds to S15B-2. . If the current partial data is not affected by the previous partial data, the first partial data is the current partial data itself.
[0896] 影響を受ける最前の部分データを求めるには、 S15A— 3同様、例えば、図 44の処 理補助データを利用する方法がある。図 44の「影響ブロック」の項は、各部分データ の処理結果に影響を与える部分データに関する情報であり、ここでは、各部分データ が影響を受ける最前の部分データを表す。図 44では、対応が分力り易いように部分 データのデータ番号ではなぐ処理補助データのデータ番号を記している力 部分 データと処理補助データは 1対 1対応なので、どちらを使ってもよい。  [0896] Similar to S15A-3, for example, there is a method of using the processing auxiliary data in Fig. 44 to obtain the partial data that is affected before. The section of “influence block” in FIG. 44 is information on the partial data that affects the processing result of each partial data, and here, represents the earliest partial data that is affected by each partial data. In FIG. 44, the data number of the processing auxiliary data is not replaced by the data number of the partial data so that the correspondence can be easily divided. Since the power partial data and the processing auxiliary data have a one-to-one correspondence, either one may be used.
[0897] 処理補助データを使わない場合は、 S15A— 3同様、部分データや表示レイアウトを 直接調べて判断するしかない。判断の仕方の詳細については、後で図 52を用い、表 示レイアウトの生成の仕方についての説明と合わせて説明する。  [0897] When the processing auxiliary data is not used, as in S15A-3, there is no choice but to directly examine the partial data and display layout. The details of the determination method will be described later with reference to FIG. 52, together with the description of the display layout generation method.
[0898] 図 44に示すような処理補助データを使う利点に関しては、 S15A— 3で説明した利 点と同様である。  [0898] The advantage of using the processing auxiliary data as shown in Fig. 44 is the same as the advantage described in S15A-3.
[0899] S15B— 2では、 S15B-1で得られた最前の部分データから、カレント部分データま でを一続きのデータとみなして、順に表示レイアウトを生成し、 P200へ抜ける。従つ て、 S15B-2は、本発明の部分データ処理ステップに相当する。ここでは、レイアウト 保存手段 27に保存されている表示レイアウトは使わず、全て生成するとする。  [0899] In S15B-2, the display layout is generated in order from the previous partial data obtained in S15B-1 to the current partial data as a continuous data, and the process exits to P200. Therefore, S15B-2 corresponds to the partial data processing step of the present invention. Here, it is assumed that the display layout stored in the layout storage unit 27 is not used, but all are generated.
[0900] なお、ここでは処理を簡単にする為、保存されて!、る表示レイアウトは使わず、全て 生成する方法で説明したが、保存されている表示レイアウトが、最前の部分データの 影響を受けて生成されたものであることを確認できるようにすれば、保存されて 、る表 示レイアウトを使ってもょ ヽ。 [0900] Note that, here, in order to simplify the processing, the display layout is not generated, and the display layout is not used. You can use the saved layout if you can verify that it was generated with the effect.
[0901] 以上の S15B— 1から S15B— 2の処理によって、図 49の S15の処理、すなわちカレ ント部分データの表示レイアウトを、影響を考慮して取得する処理を行うことができる  [0901] Through the processing from S15B-1 to S15B-2, the processing in S15 in FIG. 49, that is, the processing for acquiring the display layout of the current partial data in consideration of the influence can be performed.
[0902] 図 50と図 51の処理の違いについては、後で説明する。 [0902] The difference between the processes of Fig. 50 and Fig. 51 will be described later.
[0903] 図 52は、部分データ力 表示レイアウトを生成する処理の詳細を説明するフローチ ヤートである。図 50の S15A-5などの処理に相当する。処理結果としての表示レイァ ゥトを生成する処理は、アプリケーションなどの目的や電子データにより様々であるが 、ここでは WWWブラウザの様に、図 4B、図 7Bの HTMLデータから表示レイアウトを 生成して表示する処理につ!、て説明する。  [0903] Fig. 52 is a flowchart for explaining the details of the processing for generating the partial data force display layout. This corresponds to the processing of S15A-5 in Fig. 50. The process of generating the display layout as the processing result varies depending on the purpose of the application and the like and the electronic data.Here, like the WWW browser, the display layout is generated from the HTML data in FIGS. 4B and 7B. The display process will be described.
[0904] 図 52の処理は、 1つの部分データと、「影響有無」の情報を持たない処理補助デー タとから表示レイアウトを生成する処理である。所望の部分データの直前の部分デー タの表示レイアウトが存在して 、て、所望の部分データの処理結果に影響がある場 合は、直前の部分データの表示レイアウトに続けて追加する形で所望の部分データ の表示レイアウトを生成する。  The process of FIG. 52 is a process of generating a display layout from one piece of partial data and processing auxiliary data having no information on “presence / absence”. If there is a display layout of the partial data immediately before the desired partial data, and this may affect the processing result of the desired partial data, the display layout of the partial data immediately before the desired partial data is added. Generate the display layout of the partial data of.
[0905] 一般に、 XHTML形式や XML (extensible markup language)开式の文書デ ータは、タグを使って木構造 (階層構造)のデータを表現できるが、 XML形式の文書 データ(XMLデータ)を処理する方法として、 DOM (document object model) や SAX (simple API for XML)などの API (application programming inte rface)が存在する。  [0905] In general, document data in XHTML format or extensible markup language (XML) format can express tree-structured (hierarchical) data using tags. There are APIs (application programming interface) such as DOM (document object model) and SAX (simple API for XML) as a processing method.
[0906] DOMを使う場合、最初に XMLデータを全て読み込み、木構造のデータをメモリ中 などに作成する。この木構造のデータにアクセスすることで、任意の階層の任意の要 素データに素早くアクセスすることができる。 XMLデータを処理する場合は、この階 層を順に迪つて解釈して、表示レイアウトを生成する。  [0906] When using the DOM, first, all XML data is read, and tree-structured data is created in a memory or the like. By accessing this tree-structured data, it is possible to quickly access any element data in any hierarchy. When processing XML data, this hierarchy is interpreted sequentially to generate a display layout.
[0907] また、 SAXを使う場合、木構造のデータは生成せず、開始タグ、 TEXT,終了タグ を読み込んだ時点で、読み込んだ開始タグ、 TEXT,終了タグの解釈を行い、表示 レイアウトを生成する。 [0908] どちらの方法を使っても、タグなどの解釈が一緒ならば、同じ表示レイアウト結果が 得られる。表示レイアウトを生成するという観点に絞って考えれば、今解釈しているデ ータがどの階層に存在しているかで処理結果が変わるような場合、 DOMでは、 API 側で階層構造の情報を木構造として保持して 、るので、どの階層に 、るかの情報が 得やすい。 SAXは、 API側では階層構造のデータは保持していないので、必要に応 じて、処理側で階層構造の情報を保持する必要がある。但し、 DOMは文書データの 全ての情報を木構造のデータとして保持するので、処理時間が力かったり、データ格 納領域が多く必要になったりという欠点がある。 [0907] When SAX is used, tree-structured data is not generated, and when a start tag, TEXT, and end tag are read, the read start tag, TEXT, and end tag are interpreted to generate a display layout. I do. [0908] Regardless of the method used, the same display layout result can be obtained if the interpretation of tags and the like is the same. From the viewpoint of generating a display layout, if the processing result changes depending on the hierarchy at which the data being interpreted exists, the DOM uses the API to convert the information of the hierarchical structure into a tree. Since the information is stored as a structure, it is easy to obtain information as to which hierarchical level it is. Since SAX does not hold hierarchical data on the API side, it is necessary for the processing side to hold hierarchical information as needed. However, since the DOM holds all the information of the document data as tree-structured data, it has disadvantages such as a long processing time and a large data storage area.
[0909] 本発明のように、高速、省リソースの処理を目的としている場合、 SAXで処理する 方が望ましい。しかし、 SAXの処理方法は、データの読み込みと処理とが一体になつ て、説明が分力りづらくなるので、ここでは DOMを使って処理する方法で説明する。  [0909] When high-speed, resource-saving processing is intended as in the present invention, processing with SAX is preferable. However, in the SAX processing method, the reading and processing of data are integrated, making it difficult to explain. Therefore, the method of processing using DOM is described here.
[0910] まず、ステップ SL21 (以降、「ステップ 3し」を「3し」と略記する)で、レイアウト生成手 段 25が、カレント部分データの処理補助データから開始タグ補助情報を読み込んで 、 SL22へ処理が進む。開始タグ補助情報は、図 43の処理補助データから得られる 。なお、図 52の各ステップの動作主体は、全てレイアウト生成手段 25なので、以降は 各ステップでの動作主体の記述は省略する。  [0910] First, in step SL21 (hereinafter, "step 3" is abbreviated as "3"), the layout generation unit 25 reads the start tag auxiliary information from the processing auxiliary data of the current partial data, and executes SL22. The process proceeds to. The start tag auxiliary information is obtained from the processing auxiliary data in FIG. Since the operation subject of each step in FIG. 52 is all the layout generating means 25, the description of the operation subject in each step will be omitted.
[0911] SL22では、カレント部分データを読み込んで、 SL23へ処理が進む。  [0911] In SL22, the current partial data is read, and the process proceeds to SL23.
[0912] SL23では、カレント部分データの処理補助データ力 終了タグ補助情報を読み込 んで、 SL24へ処理が進む。  [0912] In SL23, the processing auxiliary data input end tag auxiliary information of the current partial data is read, and the process proceeds to SL24.
[0913] 以上の SL21から SL23で、カレント部分データを解釈するのに必要な文書データ が得られる。ここでは、 DOMでこれらの文書データを処理して、木構造のデータが生 成されるとする。なお、処理補助データの開始タグ補助情報や終了タグ補助情報を 使わな 、場合は、部分データ自体に開始タグ補助情報や終了タグ補助情報が埋め 込まれた形、つまり、分割された HTMLデータの前後に足りない開始タグや終了タグ の文字列を付カ卩したデータになって 、るとする。  [0913] With the above SL21 to SL23, the document data necessary for interpreting the current partial data can be obtained. Here, it is assumed that the DOM processes these document data to generate tree-structured data. If the start tag auxiliary information and the end tag auxiliary information of the processing auxiliary data are not used, the start tag auxiliary information and the end tag auxiliary information are embedded in the partial data itself, that is, the divided HTML data It is assumed that the data is obtained by adding the missing start tag and end tag character strings before and after.
[0914] SL24では、読み込んだ文書データから、カレント部分データにおける全ての表示 レイアウト要素を生成して、 SL25へ処理が進む。木構造のデータから、各階層のタ グゃ TEXTを順に解釈して、図 45の形式の表示レイアウト要素を生成していくことで 、全ての表示レイアウト要素を生成する。各要素の位置など、まだ決定されない部分 は空白にしておく。生成された表示レイアウト要素は、生成順の配列(以降、「生成表 示レイアウト要素配列」と呼ぶことにする)で、一時的に保持しておく。 [0914] In SL24, all display layout elements in the current partial data are generated from the read document data, and the process proceeds to SL25. By interpreting the tags ゃ TEXT of each layer in order from the tree-structured data, and generating display layout elements in the format of Fig. 45, , Generate all display layout elements. Leave undetermined parts, such as the position of each element, blank. The generated display layout elements are temporarily stored in an array in the order of generation (hereinafter, referred to as “generated display layout element array”).
[0915] どのように表示レイアウト要素が生成されるかは、各タグや TEXTによるが、図 4Bの 文書データで出てくる個々のタグの表示のされかたなどについては、既に説明したの で、ここでは木構造データが表示レイアウト要素としてどのように生成されるかにつ!ヽ て、階層を追って説明しておく。  [0915] How the display layout element is generated depends on each tag and TEXT. However, the display of individual tags appearing in the document data in FIG. 4B has been described above. Here, how the tree structure data is generated as a display layout element will be described in a hierarchy.
[0916] 木構造データの各階層を上力 順に、また各階層内に含まれる TEXTを 1文字ず つ順に解釈しながら、要素を生成していくのだが、現在の表示状態を表すデータとし て、文字の大きさと文字色が必要となる。最初は、標準の文字の大きさと文字色となる 。これはアプリケーションや装置によって、標準設定を定めておく。ユーザによって、 標準文字の大きさなどが設定されている時は、そちらを優先する。例えば、標準設定 で、文字の大きさが 10ポイント、文字色が黒だとする。  [0916] The elements are generated while interpreting each level of the tree structure data in ascending order, and interpreting the TEXT included in each level in order of one character at a time. , Character size and character color are required. The first is the standard font size and font color. For this, standard settings are determined by applications and devices. When the size of the standard character is set by the user, that priority is given. For example, assume that the character size is 10 points and the character color is black in the standard settings.
[0917] 例えば、図 4Bの 2, 3行目の「く font color = "red" size = " + 3" >How does  [0917] For example, in lines 4 and 3 of FIG. 4B, “ku font color =“ red ”size =“ +3 ”> How does
LCD works?く Zfont >」から生成される階層を解釈する際、この階層では col or属性が redなので、文字色を赤とし、 size属性が + 3なので、文字の大きさを 3段階 大きくする。ここでは、 1段階大きくなる毎に 2ポイント大きくなるとして、 16ポイントの大 きさになるとする。  LCD works? When interpreting the hierarchy generated from "Zfont>", the color of the character is red because the color attribute is red in this hierarchy, and the size attribute is +3, so the size of the character is increased by three levels. Here, it is assumed that the size is increased by 2 points each time the size is increased by one step, so that the size is increased by 16 points.
[0918] 次に、この階層の TEXT「How does LCD works?」を順に 1文字ずつ解釈す る。 1文字毎に図 45の文字要素 (種類「CHAR」)を生成し、文字コードを「内容」に 設定し、文字コードと文字の大きさから「幅」と「高さ」を設定する。図 45に示す文字要 素のデータ構造例には、文字色の情報は無いが、ここでは、表示レイアウト要素デー タに文字色の項を設けて、設定しておくとする。また、「開始バイト」、「バイトサイズ」も 木構造データを生成する時に調べておけば、設定することができる。「オフセット X」、 「オフセット Y」は、まだ位置が定まっていないので空白としておく。生成した文字要素 を順に生成表示レイアウト要素配列に追加していく。  [0918] Next, the TEXT “How does LCD works?” In this hierarchy is interpreted one character at a time. Generate the character element (type "CHAR") shown in Fig. 45 for each character, set the character code to "content", and set "width" and "height" from the character code and character size. Although there is no character color information in the data structure example of the character element shown in FIG. 45, it is assumed here that a character color item is provided in the display layout element data and set. The "start byte" and "byte size" can also be set if they are checked when generating the tree structure data. "Offset X" and "Offset Y" are left blank because their positions have not been determined yet. The generated character elements are added to the generated display layout element array in order.
[0919] そして、この階層の処理が終わる時、文字の大きさと文字色を標準設定(10ポイント と黒)に戻す。 [0920] 次の階層は、図 4Bの 3行目の brタグの階層だが、これは改行を示すだけである。ま だここでは各要素の位置や属する行データは定まっていないので、とりあえず、文字 コードとして改行コードを持つ文字要素としておく。それ以外の項は特に設定しなくて ちょい。 [0919] Then, when the processing of this layer ends, the character size and character color are returned to the standard settings (10 points and black). [0920] The next level is the level of the br tag on the third line in Figure 4B, which only indicates a line break. Since the position of each element and the line data to which it belongs are not specified yet, let's use a character element with a line feed code as the character code for the time being. The other items do not need to be set.
次の階層は、図 4Bの 5行目力も 16行目までの fontタグの階層だ力 ここでは文字色 は黒のままで、文字の大きさが標準サイズから 1段階大きくなつて、 12ポイントとなる。  In the next layer, the font on the fifth line in Fig. 4B is also the layer of the font tag up to the 16th line. In this case, the character color remains black, and the size of the character increases by one level from the standard size to 12 points. Become.
[0921] その下の階層は、図 4Bの 6行目から 15行目までの pタグの階層だが、開始タグで 多少の垂直スペースと改行、終了タグで改行と多少の垂直スペースとして表示される ので、ここでは、表示手段の幅と同じ幅を持つ文字要素と、改行コードの文字要素と を生成するとする。先の文字要素の高さは垂直スペース分 (例えば、その時点の文字 の大きさ分など)とし、内容には「空白」を設定しておく。なお、空白の文字要素では なぐ図 45には無いが、「VSPACE」という種類の垂直スペース要素を新たに作る方 法もある。 [0921] The layer below it is the p tag hierarchy from line 6 to line 15 in Fig. 4B, but it is displayed as a slight vertical space and line break at the start tag, and as a line break and some vertical space at the end tag Therefore, it is assumed here that a character element having the same width as the width of the display means and a character element of a line feed code are generated. The height of the preceding character element is the vertical space (for example, the size of the current character), and the content is set to “blank”. Note that there is no way to create a vertical space element of the type "VSPACE", which is not shown in Fig. 45, which is different from a blank character element.
[0922] pタグの階層の TEXTは、文字の大きさ 12ポイント、文字色が黒として、 1文字ずつ 文字要素を生成する。  [0922] TEXT in the hierarchy of the p tag generates character elements one character at a time, with a character size of 12 points and a character color of black.
[0923] また、図 4Bの 28行目の IMGタグの階層では、画像要素(図 45の種類 IMAGE)を 生成し、指定されているファイル名の画像ファイルを読み込んで、画像データを展開 して内容データに設定し、画像の大きさを幅と高さとして設定する。開始バイト、バイト サイズも他の要素データ同様、設定しておく。 align属性で回り込みが指定されてい る場合は、それが分力るように、図 45に示す表示レイアウト要素のデータに、画像要 素の回り込みの項を追加して設定したり、あるいは回り込み画像用の種類を新たに設 定 (alignが rightの場合に、 RIMAGEとするなど)したりなどの方法で、後で識別で きるようにしておく。  [0923] Also, in the layer of the IMG tag on the 28th line in Fig. 4B, an image element (IMAGE in Fig. 45) is generated, an image file with the specified file name is read, and the image data is expanded. The content data is set, and the size of the image is set as the width and height. Set the start byte and byte size as well as other element data. If wraparound is specified in the align attribute, add a wraparound item for the image element to the data of the display layout element shown in Fig. By setting a new type (such as RIMAGE when align is right) so that it can be identified later.
[0924] SL25では、次の部分データの表示レイアウト要素を前の部分データの表示レイァ ゥト要素に続けて追加可能な行データ(以下、単に追加可能な行データと呼ぶ)が存 在すれば、その行データをカレント行データに設定して、 SL26へ進む。もし、追カロ可 能な行データが存在しない場合は、新しい行を作って行データ配列に追加し、新し V、行をカレント行に設定する。 [0925] 追加可能な行データとは、言い換えれば、直前の部分データの表示レイアウトが存 在し、かつ、最終レイアウト行が改行で終わっていない行データである。最終レイァゥ ト行は、図 48のブロック管理データ力 得られる。従って、直前の部分データのブロッ ク管理データに最終レイアウト行が設定されていなければ (空白ならば)、追加可能な 行データは存在しな!ヽと判断して、新 ヽ行データを作成すればょ ヽ。 [0924] In SL25, if there is line data that can be added following the display layout element of the next partial data after the display layout element of the previous partial data (hereinafter simply referred to as addable line data), Then, the line data is set as the current line data, and the process proceeds to SL26. If there is no line data that can be added, a new line is created and added to the line data array, and a new V, line is set as the current line. [0925] In other words, the line data that can be added is line data in which the display layout of the previous partial data exists and the final layout line does not end with a line feed. The final layout row is obtained from the block management data shown in FIG. Therefore, if the final layout line is not set in the block management data of the previous partial data (if it is blank), it is determined that there is no line data that can be added! And new line data must be created.ょ
[0926] カレント行が設定されたら、次の部分データのブロック管理データの開始行として、 カレント行を設定しておく。  [0926] After the current line is set, the current line is set as the start line of the block management data of the next partial data.
[0927] 新 、行データの、幅、高さ、要素配列は空白でょ 、。要素数も 0である。配置可能 開始位置、配置可能終了位置は、予め決まった値にすることが多い。例えば、配置 可能開始位置を 0、配置可能終了位置を表示手段の幅にするなどである。あるいは 、左右に空白(マージン)を設ける為に、配置可能開始位置を左マージン量、配置可 能終了位置を表示手段の幅力 右マージン量を引いた値にする場合もある。次要素 配置位置は、配置可能開始位置にする。  [0927] New, row data, width, height and element array are blank. The number of elements is also 0. The start position of arrangement and the end position of arrangement are often set to predetermined values. For example, the arrangement start position is set to 0, and the arrangement end position is set to the width of the display means. Alternatively, in order to provide blanks (margins) on the left and right, the start position where arrangement is possible is set to the left margin amount, and the end position where arrangement is possible is set to a value obtained by subtracting the width and right margin amount of the display means. The next element is placed at the start position where it can be placed.
[0928] SL26では、最初の表示レイアウト要素をカレント要素に設定して、 SL27へ処理が 進む。 SL24で作成した生成表示レイアウト要素配列の最初の要素を使えばよい。  [0928] In SL26, the first display layout element is set as the current element, and the process proceeds to SL27. Use the first element of the generated display layout element array created with SL24.
[0929] SL27では、カレント要素は改行かどうかを判断し、改行ならば SL28へ処理が進み 、改行でないならば SL30へ処理が進む。ここでは、改行コードの内容をもつ文字要 素かどうかで判断すればよ!ヽ。  [0929] In SL27, it is determined whether or not the current element is a line feed. If the current element is a line feed, the process proceeds to SL28; if not, the process proceeds to SL30. In this case, it is necessary to judge whether it is a character element that has the contents of the line feed code! ヽ.
[0930] SL28では、カレント行に改行属性を設定して、 SL29へ処理が進む。改行属性は 、図 46の行データに「改行属性」の項を追カ卩してもよいし、次要素配置位置の項の値 を、配置可能終了位置以上の値にしておいて、その行に要素を追加できないように しておくことで、同等の機能を持たせるのでもよい。  [0930] In SL28, a line feed attribute is set for the current line, and the process proceeds to SL29. As for the line feed attribute, the item of “line feed attribute” may be added to the line data in FIG. 46, or the value of the item of the next element arrangement position is set to a value equal to or more than the arrangement possible end position, and the line It may be possible to provide an equivalent function by preventing elements from being added to.
[0931] SL29では、カレント行の次の行データが存在していれば、その行をカレント行デー タに設定し、存在していなければ、新たな行データを生成して、行データ配列に追加 し、カレント行データに設定し、 SL37へ進む。  [0931] In SL29, if there is row data next to the current row, that row is set as the current row data. If not, new row data is generated and the row data array is created. Add, set to current line data, and proceed to SL37.
[0932] SL28、 SL29の処理で、カレント行が次の行になるので、改行したこと〖こなる。なお 、 SL29でカレント行を更新しているのに、 SL28で改行属性などを設定する理由は、 もし部分データの次の要素が存在しな 、場合、 SL28で改行属性を設定した行が最 終レイアウト行となるが、その行に次の部分データの要素を追加されることを防止する 為である。 [0932] In the processing of SL28 and SL29, the current line is the next line, so this means that a line break has occurred. Note that the reason why the line break attribute is set in SL28 while the current line is updated in SL29 is that if the next element of the partial data does not exist, the line with the line break attribute set in SL28 This is the final layout line, but to prevent the next partial data element from being added to that line.
[0933] なお、カレント行を更新する際は、古いカレント行の高さ、カレント行中の各要素の オフセット Yなどを設定する必要がある。各要素の中で最も高さが大きいものが、行の 高さとなる。但し、回り込み画像は勘定に入れない。回り込み画像の高さと行の高さ に関する処理は、後で説明する。図 47の例では、最初の「H」など大文字の文字要 素の高さが、行の高さ LHとなっている。各要素のオフセット Yは、(行の高さ) (要素 の高さ)、となる。図 47の例では、行範囲の矩形 500の上辺と各要素の上辺の隙間 がオフセット Yとなる。  [0933] When updating the current row, it is necessary to set the height of the old current row, the offset Y of each element in the current row, and the like. The tallest of the elements is the row height. However, wraparound images are not counted. The processing related to the wraparound image height and the row height will be described later. In the example of FIG. 47, the height of the first uppercase letter element such as “H” is the line height LH. The offset Y of each element is (row height) (element height). In the example of FIG. 47, the gap between the upper side of the rectangle 500 in the row range and the upper side of each element is the offset Y.
[0934] 新しい行データの各項の設定は、 SL25での説明した設定と同様でよいが、回りこ み画像がある場合は多少、異なる。回り込み画像がある場合の設定については、後 で説明する。  [0934] The setting of each item of the new line data may be the same as the setting described in SL25, but is slightly different when there is a wraparound image. The setting when there is a wraparound image will be described later.
[0935] SL27でカレント要素が改行でなかった場合、 SL30では、カレント要素は回り込み 画像かどうか判断し、回り込み画像ならば SL31へ進み、回り込み画像でないならば [0935] If the current element is not a line feed at SL27, at SL30 it is determined whether the current element is a wraparound image. If it is a wraparound image, the process proceeds to SL31.
、 SL33へ進む。回り込み画像かどうかは、 SL24で、 IMGタグから要素データを生成 する時に説明した方法で判断する。 Continue to SL33. Whether the image is a wraparound image is determined by the method described when generating element data from the IMG tag in SL24.
[0936] SL31では、回り込み画像の要素をカレント行に配置可能かどうかを判断し、配置 可能ならば SL36へ進み、配置不可能ならば SL32へ進む。右端に配置させる要素( align = "right")ならば、カレント行で、 [0936] In SL31, it is determined whether or not the wraparound image element can be arranged on the current line. If the arrangement is possible, the process proceeds to SL36. If the arrangement is not possible, the process proceeds to SL32. If the element to be placed at the right end (align = "right"), in the current line,
(画像要素の幅)≤ (配置可能終了位置) - (次要素配置位置)  (Image element width) ≤ (Positionable end position)-(Next element position)
の時、配置可能と判断すればよい。左端に配置させる要素(align= "left")ならば、 カレント行で、  At this time, it may be determined that the arrangement is possible. If the element to be placed at the left end (align = "left"),
(配置可能開始位置) = (次要素配置位置)  (Possible start position) = (Next element position)
ならば、配置可能と判断すればよい。  Then, it may be determined that the arrangement is possible.
[0937] SL32では、カレント行の次の行データが存在していれば、その行をカレント行デー タに設定し、存在していなければ、新たな行データを生成して、行データ配列に追加 し、カレント行データに設定し、 SL31へ戻る。ここでの処理は、 SL29と同様である。 [0937] In SL32, if there is row data next to the current row, that row is set as the current row data. If not, new row data is generated and the row data array is created. Add, set to the current line data, and return to SL31. The processing here is the same as in SL29.
[0938] SL31、 SL32の処理で、画像要素の横幅が納まり切る配置可能な行が求まるまで 、繰り返し処理することになる。 [0938] Until processing of SL31 and SL32 finds a placeable line that fits the width of the image element Will be repeated.
[0939] SL36では、回り込み画像をカレント行に配置して、行データの配置可能開始位置 あるいは配置可能終了位置を更新して、 SL37へ処理が進む。  [0939] In SL36, the wraparound image is arranged on the current line, the arrangement start position or the arrangement end position of the line data is updated, and the process proceeds to SL37.
[0940] 画像要素の配置位置 (オフセット X)は、右端に配置させる画像要素(align= "righ t")ならば、  [0940] The image element placement position (offset X) is the image element to be placed at the right end (align = "righ t").
(オフセット X) = (配置可能終了位置) (画像要素の幅)  (Offset X) = (Possible ending position) (Image element width)
であり、左端に配置させる要素(align= "left")ならば、  And the element to be placed at the left end (align = "left"),
(オフセット X) = (配置可能開始位置)  (Offset X) = (Possible start position)
である。  It is.
[0941] 画像要素の配置位置を設定した後、カレント行の行データを更新する。右端に配 置させる画像要素(align= "right")ならば、  [0941] After setting the arrangement position of the image element, the line data of the current line is updated. If the image element to be placed at the right end (align = "right"),
(新しい配置可能終了位置) = (以前の配置可能終了位置) - (画像要素の幅) に、左端に配置させる要素(align= "left")ならば、  (New posable ending position) = (old possible ending position)-(image element width), if the element to be placed at the left end (align = "left"),
(新しい配置可能開始位置) = (以前の配置可能開始位置) + (画像要素の幅) に行データを更新する。これにより、行の画像部分には、他の要素が配置されなくな る。  Update the row data to (new start position) = (old start position) + (image element width). This prevents other elements from being arranged in the image portion of the row.
[0942] なお、 SL31で配置可能と判断されても、行の幅よりも大きな幅の画像要素は、どの 行でも収まりきることはできな 、ので、収まりきらな 、分は表示されな 、ことになる。  [0942] Note that even if it is determined that the image element can be arranged in the SL31, an image element having a width larger than the width of the line cannot be accommodated in any line. become.
[0943] SL33では、カレント要素がカレント行に追加配置可能かどうか判断し、可能ならば[0943] The SL33 determines whether the current element can be additionally placed on the current line, and if possible,
SL35へ進み、不可能ならば SL34へ進む。追加配置可能かどうかは、 Proceed to SL35, otherwise proceed to SL34. Whether additional placement is possible,
(次要素配置位置) + (カレント要素の幅)≤ (配置可能終了位置)  (Next element placement position) + (Current element width) ≤ (Placeable end position)
を満たす力どうかで判断する。つまり、次要素配置位置の右隣に、カレント要素が配 置できるだけの幅が残っているかどうかを判断する。  Judgment is based on the ability to satisfy That is, it is determined whether or not there is a sufficient width on the right of the next element arrangement position to arrange the current element.
[0944] SL34では、カレント行の次の行データが存在していれば、その行をカレント行デー タに設定し、存在していなければ、新たな行データを生成して、行データ配列に追加 し、カレント行データに設定し、 SL35へ進む。ここでの処理は、 SL29と同様である。 [0944] In SL34, if row data next to the current row exists, that row is set as the current row data. If not, new row data is generated and the row data array is created. Add, set to the current line data, and proceed to SL35. The processing here is the same as in SL29.
[0945] SL35では、カレント要素をカレント行の次要素配置位置に配置して、次要素配置 位置の値を更新して、 SL37へ進む。つまり、 (カレント要素のオフセット X) = (カレント行の次要素配置位置) [0945] In SL35, the current element is arranged at the next element arrangement position of the current line, the value of the next element arrangement position is updated, and the flow advances to SL37. That is, (Current element offset X) = (Next element placement position of current line)
と設定し、  And set
(新しいカレント行の次要素配置位置) = (以前のカレント行の次要素配置位置) + (カレント要素の幅)  (Next element placement position of new current line) = (Next element placement position of previous current line) + (Width of current element)
と更新する。  And update.
[0946] 配置処理を表示レイアウト的に表現すれば、例えば文字要素が配置される場合、 S L33で追加配置可能であれば、カレント行の末尾に文字が追加され、追加配置不可 能であれば、次の行の行頭に配置される、などという処理が行われる。  [0946] If the arrangement processing is expressed in terms of a display layout, for example, when a character element is arranged, if additional arrangement is possible with S L33, a character is added to the end of the current line, and if additional arrangement is not possible. , Is arranged at the beginning of the next line, and so on.
[0947] SL37では、次の表示レイアウト要素が生成表示レイアウト要素配列に存在するか どうか判断し、存在するのならば SL38へ進み、存在しないのならば、 SL39へ進む。  [0947] In SL37, it is determined whether or not the next display layout element exists in the generated display layout element array. If so, the process proceeds to SL38, and if not, the process proceeds to SL39.
[0948] SL38では、生成表示レイアウト要素配列中の次の表示レイアウト要素をカレント要 素に設定して、 SL27へ戻る。  [0948] In SL38, the next display layout element in the generated display layout element array is set as the current element, and the flow returns to SL27.
[0949] SL39では、部分データのブロック管理データの終了行、最終レイアウト行および処 理補助データ、並びに処理補助データの影響有無を設定して、表示レイアウト生成 処理を抜ける。  In SL39, the end row of the block management data of the partial data, the final layout row, the processing auxiliary data, and the presence / absence of the processing auxiliary data are set, and the display layout generation processing is exited.
[0950] 最後の要素がレイアウトされた行が最終レイアウト行であるから、最終レイアウト行と しては、カレント行を設定する。最終行には、この部分データの全てのレイアウト行中 の最後のレイアウト行を設定する。ブロック管理データの処理補助データには、ここで は図 48のように、処理補助データのインデックス番号(100— 108)を設定しておく。  [0950] Since the line in which the last element is laid out is the final layout line, the current line is set as the final layout line. For the last line, set the last layout line among all the layout lines of this partial data. In the processing auxiliary data of the block management data, an index number (100-108) of the processing auxiliary data is set as shown in FIG.
[0951] 図 43の処理補助データの影響有無については、最終レイアウト行が改行で終わつ ている場合は影響無し、改行で終わっていない場合は影響有りと設定する。最終レイ アウト行が改行で終わって 、るかどうかは、最終レイアウト行が改行属性を持って 、る カゝどうかで判断できる。  [0951] Regarding the influence of the processing auxiliary data in Fig. 43, if the final layout line ends with a line feed, there is no effect; if it does not end with a line feed, there is an effect. Whether or not the final layout line ends with a line feed can be determined based on whether or not the final layout line has a line feed attribute.
[0952] なお、影響有無として、改行だけでなぐ回り込み画像も考慮に入れる場合は、新た な行を回り込んでレイアウトできるような余地を残す力どうかで判断すればょ 、。最終 レイアウト行が終了行と一致する場合、次にレイアウト要素を追加する場合は、終了 行もしくは次の新たな行にレイアウトするしかないので、この場合は影響が無いと判断 する。最終レイアウト行と終了行が一致しない場合は、最終レイアウト行の次の行に 追加することが可能なので、影響があるとする。 [0952] In addition, when considering a wraparound image that can only be affected by line breaks as the presence or absence of an influence, it is necessary to judge whether or not there is enough room to wrap around a new line and lay out. If the final layout line matches the end line, the next time a layout element is added, the layout must be laid out on the end line or the next new line, so it is determined that there is no effect in this case. If the final layout line does not match the end line, the next line after the final layout line It is assumed that there is an impact because it can be added.
[0953] なお、図 44の影響部分データ (最前の影響部分データを表す)は、各部分データ の処理補助データの影響有無の項から求めることができる。あるブロックに影響を与 える最前の影響部分データを求めるには、着目している部分データより前の部分デ ータのブロック管理データの影響有無を順に見て、影響有がどこまで続 、て 、るかみ ればよい。  [0953] Note that the affected part data in Fig. 44 (representing the foremost affected part data) can be obtained from the section on the presence / absence of the processing auxiliary data of each partial data. In order to obtain the partial data before the one that affects a certain block, the influence of the block management data of the partial data before the partial data of interest is examined in order, and the extent of the influence continues. You only have to bite.
[0954] 例えば、着目して 、る部分データの影響有無が「無」だったら、その部分データは 前の部分データ力 影響を受けな 、ので、影響部分データはその部分データ自身と 設定しておけばよい(例えば、図 43の処理補助データ 104と図 44の処理補助データ 604との対応)。  [0954] For example, if attention is paid to the fact that the presence or absence of the influence of the partial data is "absent", the partial data is not affected by the previous partial data power, so the affected partial data is set as the partial data itself. (For example, the correspondence between the processing auxiliary data 104 in FIG. 43 and the processing auxiliary data 604 in FIG. 44).
[0955] また、例えば、着目して 、る部分データの影響有無が「有」で、 1つ前の部分データ の影響有無が「無」であれば、着目して 、る部分データの最前の影響部分データは 1 つ前の部分データとなる(例えば、図 43の処理補助データ 107と図 44の処理補助デ ータ 607との対応)。  [0955] For example, if the presence or absence of the influence of the partial data is "existent" and the presence or absence of the influence of the immediately preceding partial data is "absent", for example, The affected partial data is the previous partial data (for example, the correspondence between the processing auxiliary data 107 in FIG. 43 and the processing auxiliary data 607 in FIG. 44).
[0956] さらに例えば、着目している部分データおよび 1つ前の部分データの影響有無が「 有」で、 2つ前の部分データの影響有無が「無」になっていたら、その部分データの影 響部分データは 2つ前の部分データとなる(例えば、図 43の処理補助データ 103と 図 44の処理補助データ 603との対応)。  [0956] Further, for example, if the presence / absence of the partial data of interest and the previous partial data is "present" and the presence / absence of the previous partial data is "absent", the partial data The affected partial data is the previous partial data (for example, the correspondence between the processing auxiliary data 103 in FIG. 43 and the processing auxiliary data 603 in FIG. 44).
[0957] 以上の SL21から SL39の処理で、部分データの表示レイアウトが生成される。 [0957] The display layout of the partial data is generated by the processing from SL21 to SL39.
[0958] 図 47の例で表示レイアウト生成処理を説明すると、まず、カレント行が生成され、配 置可能開始位置と次要素配置位置が図 47の位置 502に、配置可能終了位置が位 置 504に設定される。次に最初の文字「H」がカレント要素となり、「H」の幅はカレント 行に収まるので、位置 502に配置される。次要素配置位置は、「H」の幅だけ増加し、 位置 503となる。次の文字「o」がカレント要素になり、位置 503に配置され、次要素配 置位置は位置 506となる。このようにして、最後の文字「?」が配置されて、次要素位 置は位置 507となる。 [0958] The display layout generation processing will be described with reference to the example of Fig. 47. First, a current line is generated, and the arrangement start position and the next element arrangement position are set to the position 502 in Fig. 47, and the arrangement end position is set to the position 504. Is set to Next, the first letter "H" becomes the current element, and the width of "H" fits on the current line, so it is placed at position 502. The next element arrangement position is increased by the width of “H” to be position 503. The next character "o" becomes the current element and is located at position 503, and the next element is located at position 506. In this way, the last character “?” Is arranged, and the next element position is position 507.
[0959] 部分データ 400では、その後、 brタグによる改行文字がカレント要素となり、カレント 行に改行属性を設定する (次要素配置位置を位置 504にする)。そして、新しい行が 生成され、その配置可能開始位置と次要素配置位置が位置 508に、配置可能終了 位置が位置 509に設定され、カレント行に設定される。なお図 47では、新しい行は矩 形 500の下の点線の矩形で表現している力 実際には高さは改行まで決定されない [0959] In the partial data 400, the line feed character by the br tag becomes the current element, and a line feed attribute is set for the current line (the next element arrangement position is set to position 504). And the new line The generated start position and the next element position are set at position 508, the end position is set at position 509, and the current line is set. In Figure 47, the new line is represented by the dotted rectangle below the rectangle 500.The height is not actually determined until a line break.
[0960] また、各文字要素の配置位置は、基本的には次要素配置位置で決めており、文字 要素間の距離は 0である。しかし、多くのワードプロセッサや印刷などでは、表示結果 を見やすくする為、カーユング調整とよばれる処理が行われることがある。カーユング 調整とは、改行が無い場合、行末の文字の横位置を前後の行と揃えるため、文字間 や単語間の距離を調節することである。これらの処理は、行の高さを求める処理など と同時に行うことができる。本発明では、カーユング調整は必須ではないが、改行に よる影響を考慮しない場合の不自然さを分力りやすくする為、表示処理結果の図は、 カー-ング調整後の表示レイアウトを使って 、る。 [0960] The arrangement position of each character element is basically determined by the next element arrangement position, and the distance between the character elements is zero. However, in many word processors and printing, a process called queuing adjustment may be performed to make the display result easier to see. Kayung adjustment means adjusting the distance between characters and words so that the horizontal position of the character at the end of a line is aligned with the previous and next lines when there is no line feed. These processes can be performed simultaneously with the process of obtaining the row height. In the present invention, queuing adjustment is not essential, but in order to make it easier to emphasize the unnaturalness when the effect of line breaks is not taken into account, the display processing results are shown using the display layout after kerning adjustment. RU
[0961] (処理例 2)  [0961] (Processing example 2)
図 53および図 54は、回り込み画像を持つ部分データ(例えば図 7Bの部分データ 4 06)力 表示レイアウトを生成する処理を説明する説明図である。  FIGS. 53 and 54 are explanatory diagrams illustrating a process of generating a partial data having a wraparound image (for example, the partial data 406 in FIG. 7B).
[0962] まず最初に新たな行 526を生成し、配置可能開始位置と次要素配置位置が位置 5 20に、配置可能終了位置が位置 522に設定される。  First, a new row 526 is generated, and an arrangement start position and a next element arrangement position are set to position 520, and an arrangement end position is set to position 522.
[0963] 部分データ 406の最初は IMGタグで、 align = "right"の回り込み画像なので、最 初に画像要素 528がカレント要素として処理される。右端に配置するので、画像要素 528の配置位置は、行 526の右端になるよう位置 521に決定される。これにより、配 置可能終了位置が位置 521に更新される。従って、この後の要素は、位置 520から 位置 521の間に配置される。  [0963] The first part of the partial data 406 is an IMG tag, and since it is a wraparound image with align = "right", first, the image element 528 is processed as the current element. Since the image element 528 is arranged at the right end, the arrangement position of the image element 528 is determined at the position 521 so as to be at the right end of the row 526. As a result, the operable end position is updated to the position 521. Thus, this subsequent element is located between position 520 and position 521.
[0964] その後、最初の文字要素「F」から文字要素「D」までが、 1文字ずつ配置される。文 字要素「D」を配置し終えた後で、次要素配置位置が、位置 521付近になったとする 。その次の文字要素「t」は、次要素配置位置(「D」の右端)と位置 521の間に収まり きらないとする。すると、次の行に配置せざるを得ない為、次の行 527を生成し、行 5 26の高さなどを設定する。  [0964] After that, the first character element "F" to the character element "D" are arranged one by one. It is assumed that after the character element “D” has been arranged, the next element arrangement position is near position 521. It is assumed that the next character element “t” does not fit between the next element arrangement position (the right end of “D”) and position 521. Then, the next row 527 is generated, and the height and the like of the row 526 are set, since the next row must be arranged.
[0965] 次に、行 527の配置可能開始位置と次要素配置位置が位置 523に、配置可能終 了位置がとりあえず位置 525に設定される。 [0965] Next, the arrangement start position and the next element arrangement position in row 527 are set to position 523, and the arrangement end position is set. The end position is temporarily set to position 525.
[0966] 行 526の高さは、回り込みの画像要素 528以外の文字要素中の最大の高さになる ので、図 53のように高さ LH1となる。この時、画像要素 528の高さは LH1より大きい ので、行 526に収まりきらない。従って、次の行 527に分割する。分割した状態が図 5 4である。画像要素 528を、行 526中の画像要素 529と、行 527中の画像要素 530に 分割している。画像要素 529の高さは LH1であり、画像要素 530の高さは、画像要 素 528の高さ力も LH1だけ引いたものである。また、画像の内容も画像要素 529は 上力も LH1分だけ、画像要素 530は上 LH1分を除いた残りとなっている。  [0966] Since the height of the line 526 is the maximum height of the character elements other than the wraparound image element 528, the height is LH1 as shown in FIG. At this time, since the height of the image element 528 is larger than LH1, it does not fit in the row 526. Therefore, it is divided into the next line 527. Fig. 54 shows the divided state. Image element 528 is split into image element 529 in row 526 and image element 530 in row 527. The height of the image element 529 is LH1, and the height of the image element 530 is the height of the image element 528 minus LH1. In the image content, the image element 529 also has an upper force of LH1 and the image element 530 has the remaining upper LH1.
[0967] 画像要素 530の配置位置は、画像要素 529同様、行の右端になるように位置 524 に決定される。そして、行 527の配置可能終了位置は位置 524に更新される。これに より、この後の要素は、位置 523から位置 524の間に配置される。  [0967] Similar to image element 529, the arrangement position of image element 530 is determined to be position 524 so as to be at the right end of the row. Then, the possible placement end position in row 527 is updated to position 524. This places the subsequent element between position 523 and position 524.
[0968] そして、行 526に配置できなかった文字要素「t」力 行 527の先頭位置 523に配置 される。これは、表示レイアウト的には、文字列が回り込み画像によって回り込んでレ ィアウトされることになる。  [0968] Then, character element "t" that could not be arranged on line 526 is arranged at the head position 523 of power line 527. This means that, in terms of display layout, a character string is wrapped around by a wraparound image and is laid out.
[0969] このようにして、回り込み画像の表示レイアウトが生成される。なお、図 53では、図 5 Bと比べると、回り込み画像の周囲に余白をとっていな力つたり、行間を考慮していな 力つたりする力 これは説明を簡単にする為であり、実際にはこれらの値も考慮して 処理する。  [0969] In this manner, the display layout of the wraparound image is generated. Note that in FIG. 53, as compared with FIG. 5B, the force that leaves no margin around the wraparound image or the force that does not take the line spacing into account is used. Is processed in consideration of these values.
[0970] (処理例 3)  [0970] (Processing example 3)
以上の例では、先頭力 順に表示レイアウトを得ていた力 次に、逆に下から表示 レイアウトを得る場合の例として、図 17Fの状態から、上に 1ページ分の範囲を表示さ せるとする。つまり、図 17Fの 2行目力も上に 1ページ分を新たに表示することになる 。なお、この状態では、部分データ 402から 405の表示レイアウトは、レイアウト保存 手段 27で保存されて ヽるとする。  In the above example, the display layout is obtained in the order of the top power.Next, as an example of obtaining the display layout from the bottom, the range of one page is displayed from the state of FIG. 17F. . In other words, the second line of FIG. 17F also displays a new page for one page. In this state, it is assumed that the display layouts of the partial data 402 to 405 are stored by the layout storage unit 27.
[0971] 図 55は、この時のレイアウト生成手段 25の処理順序を説明する説明図である。図 の点線の枠で示されている処理 706— 709は、カレント部分データを設定して行う図 50の一連の処理(S15)であり、処理 701— 705は、レイアウトの取得や生成の処理 であり、処理 706— 709の一部である。点線の枠が入れ子になっているのは、図 50 の S15A-4で再帰的に S15が呼び出される状態を意味する。各処理は、上から下に 順に処理されていくとする。なお、レイアウト生成手段 25が動作主体である力 以下 の説明では省略する。 [0971] Fig. 55 is an explanatory diagram for explaining the processing order of the layout generating means 25 at this time. Processes 706-709 indicated by a dotted frame in the figure are a series of processes (S15) in FIG. 50 performed by setting current partial data, and processes 701-705 are processes for acquiring and generating a layout. Yes, part of processing 706-709. Figure 50 shows the nested dotted frame. Means that S15 is called recursively in S15A-4. Each process is assumed to be processed from top to bottom. Note that the description below will not be repeated in the following description.
[0972] まず、所望の表示範囲が図 17Fの 2行目力 始まることに基づいて、図 17Fの 2行 目を含む部分データ 402が最初のカレント部分データとなる(図 49の S13)。そして、 部分データ 402の表示レイアウトを、分割の影響を考慮して取得する処理が開始さ れる(図 55の処理 706、図 49の S14、 S15)。  [0972] First, based on the fact that the desired display range starts on the second line in Fig. 17F, the partial data 402 including the second line in Fig. 17F becomes the first current partial data (S13 in Fig. 49). Then, the process of acquiring the display layout of the partial data 402 in consideration of the influence of the division is started (process 706 in FIG. 55, S14 and S15 in FIG. 49).
[0973] 部分データ 402の表示レイアウトを、分割の影響を考慮して取得するには、まず、 部分データ 402の表示レイアウトをレイアウト保存手段 27から得る(処理 701、図 50 の S15A-1)。図 17Fの 1行目力も 2行目までの高さを 1ページ分と比較する力 足り ないので、その前の部分データ 401の表示レイアウトが必要であることが分かる(S15 A— 2)。  [0973] To obtain the display layout of the partial data 402 in consideration of the influence of the division, first, the display layout of the partial data 402 is obtained from the layout storage unit 27 (process 701, S15A-1 in FIG. 50). Since the power of the first line in FIG. 17F is not enough to compare the height up to the second line with that of one page, it is understood that the display layout of the partial data 401 before that is necessary (S15A-2).
[0974] 部分データ 402に対応する図 43の処理補助データ 102から、部分データ 402は、 部分データ 401から影響を受けることが分かるので(S15A— 3)、部分データ 401の 表示レイアウトを、影響を考慮して取得する処理を開始する(処理 707、 S15A— 4)。  [0974] From the processing auxiliary data 102 in Fig. 43 corresponding to the partial data 402, it is known that the partial data 402 is affected by the partial data 401 (S15A-3). The process of acquiring the information is started in consideration (process 707, S15A-4).
[0975] カレント部分データを部分データ 401として、図 50の処理を再帰的に行う。部分デ ータ 401の表示レイアウトはレイアウト保存手段 27で保存されていないので、部分デ ータ 401の表示レイアウトを生成する(処理 702、 S15A— 1)。部分データ 401は、さ らに必要とされる部分データ 400 (S15A-2)から影響を受けないので、再帰的な処 理力 抜ける(S15A-3)。  [0975] The process in Fig. 50 is performed recursively with the current partial data as the partial data 401. Since the display layout of the partial data 401 is not stored in the layout storage unit 27, a display layout of the partial data 401 is generated (processing 702, S15A-1). Since the partial data 401 is not affected by the further required partial data 400 (S15A-2), the recursive processing power is lost (S15A-3).
[0976] この結果、部分データ 401の再帰的処理(S15A— 4)を終え、カレント部分データ( 部分データ 402)の表示レイアウトを、上記の処理 702で生成した部分データ 401の 表示レイアウトに続けて生成する(処理 703、 S15A— 5)。すなわち、部分データ 401 •402を一続きのデータとして処理する。この結果、レイアウト保存手段 27に保存され て 、る部分データ 402の表示レイアウトは更新される。  [0976] As a result, the recursive process (S15A-4) of the partial data 401 is completed, and the display layout of the current partial data (the partial data 402) is changed to the display layout of the partial data 401 generated in the above process 702. Generate (Process 703, S15A-5). That is, the partial data 401 and 402 are processed as a continuous data. As a result, the display layout of the partial data 402 stored in the layout storage unit 27 is updated.
[0977] カレント部分データ(部分データ 402)の前の部分データ 401は存在するので(図 4 9の S16)、部分データ 401をカレント部分データに設定する。 (S17)  [0977] Since there is partial data 401 before the current partial data (partial data 402) (S16 in Fig. 49), the partial data 401 is set as the current partial data. (S17)
S14力ら S17を繰り返し、部分データ 401 ·400の順に表示レイアウトを取得、生成 する(処理 708、 709)。部分データ 401 ·400は互いに影響を受けないので、ここで は再帰的な処理はされな 、。 Repeat S14 and S17 to acquire and generate display layout in the order of partial data 401 and 400 (Processing 708, 709). Since the partial data 401 and 400 are not affected by each other, no recursive processing is performed here.
[0978] 上に 1ページ分という指定だったので、 S19から S22の処理は行われず、所望の表 示範囲の表示レイアウトを取得する処理が終了し、表示処理が行われる (S23)。 [0978] Since one page is specified above, the processing from S19 to S22 is not performed, the processing for acquiring the display layout of the desired display range ends, and the display processing is performed (S23).
[0979] 図 55より、表示に使われるレイアウトの生成は、処理 702の部分データ 401、処理 7[0979] According to FIG. 55, the layout used for display is generated by the partial data 401 in processing 702 and the processing 7
03の部分データ 402、処理 705の部分データ 400、の順で行われている。このことか ら、部分データ 401の影響を考慮して、部分データ 402の処理結果を得るようになつ て!/、ることが半 IJる。 The partial data 402 of 03 and the partial data 400 of process 705 are performed in this order. From this, it is possible to obtain the processing result of the partial data 402 in consideration of the influence of the partial data 401!
[0980] こうして得られる最終的な表示は、図 18Bのようになる。図 17Fと比べると、「When」 の行が部分データ 401の最後の「glass.」と連続してレイアウトされている。これは、 必要な部分データ 401が部分データ 402に影響を与えるので、部分データ 402の表 示レイアウトを部分データ 401の表示レイアウトに連続してレイアウトされるように生成 し直した力 である。  [0980] The final display obtained in this way is as shown in Fig. 18B. Compared to FIG. 17F, the “When” line is laid out continuously with the last “glass.” Of the partial data 401. This is a force that regenerates the display layout of the partial data 402 so that the display layout of the partial data 401 is laid out continuously since the necessary partial data 401 affects the partial data 402.
[0981] これは、最終的には、ブロックデータ 401 ·402の順で生成するのと一緒である。つ まり、ブロックデータ 401とブロックデータ 402を一続きのデータとして処理したことに なる。これによつて、ブロック間の影響を無くして処理することができた。  [0981] This is the same as finally generating the block data 401 and 402 in this order. In other words, the block data 401 and the block data 402 are processed as a continuous data. As a result, the processing can be performed without the influence between blocks.
なお、「Each」の行は、レイアウトが変わってしまっているので、図 17Fの「Each」の 行から上に 1ページ分という指定は、正確にはバイト位置で指定する必要がある。例 えば、「Each」の前の要素のバイト位置を含む行から 1ページ分、という形である。  Note that the layout of the “Each” line has changed, so the specification of one page above the “Each” line in FIG. 17F must be specified in a byte position. For example, one page from the line containing the byte position of the element before "Each".
[0982] 部分データ 402の表示レイアウトを生成し直さずに処理するとすると、図 19Bのよう になる。図 18Bと比べると、部分データ 401の最後の「glass.」の後が改行のようにな つて、「When」が次の行の行頭に来てしまっている。これは HTMLデータで指定さ れている改行ではないので、誤りが表れた表示レイアウトである。これを言い換えれ ば、元データに含まれて 、な ヽデータが処理結果として表れた表示レイアウトとも言 い得るし、元データが、分割の影響で変質した結果としての表示レイアウトとも言い得 る。  [0982] If processing is performed without regenerating the display layout of the partial data 402, the result is as shown in Fig. 19B. Compared to FIG. 18B, the part after the last “glass.” Of the partial data 401 becomes a line break, and “When” comes to the beginning of the next line. Since this is not a line break specified in the HTML data, it is a display layout that shows errors. In other words, it can be called a display layout that is included in the original data and in which the data appears as a processing result, or a display layout that results from the original data being altered due to the influence of the division.
[0983] このように、直前の部分データの表示レイアウトに影響を受ける場合は、先に直前 の部分データの表示レイアウトを得て、それに続けて、部分データの表示レイアウトを 必要に応じて生成し直すことで、データの意味する内容が損なわれない表示レイァゥ トを得ることができる効果が出てくる。 [0983] As described above, when the display layout of the previous partial data is affected, the display layout of the previous partial data is obtained first, and then the display layout of the partial data is changed. By re-generating the data as needed, an effect is obtained in which a display layout can be obtained in which the meaning of the data is not impaired.
[0984] なお、図 18Bでは、最初の部分データ 400の表示レイアウトの上の部分が空いてし まっている。多くの WWWブラウザなどではこのような場合、部分データ 400の表示レ ィアウトを、表示範囲の先頭から表示し、「Each」の行以降に空きがあれば、その下 の表示レイアウトを表示することが多い。この場合、基準位置から上に pドット、下に q ドットの範囲、などという指定の仕方をするが、上に rドット (rく p)しか存在しない場合 は、下に最大(q+p— r)ドットの範囲で表示レイアウトを得るように、図 49の S14や S1 9で判断するようにすればょ 、。  [0984] In Fig. 18B, the upper part of the display layout of the first partial data 400 is empty. In such a case, many WWW browsers display the display layout of the partial data 400 from the beginning of the display range, and if there is a space after the “Each” line, the display layout below it can be displayed. Many. In this case, specify p dots above the reference position, q dots below, etc. If there are only r dots (r−p) above, the maximum (q + p− r) In order to obtain a display layout within the range of dots, the judgment should be made in S14 and S19 in FIG.
[0985] このような処理をすれば、図 18Bの表示は、図 18Cのような表示になる。前ページ めくりだけでなぐ次ページめくりで最後の部分データの表示レイアウトの下に空きが ある場合も、同様の考え方で、下方向の表示レイアウトで埋め合わせることができる。  [0985] By performing such processing, the display of FIG. 18B becomes a display as shown in FIG. 18C. If there is a space below the display layout of the last partial data when the next page is turned rather than just the previous page, the same view can be used to make up for the downward display layout.
[0986] (処理例 4)  [0986] (Processing example 4)
図 18Bの例では、部分データ 402の中のあるバイト位置を基準とした力 例えば、 部分データ 402、 403の表示レイアウトが保存されているとして、部分データ 403の 中のあるバイト位置を基準として上方向に 1ページ分を表示する場合の処理にっ ヽ て説明する。図 56は、この時の処理の処理順序を説明する説明図である。図 55同 様、処理 610— 617はレイアウトの取得や生成の処理であり、図の点線の枠で示され ている処理 618— 623は、カレント部分データを設定して行う図 50の一連の処理で ある。  In the example of FIG. 18B, the force based on a certain byte position in the partial data 402 is assumed. For example, assuming that the display layout of the partial data 402 and 403 is stored, the force is determined based on a certain byte position in the partial data 403. The process for displaying one page in the direction will be described. FIG. 56 is an explanatory diagram for explaining the processing order of the processing at this time. Similarly to FIG. 55, processes 610-617 are processes for acquiring and generating a layout, and processes 618-623 indicated by dotted frames in the figure are a series of processes in FIG. 50 performed by setting current partial data. It is.
[0987] 細かい処理については省略し、処理の流れだけ図 56に基づいて説明すると、まず 、処理 618で、部分データ 403をカレント部分データとして影響を考慮した表示レイ アウトの取得処理を開始する。具体的には、まず処理 610で部分データ 403の保存 されて 、る表示レイアウトを取得する。  [0987] Detailed processing will be omitted and only the processing flow will be described with reference to Fig. 56. First, in processing 618, display layout acquisition processing in which the partial data 403 is used as current partial data and the effect is taken into consideration is started. Specifically, first, in step 610, the display layout in which the partial data 403 is stored is obtained.
[0988] し力し、部分データ 403は部分データ 402に影響されるので、処理 619で、部分デ ータ 402をカレント部分データとして影響を考慮して表示レイアウトを取得する処理に 移行する。これにより、処理 611で部分データ 402の保存されている表示レイアウトを 取得する。 [0989] ところが、部分データ 402は、さらに部分データ 401に影響されるので、処理 620で 、部分データ 401をカレント部分データとして影響を考慮して表示レイアウトを取得す る処理に移行する。部分データ 401は部分データ 400から影響を受けないので、処 理 612で部分データ 401の表示レイアウトを生成して、処理 620を終える。 [0988] Since the partial data 403 is affected by the partial data 402, the process proceeds to a process 619 in which the partial data 402 is used as the current partial data and the display layout is acquired in consideration of the influence. Thereby, the display layout in which the partial data 402 is stored is acquired in the process 611. [0989] However, since the partial data 402 is further affected by the partial data 401, the process 620 shifts to a process of acquiring the display layout in consideration of the influence of the partial data 401 as the current partial data. Since the partial data 401 is not affected by the partial data 400, the display layout of the partial data 401 is generated in the process 612, and the process 620 ends.
[0990] 処理 619に戻り、処理 613で、部分データ 401の表示レイアウトに続けて部分デー タ 402の表示レイアウトを生成することにより、部分データ 402の表示レイアウトを生 成し直す。そして、保存されている部分データ 402の表示レイアウトを更新して、処理 619を終免る。次【こ、処理 618【こ戻り、処理 614で、咅分データ 402の表示レイアウト に続けて部分データ 403の表示レイアウトを生成することにより、部分データ 403の 表示レイアウトを生成し直す。そして、保存されている部分データ 403の表示レイァゥ トを更新し、処理 618を終える。  [0990] Returning to the process 619, the display layout of the partial data 402 is generated again by generating the display layout of the partial data 402 following the display layout of the partial data 401 in the process 613. Then, the display layout of the stored partial data 402 is updated, and the process 619 is omitted. Next, in step 618, in step 614, the display layout of the partial data 403 is generated again by generating the display layout of the partial data 403 following the display layout of the partial data 402. Then, the display layout of the stored partial data 403 is updated, and the process 618 ends.
[0991] 処理 621で、部分データ 402をカレント部分データとして影響を考慮した表示レイ アウトの取得を開始する。具体的には、処理 615で、部分データ 402の保存されてい るレイアウトを取得し、処理 621を終える。  [0991] In a process 621, acquisition of a display layout in consideration of the influence is started with the partial data 402 as current partial data. More specifically, in the process 615, the layout in which the partial data 402 is stored is acquired, and the process 621 ends.
[0992] 続いて、処理 622で、部分データ 401をカレント部分データとして影響を考慮したレ ィアウトの取得を開始する。具体的には、処理 616で、部分データ 401の保存されて いる表示レイアウトを取得し、処理 622を終える。  [0992] Subsequently, in a process 622, acquisition of a layout considering the influence of the partial data 401 as the current partial data is started. More specifically, in process 616, the display layout in which the partial data 401 is stored is acquired, and the process 622 ends.
[0993] 最後に、処理 623で、部分データ 400をカレント部分データとして影響を考慮したレ ィアウトの取得を開始する。具体的には、処理 617で、部分データ 400のレイアウトを 生成し、処理 623を終える。  [0993] Finally, in process 623, acquisition of a layout taking into account the influence of the partial data 400 as the current partial data is started. More specifically, in process 617, a layout of the partial data 400 is generated, and the process 623 ends.
[0994] このように、図 56より、表示レイアウトの生成は、処理 612の部分データ 401、処理 6 13の部分データ 402、処理 614の部分データ 403、処理 617の部分データ 400、の 順で行われている。すなわち、部分データ 401の影響力、部分データ 402に、部分 データ 402の影響力、部分データ 403に及ぶことを考慮して、それぞれの表示レイァ ゥトが生成されるようになって ヽる。  As described above, according to FIG. 56, the display layout is generated in the order of the partial data 401 of the process 612, the partial data 402 of the process 613, the partial data 403 of the process 614, and the partial data 400 of the process 617. Has been done. That is, each display layout is generated in consideration of the influence of the partial data 401 and the influence of the partial data 402 and the influence of the partial data 402 and the partial data 403.
[0995] このように、影響が 3つ以上の連続するブロック間に存在しても、影響を及ぼす部分 データを先に処理し、影響を受ける部分データの表示レイアウトをその後に続けて生 成し直すことで、データの意味する内容が損なわれな!/ヽ表示レイアウトを生成するこ とができる効果が出てくる。 [0995] In this way, even if the influence exists between three or more consecutive blocks, the affected partial data is processed first, and the display layout of the affected partial data is subsequently generated. Fixing does not impair the meaning of the data! / ヽ The effect that can be done comes out.
[0996] (処理例 5)  [0996] (Processing example 5)
図 55、図 56の例は、図 50の処理方法に基づく場合だ力 図 51の処理方法に基づ く場合は、多少、処理の仕方が変わる。図 57は、図 56の場合の所望の表示レイァゥ ト範囲を、図 51の処理方法に基づいて処理するときの処理手順を説明する説明図で ある。図 55同様、処理 630— 635はレイアウトの取得や生成の処理であり、図の点線 の枠で示されている処理 636— 639は、カレント部分データを設定して行う図 51の一 連の処理である。  The examples of FIGS. 55 and 56 are based on the processing method of FIG. 50. The processing method slightly changes when the processing method of FIG. 51 is based. FIG. 57 is an explanatory diagram illustrating a processing procedure when a desired display rate range in the case of FIG. 56 is processed based on the processing method of FIG. 51. As in FIG. 55, processes 630 to 635 are processes for acquiring and generating a layout, and processes 636 to 639 indicated by a dotted frame in the diagram are a series of processes in FIG. 51 performed by setting current partial data. It is.
[0997] まず、処理 636で、部分データ 403をカレント部分データとして影響を考慮した表 示レイアウトの取得を開始する。処理 636中で、部分データ 403に影響を与える最前 の部分データを求める(図 51の S15B— 1)。図 44の処理補助データ 603の影響部分 データの項より、部分データ 401が、部分データ 403に影響を与える最前の部分デ ータであることが分かる。  [0997] First, in process 636, acquisition of a display layout in consideration of the influence is started with the partial data 403 as current partial data. In processing 636, the foremost partial data affecting the partial data 403 is obtained (S15B-1 in FIG. 51). 44, it can be seen that the partial data 401 is the foremost partial data that affects the partial data 403.
[0998] そこで、処理 630、 631、 632で、部分データ 401、 402、 403の表示レイアウトを一 続きにして順に生成していき、生成した表示レイアウトをレイアウト保存手段 27に保 存して処理 636を終える。 [0998] Therefore, in processes 630, 631, and 632, the display layouts of the partial data 401, 402, and 403 are successively generated in succession, and the generated display layouts are stored in the layout storage unit 27 and processed 636. Finish.
[0999] 処理 637で、部分データ 402をカレント部分データとして影響を考慮して表示レイ アウトを取得する。つまり、処理 633で、部分データ 402の保存されている表示レイァ ゥトを取得し、処理 637を終える。 [0999] In the process 637, the display layout is acquired with the partial data 402 as the current partial data in consideration of the influence. That is, in the process 633, the display layout in which the partial data 402 is stored is acquired, and the process 637 ends.
[1000] 処理 638で、部分データ 401をカレント部分データとして影響を考慮して表示レイ アウトを取得する。つまり、処理 634で、部分データ 401の保存されている表示レイァ ゥトを取得し、処理 638を終える。 [1000] In the process 638, the display layout is acquired by taking the partial data 401 as the current partial data and considering the influence. That is, in the process 634, the display layout in which the partial data 401 is stored is acquired, and the process 638 ends.
[1001] 処理 639で、部分データ 400をカレント部分データとして影響を考慮して表示レイ アウトを取得する。処理 635で、部分データ 400の表示レイアウトを新たに生成し、処 理 639を終える。 [1001] In the process 639, the display layout is acquired with the partial data 400 as the current partial data taking into account the influence. In processing 635, a display layout of the partial data 400 is newly generated, and the processing 639 ends.
[1002] 図 57より、表示レイァ外の生成は、図 56同様、部分データ 401、 402、 403、 400 の順で行われている。  [1002] As shown in FIG. 57, the generation outside the display layer is performed in the order of the partial data 401, 402, 403, and 400 as in FIG.
[1003] 図 56と図 57を比べると、影響を与えるブロックを再帰的に求める力、最初に求めて 順に処理するか、の違いのように見える力 影響を与えるブロックを求める範囲が異 なる。図 50の処理では、 S15A— 2でそのブロックが必要かどうか判断することで、求 める範囲を、所望の表示レイアウト範囲内の表示レイアウトを有するブロックに限定し ている。図 51の処理では、求める範囲に限定が無い。 [1003] Comparing Fig. 56 and Fig. 57, the ability to recursively determine the blocks that affect Processed in order or looks like a difference. The range of finding blocks that affect the force is different. In the process of FIG. 50, the range to be obtained is limited to blocks having a display layout within a desired display layout range by determining whether or not the block is necessary in S15A-2. In the processing of FIG. 51, there is no limitation on the range to be obtained.
[1004] 例えば、所望の表示範囲に部分データ 403の表示レイアウトだけが含まれ、部分デ ータ 401、 402の表示レイアウトは含まれないとする。部分データ 403に影響を与える 部分データは、処理補助データ 603より、部分データ 401である。この時、図 50の処 理では、部分データ 403のレイアウトを取得するだけである。図 51では、部分データ 401、 402、 403の順にレイアウトを生成して、部分データ 403のレイアウトだけを使う [1004] For example, it is assumed that only the display layout of the partial data 403 is included in the desired display range, and the display layout of the partial data 401 and 402 is not included. The partial data affecting the partial data 403 is the partial data 401 from the processing auxiliary data 603. At this time, in the process of FIG. 50, only the layout of the partial data 403 is obtained. In FIG. 51, a layout is generated in the order of the partial data 401, 402, and 403, and only the layout of the partial data 403 is used.
[1005] どちらの処理結果も、 HTMLデータの表示レイアウトとしては、誤りが無ぐデータ の意味する内容が損なわれない。図 50の処理の利点としては、当面の表示には利 用しな 、範囲(部分データ 401、 402)のレイアウトを無駄に生成することが無 、点が あげられる。但し、少し上の部分を表示しょうとすると、部分データ 402に続いて、部 分データ 403のレイアウトを生成し直さな ヽと 、けなくなるので、その場合は生成し直 す分だけ、無駄な処理となる欠点がある。 [1005] Both processing results do not impair the meaning of the data without error as the display layout of HTML data. The advantage of the processing in FIG. 50 is that the layout of the range (partial data 401, 402) is not wasted, but is not used for the immediate display. However, if a slightly higher portion is to be displayed, the layout of the partial data 403 must be generated again after the partial data 402, and the layout will not be able to be generated. There is a disadvantage.
[1006] また、表示範囲によって、レイアウトが生成し直されることがあるので、表示設定は変 えていないのに、同じバイト位置の表示結果が変わってくることがある欠点もある。例 えば、図 17Fも図 18Bも HTMLデータの表示レイアウトとしては誤りが表れていない 力 (保存されている表示レイアウトが無い状態で)図 17Fの表示を行い、次に、その 上 1ページ分として図 18Bの表示を行うと、「Each」の部分の行内での X位置は互い に異なる。利用者によっては、このような変化は文章を追う上で不便であると感じるか もしれない。  [1006] Further, since the layout may be regenerated depending on the display range, there is a disadvantage that the display result at the same byte position may be changed even though the display setting is not changed. For example, in both Fig. 17F and Fig. 18B, there is no error in the display layout of HTML data. Force (with no saved display layout) is displayed as shown in Fig. 17F, and then one page is displayed. When the display in Fig. 18B is performed, the X positions in the line of the "Each" part are different from each other. Some users may find such changes inconvenient to follow the text.
[1007] 図 51の処理では、必ず最初に影響を与えるブロック力も所望のブロックまでの表示 レイアウトを生成し、その中から所望の表示範囲の表示レイアウトを取り出すので、表 示範囲によって上記のような X位置が異なる問題は起こらないという利点がある。  [1007] In the processing shown in FIG. 51, the display layout of a desired display range is extracted from the display layout up to a desired block without fail, and the above-described display layout of a desired display range is extracted from the display layout. There is an advantage that the problem of different X positions does not occur.
[1008] 図 50の処理も、図 51の処理も、互いに利点、欠点があるので、目的に応じて使い 分ければよい。 [1009] なお、図 50の S15A— 5や、図 51の S15B— 1で、部分データの表示レイアウトを生 成している力 不必要な生成処理を省略することも可能である。例えば、各ブロックの 表示レイアウトが、前のブロックに続けて生成したものかどうかを判断する「連続生成 フラグ」の項を、ブロック管理データに持たすという方法が考えられる。連続生成フラ グの項から、前のブロックに続けて生成していることが判断できれば、図 50の S15A— 5で、部分データの表示レイアウトを生成する必要はない。すなわち、保存されている 表示レイアウトを使えばよい。 [1008] Both the processing in Fig. 50 and the processing in Fig. 51 have advantages and disadvantages, and thus may be used properly according to the purpose. [1009] In S15A-5 of FIG. 50 and S15B-1 of FIG. 51, unnecessary generation processing for generating the display layout of the partial data can be omitted. For example, a method of having a “continuous generation flag” item for determining whether the display layout of each block is generated following the previous block in the block management data is conceivable. If it can be determined from the continuous generation flag section that data is generated following the previous block, there is no need to generate a partial data display layout in S15A-5 in FIG. In other words, the saved display layout can be used.
[1010] 但し、 S15A— 4の再帰処理で、前の部分データのレイアウトが生成し直された場合 は、その次のブロック管理データの連続生成フラグの項をクリアする必要がある。なお 、その後の隣り合うブロック管理データでも連続生成フラグの項が立っている場合は、 全てクリアする必要がある。そして、 S15A-5で生成し直す場合は、連続生成フラグ の項を立てるように設定する。  [1010] However, when the layout of the previous partial data is regenerated by the recursive processing of S15A-4, it is necessary to clear the term of the continuous generation flag of the next block management data. If the continuous generation flag is set also in the subsequent block management data, it is necessary to clear all the items. Then, when re-generating in S15A-5, a setting is made so as to raise the item of the continuous generation flag.
[1011] 各ブロックの表示レイアウトが、前のブロックに続けて生成したものかどうかを判断す る情報を持たすことで、レイアウトの不必要な生成処理を行わなくて済むと 、う効果が 出てくる。  [1011] By providing information for determining whether or not the display layout of each block is generated following the previous block, unnecessary processing of layout can be avoided, which is effective. come.
[1012] (処理例 6)  [1012] (Processing example 6)
以上の例では、ブロック間の影響について、主に改行に伴う影響の例で説明してき た力 画像の回り込みの場合でも処理の仕方は同様である。図 19Eは、部分データ 4 07中の「One such」の部分から 1ページ分、下の範囲を表示させた例である。部分 データ 407からレイアウトを生成するので、表示はされていないが、 rsharp is」から 始まる部分が行頭に配置されているのが分かる。  In the above example, the processing method is the same for the influence between blocks, mainly in the case of the wraparound of the force image described in the example of the effect of the line feed. FIG. 19E shows an example in which the lower range of one page from the “One such” part in the partial data 407 is displayed. Since the layout is generated from the partial data 407, it is not displayed, but it can be seen that the part starting with "rsharp is" is located at the beginning of the line.
[1013] 図 19Cは、図 19Eの表示されている最初の行から、 1ページ分上の範囲を表示さ せた例である。図 19Eの表示されている最初の行は、図 7Bの部分データによれば、 部分データ 407に含まれている。さらに、図 44の処理補助データによれば、部分デ ータ 407は、部分データ 406の影響を受ける。そこで、本発明の手法に基づき、部分 データ 406— 407を一続きのデータとして扱うことによって、表示レイアウトが生成し 直される。この結果、部分データ 407については、画像の回り込み部分に、部分デー タ 406の表示レイアウトに続く形で、「Sharp is」から始まる部分が配置されている。 [1014] なお、 1ページ分のレイアウトの不足を補うために、部分データ 405もレイアウトされ ている。 [1013] FIG. 19C is an example in which a range one page higher than the first line displayed in FIG. 19E is displayed. The first line displayed in FIG. 19E is included in the partial data 407 according to the partial data in FIG. 7B. Further, according to the processing auxiliary data of FIG. 44, the partial data 407 is affected by the partial data 406. Then, based on the method of the present invention, the display layout is regenerated by treating the partial data 406-407 as a continuous data. As a result, with respect to the partial data 407, a portion starting with “Sharp is” is arranged in the wraparound portion of the image, following the display layout of the partial data 406. [1014] The partial data 405 is also laid out to make up for the lack of layout for one page.
[1015] 図 19Cも図 19Eも、 HTMLデータの表示レイアウト結果としてはどちらにも誤りは表 れて 、ず、元データの意味する内容が損なわれて ヽな 、。  [1015] In both FIG. 19C and FIG. 19E, no error appears as the display layout result of the HTML data, and the meaning of the original data is impaired.
[1016] 図 19Dは、図 19C同様、図 19Eの表示されている最初の行から、 1ページ分上の 範囲を表示させた例である力 本発明のように部分データ 407のレイアウトを生成し 直さずに、部分データ 406のレイアウトと単純に繋げた例である。図 19Dを図 19Cと 比べると、部分データ 406の表示結果が部分データ 407の表示結果に影響を与える ことを考慮していないために、部分データ 406の表示レイアウトと、部分データ 407の 表示レイアウトとは、それぞれ単独に処理されている。このために、画像の回り込み部 分が空いてしまって、部分データ 407の内容力 画像の下端を含む行の次の行、言 V、換えれば、部分データ 406の表示レイアウト範囲の次に配置される行の行頭力 レ ィアウトされている。このような空白や改行は、元の HTMLデータでは指定されてい ないので、表示結果に誤りが発生しており、表示結果として元データの意味する内容 が損なわれている。  [1016] FIG. 19D shows an example of displaying a range one page higher than the displayed first line of FIG. 19E, similarly to FIG. 19C. A layout of partial data 407 is generated as in the present invention. This is an example in which the layout is simply connected to the layout of the partial data 406 without correction. When comparing FIG. 19D with FIG. 19C, the display layout of the partial data 406 and the display layout of the partial data 407 are not considered because the display result of the partial data 406 does not affect the display result of the partial data 407. Are processed independently. For this reason, the wraparound portion of the image is vacant, and the content of the partial data 407 is located next to the line including the lower end of the image, that is, the word V, in other words, next to the display layout range of the partial data 406. The head of the line is laid out. Since such blanks and line feeds are not specified in the original HTML data, an error has occurred in the display result, and the meaning of the original data has been lost as a display result.
[1017] このように、画像の回り込みを考慮して、必要に応じてレイアウトを生成し直すことで 、図 19Dのような誤りが表れた表示結果を生成することを防ぐ効果が出てくる。  [1017] As described above, by regenerating the layout as necessary in consideration of the wraparound of the image, an effect of preventing the generation of a display result in which an error appears as shown in Fig. 19D can be obtained.
[1018] なお、画像の回り込みは、改行と異なり、後に続く複数のブロックに影響を与える可 能性のある点が異なる。処理補助データの影響に関する情報を生成する際も、この 点を考慮して、直前のブロックだけでなぐそれより前の部分データの影響がある場 合も影響が有ると判断する必要がある。  [1018] Note that the wraparound of an image differs from a line feed in that it may affect a plurality of subsequent blocks. When generating information on the effects of processing auxiliary data, it is necessary to consider this point and determine that there is an effect even if there is an effect of partial data that is earlier than the previous block.
[1019] その際、問題として、画像の回り込みは、影響を与える部分データの範囲がはっきり と分かりにくい場合がある。例えば、画像の大きさが変わらないとして、基準となる文 字の大きさを変えるとすると、画像に回り込んでレイアウトされる部分データがどこまで なの力決めかねる時がある。 HTMLデータでは、画像の回り込みを解除するタグな どもあるので、そのようなタグが出てくれば、影響はそこまでであることがはっきりする 力 そうでない場合は、原理的には、最後の部分データまで影響があり得るということ になってしまう。これでは影響を与える範囲が広すぎて、部分データを使って処理す ることによる、高速、省リソースなどの利点が失われてしまう問題がある。 [1019] At that time, there is a problem that the range of the partial data affecting the wraparound of the image is difficult to understand clearly. For example, if the size of the reference character is changed, assuming that the size of the image does not change, there is a case where the partial data laid out around the image cannot determine the power. In HTML data, there are tags that cancel the wrap around of the image, so if such tags come out, it is clear that the effect is up to that force. It means that even data can be affected. This has too large a range of effects, and will be processed using partial data. Therefore, there is a problem that advantages such as high speed and resource saving are lost.
[1020] 本発明では処理補助データは予め生成されている前提である力 ここでは、処理 補助データに頼らな ヽ対応方法にっ ヽて説明する。  [1020] In the present invention, it is assumed that processing auxiliary data is generated in advance. Here, a description will be given of a corresponding method that does not rely on processing auxiliary data.
[1021] 影響に関して、処理補助データに頼らないとすると、実際にレイアウトを取得してみ て、影響があるかどうか判断するしかない。具体的には、図 50の S15A— 3における「 直前のブロックに影響されるかどうか」の判断で、直前の部分データのレイアウトを取 得する、あるいは部分データ自体を調べて、画像の回り込みがあるかどうか、画像の 回り込みがその部分データ中の文字要素などだけでは回り込みが終わっていないか どうか、などを判断すればよい。  [1021] If you do not rely on the processing assistance data for the effects, you have to actually obtain the layout and determine whether there is any effect. Specifically, in the determination of “whether affected by the immediately preceding block” in S15A-3 in FIG. 50, the layout of the immediately preceding partial data is obtained, or the partial data itself is examined, and there is an image wraparound. It is necessary to determine whether or not the wraparound of the image is completed only by the character elements in the partial data.
[1022] あるいはもっと簡便な方法として、 S15A— 1で、カレント部分データのレイアウトを得 たら、画像の回り込みがその部分データ中の文字要素などだけでは回り込みが終わ つていないかどうかを判断し、終わっていな力つたら、後の部分データの保存してある 表示レイアウトをクリアしてしまえばよい。それにより、後の部分データの表示レイァゥ トが続 、て生成されることが保証されるので、回り込みが不連続になることはな!/、。  [1022] Alternatively, as a simpler method, after obtaining the layout of the current partial data in S15A-1, it is determined whether the wraparound of the image is not completed only by the character elements in the partial data, etc. If you're not finished, you can clear the display layout that saves the partial data later. As a result, it is guaranteed that the display layout of the subsequent partial data will be continued and generated, so that the wraparound will not be discontinuous!
[1023] 回り込みが終わっていないかどうかの判断は、レイアウトデータの生成の仕方によつ て異なってくる。上に述べた説明では、回り込み画像を、複数の回り込み行に対応さ せて、複数の表示レイアウト要素 (IMG)に分割すると説明した。そして、分割した表 示レイアウト要素は、回り込み画像であることを示すフラグをつけると説明した。  [1023] The determination as to whether or not the wraparound is over depends on the method of generating the layout data. In the above description, it has been described that the wraparound image is divided into a plurality of display layout elements (IMG) corresponding to a plurality of wraparound rows. It has been described that the divided display layout elements are flagged to indicate a wraparound image.
[1024] 従って、ある部分データの最初の行をレイアウトするときに、回りこみ画像であること を示すフラグを持つ表示レイアウト要素が、直前の部分データに属する前の行力 続 いているかどうかを見れば、回り込み画像のレイアウトが、直前の部分データ中で終 わって 、な 、かどうかを判断できる。  [1024] Therefore, when laying out the first line of a certain partial data, check whether the display layout element with the flag indicating that it is a wraparound image continues to be the same as the previous partial data. For example, it can be determined whether or not the layout of the wraparound image ends in the immediately preceding partial data.
[1025] 図 19Cは、部分データ 405、 406のレイアウトを生成し終えた状態のレイアウトであ る力 部分データ 406の最終レイアウト行は、 8行目(more than keeping pace) となる。 8行目には、回り込み画像のフラグを持つ表示レイアウト要素が前の行力も続 いているので、部分データ 407のレイアウトを開始するときに、回り込みが終わってい ないと判断できる。  [1025] FIG. 19C shows the layout in which the layout of partial data 405 and 406 has been completely generated. The final layout row of partial data 406 is the eighth row (more than keeping pace). In the eighth line, since the display layout element having the wraparound image flag continues the previous running force, when starting the layout of the partial data 407, it can be determined that the wraparound has not ended.
[1026] 本発明では、主に後の部分データの処理結果に、前の部分データの処理結果が 影響を与える場合について説明した力 逆に、前の部分データの処理結果に、後の 部分データの処理結果が影響を与える場合も、同様の考え方で処理できる。あるい は、影響を与える方向が一方向に決まっておらず、前後両方向ある場合でも、両方 向に対して影響を調べて、処理し直すなどの方法をとればょ 、。 [1026] In the present invention, the processing result of the preceding partial data is mainly different from the processing result of the subsequent partial data. Power explained in case of influence Conversely, when the processing result of the previous partial data affects the processing result of the previous partial data, the same concept can be applied. Alternatively, if the direction of influence is not fixed in one direction, and there are both front and rear directions, check the effects in both directions and re-process.
[1027] 上記で述べた方法につ!、ては、ここで述べた組み合わせだけに限らず、あらゆる組 み合わせが可能である。  [1027] Regarding the method described above, not only the combination described here, but also any combination is possible.
[1028] なお、本発明が対象とするデータと、例えば MPEG形式のデータなどとの処理方 法の違いについては、(実施の第一形態)で既に説明したとおりである。 [1028] The difference in the processing method between the data targeted by the present invention and, for example, the data in the MPEG format or the like has already been described in the first embodiment.
[1029] また、本発明の目的は、前述した各実施形態の機能を実現するソフトウェアのプロ グラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあ るいは装置のコンピュータ(または CPUや MPU)が記憶媒体に格納されたプロダラ ムコードを読み出し実行することによつても、達成されることは言うまでもない。 [1029] An object of the present invention is to provide a storage medium storing program codes of software for realizing the functions of the above-described embodiments to a system or an apparatus, and to provide a computer (or a computer) of the system or the apparatus. Needless to say, this can be achieved by reading and executing the program code stored in the storage medium by the CPU or MPU.
[1030] この場合、記憶媒体力 読み出されたプログラムコード自体が前述した各実施形態 の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を 構成することになる。 [1030] In this case, the readout program code itself implements the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention.
[1031] プログラムコードを供給するための記憶媒体としては、例えば、フロッピディスク,ハ ードディスク,光ディスク,光磁気ディスク,磁気テープ,不揮発性のメモリカード,等 を用いることができる。  [1031] As a storage medium for supplying the program code, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a magnetic tape, a nonvolatile memory card, and the like can be used.
[1032] また、上記プログラムコードは、通信ネットワークのような伝送媒体を介して、他のコ ンピュータシステム力も端末の記憶部へダウンロードされるものであってもよい。  [1032] In addition, the above-mentioned program code may be a program in which other computer system power is also downloaded to the storage unit of the terminal via a transmission medium such as a communication network.
[1033] また、コンピュータが読み出したプログラムコードを実行することにより、前述した実 施形態の機能が実現されるだけでなぐそのプログラムコードの指示に基づき、コンビ ユータ上で稼働して 、る OS (オペレーティングシステム)などが実際の処理の一部ま たは全部を行 ヽ、その処理によって前述した各実施形態の機能が実現される場合も 含まれることは言うまでもな!/、。  [1033] In addition, the computer executes the readout program code, so that not only the functions of the above-described embodiment are realized, but also the OS ( It is needless to say that an operating system) performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments! /.
[1034] さらに、記憶媒体力も読み出されたプログラムコード力 コンピュータに挿入された 機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込 まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ュ ニットに備わる CPUなどが実際の処理の一部または全部を行い、その処理によって 前述した各実施形態の機能が実現される場合も含まれることは言うまでもない。 [1034] Further, the program code read from the storage medium is written into the memory provided on the function expansion board inserted into the computer or the function expansion unit connected to the computer, and then, based on the instructions of the program code, The function expansion board or function expansion It goes without saying that a CPU or the like provided in the unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.
[1035] 本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明したフロー チャートに対応するプログラムコードを格納することになる。  [1035] When the present invention is applied to the storage medium, the storage medium stores program codes corresponding to the flowcharts described above.
[1036] なお、本発明のデータ処理方法は、所望の部分データ中の一部の部分データの 処理を行う際、前記影響検出ステップで影響が検出され、かつ、検出対象の部分デ ータが所望の部分データに含まれる場合は、検出対象の部分データ力 所望の部 分データまでの範囲を一続きのデータとして処理することを特徴としてもよい。  [1036] According to the data processing method of the present invention, when processing partial data in desired partial data, the influence is detected in the influence detecting step, and the partial data to be detected is not detected. If the data is included in the desired partial data, the range of the partial data to be detected and the desired partial data may be processed as a continuous data.
[1037] 「所望の部分データ中の一部の部分データ」とは、所望の部分データが複数あり、 その中のいくつかの部分データという意味で、部分データ単位の話である。部分デ ータをさらに分割したデータという意味ではない。  [1037] The "partial data in the desired partial data" is a unit of partial data in the sense that there are a plurality of desired partial data and some of them are partial data. It does not mean that the partial data is further divided data.
[1038] 影響検出ステップで、所望の部分データ中の一部の部分データの処理結果に影 響を与える部分データを検出する対象として、所望の部分データ中のその部分デー タ以外の部分データを使う。つまり、所望の部分データ間の影響は考慮し、所望の部 分データ以外の部分データの影響は無視することになる。  [1038] In the influence detection step, partial data other than the desired partial data in the desired partial data is detected as a target for detecting partial data that affects the processing result of the partial data in the desired partial data. use. That is, the influence between the desired partial data is considered, and the influence of the partial data other than the desired partial data is ignored.
[1039] 部分データは、単独で処理可能なデータなので、その処理結果を単独で利用する 分には問題はなぐ複数の部分データの処理結果を利用する場合に、影響が問題と なってくる。複数の部分データの間で影響を考慮して処理するのならば、その複数の 部分データの処理結果だけを利用するのならば、問題はないことになる。つまり、そ の複数の部分データが、大きな 1つの部分データを構成していると考えればよい。こ の大きな部分データの処理結果を、他の部分データの処理結果と一緒に利用すると 、影響が存在する力もしれないが、大きな部分データ単独で利用するのは問題はな い。  [1039] Since partial data is data that can be processed independently, there is no problem in using the processing result alone. When using the processing results of multiple partial data, the effect becomes a problem. If processing is performed taking into account the effects among multiple partial data, there is no problem if only the processing results of the multiple partial data are used. In other words, it can be considered that the plurality of partial data constitute one large partial data. If the processing result of the large partial data is used together with the processing results of the other partial data, the influence may exist, but there is no problem in using the large partial data alone.
[1040] これによつて、利用する範囲においては、影響を考慮して処理されているので、所 望の部分データの処理結果は問題なぐまた、所望の部分データ以外の部分データ の処理はする必要がなくなるので、余計な処理をしなくて済むという効果が出てくる。  [1040] As a result, since the processing is performed in consideration of the influence in the range to be used, the processing result of the desired partial data is not a problem, and the processing of the partial data other than the desired partial data is performed. Since there is no need, there is an effect that unnecessary processing is not required.
[1041] 本発明に係るデータ処理方法は、部分データの処理結果力 所望の処理結果に 含まれるかどうかを判断する部分データ必要性判断ステップを有し、前記部分データ 必要性判断ステップの判断を使って、所望の処理結果から所望の部分データを求め ることを特徴としてもよい。 [1041] The data processing method according to the present invention includes a partial data necessity determining step of determining whether or not the partial data processing result power is included in a desired processing result. It may be characterized in that desired partial data is obtained from a desired processing result by using the determination in the necessity determining step.
[1042] 各部分データに対して、部分データ必要性判断ステップで、その処理結果が所望 の処理結果に含まれるかどうかを判断する。含まれるならその部分データは所望の 部分データであると判断し、含まれないなら所望の部分データでないと判断する。こ れにより、所望の処理結果から、必要最低限の所望の部分データが得られる。  [1042] For each partial data, in the partial data necessity determination step, it is determined whether or not the processing result is included in a desired processing result. If it is included, it is determined that the partial data is the desired partial data, and if it is not included, it is determined that it is not the desired partial data. As a result, the required minimum required partial data is obtained from the desired processing result.
[1043] 一般に、ユーザにとって必要なのは、処理結果であり、部分データではない。また、 電子データがどのように分割されて部分データができて 、るかは、一般にユーザは 知らないことが多い。従って、ユーザからは、所望する部分データではなぐ所望する 処理結果の範囲で与えられる方が自然である。例えば電子データが電子書籍ならば 、何ページから何ページまでという処理結果の範囲であり、動画データならば、何分 力 何分と 、う処理結果の範囲である。  [1043] Generally, what the user needs is the processing result, not the partial data. In general, the user often does not know how the electronic data is divided into partial data. Therefore, it is more natural for the user to give a desired processing result range than a desired partial data. For example, if the electronic data is an electronic book, the range of the processing result is from what page to what page. If the electronic data is the moving image data, the range is the processing result of what component.
[1044] これによつて、ユーザが電子データの一部の処理結果を得た!/、際、部分データの 存在を意識することなぐ自然に指定することができるという効果が出てくる。  [1044] As a result, there is an effect that the user can obtain the processing result of a part of the electronic data! /, And can specify the data naturally without being aware of the existence of the partial data.
[1045] また、所望の処理結果から、必要最低限の所望の部分データが得られるので、処 理量を必要最低限にすることができるという効果も出てくる。  [1045] In addition, since the required minimum required partial data can be obtained from the desired processing result, there is an effect that the processing amount can be minimized.
[1046] 本発明のデータ処理方法は、先に処理する部分データを新たな所望の部分データ とし、処理を繰り返すことを特徴としてもよい。  [1046] The data processing method of the present invention may be characterized in that partial data to be processed first is set as new desired partial data and the processing is repeated.
[1047] 影響が検出された時点で、先に処理する部分データを新たな所望の部分データと する。するとその新たな部分データの処理を行う際、その新たな部分データの処理結 果に影響を与える部分データが存在すれば、その部分データの処理を先に行う。  [1047] When the influence is detected, the partial data to be processed first is set as new desired partial data. Then, when processing the new partial data, if there is partial data that affects the processing result of the new partial data, the processing of the partial data is performed first.
[1048] このような繰り返し処理を、影響を与えな 、部分データまで行うことで、影響を与え る部分データから順に、影響を与える順番で、処理を行うことができるようになる効果 が出てくる。  [1048] By performing such repetitive processing up to the partial data without affecting, there is an effect that the processing can be performed in the order of the influence, starting from the partial data having the effect. come.
[1049] 本発明に係るデータ処理方法は、前記影響検出ステップで、保持して!/、る所望の 部分データの処理結果が、影響を与えられる部分データの処理結果に影響を受け て処理された場合は、影響を検出しな!ヽことを特徴としてもよ!ヽ。  [1049] In the data processing method according to the present invention, in the influence detecting step, the processing result of the desired partial data to be retained is processed by being affected by the processing result of the partial data to be affected. If it does, the effect may not be detected!
[1050] 処理結果を記憶手段などに保持する際、その処理が影響を受けて処理されたかど うかの情報も別途保持しておく。そして、影響検出ステップで影響を検出する際、検 出対象の部分データの処理結果が保持されて!、る場合は、その処理が影響を受け て処理された力どうかの情報を見て、影響を受けて処理されている場合は、影響を検 出しないことにする。 [1050] When storing the processing result in storage means, etc., whether the processing was affected and processed Information is also stored separately. When the effect is detected in the effect detection step, the processing result of the partial data to be detected is retained! If it has been processed in response to a request, no impact will be detected.
[1051] これによつて、影響を考慮して処理された処理結果と同じ処理結果が、無駄に再度 処理されて得られることを防ぐ効果が出てくる。  [1051] This has an effect of preventing the same processing result as the processing result processed in consideration of the influence from being obtained by being processed again and again in vain.
[1052] 本発明に係るデータ処理方法は、電子データが複数に分割されたデータであり、 単体で処理してもデータの意味する内容が損なわれな!/、処理結果が得られるデータ である部分データを用いて所定の処理を行うデータ処理方法であって、所望の部分 データの処理結果に影響を与える処理結果を生成する最前あるいは最後の部分デ ータを検出する最前部分データ検出ステップを有し、前記最前部分データ検出ステ ップで検出される部分データから、所望の部分データまで、一続きのデータとして処 理することを特徴としてもょ ヽ。  [1052] The data processing method according to the present invention is data in which electronic data is divided into a plurality of pieces, and even if it is processed alone, the meaning of the data is not impaired! A data processing method for performing a predetermined process using partial data, comprising: a front-end partial data detection step of detecting a front or last partial data for generating a processing result affecting a processing result of a desired partial data. And processing as partial data from partial data detected in the preceding partial data detection step to desired partial data.
[1053] 上述した繰り返し処理する方法、すなわち、所望の部分データの前後の処理結果 の影響を調べて、影響がある場合、先に処理する部分データを新たな所望の部分デ ータとして、繰り返し処理する方法同様、高速、省リソースで処理できるという部分デ ータの処理の利点をできるだけ損なわずに、部分データの処理結果が影響し合う場 合に、各部分データの処理結果の繋がりが悪くならないように部分データを処理する ことができる効果はもちろんある。  [1053] The above-mentioned iterative processing method, that is, the effect of the processing result before and after the desired partial data is examined, and if there is an effect, the previously processed partial data is repeatedly set as new desired partial data. Similar to the processing method, if the processing results of the partial data influence each other without deteriorating the advantage of the processing of the partial data that can be processed at high speed and with resource saving, the connection of the processing results of each partial data is poor. Of course, there is an effect that partial data can be processed so as not to be lost.
[1054] それ以外の効果などについて説明すると、上述した繰り返し処理する方法に比べ て、部分データの処理のし直しが無くなるので、無駄な処理を省くことができる利点が 出てくる。  [1054] Explaining other effects and the like, compared to the above-described repetitive processing method, there is no need to perform the processing of the partial data again, so that there is an advantage that unnecessary processing can be omitted.
[1055] また、限定された範囲の部分データの影響しか考慮して 、な 、場合、考慮する範 囲が変われば、同じ部分データであっても、処理結果が変わってきてしまう。例えば、 スクロールバーを使って処理結果をスクロールして表示するような場合、スクロール位 置によって、影響を考慮する範囲が変わるとすると、スクロールバーの操作具合によ つて、同じ電子データの処理結果が異なって表示されてしまうことになる。本発明で は、所望部分データの範囲に関わらず、常に全ての影響を考慮した処理結果が生 成される。従って、同じ部分データならば、常に同じ処理結果が得られることになる効 果が出てくる。先のスクロールバーの例で言えば、スクロールバーをどのように操作し ようと、同じ電子データの処理結果は常に同じ表示となる。 [1055] Also, taking into account only the influence of the partial data in the limited range, if the range to be considered changes, the processing result changes even for the same partial data. For example, if the processing result is scrolled and displayed using a scroll bar, and if the range in which the effect is considered changes depending on the scroll position, the processing result of the same electronic data will vary depending on the operation of the scroll bar. It will be displayed differently. In the present invention, a processing result that always considers all effects is generated regardless of the range of desired partial data. Made. Therefore, if the same partial data is used, the same processing result can always be obtained. Speaking of the scroll bar example above, no matter how the scroll bar is operated, the processing result of the same electronic data will always be displayed the same.
[1056] なお、検出する最前、最後の部分データの範囲を、例えば所望の部分データ内に 限定するなどすれば、上記の常に同じ処理結果が得られる利点は失われしまうが、 当面必要な処理結果と関係な 、部分データを処理しなくて済むので、処理量が減る 利点が出てくる。なお、最前、最後の部分データの範囲を限定したとしても、上述した 繰り返し処理する方法よりも処理量が少なくなる利点はそのままである。  [1056] Note that if the range of the last partial data before and after the detection is limited to, for example, a desired partial data, the advantage that the same processing result is always obtained is lost. Since there is no need to process partial data related to the result, there is an advantage that the amount of processing is reduced. Even if the range of the first and last partial data is limited, the advantage that the amount of processing is smaller than that of the above-described repetitive processing method remains as it is.
[1057] 本発明に係るデータ処理方法は、上記の課題を解決するために、電子データが階 層構造あるいは順序構造あるいはそれらの組み合わせを有し、処理補助データが、 前記分割データの開始位置と終了位置の階層構造ある!/、は順序構造あるいはそれ らの組み合わせの情報を持つことを特徴としてもょ 、。  [1057] In the data processing method according to the present invention, in order to solve the above-described problem, the electronic data has a hierarchical structure or an order structure or a combination thereof, and the processing auxiliary data includes a starting position of the divided data and a starting position of the divided data. The end position has a hierarchical structure! /, Which is characterized by having information on an order structure or a combination thereof.
[1058] 「階層構造」は「木構造」とも呼ばれ、データの要素の関係を、分岐した木の形の構 造として管理する状態をいう。分岐は細力べなるだけであり、分岐した先同士が関係 を持ち合うことはない (持ち合う場合は「ネットワーク構造」と言う)。一般に、分岐して 細力べなった先を「下の層」、分岐元の方を「上の層」と、上下関係で呼ぶことが多い。  [1058] The "hierarchical structure" is also called the "tree structure" and refers to a state in which the relationship between data elements is managed as a branched tree-shaped structure. Branching is only a matter of detail, and the branches do not share a relationship (when they do, they are called a "network structure"). In general, the branching point is often referred to as the “lower layer” and the branching source is referred to as the “upper layer” in a vertical relationship.
[1059] 例えば、 HTMLデータのタグによる入れ子構造などが階層構造に相当する。  [1059] For example, a nested structure of HTML data tags corresponds to a hierarchical structure.
[1060] 「順序構造」は、データの要素間に上下関係は無いが、その順番に意味があるよう な場合の構造である。データ要素が同じでも、その順番などが変われば、別のデータ となる。例えば、 HTMLデータの OLタグ中での LIタグは箇条書きの番号表示を行う 力 その番号は LIタグの出現する順番によって決まる。  [1060] The "order structure" is a structure in which there is no hierarchical relationship between data elements, but the order is significant. Even if the data elements are the same, if the order changes, it becomes different data. For example, the LI tag in the OL tag of HTML data displays a bulleted number. The number is determined by the order in which the LI tag appears.
[1061] なお、階層構造の各層で分岐先に順番を持たせている場合は、階層構造に含まれ るとしてちよい。  [1061] In the case where each layer of the hierarchical structure has an order in the branch destination, it may be included in the hierarchical structure.
[1062] 階層構造や順序構造のデータ要素の区切りと、部分データの区切りは必ずしも一 致しなくても  [1062] The division of the data element of the hierarchical structure or the order structure and the division of the partial data are not necessarily the same.
「開始位置の階層構造」とは、電子データの最初から分割データの開始位置までの データで生成される階層構造を意味する。 HTMLデータの例で言えば、開始位置ま でに出てきたタグを繋げた文字列で表現できる。一般に、上の層の情報だけでよぐ 同じ層、あるいは下の層、タグに挟まれたテキストデータの情報などは省いても良いこ とが多い。上の層の情報だけとは、 HTMLデータの例で言えば、開始位置までに出 てきたタグの内、対応する終了タグの存在しない開始タグだけということになる。 The “hierarchical structure at the start position” means a hierarchical structure generated from data from the beginning of the electronic data to the start position of the divided data. Speaking of the example of HTML data, it can be represented by a character string that connects tags appearing up to the start position. Generally, only the information in the upper layer is available In many cases, information on the same layer, lower layers, and text data sandwiched between tags can be omitted. Only the information in the upper layer means, in the example of HTML data, only the start tag that has no corresponding end tag among the tags that have appeared up to the start position.
[1063] 「終了位置の階層構造」とは、分割データの終了位置から電子データの最後までの データで生成される階層構造を意味する。 HTMLデータの例で言えば、終了位置 以降に出てくるタグを繋げた文字列で表現できる。一般に、上の層の情報だけでよく 、同じ層、あるいは下の層、タグに挟まれたテキストデータの情報などは省いても良い ことが多い。上の層の情報だけとは、 HTMLデータの例で言えば、終了位置以降に 出てくるタグの内、対応する開始タグの存在しない終了タグだけということになる。  [1063] The "hierarchical structure at the end position" means a hierarchical structure generated from data from the end position of the divided data to the end of the electronic data. Speaking of the example of HTML data, it can be expressed by a character string connecting tags that appear after the end position. In general, only the information in the upper layer is sufficient, and the information in the same layer, the lower layer, text data sandwiched between tags, and the like can be omitted in many cases. In the example of HTML data, only the information in the upper layer means only the end tag that does not have a corresponding start tag among the tags that appear after the end position.
[1064] 「開始位置の順序構造」や「終了位置の順序構造」に関しても階層構造と対象とす るデータ範囲は同じである。階層構造と違って上下の層は存在しないが、データ範 囲に出てくる情報となる。階層構造でも、同じ層や下の層の情報まで含めた情報にす れば、順序構造の情報を含んだ形にもできる。例えば、 HTMLデータの例で言えば 、複数の LIタグの層は、 OLタグの層の下の層となるが、対応する終了タグが存在し ても省かずに情報を生成すればょ 、。 OLタグの層で部分データの分割境界があつ たとしても、後の部分データの開始位置の順序構造の情報には、前の部分データの LIタグが含まれるので、 LIタグの出現する順序の情報を得ることができるようになる。  [1064] The hierarchical structure and the target data range are the same for the "ordered structure of start position" and "ordered structure of end position". Unlike the hierarchical structure, there is no upper or lower layer, but it is information that appears in the data range. Even in a hierarchical structure, if information including the information of the same layer and lower layers is included, it is possible to include the information of the ordered structure. For example, in the case of HTML data, the layers of a plurality of LI tags are layers below the layer of the OL tags, but the information should be generated without omitting the corresponding end tags even if they exist. Even if there is a division boundary of the partial data in the layer of the OL tag, since the information on the order structure of the starting position of the subsequent partial data includes the LI tag of the previous partial data, the order in which the LI tags appear You will be able to obtain information.
[1065] まず、分割データの開始位置の階層構造あるいは順序構造あるいはそれらの組み 合わせの情報を、処理補助データから読み込み、処理する。続いて、分割データを 読み込み、処理する。最後に、分割データの終了位置の階層構造あるいは順序構 造あるいはそれらの組み合わせの情報を、処理補助データから読み込み、処理する  [1065] First, information on the hierarchical structure or the order structure of the start position of the divided data or a combination thereof is read from the processing auxiliary data and processed. Next, the divided data is read and processed. Finally, the information of the hierarchical structure or the order structure of the end position of the divided data or the combination thereof is read from the processing auxiliary data and processed.
[1066] これにより、電子データを先頭力 最後まで処理する時に分割データの部分を処理 する状態と同じ状態で処理することができるようになる。 [1066] As a result, when processing the electronic data to the beginning and the end, it is possible to perform processing in the same state as processing the part of the divided data.
[1067] これによつて、階層構造あるいは順序構造あるいはそれらの組み合わせの電子デ ータを分割して部分データとして処理することができるようになるという効果が出てくる [1067] As a result, there is an effect that electronic data having a hierarchical structure, an order structure, or a combination thereof can be divided and processed as partial data.
[1068] 本発明に係るデータ処理方法は、電子データが複数に分割されたデータであり、 単独で処理したときの処理結果自体には誤りが無 、データである部分データを用い て所定の処理を行うデータ処理方法であって、所望の部分データの処理結果に電 子データを分割したことの影響を与える影響部分データを検出する影響検出ステツ プと、所望の部分データの処理を行う際、前記影響部分データが検出された場合に は、影響部分データ力 所望の部分データまでの範囲を一続きのデータとして処理 する部分データ処理ステップと、を備えたことを特徴とする。 [1068] The data processing method according to the present invention is a method in which electronic data is divided into a plurality of pieces of data, This is a data processing method that performs predetermined processing using partial data that is free from errors in the processing result itself when processed independently, and that electronic data is divided into processing results of desired partial data. An impact detection step for detecting the affected partial data having an influence on the part data, and when processing the desired partial data, if the affected partial data is detected, the range of the affected partial data force to the desired partial data is determined. A partial data processing step of processing as a series of data.
[1069] これにより、影響部分データ力 所望の部分データまでの範囲を一続きのデータと して処理するので、所望の部分データの処理結果には、影響部分データ力 受ける 影響が反映されることになる。  [1069] As a result, since the range up to the desired partial data is processed as continuous data, the processing result of the desired partial data reflects the influence of the affected partial data. become.
[1070] 従って、所望の部分データを処理する際に、影響を及ぼされる範囲の部分データ だけを処理して、影響が反映された処理結果を得ることができる。電子データ全体を 処理すれば同様の処理結果を得ることができるのはもちろんである力 それに比べて 、必要最小限の数の部分データを処理するだけで済む。  [1070] Therefore, when processing desired partial data, only the partial data in the affected range can be processed, and a processing result in which the influence is reflected can be obtained. Of course, the same processing result can be obtained by processing the entire electronic data. On the other hand, it is only necessary to process the minimum necessary number of partial data.
[1071] それゆえ、データ処理の高速化、省リソース化と!/、う部分データの利点をできるだけ 損なわずに、部分データの処理結果が影響し合う場合に、各部分データの処理結果 が損なわれな!/ヽように、部分データを処理することができると!ヽぅ効果を奏する。  [1071] Therefore, when the processing results of the partial data influence each other without impairing the advantage of the partial data as much as possible with the speeding up of the data processing and the resource saving! / Rena! / ヽ, and can handle partial data!ヽ ぅ Effective.
[1072] また、本発明に係るデータ処理方法は、電子データが複数に分割されたデータで あり、単独で処理したときの処理結果自体には誤りが無いデータである部分データを 用いて所定の処理を行うデータ処理方法であって、所望の部分データの処理結果に 電子データを分割したことの影響を与える影響部分データの内、電子データにおけ る処理順序として最前あるいは最後に位置する影響部分データを検出する影響検出 ステップと、所望の部分データの処理を行う際、前記影響部分データが検出された 場合には、影響部分データ力 所望の部分データまでの範囲を一続きのデータとし て処理する部分データ処理ステップと、を備えたことを特徴とする。  [1072] In addition, the data processing method according to the present invention provides a method using predetermined partial data that is data obtained by dividing electronic data into a plurality of pieces and that has no error in the processing result itself when processed independently. A data processing method for performing processing, in which, among the influencing partial data that has an effect of dividing electronic data into a processing result of a desired partial data, an influencing portion that is positioned at the front or last as a processing order in the electronic data. In performing the influence detection step of detecting data and the processing of the desired partial data, if the influence partial data is detected, the influence partial data force is processed as a continuous data range up to the desired partial data. And a partial data processing step.
[1073] これにより、所定の処理を行うための処理範囲に無関係に、電子データにおける処 理順序として最前あるいは最後に位置する影響部分データ力 所望の部分データま での範囲を一続きのデータとして処理し、所望の部分データの処理結果を得る。す なわち、一続きのデータとして処理すべき全ての部分データを処理して、所望の部分 データの処理結果を得る。したがって、所望の部分データが同じであれば、その処理 結果を得るのに必要な影響が全て反映された常に同じ処理結果を得ることができる。 [1073] With this, regardless of the processing range for performing the predetermined processing, the influence partial data force positioned at the front or the last as the processing order in the electronic data, the range up to the desired partial data is regarded as continuous data. Processing to obtain a processing result of desired partial data. That is, all the partial data to be processed as a series of data are processed, and a desired part is processed. Get data processing results. Therefore, if the desired partial data is the same, it is possible to always obtain the same processing result reflecting all the effects necessary to obtain the processing result.
[1074] それゆえ、データ処理の高速化、省リソース化と!/、う部分データの利点をできるだけ 損なわずに、部分データを適切に処理することができるという前述の効果にカ卩えて、 影響部分データの検出範囲によって同じ部分データの処理結果が変わることを防止 でき、違和感の無 、処理結果を得ることができると 、う効果をさらに奏する。  [1074] Therefore, in addition to the above-mentioned effect that the partial data can be appropriately processed without deteriorating the advantage of the partial data as well as speeding up the data processing and saving resources! / If the processing result of the same partial data can be prevented from being changed depending on the detection range of the partial data, and if the processing result can be obtained without a sense of incongruity, a further effect can be obtained.
[1075] 以下、本発明のその他の特徴点についてまとめておく。  [1075] Other features of the present invention will be summarized below.
(a) 本発明に係るデータ処理方法は、上記の課題を解決するために、所望の部分デ ータの直前あるいは直後の部分データに対し、前記影響検出ステップを実行すること を特徴とする。  (a) In order to solve the above problem, the data processing method according to the present invention is characterized in that the effect detection step is performed on partial data immediately before or immediately after desired partial data.
[1076] 上記の構成によれば、所望の部分データの直前あるいは直後の部分データは、所 望の部分データの処理結果に影響を与える可能性が相対的に大きいため、影響部 分データの検出効率を高めることができ、無駄な検出処理を抑制することができると いう効果を奏する。  [1076] According to the above configuration, the partial data immediately before or immediately after the desired partial data is relatively likely to affect the processing result of the desired partial data. The effect is that the efficiency can be increased and unnecessary detection processing can be suppressed.
(b) 本発明に係るデータ処理方法は、上記の課題を解決するために、前記電子デ ータの処理範囲が指定されている場合、部分データが、その指定されている処理範 囲の処理結果を得るために必要力どうかを判断する部分データ必要性判断ステップ をさらに備え、必要と判断された部分データについて、前記影響検出ステップを実行 することを特徴とする。  (b) In the data processing method according to the present invention, in order to solve the above-described problem, when a processing range of the electronic data is specified, the partial data is processed in a processing range of the specified processing range. The method further includes a partial data necessity determining step of determining whether or not necessary power is required to obtain a result, and the effect detecting step is performed on the partial data determined to be necessary.
[1077] 上記の構成によれば、部分データ必要性判断ステップで、電子データの指定され た処理範囲の処理結果を得るために必要な部分データを特定し、その特定した部分 データについて影響検出ステップを実行する。言い換えれば、指定された処理範囲 の処理結果を得るのに不要な部分データについては、影響検出ステップを実行しな い。  [1077] According to the above configuration, in the partial data necessity determining step, the partial data necessary for obtaining the processing result of the specified processing range of the electronic data is specified, and the influence detecting step is performed on the specified partial data. Execute In other words, the effect detection step is not performed on partial data that is not necessary to obtain a processing result within the specified processing range.
[1078] 従って、影響検出ステップの処理を簡易化することができ、処理の高速化に寄与す る。  [1078] Therefore, the processing of the influence detection step can be simplified, which contributes to speeding up the processing.
[1079] 部分データは、単独で処理可能なデータなので、指定されている処理範囲に 1つ の部分データしか必要としないときには、その部分データのみを処理することによつ て、誤りの無い処理結果を得ることができる。 [1079] Partial data is data that can be processed independently, so if only one partial data is required for the specified processing range, it is necessary to process only that partial data. Thus, an error-free processing result can be obtained.
[1080] 一方、指定されている処理範囲に対し複数の部分データを必要とする場合には、 それら部分データ同士の影響を少なくとも考慮しなければ、処理結果に誤りが表れる 可能性がある。そこで、上記の構成を採用することにより、処理結果に誤りが表れる 可能性を低減することができる。  [1080] On the other hand, when a plurality of partial data are required for a specified processing range, an error may appear in the processing result unless at least the influence of the partial data is considered. Therefore, by employing the above configuration, the possibility that an error appears in the processing result can be reduced.
[1081] ところで、「指定されて!、る処理範囲」は、何らかの指標で処理結果の範囲を指定 する形で与えられる。例えば、文書データならば、「何行目から何行目」、あるいは「 何文字目力 何文字目」、あるいは「全体の何パーセントから何パーセント」、という指 定などとなる。始点と終点を指定する以外にも、ある基準点とその基準点の周囲の範 囲と ヽぅ指定の方法もある。例えば、「何行目から何行分」、あるいは「何行目力ゝら表 示手段に表示される範囲 (ドット数など)」、などとなる。基準点や範囲は、処理結果を 最終的に指定することができれば、「行」などの処理結果の単位でなくてもよい。例え ば、「電子データ (ある 、は部分データ)の先頭力 何バイト目のデータから処理され る処理結果」を基準点としてもよ!/ヽ。  [1081] By the way, "specified! Processing range" is given by specifying the range of the processing result by some index. For example, in the case of document data, "from what line to what line", "what character power and what character", or "from what percentage to what percentage of the whole" is specified. In addition to specifying the start point and end point, there is also a method of specifying a reference point, the range around the reference point, and ヽ ぅ specification. For example, "from what line to how many lines" or "what line is displayed on the power display means (number of dots, etc.)". The reference point or range need not be a unit of the processing result such as “line” as long as the processing result can be finally specified. For example, the starting point of the electronic data (some or partial data) and the processing result from the data of the byte may be used as the reference point! / ヽ.
[1082] なお、指定された処理範囲の処理結果を得るのに不要な部分データ力 その処理 範囲に必要な部分データに影響を与えることもあるので、上記の構成は、その点まで は考慮していない。その点までを考慮した方法については、後述する。  [1082] It should be noted that the partial data unnecessary for obtaining the processing result of the specified processing range may affect the partial data required for the processing range. Not. A method that takes this point into consideration will be described later.
(c) 本発明に係るデータ処理方法は、上記の課題を解決するために、前記部分デ ータ必要性判断ステップにおいて、指定されている処理範囲の処理結果を得るのに 必要な部分データ力^つ特定された場合であって、その特定された部分データの直 前の部分データの必要性判断の為に、その特定された部分データの処理結果を得 る場合には、直前の部分データが前記影響部分データに該当するとしても、直前の 部分データとその特定された部分データとを一続きのデータとして処理しないことを 特徴とする。  (c) In the data processing method according to the present invention, in order to solve the above-described problem, in the partial data necessity determining step, a partial data capacity required to obtain a processing result of a designated processing range is provided. If the processing result of the specified partial data is obtained to determine the necessity of the partial data immediately before the specified partial data, Is characterized in that even if the data corresponds to the affected partial data, the preceding partial data and the specified partial data are not processed as a continuous data.
[1083] 上記の構成によれば、指定されている処理範囲の処理結果を得るのに必要な部分 データ力 つ特定された場合には、その特定された部分データの処理結果を得ること によって、指定されている処理範囲の処理結果を得るための部分データ力 充分な のか不足しているのかなどを判定することができる。従って、特定された部分データ の処理結果を、直前の部分データの必要性判断の手段として使うことができる。 [1083] According to the configuration described above, when the partial data required to obtain the processing result in the specified processing range is specified, the processing result of the specified partial data is obtained. It is possible to judge whether the partial data capacity for obtaining the processing result of the specified processing range is sufficient or insufficient. Therefore, the specified partial data Can be used as means for determining the necessity of the immediately preceding partial data.
[1084] ここで、もし直前の部分データが特定された部分データに対する前述の影響部分 データに該当する時、特定された部分データの処理結果を得る前に直前の部分デ ータの処理を行わなければ 、けな 、とすると、矛盾が起こる。  [1084] Here, if the immediately preceding partial data corresponds to the above-mentioned affected partial data with respect to the specified partial data, processing of the immediately preceding partial data is performed before obtaining the processing result of the specified partial data. If not, then a contradiction arises.
[1085] つまり、直前の部分データが必要かどうかを判断する為に、特定された部分データ の処理結果が必要とされる一方、特定された部分データの処理結果を得るために直 前の部分データの処理結果が必要とされることになり、特定された部分データと直前 の部分データの間で、互いの処理結果を必要とするという矛盾が起こる。あるいは無 限の繰り返し処理が実行される。  [1085] In other words, the processing result of the specified partial data is needed to determine whether or not the previous partial data is necessary, while the processing result of the previous partial data is needed to obtain the processing result of the specified partial data. The result of processing the data is required, and there is a contradiction between the specified partial data and the immediately preceding partial data, requiring the processing results of each other. Alternatively, infinite repetition processing is performed.
[1086] そこで、直前の部分データの必要性判断の為に、特定された部分データの処理結 果を得る際には、直前の部分データが前記影響部分データに該当するとしても、直 前の部分データを処理しな 、ことにする。  In order to determine the necessity of the immediately preceding partial data, when obtaining the processing result of the specified partial data, even if the immediately preceding partial data corresponds to the affected partial data, We will not process the partial data.
[1087] なお、特定された部分データの処理結果を用いて、直前の部分データが必要と判 断され、かつ直前の部分データが影響部分データに該当する場合には、前述の部 分データ処理ステップを実行し、直前の部分データと特定された部分データとを一続 きのデータとして処理すればょ 、。  [1087] Note that if the immediately preceding partial data is determined to be necessary based on the processing result of the specified partial data, and the immediately preceding partial data corresponds to the affected partial data, the above-described partial data processing is performed. By executing the step and processing the previous partial data and the specified partial data as continuous data.
[1088] これにより、処理に矛盾や無限の繰り返しが発生することを防ぐことができるという効 果を奏する。 [1088] As a result, it is possible to prevent inconsistency and infinite repetition of processing from occurring.
(d) 本発明に係るデータ処理方法は、上記の課題を解決するために、前記影響検 出ステップで、まず検出対象の部分データを特定し、次に当該検出対象の部分デー タが前記影響部分データに該当するか否かを、当該検出対象の部分データの処理 結果を使って判定することを特徴とする。  (d) In order to solve the above problems, the data processing method according to the present invention first specifies partial data to be detected in the influence detection step, and then determines the partial data to be detected by the influence target partial data. It is characterized in that whether or not the data corresponds to the partial data is determined using the processing result of the partial data to be detected.
[1089] 上記の構成によれば、部分データ間の影響を知る情報が別途用意されていない場 合に、前記所望の部分データの処理結果を得ようとする都度に、影響部分データが 有るか無いかを検出する。このとき、まず、影響部分データかどうかの検出対象にす る部分データを特定する。次に、検出対象の部分データが影響部分データに該当す る力否かの判定処理に、検出対象の部分データ自身の処理結果を用いる。  [1089] According to the above configuration, if information for knowing the influence between partial data is not separately prepared, is there any affected partial data every time the processing result of the desired partial data is obtained? Detect if there is. At this time, first, the partial data to be detected as the influence partial data is specified. Next, the processing result of the partial data to be detected itself is used in the process of determining whether or not the partial data to be detected corresponds to the affected partial data.
[1090] これによつて、部分データ間の影響を知る情報が別途用意などされていなくても、 影響を検出することができる。 [1090] Thus, even if information for knowing the influence between partial data is not separately prepared, The effect can be detected.
[1091] なお、影響部分データが検出された場合は、既に所望の部分データの処理結果を 得ていたとしても、所望の部分データの処理を再度行うことになる。  [1091] When the affected partial data is detected, the processing of the desired partial data is performed again even if the processing result of the desired partial data has already been obtained.
(e) 本発明に係るデータ処理方法は、上記の課題を解決するために、前記影響検 出ステップの前に、所望の部分データの処理結果を取得して保持する部分取得ステ ップを備え、影響検出ステップで影響部分データが検出されない場合は、取得した 所望の部分データの処理結果を使って前記所定の処理を行う一方、前記影響検出 ステップで影響部分データが検出された場合は、前記部分データ処理ステップの実 行によって、所望の部分データの処理結果を新たに取得して保持し直すことを特徴 とする。  (e) The data processing method according to the present invention includes, in order to solve the above-mentioned problem, a partial acquisition step of acquiring and holding a processing result of desired partial data before the influence detection step. If the affected part data is not detected in the influence detecting step, the predetermined process is performed using the processing result of the acquired desired partial data, while if the affected part data is detected in the effect detecting step, By executing the partial data processing step, a processing result of a desired partial data is newly acquired and held again.
[1092] 上記の構成によれば、所望の部分データの処理結果を取得して保持しておくことに より、その所望の部分データの処理結果に影響を与える影響部分データが検出され な 、場合に、保持した処理結果を所定の処理に使うことができる。  [1092] According to the above configuration, by acquiring and holding the processing result of the desired partial data, if the affected partial data affecting the processing result of the desired partial data is not detected, In addition, the held processing result can be used for a predetermined processing.
[1093] これにより、保持した処理結果の有効利用が図られるので、影響部分データが検出 されない場合に所望の部分データの処理結果を 1から取得する無駄な処理を省くこ とができ、処理効率を向上させる効果が出てくる。  [1093] As a result, the held processing results can be used effectively, so that unnecessary processing for acquiring the processing result of desired partial data from 1 when the affected partial data is not detected can be omitted, and processing efficiency can be reduced. The effect of improving comes out.
[1094] なお、所望の部分データの処理結果を新たに取得して保持し直すときに、例えば 記憶媒体等に既に保持して 、た処理結果をクリアするステップを実行してもよ 、し、 新たな処理結果を既に保持していた処理結果に上書きするステップを実行してもよ い。  [1094] Note that, when newly acquiring and holding the processing result of the desired partial data again, for example, a step of clearing the processing result already held in a storage medium or the like may be executed, A step of overwriting the new processing result with the processing result already held may be executed.
(D 本発明に係るデータ処理方法は、上記の課題を解決するために、所望の部分デ ータの処理結果を新たに取得して保持し直すときに、影響部分データ力 所望の部 分データまでの範囲を一続きのデータとして処理したと 、う情報を、所望の部分デー タの処理結果に関連付けて保持しておくことを特徴とする。  (D The data processing method according to the present invention, in order to solve the above-described problem, newly obtains a processing result of desired partial data and holds it again When the range up to is processed as a series of data, the information is stored in association with the processing result of the desired partial data.
[1095] 上記の構成によれば、所望の部分データの処理結果を得る場合に、影響部分デー タカ 所望の部分データまでの範囲を一続きのデータとして処理したという情報を参 酌することが可能になる。これにより、保持された所望の部分データの処理結果は、 影響部分データ力 の影響が考慮されて取得されていることが判る。したがって、所 望の部分データの処理結果を使って所定の処理をしょうとする場合に、改めて影響 検出ステップを実行する必要が無くなり、処理の効率ィ匕を図ることができる。 [1095] According to the above configuration, when a processing result of desired partial data is obtained, information indicating that a range up to the desired partial data has been processed as continuous data can be referred to. become. As a result, it can be seen that the processing result of the held desired partial data is obtained in consideration of the influence of the affected partial data force. Therefore, When a predetermined process is to be performed using the processing result of the desired partial data, it is not necessary to execute the influence detecting step again, and the efficiency of the process can be reduced.
(g) 本発明に係るデータ処理方法は、上記の課題を解決するために、前記電子デ ータが、部分データの処理結果に影響を与えるデータを持っている場合に、前記影 響検出ステップは、その影響を与えるデータの効力が所望の部分データに対して有 効か否かを判定するステップと、有効と判定した場合に、所望の部分データの少なく とも直前の部分データを前記影響部分データの候補とするステップとを備えたことを 特徴とする。  (g) In the data processing method according to the present invention, in order to solve the above-described problem, when the electronic data has data that affects the processing result of the partial data, the influence detecting step is performed. Is a step of determining whether or not the effect of the effected data is valid for the desired partial data; and, if determined to be valid, at least the immediately preceding partial data of the desired partial data is replaced with the affected partial data. And a step of making the candidate.
[1096] 上記の構成によれば、所望の部分データの少なくとも直前の部分データが影響部 分データの候補になるか否かを、部分データの処理結果に影響を与えるデータの効 力を調べることによって判定することができる。  [1096] According to the above configuration, it is determined whether or not at least partial data immediately before desired partial data is a candidate for affected part data by examining the effect of data affecting the processing result of the partial data. Can be determined by
[1097] 部分データの処理結果に影響を与えるデータとは、例えば、特定の処理結果が得 られるように処理内容を指定する制御データである。より具体的な一例としては、電子 データが HTML文書データである場合に、表示状態を指定するタグが、その制御デ ータに該当する。  [1097] The data that affects the processing result of the partial data is, for example, control data that specifies the processing content so that a specific processing result is obtained. As a more specific example, when the electronic data is HTML document data, a tag that specifies a display state corresponds to the control data.
[1098] 影響を与えるデータの効力が所望の部分データに対して有効か否かを判定するた めには、有効力否かの情報 (例えば図 8に示す開始タグ補助情報)を予め用意して おいて、その情報を用いてもよいし、所望の部分データの直前の部分データに、その 影響を与えるデータが含まれて 、るか否かを調べてもょ 、。  [1098] In order to determine whether the effect of the affecting data is valid for the desired partial data, information on the validity (eg, start tag auxiliary information shown in Fig. 8) is prepared in advance. Then, the information may be used, or it may be checked whether or not the partial data immediately before the desired partial data includes the data having the influence.
(h) 本発明に係るデータ処理方法は、上記の課題を解決するために、電子データが 複数に分割されたデータであり、単独で処理したときの処理結果自体には誤りが無 (h) According to the data processing method of the present invention, in order to solve the above-mentioned problem, electronic data is divided into a plurality of pieces of data, and there is no error in a processing result itself when processed independently.
V、データである部分データを用いて所定の処理を行うデータ処理方法であって、所 望の部分データの処理結果に電子データを分割したことの影響を与える影響部分デ ータの内、電子データにおける処理順序として最前あるいは最後に位置する影響部 分データを検出する影響検出ステップと、所望の部分データの処理を行う際、前記 影響部分データが検出された場合には、影響部分データ力 所望の部分データまで の範囲を一続きのデータとして処理する部分データ処理ステップと、を備えたことを 特徴とする。 (i) また本発明に係るデータ処理装置は、電子データが複数に分割されたデータで あり、単独で処理したときの処理結果自体には誤りが無いデータである部分データを 用いて所定の処理を行うデータ処理装置であって、所望の部分データの処理結果に 電子データを分割したことの影響を与える影響部分データの内、電子データにおけ る処理順序として最前あるいは最後に位置する影響部分データを検出する影響検出 手段と、所望の部分データの処理を行う際、前記影響部分データが検出された場合 には、影響部分データ力 所望の部分データまでの範囲を一続きのデータとして処 理する部分データ処理手段と、を備えたことを特徴とする。 V. A data processing method for performing a predetermined process using partial data which is data, and among the partial data, which influences the division of the electronic data into the processing result of the desired partial data, An influence detecting step of detecting the first or last affected part data as a processing order in the data; and, when processing the desired partial data, when the affected partial data is detected, the influence partial data force is determined. And a partial data processing step of processing the range up to the partial data as continuous data. (i) Further, the data processing device according to the present invention performs predetermined processing using partial data in which electronic data is divided into a plurality of data, and the processing result itself when processed independently has no error. A data processing device that performs the processing of the desired partial data. Effect processing means for detecting the partial data, and when processing the desired partial data, when the affected partial data is detected, processes the range of the affected partial data to the desired partial data as continuous data. And partial data processing means.
[1099] 上記の構成によれば、所望の部分データの処理を行う際、その処理結果に影響を 与える影響部分データの内、電子データにおける処理順序として最前あるいは最後 に位置する影響部分データを (影響検出手段が)影響検出ステップで検出する。そし て、最前あるいは最後に位置する影響部分データが検出された場合には、(部分デ ータ処理手段が)部分データ処理ステップにお 、て、影響部分データから所望の部 分データまでの範囲を一続きのデータとして処理し、所望の部分データの処理結果 を得る。  [1099] According to the above configuration, when processing desired partial data, among the affected partial data that affect the processing result, the first or last affected partial data as the processing order in the electronic data is replaced by ( The influence detecting means detects in the influence detecting step. Then, when the most or last affected partial data is detected, the partial data processing step (in the partial data processing step) sets the range from the affected partial data to the desired partial data. Is processed as a series of data, and a processing result of a desired partial data is obtained.
[1100] ここで、最前あるいは最後に位置する影響部分データに対して、電子データにおけ る処理順序がさらに前または後に位置する部分データは、所望の部分データにとつ て影響部分データではない。したがって、処理順序がさらに前または後に位置する 部分データは、所望の部分データの処理結果を得るためには無視してょ 、。  [1100] Here, the partial data whose processing order in the electronic data is further before or after the affected partial data located at the forefront or last is not the affected partial data for the desired partial data. . Therefore, the partial data whose processing order is further before or after is ignored in order to obtain the processing result of the desired partial data.
[1101] 上記の構成によれば、所定の処理を行うための処理範囲に無関係に、電子データ における処理順序として最前あるいは最後に位置する影響部分データ力 所望の部 分データまでの範囲を一続きのデータとして処理し、所望の部分データの処理結果 を得る。すなわち、一続きのデータとして処理すべき全ての部分データを処理して、 所望の部分データの処理結果を得る。したがって、所望の部分データが同じであれ ば、その処理結果を得るのに必要な影響が全て反映された常に同じ処理結果を得る ことができる。 According to the above configuration, regardless of the processing range for performing the predetermined processing, the influence partial data force positioned at the front or last as the processing order in the electronic data continuously extends to the desired partial data. And obtain the processing result of the desired partial data. That is, all partial data to be processed as a series of data are processed, and a processing result of a desired partial data is obtained. Therefore, if the desired partial data is the same, it is possible to always obtain the same processing result in which all the effects required to obtain the processing result are reflected.
[1102] これに対し、所定の処理を行うための処理範囲に関係のある部分データの中で影 響部分データを検出し、検出した影響部分データ力 所望の部分データまでの範囲 を一続きのデータとして処理する方法では、一続きのデータとして処理すべき全ての 部分データの一部を一続きのデータとして処理することになる。この場合には、一続 きのデータとして処理すべき全ての部分データのどの部分を一続きのデータとして処 理するかによって、所望の部分データが同じであっても、処理結果が異なることがあ る。 [1102] On the other hand, the influence partial data is detected from the partial data related to the processing range for performing the predetermined processing, and the detected influence partial data force The range to the desired partial data is obtained. In a method of processing as a set of data, a part of all the partial data to be processed as a set of data is processed as a set of data. In this case, even if the desired partial data is the same, the processing result may differ depending on which part of all the partial data to be processed as the continuous data is processed as the continuous data. is there.
[1103] したがって、上記の構成によれば、指定された処理範囲の処理結果を得るのに不 要な部分データ力 その処理範囲に必要な部分データに影響を与えることまでも考 慮され、適切な処理結果が得られる。  [1103] Therefore, according to the above configuration, it is possible to consider the possibility of affecting the partial data necessary for obtaining the processing result in the specified processing range even if it affects the partial data necessary for the processing range. Process results are obtained.
[1104] これにより、データ処理の高速化、省リソース化という部分データの利点をできるだ け損なわずに、部分データを適切に処理することができるという前述の効果にカ卩えて 、影響部分データの検出範囲によって同じ部分データの処理結果が変わることを防 止でき、違和感の無 、処理結果を得ることができると 、う効果をさらに奏する。  [1104] In this way, in addition to the above-described effect that the partial data can be appropriately processed without impairing the advantage of the partial data such as high-speed data processing and resource saving, the affected partial data can be obtained. It is possible to prevent the processing result of the same partial data from being changed depending on the detection range, and it is possible to obtain the processing result without any uncomfortable feeling.
(j) 本発明に係るデータ処理方法は、上記の課題を解決するために、前記影響検出 ステップでは、最前あるいは最後に位置する影響部分データを予め検出して保持し ておいた処理補助データを使って、最前あるいは最後に位置する影響部分データを 検出することを特徴とする。  (j) In the data processing method according to the present invention, in order to solve the above-described problem, in the influence detecting step, processing auxiliary data in which a preceding or last affected part data is detected and held in advance is stored. It is characterized by detecting the affected part data located at the forefront or the last using this method.
[1105] 上記の構成によれば、所望の部分データを処理するときに、処理補助データを参 照するだけで、最前あるいは最後に位置する影響部分データを検出することができる 。要するに、所望の部分データを処理するときに、部分データを解析したり、部分デ ータの処理結果を調べたりして影響部分データを検出する必要が無い。したがって、 処理の効率ィ匕を図ることができる。  [1105] According to the above configuration, when processing desired partial data, it is possible to detect the foremost or last affected part data simply by referring to the processing auxiliary data. In short, when processing desired partial data, there is no need to analyze the partial data or check the processing result of the partial data to detect the affected partial data. Therefore, processing efficiency can be improved.
[1106] なお、処理補助データは、ファイルなどの形で電子データとは別のデータとして管 理されてもよいし、管理しやすくする為に、電子データの最初や最後などに電子デー タの一部として含められてもよい。  [1106] The processing auxiliary data may be managed as data separate from the electronic data in the form of a file or the like, or may be added to the beginning or end of the electronic data for easy management. It may be included as a part.
(k) 本発明に係るデータ処理方法は、上記の課題を解決するために、前記電子デ ータを複数に分割した分割データと、分割データを単独で処理したときに誤りが無 ヽ 処理結果を得るには足りない情報である処理補助データとを合わせて、前記部分デ ータとすることを特徴とする。 [1107] 電子データを単純に分割した分割データだけでは、単独で処理したときに誤りが無 い処理結果を得ることのできる部分データにならない場合が多い。そこで、分割デー タを補う情報を処理補助データとして予め作成しておく。 (k) In order to solve the above-mentioned problems, the data processing method according to the present invention provides a method in which the divided data obtained by dividing the electronic data into a plurality of pieces and the divided data are processed without errors when processed independently. In this case, the partial data is combined with processing auxiliary data, which is information that is insufficient for obtaining the partial data. [1107] In many cases, only divided data obtained by simply dividing electronic data does not become partial data capable of obtaining a processing result having no error when processed alone. Therefore, information that supplements the divided data is created in advance as processing auxiliary data.
[1108] 上記の構成によれば、分割データを処理する際、対応する処理補助データを読み 込んで、両方のデータを使って処理することで、部分データとして処理可能になる。 すなわち分割データと処理補助データを合わせて、部分データとみなす。あるいは、 部分データを分割データと処理補助データに分割したとみなしてもよい。  [1108] According to the above configuration, when processing the divided data, the corresponding processing auxiliary data is read, and processing is performed using both data, whereby processing can be performed as partial data. That is, the divided data and the processing auxiliary data are regarded as partial data. Alternatively, it may be considered that the partial data is divided into the divided data and the processing auxiliary data.
[1109] これにより、電子データを単純に分割するだけでは部分データを生成できない場合 でも、処理補助データを利用することで、容易に部分データを生成することができる 利点が出てくる。  [1109] As a result, even when partial data cannot be generated by simply dividing electronic data, there is an advantage that partial data can be easily generated by using the processing auxiliary data.
[1110] また、この場合、処理補助データを電子データと別に管理するようにすれば、電子 データに処理補助データを含めるように、電子データを加工しなくても済むという利 点も出てくる。  [1110] In this case, if the processing auxiliary data is managed separately from the electronic data, there is an advantage that the electronic data does not need to be processed so that the processing auxiliary data is included in the electronic data. .
(1) 本発明に係るデータ処理方法は、上記の課題を解決するために、前記分割デー タの前記電子データ中の位置の情報、あるいは位置とサイズの情報を、前記処理補 助データが持って 、ることを特徴とする。  (1) In the data processing method according to the present invention, in order to solve the above-described problem, the processing auxiliary data has information on a position of the divided data in the electronic data or information on a position and a size. The feature is that.
[1111] 上記の構成によれば、分割データを電子データ力 生成する際、処理補助データ を参照することによって分割データの電子データ中の位置の情報、あるいは位置とサ ィズの情報を得ることができる。例えば、連続する分割データの各々の位置の情報を 得ることにより、分割データを 1つずつ電子データ力も読み取ることができる。また、あ る分割データに関する位置の情報とサイズの情報とを得ることにより、その分割デー タの 1つを電子データ力も読み取ることができる。  [1111] According to the above configuration, when generating the divided data into electronic data, information on the position of the divided data in the electronic data, or information on the position and size in the electronic data can be obtained by referring to the processing auxiliary data. Can be. For example, by obtaining information on the position of each of the continuous divided data, it is possible to read the electronic data force of the divided data one by one. Also, by obtaining information on the position and size of a piece of data, one of the pieces of data can also be read by electronic data.
[1112] これにより、電子データ中から分割データを簡単に生成することができ、電子データ を各分割データにファイルなどの形で分割しておかなくて済むという効果が出てくる。 (m) 本発明に係るデータ処理方法は、上記の課題を解決するために、各部分デー タに対し、前記影響部分データになる部分データがどれかを特定する影響情報を前 記処理補助データが持ち、前記影響検出ステップでは、この影響情報を使って影響 部分データを検出することを特徴とする。 [1113] 上記の構成によれば、処理補助データを参照するだけで、ある部分データを前記 所望の部分データとしたときに、所望の部分データに対して影響部分データに該当 する部分データを特定することができる。 [1112] As a result, the divided data can be easily generated from the electronic data, and the electronic data does not need to be divided into the divided data in the form of a file or the like. (m) In order to solve the above problem, the data processing method according to the present invention includes, for each of the partial data, influence information for specifying which of the partial data to be the affected partial data is the auxiliary processing data. In the effect detecting step, the influence partial data is detected using the influence information. [1113] According to the above configuration, when a certain partial data is set to the desired partial data simply by referring to the processing auxiliary data, the partial data corresponding to the affected partial data is specified for the desired partial data. can do.
[1114] もし、処理補助データを参照せずに影響部分データを検出しょうとすれば、部分デ ータ自体を読み込んで、分割の影響を受けるかどうかを調べたり、あるいは読み込ん だ部分データの処理結果を得て影響を受けるかを調べ、影響を受ける場合に、例え ばその直前または直後の部分データをさらに読み込んで、影響部分データになり得 るかどうかを調べたりする必要がある。その場合、結果的に必要としない部分データ まで読み込んだり、処理したりする場合が出てくる。  [1114] If an attempt is made to detect the affected partial data without referring to the processing auxiliary data, the partial data itself is read to check whether it is affected by the division, or to process the read partial data. It is necessary to obtain the result and check whether it is affected, and if so, for example, read the partial data immediately before or immediately after that, and check whether it can be affected. In that case, as a result, there is a case where partial data that is not required is read or processed.
[1115] このように、上記の構成によれば、データ処理の高速ィ匕および省リソース化のメリッ トを拡大することができるという効果が出てくる。  [1115] As described above, according to the above-described configuration, it is possible to expand the advantages of high-speed data processing and resource saving.
[1116] なお、上記の構成について、各部分データの処理結果が他の部分データの処理 結果に影響されるカゝどうかの情報を、処理補助データが持ち、前記影響検出ステツ プはこの情報を使って影響を検出すると言 ヽ換えてもょ 、。  [1116] In the above configuration, the processing auxiliary data has information on whether or not the processing result of each partial data is affected by the processing results of other partial data, and the influence detection step includes this information. In other words, you can use it to detect effects.
(n) 本発明に係るデータ処理方法は、上記の課題を解決するために、前記電子デ ータは表示設定によって表示レイアウトが変わる文書データであり、前記所定の処理 は、部分データから表示レイアウトを生成する処理であることを特徴とする。  (n) In the data processing method according to the present invention, in order to solve the above-described problem, the electronic data is document data whose display layout is changed according to display settings, and the predetermined processing is performed based on partial data to display layout. Is generated.
[1117] 上記の構成において、「表示レイアウト」とは、文字や画像などの「表示レイアウト要 素」の集まりからなるものであり、表示手段や印刷手段などの出力手段に出力して、 ユーザが視覚的に認知することができるようにした表示レイアウト要素の配置情報で ある。一般に、表示レイアウトは、各表示レイアウト要素の位置や大きさ、出力する時 の形態などの情報を持って 、る。  [1117] In the above configuration, the "display layout" is composed of a group of "display layout elements" such as characters and images, and is output to an output means such as a display means or a printing means so that the user can output the data. This is the layout information of the display layout elements that can be visually recognized. In general, the display layout has information such as the position and size of each display layout element, the output form, and the like.
[1118] 「表示設定」とは、例えば、表示する文字の種類や大きさ、表示レイアウトを生成す る範囲(一般に表示手段の大きさに制約される)、などである。このような表示設定を 変えることで、生成される表示レイアウトは変わる。但し、表示レイアウトが変わっても、 通常、各表示レイアウト要素の位置や大きさが変わるだけで、文書データの表現する 中身 (文字情報、画像情報など)が変わる訳ではな!、。  [1118] The "display setting" refers to, for example, the type and size of a character to be displayed, a range for generating a display layout (generally restricted by the size of the display means), and the like. By changing such display settings, the generated display layout changes. However, even if the display layout changes, only the position and size of each display layout element usually does not change the contents (character information, image information, etc.) expressed by the document data!
[1119] 上記の構成により、表示設定によって表示レイアウトが変わる文書データを、部分 データに分けて処理することができるようになる。したがって、文書データを画面に表 示し、内容をスクロールして表示したり、ページジャンプして表示したりすることが可能 な文書処理装置に [1119] With the above configuration, the document data whose display layout changes depending on the display setting is It will be possible to process the data separately. Therefore, a document processing device capable of displaying document data on a screen and scrolling and displaying the content, or jumping and displaying the page.
おけるデータ処理の高速ィ匕および省リソース化を図ることができる。  High-speed data processing and resource saving can be achieved.
(o) 本発明に係るデータ処理方法は、上記の課題を解決するために、前記影響検 出ステップの前に、前記所望の部分データの最初の表示レイアウト要素が、表示レイ アウトの出力対象である表示媒体において、常に行頭から表示されるか否かを調べ るレイアウト調査ステップを備え、前記最初の表示レイアウト要素が、前記行頭から表 示される場合、前記影響検出ステップを実行しな ヽことを特徴とする。  (o) In order to solve the above-mentioned problem, the data processing method according to the present invention may be modified such that before the influence detecting step, the first display layout element of the desired partial data is a display layout output target. In a certain display medium, there is provided a layout examination step of always examining whether or not to be displayed from the beginning of a line, and when the first display layout element is displayed from the beginning of the line, the effect detection step is not performed. Features.
[1120] 上記の構成において、「行」とは、ここでは、表示レイアウト要素の集まりであり、一般 に、横一列あるいは縦一列に並んで配置されている表示レイアウト要素力もなる。 1 行のサイズおよび行間隔等は、表示レイアウトの出力対象である表示媒体のサイズと の関係に基づいて適宜設定される。全ての表示レイアウト要素はいずれかの行に属 するとするが、回り込み画像のように、複数の行に関わる表示レイアウト要素は、分割 して各行に属するようにする力、行とは別に管理するようにする。  [1120] In the above configuration, the "row" here is a group of display layout elements, and generally also includes display layout elements arranged in a horizontal or vertical line. The size of one line, the line spacing, and the like are set as appropriate based on the relationship with the size of the display medium that is the output target of the display layout. It is assumed that all display layout elements belong to one of the rows.However, display layout elements related to multiple rows, such as a wraparound image, must be divided and belong to each row, and managed separately from the rows. To
[1121] 「行頭」とは、表示レイアウト要素の行への通常の配置方法により、表示範囲に属す る任意の行の最初に表示レイアウト要素を配置する位置である。一般に、横一列に 配置する横行の場合は左端、縦一列に配置する縦行の場合は上端となる。なお、所 望の部分データの最初の表示レイアウト要素が、回り込み画像のような特殊な配置を 行う表示レイアウト要素や、行とは別管理する表示レイアウト要素の場合は、行頭から 表示されるかどうかの判断対象とはせず、行に配置する次の通常の表示レイアウト要 素 (文字など)を最初の表示レイアウト要素とみなし、判断対象とすればょ 、。  [1121] "Beginning of line" is a position where a display layout element is arranged at the beginning of an arbitrary line belonging to a display range by a normal arrangement method of display layout elements on lines. In general, the left end is for horizontal rows arranged in a horizontal line, and the upper end is for vertical rows arranged in a vertical line. If the first display layout element of the desired partial data is a display layout element that arranges specially, such as a wraparound image, or a display layout element that is managed separately from the line, whether it is displayed from the beginning of the line The next normal display layout element (characters, etc.) to be placed on a line is not considered as the target of the judgment, but should be regarded as the first display layout element and should be judged.
[1122] 上記の構成によれば、所望の部分データについて、表示レイアウトを指定したり制 御したりする機能を持つデータ (例えば HTML文書データに含まれるタグなど)が含 まれているかを調べる、あるいは、実際に表示レイアウトを生成してみて、表示媒体の 行頭力も表示されるかどうかを調べる、あるいは行頭力も表示されるかどうかの情報を 処理補助データが持って 、るかを調べるなどの処理力 レイアウト調査ステップとして 実行される。 [1123] 所望の部分データの最初の表示レイアウト要素が、表示媒体にお!、て行頭から表 示される場合には、その部分データは適切に表示されることになる。つまり、分割の 影響が表れて 、な 、表示結果が得られることになる。 [1122] According to the above configuration, it is determined whether or not desired partial data includes data having a function of designating or controlling a display layout (for example, a tag included in HTML document data). Alternatively, actually generate a display layout and check whether the head force of the display medium is also displayed, or check whether the processing auxiliary data has information on whether the head force is also displayed or not. Performed as a layout survey step. [1123] If the first display layout element of the desired partial data is displayed from the beginning of the line on the display medium, the partial data will be displayed appropriately. In other words, the effect of the division appears, and a display result is obtained.
[1124] 従って、その所望の部分データについては、最早、影響部分データを検出する必 要が無い。これによつて、影響検出ステップを実行しない分、処理速度を向上させる ことができる。 [1124] Therefore, for the desired partial data, it is no longer necessary to detect the affected partial data. As a result, the processing speed can be improved by not performing the influence detection step.
(P) 本発明に係るデータ処理方法は、上記の課題を解決するために、前記影響検 出ステップの前に、前記所望の部分データの任意の表示レイアウト要素が、表示レイ アウトの出力対象である表示媒体において、その表示範囲の先頭位置から表示され る力否かを調べるレイアウト調査ステップを備え、前記任意の表示レイアウト要素が、 前記先頭位置カゝら表示される場合、前記影響検出ステップを実行しな ヽことを特徴と する。  (P) In order to solve the above-mentioned problems, in the data processing method according to the present invention, before the influence detection step, an arbitrary display layout element of the desired partial data is output to a display layout. In a certain display medium, the method further comprises a layout examination step of examining whether or not a force is displayed from a head position of the display range. If the arbitrary display layout element is displayed at the head position, the influence detection step is performed. It is characterized by not being executed.
[1125] 上記の構成によれば、所望の部分データの任意の表示レイアウト要素力 表示範 囲の先頭位置から表示されて 、れば、直前の部分データと所望の部分データとの境 界は、表示範囲内に出現せず、表示範囲外に位置していることになる。  [1125] According to the above configuration, if the desired partial data is displayed from the start position of the display range, the boundary between the immediately preceding partial data and the desired partial data becomes It does not appear within the display range and is located outside the display range.
[1126] 従って、所望の部分データの表示結果には誤りが表れないので、所望の部分デー タに関する影響検出ステップを実行する必要が無い。これによつて、影響検出ステツ プを実行しない分、処理速度を向上させることができる。  [1126] Therefore, since no error appears in the display result of the desired partial data, it is not necessary to execute the influence detection step for the desired partial data. As a result, the processing speed can be improved because the influence detection step is not performed.
(q)本発明に係るデータ処理方法は、上記の課題を解決するために、前記影響検出 ステップの前に、前記所望の部分データの表示レイアウトを生成するとともに、前記影 響部分データか否かの検出対象にする部分データを特定し、その検出対象の部分 データの表示レイアウトを生成するレイアウト生成ステップを備え、前記影響検出ステ ップにおいて、所望の部分データの表示レイアウトが含まれる全ての行に、検出対象 の部分データの表示レイアウトが含まれない場合、検出対象の部分データは、影響 部分データではな ヽと判断することを特徴とする。  (q) In order to solve the above problem, the data processing method according to the present invention generates a display layout of the desired partial data before the influence detecting step and determines whether or not the display layout is the affected partial data. And a layout generation step of generating a display layout of the partial data to be detected. In the influence detection step, all the rows including the display layout of the desired partial data are provided. In this case, when the display layout of the partial data to be detected is not included, it is determined that the partial data to be detected is not the affected partial data.
[1127] 上記の構成において、レイアウト生成ステップで生成した所望の部分データの表示 レイアウトと検出対象の部分データの表示レイアウトとを用い、所望の部分データの 表示レイアウトから特定される各行内に、検出対象の部分データの表示レイアウト要 素が配置されるかどうかを調べる。 [1127] In the above configuration, the display layout of the desired partial data generated in the layout generation step and the display layout of the partial data to be detected are used, and the detection is performed in each row specified from the display layout of the desired partial data. Display layout required for target partial data Checks if the element is located.
[1128] 影響検出ステップでは、全ての行について、検出対象の部分データの表示レイァゥ トが含まれな 、ならば、検出対象の部分データは影響部分データではな 、と判断し、 もし 1行でも含まれるのならば、検出対象の部分データは影響部分データであると判 断する。  [1128] In the influence detection step, if the display layout of the partial data to be detected is not included in all the rows, it is determined that the partial data to be detected is not the affected partial data. If it is included, it is determined that the partial data to be detected is the affected partial data.
[1129] つまり、部分データの表示結果に分割の影響があるかないかを、実際の表示レイァ ゥトを生成して判断することになる。改行などの場合は、必ずしも表示レイアウトを調 ベなくても、部分データのデータ自体を調べることで改行があるかどうか事前に調べ ることもできるが、例えば、画像の回り込みなどの場合、表示設定によって、回り込み 処理される文字数なども変わってくる。従って、検出対象の部分データに含まれてい る画像が、所望の部分データの表示レイアウト中に回り込む力否かは、実際に表示レ ィアウトを調べてみな 、と分力 な 、。  [1129] That is, it is determined whether or not the display result of the partial data is affected by the division by generating an actual display layout. In the case of line breaks, it is possible to check in advance whether there is a line break by examining the partial data itself without necessarily examining the display layout. The number of characters to be wrapped varies depending on the type. Therefore, whether or not an image included in the partial data to be detected wraps around in the display layout of the desired partial data is determined by actually examining the display layout.
[1130] これによつて、影響部分データを予め検出しておくことができないような部分データ の場合でも、所定の処理を実行する時に、影響部分データを検出することができると いう効果が出てくる。  [1130] With this, even in the case of partial data for which the affected partial data cannot be detected in advance, the effect that the affected partial data can be detected when a predetermined process is executed is achieved. Come.
(r)本発明に係るデータ処理方法は、上記の課題を解決するために、前記電子デー タは表示設定によって表示レイアウトが変わる文書データであり、前記所定の処理は 、部分データ力 表示レイアウトを生成する処理であり、前記影響検出ステップで、所 望の部分データの直前の部分データが影響部分データであると検出された場合、前 記部分データ処理ステップにお 、て、直前の部分データの表示レイアウトを生成した 後、その表示レイアウトの最後の表示レイアウト要素に続けて、所望の部分データの 表示レイアウトを生成することを特徴とする。  (r) In the data processing method according to the present invention, in order to solve the above-described problem, the electronic data is document data whose display layout changes according to display settings, and the predetermined processing includes a partial data display display layout. If the partial data immediately before the desired partial data is detected as the affected partial data in the influence detection step, the partial data processing step is performed in the partial data processing step. After generating the display layout, a display layout of desired partial data is generated following the last display layout element of the display layout.
[1131] 上記の構成において、部分データが、改行などの表示上切りの良い場所で分割さ れて生成されて 、る場合には、所望の部分データの直前の部分データは影響部分 データにならない。従って、直前の部分データの最後の表示レイアウト要素が含まれ る行の次に、新しい行を追加して、その行の行頭力 所望の部分データの表示レイ アウトを追カ卩して ヽけばよ 、。  [1131] In the above configuration, when partial data is generated by being divided at a location such as a line break where the upper display is good, the partial data immediately before the desired partial data does not become the affected partial data. . Therefore, a new line is added after the line containing the last display layout element of the previous partial data, and the head of the line is added. The display layout of the desired partial data is added. Yo,
[1132] これに対し、部分データが、改行などの表示上切りの良い場所で分割されて生成さ れて 、な 、場合、所望の部分データの直前の部分データは影響部分データになる。 つまり、各部分データを独立に表示処理すると、直前の部分データの最後の表示レ ィアウト要素が含まれる行の次に、新しい行を追加して、その行の行頭力も次の部分 データの表示レイアウトを追カ卩していくことになる。このため、表示結果は、直前の部 分データと所望の部分データの間で、改行があるかのようになり、表示状態が不連続 になる。電子データにはこのような改行命令(改行タグなど)は入っていないので、表 示レイアウト結果としては間違っている。 [1132] On the other hand, the partial data is generated by dividing it at places where display In this case, the partial data immediately before the desired partial data becomes the affected partial data. In other words, when each partial data is displayed independently, a new line is added after the line containing the last display layout element of the previous partial data, and the heading of that line also changes the display layout of the next partial data. Will be pursued. Therefore, the display result is as if there is a line feed between the immediately preceding partial data and the desired partial data, and the display state becomes discontinuous. Since the electronic data does not include such a line feed command (line feed tag, etc.), the display layout result is incorrect.
[1133] そこで、上記の構成により、直前の部分データの最後の表示レイアウト要素に続け て、所望の部分データの表示レイアウトを生成すると、表示上は、行が改行せず、連 続した表示結果のように見える。  [1133] Therefore, according to the above configuration, if a display layout of desired partial data is generated following the last display layout element of the previous partial data, a line is not broken on the display, and a continuous display result is displayed. looks like.
[1134] これによつて、部分データが、改行などの表示上切りの良い場所で分割されていな くも、元の電子データの意味する内容が損なわれない表示結果を得ることができると いう効果が出てくる。 [1134] According to this, even if the partial data is not divided at a place where the display is well-cut such as a line feed, it is possible to obtain a display result which does not impair the meaning of the original electronic data. Comes out.
(s) 本発明に係るデータ処理方法は、前記電子データの処理範囲が指定されている 場合、部分データ力 その指定されている処理範囲の処理結果を得るために必要か どうかを判断する部分データ必要性判断ステップをさらに備え、該部分データ必要性 判断ステップにおいて、所望の部分データが必要かどうかの判断に、所望の部分デ 一タの前あるいは後に連続する一つ以上の部分データの処理結果を使うことを特徴 としてちよい。  (s) In the data processing method according to the present invention, when the processing range of the electronic data is specified, the partial data force is used to determine whether it is necessary to obtain the processing result of the specified processing range. The method further comprises a necessity determining step, wherein the partial data necessity determining step determines whether or not the desired partial data is necessary, and determines whether or not a result of processing of one or more partial data continuous before or after the desired partial data. It is good to use
[1135] 上記の構成において、部分データ力 その指定されている処理範囲の処理結果を 得るために必要力どうかを判断する場合、電子データ中の基準位置が指定され、そ の基準位置に対して指定されて 、る処理範囲の処理結果を得るために、どの部分デ ータが必要かを判断する。このとき、例えば、所望の部分データが上記基準位置より 前方に位置していて、かつ所望の部分データの後に連続する一つ以上の部分デー タの処理結果が既に得られて 、る場合に、その処理結果が指定されて 、る処理範囲 を満たす力どうかを判断することによって、所望の部分データの要否を決定すること ができる。  [1135] In the above configuration, when determining whether or not the partial data force is necessary to obtain the processing result of the specified processing range, a reference position in the electronic data is designated, and the reference position is determined with respect to the reference position. Then, it is determined which partial data is necessary to obtain the processing result of the specified processing range. At this time, for example, when the desired partial data is located ahead of the reference position and the processing result of one or more partial data continuous after the desired partial data has already been obtained, By determining whether or not the processing result is specified and whether or not the power satisfies a certain processing range, the necessity of the desired partial data can be determined.
[1136] すなわち、所望の部分データの後に連続する一つ以上の部分データの処理結果 力 指定されている処理範囲を満たしているならば、所望の部分データは不要と判断 することができ、満たしていないならば、所望の部分データは必要と判断することがで きる。 [1136] That is, the processing result of one or more partial data continuous after the desired partial data If the specified processing range is satisfied, the desired partial data can be determined to be unnecessary, and if not, the desired partial data can be determined to be necessary.
[1137] これにより、既に取得済みの部分データの処理結果を利用して、所望の部分デー タの処理結果を得る前に、所望の部分データの要否を判断することができる効果が 出てくる。  [1137] As a result, it is possible to determine whether or not the desired partial data is necessary before obtaining the desired partial data processing result by using the processing result of the already acquired partial data. come.
(t) 本発明に係るデータ処理方法は、前記電子データの処理範囲が指定されている 場合、部分データ力 その指定されている処理範囲の処理結果を得るために必要か どうかを判断する部分データ必要性判断ステップをさらに備え、該部分データ必要性 判断ステップにおいて、所望の部分データ力 その指定されている処理範囲に含ま れて 、る場合に、所望の部分データの直前ある 、は直後の部分データが必要力どう かの判断に、所望の部分データの処理結果を使うことを特徴としてもょ 、。  (t) The data processing method according to the present invention is characterized in that, when a processing range of the electronic data is specified, partial data power is used to determine whether or not it is necessary to obtain a processing result of the specified processing range. A need judging step, wherein in the partial data necessity judging step, the desired partial data is included in the designated processing range; It is characterized by using the processing result of the desired partial data to determine whether the data is necessary.
[1138] 上記の構成によれば、所望の部分データが、その指定されている処理範囲に含ま れている場合には、まず所望の部分データの処理結果を得て、それが指定されてい る処理範囲を満たすかどうかを判断する。もし満たさない場合は、処理範囲に対して 処理結果が不足して 、るので、直前ある 、は直後の部分データの処理結果がさらに 必要という判断を、部分データ必要性判断ステップにおいて下すことができる。所望 の部分データの処理結果力 処理範囲に対して前方あるいは後方のどちらの方向を 満たして!/、な 、かをみれば、直前あるいは直後のどちらの部分データの処理結果が 必要力も判断できる。 [1138] According to the above configuration, when the desired partial data is included in the specified processing range, the processing result of the desired partial data is first obtained, and the result is specified. It is determined whether the processing range is satisfied. If not, the processing result is insufficient for the processing range. Therefore, it can be determined in the partial data necessity determining step that the processing result of the partial data immediately before or immediately after is further required. . Processing result power of desired partial data Whether forward or backward direction is satisfied with respect to the processing range! /, If you look at it, you can determine the processing power of either the previous or next partial data.
[1139] 部分データの処理結果がどのようになるかは、一般に処理してみないと分力もない 力 指定された処理範囲に属する所望の部分データが 1つ分かれば、その前後の部 分データが必要かどうかを逐次的に調べていくことで、指定された処理範囲に必要な 部分データを求めることができる効果が出てくる。  [1139] The processing result of the partial data is generally not determined without processing. If one desired partial data belonging to the specified processing range is known, the partial data before and after it By sequentially examining whether or not is necessary, the effect that the required partial data for the specified processing range can be obtained is obtained.
(u) 本発明に係るデータ処理プログラムは、上記の課題を解決するために、前記デ ータ処理方法が備える各ステップを、コンピュータに実行させることを特徴とする。  (u) A data processing program according to the present invention is characterized by causing a computer to execute each step of the data processing method in order to solve the above problems.
[1140] 本発明に係るデータ処理プログラムは、上記の課題を解決するために、前記データ 処理装置が備える各手段として、コンピュータを機能させることを特徴とする。 [1141] 本発明に係る記録媒体は、上記の課題を解決するために、前記データ処理プログ ラムを記録したことを特徴とする。 [1140] A data processing program according to the present invention is characterized by causing a computer to function as each unit included in the data processing device in order to solve the above-mentioned problems. [1141] A recording medium according to the present invention is characterized by recording the data processing program in order to solve the above problems.
[1142] これにより、上記記録媒体、またはネットワークを介して、一般的なコンピュータにデ ータ処理プログラムをインストールすることによって、該コンピュータを用いて上記の データ処理方法を実現する、言い換えれば、該コンピュータを部分データ処理装置 として機能させることができる。 As a result, by installing the data processing program on a general computer via the recording medium or the network, the data processing method is realized using the computer. The computer can function as a partial data processing device.
[1143] なお、ある着目した請求項に記載された構成と、その他の請求項に記載された構成 との組み合わせ力 その着目した請求項に記載された組み合わせに限られることは なぐ必要に応じてその着目した請求項に記載されていない組み合わせが可能であ る。 [1143] It should be noted that the combination power of the configuration described in a certain focused claim and the configuration described in another claim is not limited to the combination described in the focused claim as necessary. Combinations not described in the focused claim are possible.
[1144] 尚、発明を実施するための最良の形態の項においてなした具体的な実施態様また は実施例は、あくまでも、本発明の技術内容を明らかにするものであって、そのような 具体例にのみ限定して狭義に解釈されるべきものではなぐ本発明の精神と次に記 載する特許請求の範囲内で、いろいろと変更して実施することができるものである。  [1144] It should be noted that the specific embodiments or examples made in the section of the best mode for carrying out the invention merely clarify the technical content of the present invention, and such specific Various modifications can be made within the spirit of the present invention, which should not be construed in a narrow sense by limiting only to the examples, and the claims described below.
[1145] また、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得ら れる実施形態についても本発明の技術的範囲に含まれる。  [1145] Embodiments obtained by appropriately combining technical means disclosed in different embodiments are also included in the technical scope of the present invention.
産業上の利用の可能性  Industrial potential
[1146] 元の電子データ(文書データ、音楽データ、静止画データ、動画データなど)力 、 その一部を部分データとして切り出して利用(閲覧、再生など)することを可能にする 機器 (コンピュータ、電子書籍、携帯端末など)全般において、上記部分データの生 成および Zまたは処理に本発明を適用することができる。 [1146] Original electronic data (document data, music data, still image data, moving image data, etc.) power, and devices that allow a part of it to be cut out as partial data and used (viewing, playback, etc.) (computer, The present invention can be applied to the generation, Z processing, or processing of the partial data in general (e-books, mobile terminals, etc.).
[1147] 特に、処理リソース (CPUの処理速度やメモリ量など)が限られるような機器向けの 部分データ作成および Zまたは処理に効果的である。 [1147] This is particularly effective for creating partial data for devices with limited processing resources (CPU processing speed, memory size, etc.) and for Z or processing.

Claims

請求の範囲 The scope of the claims
[1] 単独で処理したときの処理結果自体には誤りが無 、部分データを、ある分割境界 における電子データの分割によって生成する場合に、その部分データのデータサイ ズが、予め定めた標準データサイズ以下であるかを判断する部分データサイズ判断 ステップと、  [1] There is no error in the processing result itself when processed alone, and when partial data is generated by dividing electronic data at a certain division boundary, the data size of the partial data is set to a predetermined standard data. A partial data size determining step of determining whether the size is equal to or less than the size;
その生成される部分データの処理結果に、上記分割境界における分割による所定 の影響が表れるカゝ否かを判断する影響判断ステップと、  An influence judging step of judging whether or not the processing result of the generated partial data has a predetermined effect due to the division at the division boundary;
データサイズが標準データサイズ以下であり、かつ、上記所定の影響が表れない分 割境界を、標準内非依存分割境界として抽出する標準内非依存境界抽出ステップと を備えたことを特徴とするデータ生成方法。  A standard-independent boundary extracting step of extracting, as a standard-independent division boundary, a division boundary having a data size equal to or smaller than the standard data size and not exhibiting the predetermined effect. Generation method.
[2] 上記標準内非依存分割境界が存在しない場合に、予め定めた最大データサイズ 以下で、かつ、分割の影響が表れない分割境界を、標準外非依存分割境界として抽 出する標準外非依存境界抽出ステップをさらに備えたことを特徴とする請求の範囲 第 1項に記載のデータ生成方法。  [2] If the above-mentioned standard-independent division boundary does not exist, a non-standard non-standard division boundary is extracted as a non-standard-independent division boundary, and a division boundary that is equal to or smaller than a predetermined maximum data size and does not show the influence of division is not exhibited. 2. The data generation method according to claim 1, further comprising a dependent boundary extraction step.
[3] 求まった標準内非依存分割境界の内、上記標準データサイズに最も近いデータ 位置における標準内非依存分割境界を抽出する第 1の分割境界抽出ステップをさら に備えたことを特徴とする請求の範囲第 1項に記載のデータ生成方法。  [3] The method further comprises a first division boundary extraction step of extracting a standard-independent division boundary at a data position closest to the standard data size among the obtained standard-independent division boundaries. The data generation method according to claim 1.
[4] 求まった標準外非依存分割境界の内、上記標準データサイズに最も近いデータ 位置における標準外非依存分割境界を抽出する第 2の分割境界抽出ステップをさら に備えたことを特徴とする請求の範囲第 2項に記載のデータ生成方法。  [4] The method further comprises a second division boundary extraction step of extracting a non-standard independent division boundary at a data position closest to the standard data size among the obtained non-standard independent division boundaries. 3. The data generation method according to claim 2.
[5] 上記標準内非依存分割境界も上記標準外非依存分割境界も存在しない場合に 、上記最大データサイズを超えな 、データ位置の分割境界を抽出する第 3の分割境 界抽出ステップをさらに備えたことを特徴とする請求の範囲第 2項に記載のデータ生 成方法。  [5] In the case where neither the standard-independent division boundary nor the non-standard-independent division boundary does not exist, a third division boundary extraction step of extracting a data position division boundary that does not exceed the maximum data size is further performed. 3. The data generation method according to claim 2, comprising:
[6] 抽出された分割境界で上記電子データを分割して、分割データを生成する分割 データ生成ステップと、  [6] a division data generating step of dividing the electronic data at the extracted division boundary to generate division data;
分割データを部分データとするには足りない情報である処理補助データを、着目し た分割データとそれ以外の分割データとから生成する処理補助データ生成ステップ と、 Focus on the processing auxiliary data, which is information that is insufficient to make the divided data into partial data. A processing auxiliary data generating step of generating from the divided data and the other divided data,
をさらに有することを特徴とする請求の範囲第 2項ないし第 5項のいずれか 1項に記 載のデータ生成方法。  The data generation method according to any one of claims 2 to 5, further comprising:
[7] 部分データの処理結果間に依存関係があることを示す情報である依存関係デー タを生成する依存関係データ生成ステップ  [7] Dependency data generation step for generating dependency data that is information indicating that there is a dependency between the processing results of the partial data
を有することを特徴とする請求の範囲第 1項に記載のデータ生成方法。  2. The data generation method according to claim 1, comprising:
[8] 依存関係データ生成ステップにおいて、依存関係データを生成する対象となる部 分データを、各部分データの直前あるいは直後あるいは両方の部分データとすること を特徴とする請求の範囲第 7項に記載のデータ生成方法。 [8] In the dependent relationship data generating step, the partial data for which the dependency data is to be generated may be partial data immediately before, immediately after, or both of the partial data. Data generation method described.
[9] 単独で処理したときの処理結果自体には誤りが無 、部分データを、ある分割境界 における電子データの分割によって生成する場合に、その部分データのデータサイ ズが、予め定めた標準データサイズ以下であるかを判断する部分データサイズ判断 手段と、 [9] There is no error in the processing result itself when processed alone, and when the partial data is generated by dividing the electronic data at a certain division boundary, the data size of the partial data is set to the predetermined standard data. A partial data size determining means for determining whether the size is equal to or smaller than the size,
その生成される部分データの処理結果に、上記分割境界における分割による所定 の影響が表れる力否かを判断する影響判断手段と、  Impact determining means for determining whether or not the processing result of the generated partial data exerts a predetermined effect due to the division at the division boundary;
データサイズが標準データサイズ以下であり、かつ、上記所定の影響が表れない分 割境界を、標準内非依存分割境界として優先的に抽出する標準内非依存境界抽出 手段と、  A non-standard independent boundary extracting means for preferentially extracting, as a non-standard independent division boundary, a division boundary having a data size equal to or smaller than the standard data size and not exhibiting the predetermined effect;
を備えたことを特徴とするデータ生成装置。  A data generation device comprising:
[10] 請求の範囲第 1項力 第 8項のいずれか 1項に記載のデータ生成方法が備える 各ステップを、コンピュータに実行させるためのデータ生成プログラム。 [10] A data generation program for causing a computer to execute each step of the data generation method according to any one of claims 8 to 10.
[11] 請求の範囲第 9項に記載のデータ生成装置が備える各手段として、コンピュータ を機能させるためのデータ生成プログラム。 [11] A data generation program for causing a computer to function as each means included in the data generation device according to claim 9.
[12] 請求の範囲第 10項または第 11項に記載のデータ生成プログラムを記録したコン ピュータ読取可能な記録媒体。 [12] A computer-readable recording medium on which the data generation program according to claim 10 or 11 is recorded.
[13] 電子データが複数に分割されたデータであり、単独で処理したときの処理結果自 体には誤りが無いデータである部分データを用いて所定の処理を行うデータ処理方 法であって、 [13] A data processing method in which electronic data is divided into a plurality of pieces, and a predetermined result is obtained by using partial data that is a data obtained by processing alone and having no error. The law,
所望の部分データの処理結果に電子データを分割したことの影響を与える影響部 分データを検出する影響検出ステップと、  An influence detecting step of detecting an affected part data which has an effect of dividing the electronic data into a processing result of a desired partial data;
所望の部分データの処理を行う際、前記影響部分データが検出された場合には、 影響部分データ力 所望の部分データまでの範囲を一続きのデータとして処理する 部分データ処理ステップと、  When performing the processing of the desired partial data, if the affected partial data is detected, processing the range of the affected partial data force to the desired partial data as a continuous data partial data processing step;
を備えたことを特徴とするデータ処理方法。  A data processing method comprising:
[14] 所望の部分データの直前あるいは直後の部分データに対し、前記影響検出ステ ップを実行することを特徴とする請求の範囲第 13項に記載のデータ処理方法。  14. The data processing method according to claim 13, wherein the effect detection step is performed on partial data immediately before or immediately after the desired partial data.
[15] 前記電子データの処理範囲が指定されて 、る場合、部分データが、その指定さ れて 、る処理範囲の処理結果を得るために必要かどうかを判断する部分データ必要 性判断ステップをさらに備え、  [15] When a processing range of the electronic data is specified, a partial data necessity determining step of determining whether partial data is necessary to obtain a processing result of the specified processing range is performed. In addition,
必要と判断された部分データにっ 、て、前記影響検出ステップを実行することを特 徴とする請求の範囲第 13項に記載のデータ処理方法。  14. The data processing method according to claim 13, wherein the effect detecting step is performed based on the partial data determined to be necessary.
[16] 前記部分データ必要性判断ステップにおいて、指定されている処理範囲の処理 結果を得るのに必要な部分データが 1つ特定された場合であって、その特定された 部分データの直前の部分データの必要性判断の為に、その特定された部分データ の処理結果を得る場合には、直前の部分データが前記影響部分データに該当する としても、直前の部分データとその特定された部分データとを一続きのデータとして 処理しないことを特徴とする請求の範囲第 15項に記載のデータ処理方法。  [16] In the partial data necessity judging step, when one piece of partial data necessary to obtain a processing result of the specified processing range is specified, and the part immediately before the specified partial data is used. When obtaining the processing result of the specified partial data to determine the necessity of data, even if the previous partial data corresponds to the affected partial data, the previous partial data and the specified partial data are obtained. 16. The data processing method according to claim 15, wherein the data is not processed as a series of data.
[17] 前記影響検出ステップで、まず検出対象の部分データを特定し、次に当該検出 対象の部分データが前記影響部分データに該当するか否かを、当該検出対象の部 分データの処理結果を使って判定することを特徴とする請求の範囲第 13項に記載 のデータ処理方法。  [17] In the influence detection step, first, the partial data to be detected is specified, and then whether or not the partial data to be detected corresponds to the affected partial data is determined by a processing result of the partial data to be detected. 14. The data processing method according to claim 13, wherein the determination is made using
[18] 前記影響検出ステップの前に、所望の部分データの処理結果を取得して保持す る部分取得ステップを備え、  [18] Before the influence detecting step, a partial acquisition step of acquiring and holding a processing result of desired partial data is provided,
影響検出ステップで影響部分データが検出されな 、場合は、取得した所望の部分 データの処理結果を使って前記所定の処理を行う一方、前記影響検出ステップで影 響部分データが検出された場合は、前記部分データ処理ステップの実行によって、 所望の部分データの処理結果を新たに取得して保持し直すことを特徴とする請求の 範囲第 13項に記載のデータ処理方法。 In the case where the influence partial data is not detected in the influence detection step, the predetermined processing is performed using the processing result of the acquired desired partial data, while the influence detection step performs shadow processing. 14. The data according to claim 13, wherein, when reverberation partial data is detected, the processing result of the desired partial data is newly acquired and held again by executing the partial data processing step. Processing method.
[19] 所望の部分データの処理結果を新たに取得して保持し直すときに、影響部分デ 一タカ 所望の部分データまでの範囲を一続きのデータとして処理したという情報を 、所望の部分データの処理結果に関連付けて保持しておくことを特徴とする請求の 範囲第 18項に記載のデータ処理方法。  [19] When a new processing result of the desired partial data is newly acquired and stored again, the information indicating that the range up to the desired partial data has been processed as continuous data is replaced with the desired partial data. 19. The data processing method according to claim 18, wherein the data processing method is stored in association with a processing result.
[20] 前記電子データが、部分データの処理結果に影響を与えるデータを持っている 場合に、前記影響検出ステップは、その影響を与えるデータの効力が所望の部分デ ータに対して有効力否かを判定するステップと、有効と判定した場合に、所望の部分 データの少なくとも直前の部分データを前記影響部分データの候補とするステップと を備えたことを特徴とする請求の範囲第 13項に記載のデータ処理方法。  [20] In the case where the electronic data has data that affects the processing result of the partial data, the influence detecting step includes determining that the effect of the affecting data is effective for the desired partial data. 14. A method according to claim 13, further comprising the step of: determining whether or not the partial data immediately before the desired partial data is a candidate of the affected partial data when the valid partial data is determined. The data processing method described in 1.
[21] 電子データが複数に分割されたデータであり、単独で処理したときの処理結果自 体には誤りが無いデータである部分データを用いて所定の処理を行うデータ処理方 法であって、  [21] A data processing method in which electronic data is divided into a plurality of pieces, and a predetermined processing is performed using partial data which is a data obtained by processing alone and having no error in itself. ,
所望の部分データの処理結果に電子データを分割したことの影響を与える影響部 分データの内、電子データにおける処理順序として最前あるいは最後に位置する影 響部分データを検出する影響検出ステップと、  An influence detecting step of detecting, from among the influential part data that influences the division of the electronic data into the processing result of the desired partial data, the influential partial data positioned at the earliest or last in the processing order of the electronic data;
所望の部分データの処理を行う際、前記影響部分データが検出された場合には、 影響部分データ力 所望の部分データまでの範囲を一続きのデータとして処理する 部分データ処理ステップと、  When performing the processing of the desired partial data, if the affected partial data is detected, processing the range of the affected partial data force to the desired partial data as a continuous data partial data processing step;
を備えたことを特徴とするデータ処理方法。  A data processing method comprising:
[22] 前記影響検出ステップでは、最前あるいは最後に位置する影響部分データを予 め検出して保持しておいた処理補助データを使って、最前あるいは最後に位置する 影響部分データを検出することを特徴とする請求の範囲第 21項に記載のデータ処 理方法。 [22] In the influence detecting step, the foremost or last affected part data is detected using the processing auxiliary data previously detected and held. 22. The data processing method according to claim 21, wherein:
[23] 前記電子データを複数に分割した分割データと、分割データを単独で処理したと きに誤りが無い処理結果を得るには足りない情報である処理補助データとを合わせ て、前記部分データとすることを特徴とする請求の範囲第 13項または第 21項に記載 のデータ処理方法。 [23] A combination of the divided data obtained by dividing the electronic data into a plurality of pieces and processing auxiliary data, which is information that is insufficient for obtaining a processing result without error when the divided data is processed alone, is combined. 22. The data processing method according to claim 13, wherein said partial data is used as said partial data.
[24] 前記分割データの前記電子データ中の位置の情報、あるいは位置とサイズの情 報を、前記処理補助データが持って 、ることを特徴とする請求の範囲第 23項に記載 のデータ処理方法。  24. The data processing according to claim 23, wherein the processing auxiliary data has information on a position of the divided data in the electronic data or information on a position and a size. Method.
[25] 各部分データに対し、前記影響部分データになる部分データがどれかを特定す る影響情報を前記処理補助データが持ち、前記影響検出ステップでは、この影響情 報を使って影響部分データを検出することを特徴とする請求の範囲第 23項に記載の データ処理方法。  [25] For each of the partial data, the processing auxiliary data has influence information for specifying which partial data is to be the affected partial data. In the influence detecting step, the influence partial data is used by using the influence information. 24. The data processing method according to claim 23, wherein the data is detected.
[26] 前記電子データは表示設定によって表示レイアウトが変わる文書データであり、 前記所定の処理は、部分データ力 表示レイアウトを生成する処理であることを特徴 とする請求の範囲第 13項または第 21項に記載のデータ処理方法。  26. The electronic device according to claim 13, wherein the electronic data is document data whose display layout changes according to display settings, and wherein the predetermined process is a process of generating a partial data display layout. Data processing method described in the section.
[27] 前記影響検出ステップの前に、前記所望の部分データの最初の表示レイアウト要 素力 表示レイアウトの出力対象である表示媒体において、常に行頭から表示される か否かを調べるレイアウト調査ステップを備え、  [27] Before the influence detecting step, a layout investigating step for checking whether or not the desired display data is always displayed from the beginning of the line on the display medium to which the desired partial data is to be output is displayed. Prepare,
前記最初の表示レイアウト要素が、前記行頭から表示される場合、前記影響検出ス テツプを実行しないことを特徴とする請求の範囲第 26項に記載のデータ処理方法。  27. The data processing method according to claim 26, wherein when the first display layout element is displayed from the beginning of the line, the effect detection step is not performed.
[28] 前記影響検出ステップの前に、前記所望の部分データの任意の表示レイアウト要 素力 表示レイアウトの出力対象である表示媒体において、その表示範囲の先頭位 置力も表示される力否かを調べるレイアウト調査ステップを備え、  [28] Prior to the influence detecting step, an arbitrary display layout element of the desired partial data is determined on the display medium to which the display layout is to be output, whether or not the head position of the display range is also displayed. It has a layout survey step to examine,
前記任意の表示レイアウト要素が、前記先頭位置から表示される場合、前記影響 検出ステップを実行しないことを特徴とする請求の範囲第 26項に記載のデータ処理 方法。  27. The data processing method according to claim 26, wherein when said arbitrary display layout element is displayed from said head position, said effect detecting step is not performed.
[29] 前記影響検出ステップの前に、前記所望の部分データの表示レイアウトを生成す るとともに、前記影響部分データか否かの検出対象にする部分データを特定し、その 検出対象の部分データの表示レイアウトを生成するレイアウト生成ステップを備え、 前記影響検出ステップにおいて、所望の部分データの表示レイアウトが含まれる全 ての行に、検出対象の部分データの表示レイアウトが含まれない場合、検出対象の 部分データは、影響部分データではな!、と判断することを特徴とする請求の範囲第 2[29] Before the influence detecting step, a display layout of the desired partial data is generated, and partial data to be detected as to whether or not the partial data is to be detected is specified. A layout generating step of generating a display layout, wherein in the influence detecting step, if all the rows including the display layout of the desired partial data do not include the display layout of the partial data to be detected, Claim 2 is characterized in that it is determined that the partial data is not the affected partial data!
6項に記載のデータ処理方法。 The data processing method according to item 6.
[30] 前記電子データは表示設定によって表示レイアウトが変わる文書データであり、 前記所定の処理は、部分データ力 表示レイアウトを生成する処理であり、 [30] The electronic data is document data whose display layout changes according to display settings, and the predetermined process is a process of generating a partial data display layout.
前記影響検出ステップで、所望の部分データの直前の部分データが影響部分デ ータであると検出された場合、前記部分データ処理ステップにおいて、直前の部分 データの表示レイアウトを生成した後、その表示レイアウトの最後の表示レイアウト要 素に続けて、所望の部分データの表示レイアウトを生成することを特徴とする請求の 範囲第 13項に記載のデータ処理方法。  In the influence detecting step, when the partial data immediately before the desired partial data is detected as the affected partial data, in the partial data processing step, after the display layout of the immediately preceding partial data is generated, the display layout is generated. 14. The data processing method according to claim 13, wherein a display layout of desired partial data is generated following the last display layout element of the layout.
[31] 前記電子データの処理範囲が指定されている場合、部分データが、その指定さ れて 、る処理範囲の処理結果を得るために必要かどうかを判断する部分データ必要 性判断ステップをさらに備え、 [31] When a processing range of the electronic data is specified, a partial data necessity determining step of determining whether the partial data is necessary to obtain a processing result of the specified processing range is further performed. Prepare,
該部分データ必要性判断ステップにお 、て、所望の部分データが必要力どうかの 判断に、所望の部分データの前あるいは後に連続する一つ以上の部分データの処 理結果を使うことを特徴とする請求の範囲第 13項または第 21項に記載のデータ処 理方法。  In the partial data necessity judging step, the processing result of one or more partial data continuous before or after the desired partial data is used to judge whether or not the desired partial data is necessary. 22. A data processing method according to claim 13 or claim 21, wherein
[32] 電子データが複数に分割されたデータであり、単独で処理したときの処理結果自 体には誤りが無いデータである部分データを用いて所定の処理を行うデータ処理装 置であって、  [32] A data processing device that performs a predetermined process using partial data that is data obtained by dividing electronic data into a plurality of data and that has no error in the processing result itself when processed independently. ,
所望の部分データの処理結果に電子データを分割したことの影響を与える影響部 分データを検出する影響検出手段と、  An influence detecting means for detecting an affected part data which has an effect of dividing the electronic data into a processing result of a desired partial data;
所望の部分データの処理を行う際、前記影響検出手段で影響が検出された場合 には、影響部分データ力 所望の部分データまでの範囲を一続きのデータとして処 理する部分データ処理手段と、  When processing the desired partial data, if an influence is detected by the influence detecting means, a partial data processing means for processing the range up to the desired partial data as a continuous data,
を備えたことを特徴とするデータ処理装置。  A data processing device comprising:
[33] 電子データが複数に分割されたデータであり、単独で処理したときの処理結果自 体には誤りが無いデータである部分データを用いて所定の処理を行うデータ処理装 置であって、 所望の部分データの処理結果に電子データを分割したことの影響を与える影響部 分データの内、電子データにおける処理順序として最前あるいは最後に位置する影 響部分データを検出する影響検出手段と、 [33] A data processing device that performs a predetermined process using partial data that is data obtained by dividing electronic data into a plurality of data and that has no error in the processing result itself when processed independently. , An influence detecting means for detecting, in the influencing part data which influences the division of the electronic data into the processing result of the desired partial data, the influencing partial data positioned at the earliest or last processing order in the electronic data,
所望の部分データの処理を行う際、前記影響部分データが検出された場合には、 影響部分データ力 所望の部分データまでの範囲を一続きのデータとして処理する 部分データ処理手段と、  When performing the processing of the desired partial data, if the affected partial data is detected, the affected partial data force is used to process the range up to the desired partial data as continuous data.
を備えたことを特徴とするデータ処理装置。  A data processing device comprising:
[34] 請求の範囲第 13項力 第 31項のいずれか 1項に記載のデータ処理方法が備え る各ステップを、コンピュータに実行させるためのデータ処理プログラム。  [34] A data processing program for causing a computer to execute each step of the data processing method according to any one of [31] to [13].
[35] 請求の範囲第 32項または第 33項に記載のデータ処理装置が備える各手段とし て、コンピュータを機能させるためのデータ処理プログラム。  [35] A data processing program for causing a computer to function as each unit included in the data processing device according to claim 32 or 33.
[36] 請求の範囲第 34項または第 35項に記載のデータ処理プログラムを記録したコン ピュータ読取可能な記録媒体。  [36] A computer-readable recording medium on which the data processing program according to claim 34 or 35 is recorded.
PCT/JP2004/015039 2003-12-19 2004-10-12 Data generation method, data processing method, data generation device, data processing device, data generation program, data processing program, recording medium containing the data generation program, and recording medium containing the data processing program WO2005062198A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2003423263A JP3886962B2 (en) 2003-12-19 2003-12-19 DATA GENERATION METHOD, DATA GENERATION DEVICE, DATA GENERATION PROGRAM, AND RECORDING MEDIUM CONTAINING DATA GENERATION PROGRAM
JP2003-423263 2003-12-19
JP2004-081483 2004-03-19
JP2004081483A JP3822211B2 (en) 2004-03-19 2004-03-19 Data processing method, data processing apparatus, data processing program, and recording medium on which data processing program is recorded

Publications (1)

Publication Number Publication Date
WO2005062198A1 true WO2005062198A1 (en) 2005-07-07

Family

ID=34712958

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2004/015039 WO2005062198A1 (en) 2003-12-19 2004-10-12 Data generation method, data processing method, data generation device, data processing device, data generation program, data processing program, recording medium containing the data generation program, and recording medium containing the data processing program

Country Status (1)

Country Link
WO (1) WO2005062198A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11175426A (en) * 1997-12-11 1999-07-02 Fuji Xerox Co Ltd Service repeater system
WO2002103554A1 (en) * 2001-06-14 2002-12-27 Sharp Kabushiki Kaisha Data processing method, data processing program, and data processing apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11175426A (en) * 1997-12-11 1999-07-02 Fuji Xerox Co Ltd Service repeater system
WO2002103554A1 (en) * 2001-06-14 2002-12-27 Sharp Kabushiki Kaisha Data processing method, data processing program, and data processing apparatus

Similar Documents

Publication Publication Date Title
KR100452569B1 (en) Method and system for incorporation of graphical print techniques in a web browser
US8244541B2 (en) Content creation system, content creation method, computer executable program for executing the same content creation method, computer readable storage medium having stored the same program, graphical user interface system and display control method
US8074167B2 (en) Cross domain presence of web user interface and logic
US20100251104A1 (en) System and method for reflowing content in a structured portable document format (pdf) file
JP2008158765A (en) Information processing device, information processing method, and program for executing it by computer
US7793224B1 (en) Methods and apparatus for formatting identified content
JPH09222974A (en) Language interpretation display method, device and system using the same
US9075775B2 (en) Method and system of identifying textual passages that affect document length
JP2667352B2 (en) Data retrieval apparatus and method
JP4909882B2 (en) Web document style changing system and method
WO2005062198A1 (en) Data generation method, data processing method, data generation device, data processing device, data generation program, data processing program, recording medium containing the data generation program, and recording medium containing the data processing program
JP4118885B2 (en) Data processing method, data processing apparatus, data processing program, and recording medium on which data processing program is recorded
JP3886962B2 (en) DATA GENERATION METHOD, DATA GENERATION DEVICE, DATA GENERATION PROGRAM, AND RECORDING MEDIUM CONTAINING DATA GENERATION PROGRAM
CN112765110B (en) PDF annotation data generation method, device, equipment and storage medium
US6668355B1 (en) Text editing system
JP3822211B2 (en) Data processing method, data processing apparatus, data processing program, and recording medium on which data processing program is recorded
JP4087270B2 (en) Data processing apparatus, data processing method, data processing program, and recording medium
JPWO2005101210A1 (en) Data analysis apparatus and data analysis program
US7675527B2 (en) Multisource composable projection of text
JP4976783B2 (en) PROGRAM GENERATION DEVICE, PROGRAM GENERATION METHOD, PROGRAM, AND RECORDING MEDIUM
JP2000076226A (en) Document data editing system
JP2006065588A (en) Information reading device, information reading program, and information reading program recording medium
JP4249771B2 (en) Comment area extraction apparatus, program, and comment area extraction method
JP2007179379A (en) Content browsing apparatus, content display device, and method of displaying content
JPH1185457A (en) Data processor, its data processing method, and storage medium storing computer-readable program

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): BW GH GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

122 Ep: pct application non-entry in european phase