Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2015-04-15
NEW FOUNDER HLDG DEV LLC +1
View PDF6 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The reasons for the above phenomenon are: (1) There are no space characters in the relevant English text strings in the format document, but the character spacing (charspace) or the absolute coordinate position of the characters in the fixed format is used to express the logical spaces on the format; (2 ) and there is no space-equivalent expression in the structured flow information of the layout document, such as using the Maker tag {Type=space, nCount=n number of spaces}; (3) In the end, only the structured flow of the layout document can be relied on Format information is drawn according to certain typesetting rules when it is rendered (Render), but the results currently presented are as follows: figure 2 , image 3 as well as Figure 5 As shown, there are still related defects: this is because the existing drawing and typesetting algorithm uses charspace information when rendering the style sheet; while using the font information to render the charspace, it ignores the charspace and equalizes the word spacing

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Layout space streaming restoring method and layout space streaming restoring system
  • Layout space streaming restoring method and layout space streaming restoring system
  • Layout space streaming restoring method and layout space streaming restoring system

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a layout space streaming restoring method. The method comprises the steps of: acquiring three adjacent characters in a layout; calculating a character pitch between two adjacent characters, and calculating a difference value of the character pitches; if the difference value of the character pitches is smaller than a preset difference threshold value, not inserting a space; if the difference value of the character pitches is not smaller than the preset difference threshold value, calculating the sum of a right boundary value of the first character and a left boundary value of the second character to serve as a boundary value sum, and calculating the difference value of first character pitch and the boundary value sum to serve as a judgment value; and if the judgment value is larger than a word width value of the space character with same type of the first character, inserting the space behind the first character, otherwise, not inserting the space. Therefore, by calculating the blank space between two adjacent characters, a phenomenon whether the pitch is uniform due to the layout or is caused by the space character can be judged; if the difference value of the two character pitches is within the threshold value, the spacing is uniform, and the space is not required to be inserted; if the difference value is large, the space can be inserted after comparison and judgment; and therefore, when the spaces required by the layout is converted in a streaming mode, the required spaces can be increased by restoring the space, so that display of the layout is relatively accurate.

Description

Technical field [0001] The invention relates to the field of electronic document data processing, in particular to a processing method and system for restoring logical spaces in a format document to corresponding spaces in a streaming document. Background technique [0002] A layout document is a document that is independent of software, hardware, operating system, rendering or printing equipment, such as pdf, ceb, cebx and other formats. A layout document can contain multiple pages, each page is composed of a number of graphics elements independent of the device and resolution. Layout technology refers to the technology that solidifies and presents the layout of various digital content objects such as text, graphics, images, audio and video according to certain layout rules. The feature of the layout document is that the layout is fixed and does not run, that is, what you see is what you get (WYSIWYG), so that the presentation effect of the electronic document does not change d...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/25G06F40/189
Inventor 王长胜董宁
Owner NEW FOUNDER HLDG DEV LLC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products