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

Electronic book typesetting processing method, electronic equipment and storage medium

A processing method and e-book technology, applied in the computer field, can solve problems such as missing spaces in streaming documents, difficult to accurately identify text, and inconvenient reading process for users

Active Publication Date: 2021-04-23
ZHANGYUE TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the inventor found in the process of implementing the present invention that the parsing process usually only involves the recognition of characters, and it is difficult to accurately identify the intervals between characters.
Therefore, the problem of missing spaces often appears in the converted streaming documents, and the missing spaces will obviously cause inconvenience to the user's reading process

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
  • Electronic book typesetting processing method, electronic equipment and storage medium
  • Electronic book typesetting processing method, electronic equipment and storage medium
  • Electronic book typesetting processing method, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] figure 1 A flow chart of a typesetting processing method for an electronic book provided by an embodiment of the present invention is shown. Such as figure 1 As shown, the method includes the following steps:

[0030] Step S110: Analyze the original text lines contained in the original document of the e-book, and generate converted text lines corresponding to the original text lines in the converted document according to the analysis results.

[0031] Specifically, the original document of the e-book refers to: the original file of the e-book before format conversion processing is performed. Wherein, the original document of the e-book may be in various formats such as PDF format and image format. Correspondingly, the converted document refers to a document obtained after performing conversion on the original document, and the converted document may be in various formats such as epub format and word format.

[0032] During specific implementation, each original text...

Embodiment 2

[0042] figure 2 A flow chart of an e-book typesetting processing method provided by another embodiment of the present invention is shown. Such as figure 2 As shown, the method includes the following steps:

[0043] Step S200: Clustering the original text lines included in the original document of the e-book according to the style information in advance, and setting the style space threshold corresponding to various style information according to the clustering result.

[0044] Wherein, the style information is used to describe the style of the text, specifically including: font, font size, font shape and / or color, and the like. Since the font styles corresponding to different parts of an e-book such as the title, body text, and appendix are different, in this embodiment, different style space thresholds are set for different style information. Wherein, the style space threshold is used to determine whether a space needs to be inserted between adjacent characters in the do...

Embodiment 3

[0067] An embodiment of the present application provides a non-volatile computer storage medium, the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the typesetting processing method of an electronic book in any of the above method embodiments.

[0068] Specifically, the executable instruction can be used to make the processor perform the following operations:

[0069] Analyzing the original text lines contained in the original document of the e-book, and generating converted text lines corresponding to the original text lines in the converted document according to the analysis result;

[0070] Obtain the position offset of each text contained in the converted text line of the converted document in the original document, and calculate the position of two adjacent texts in the converted text line of the converted document according to the position offset spacing in said original document;

[0071] Acquirin...

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 an e-book typesetting processing method, electronic equipment and a storage medium, and the method comprises the steps: carrying out analysis of an original text line contained in an original document of an e-book, and generating a conversion text line corresponding to the original text line in a conversion document; obtaining the position offset of each character contained in the converted character line of the converted document in the original document, and calculating the interval between two adjacent characters in the converted character line of the converted document in the original document; obtaining a style space threshold corresponding to the style information of the original text line; and determining whether to add a space between two adjacent characters in the converted character line or not according to a comparison result of the interval of the two adjacent characters in the converted character line in the original document and the style space threshold. The style space threshold corresponding to the style information can be determined according to the statistical distribution data of the character intervals in the plurality of original character lines with the same style, and whether the space needs to be added or not is judged.

Description

technical field [0001] The invention relates to the field of computers, in particular to a typesetting processing method for electronic books, electronic equipment and storage media. Background technique [0002] During the typesetting process of e-books, it is usually necessary to convert the layout document into a flow document for flexible editing. In the prior art, the conversion from format document to stream document is mostly realized through text parsing. Specifically, each text included in the layout document is analyzed, and the corresponding text in the stream document is obtained according to the analysis result. [0003] However, the inventor found in the process of implementing the present invention that the parsing process usually only involves the recognition of characters, and it is difficult to accurately recognize the intervals between characters. Therefore, the problem of missing spaces often occurs in the converted streaming document, and the missing s...

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
IPC IPC(8): G06F40/106G06F40/189
CPCG06F40/106G06F40/189
Inventor 张恒
Owner ZHANGYUE TECH CO LTD
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