Layout space streaming restoring method and layout space streaming restoring system
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 streaming method for restoring space in a layout. The flow chart is as follows Image 6 , Including the following steps:
[0060] (1) Get the first character O, the second character I, and the third character g next to each other in the layout, such as Figure 7 in.
[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 of the second character spacing d2 is D=d1-d2.
[0062] (3) If the character spacing difference D is less than the preset difference threshold, where the threshold is 5 points, no spaces are inserted; otherwise, the right value R1 of the first character O and the left value L2 of the second character I are calculated The sum of is used as the side value sum R1+L2, and the right value ...
Embodiment 2
[0065] (1) Obtain three consecutive 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 structured information of the layout or document can be obtained, thereby obtaining font resource information corresponding to the character, including data such as font, coordinates, and word width. These information can be directly obtained and called directly from the existing resource information, which reduces the complexity of calculations and 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 of the second character spacing d2 is D=d1-d2, where, in this step, the coordinates x1 of the first charac...
Embodiment 3
[0071] This embodiment provides a system for stream restoration of page spaces, including:
[0072] Obtaining unit: Obtain the first character, the second character, and the third character next to each other in the layout. The font resource information of the character is obtained by a layout analysis method, which contains font information, and the font information contains font information. The font resource information of the character is obtained by a layout analysis method, and the right value and left value are obtained from the font information in the font library where the character is located. These information can be directly obtained and called directly from the existing resource information, which reduces the complexity of calculations and 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 second character spacing between t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com