Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2018-03-06
NEW FOUNDER HLDG DEV LLC +1
View PDF6 Cites 0 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
  • Method and system for streaming restoration of layout spaces
  • Method and system for streaming restoration of layout spaces
  • Method and system for streaming restoration of layout spaces

Examples

Experimental program
Comparison scheme
Effect test

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

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 stream document. Background technique [0002] A layout document is a document independent of software, hardware, operating system, presentation or printing equipment, such as layout documents in pdf, ceb, cebx and other formats. A layout document can contain multiple pages, and each page is composed of a number of graphics elements that are independent of devices and resolutions. Layout technology refers to the technology of solidifying and presenting various digital content objects such as text, graphics, images, audio and video, etc. 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 for short), so that the presentation effect of the electr...

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 Patents(China)
IPC IPC(8): G06F17/25G06F40/189
Inventor 王长胜董宁
Owner NEW FOUNDER HLDG DEV LLC