Method and system for streaming restoration of layout spaces
A space and layout technology, applied in the fields of instrumentation, calculation, electrical and digital data processing, etc., can solve the problem of no space equivalent expression, ignorance, etc., to achieve the effect of accurate display
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0059] The present invention provides a stream restoration method of layout space, the flow chart is as follows Figure 6 , including the following steps:
[0060] (1) Obtain the first character O, the second character I, and the third character g adjacent to each other in sequence in the layout, such as Figure 7 middle.
[0061] (2) Calculate the first character spacing d1 between the first character O and the second character I, and calculate the second character spacing d2 between the second character I and the third character g, and then calculate the first character spacing d1 and The character spacing difference D=d1-d2 of the second character spacing d2.
[0062] (3) If the character spacing difference D is less than the preset difference threshold, where the threshold is 5 points, no space will be inserted; otherwise, calculate the right value R1 of the first character O and the left value L2 of the second character I The sum of is used as the boundary value sum R1...
Embodiment 2
[0065] (1) Acquire three adjacent characters in the layout, such as the first character O, the second character I, and the third character g. Through this step, all data parameters in the structural information of the layout or document can be obtained, so as to obtain the font resource information corresponding to the character, including data such as font, coordinates, and word width. These information can be obtained and called directly from the existing resource information, which not only reduces the complexity of calculation, but also improves the accuracy of data acquisition.
[0066] (2) Calculate the first character spacing d1 between the first character O and the second character I, and calculate the second character spacing d2 between the second character I and the third character g, and then calculate the first character spacing d1 and The character spacing difference D=d1-d2 of the second character spacing d2, wherein, in this step, obtain the coordinate x1 of the...
Embodiment 3
[0071] This embodiment provides a streaming restoration system for layout spaces, including:
[0072] Acquisition unit: Acquires the first character, the second character, and the third character that are sequentially adjacent in the layout. The font resource information of the characters is obtained through a layout analysis method, which includes font information, and the font information includes font information. The font resource information of the character is obtained through a layout analysis method, and the right value and left value are obtained from font information in the font library where the character is located. These information can be obtained and called directly from the existing resource information, which not only reduces the complexity of calculation, but also improves the accuracy of data acquisition.
[0073] Character spacing calculation unit: calculate the first character spacing between the first character and the second character, and calculate the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


