Code information typesetting method, electronic device and computer storage medium

A technology of information storage and coding, which is applied in computing, digital data processing, special data processing applications, etc. It can solve the problems of reducing code readability, unable to solve code information, and unreadable entire code, so as to improve readability performance, solve the effect of code serialization

Active Publication Date: 2018-04-06
深圳掌阅动漫科技有限公司
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In layman's terms, the typesetting of a formatted document cannot be changed, while the typesetting of a fluid typesetting document can be changed. After converting a formatted document into a fluid typesetting document, the characters and pictures in the formatted document can be retained and other information, but the typesetting format of its documents will not be preserved
[0004] However, the inventor found in the process of implementing the present invention that the above-mentioned typesetting method has at least the following defects: after the original document is identified and converted, the typesetting method of the orig

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
  • Code information typesetting method, electronic device and computer storage medium
  • Code information typesetting method, electronic device and computer storage medium
  • Code information typesetting method, electronic device and computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] An embodiment of the present invention provides a typesetting method for code information. Usually, after a document is converted, the code in the obtained document does not have the format of the code in the original document, or the code in the document is directly copied, and the obtained code does not have the format of the code in the original document, for example, converting the PDF document to Convert to a word document, or copy the content in the PDF document to a word document or TXT document, and use the content contained in the PDF document, but often after the PDF document is converted or the content in the PDF document is copied, the word document The content in the TXT document does not have its format in the PDF document, and the content in the TXT document does not have its format in the PDF document. Compared with the format of the content in the PDF document, the font and line spacing are changed, Content is wrapped, spacers are removed, etc.

[0030...

Embodiment 2

[0047] figure 2 Shows the method flow chart of the typesetting method of code information according to Embodiment 2 of the present invention, as shown in figure 2 As shown, the method includes:

[0048] Step S201, identifying the horizontal start boundary and horizontal end boundary of the code region contained in the document according to the preset code feature recognition rules.

[0049] Wherein, the code feature recognition rules include at least one of the following three rules: the first rule is: a line spacing recognition rule, a font recognition rule, and a language recognition rule for recognizing a horizontal start boundary and / or a horizontal end boundary. This rule is commonly used to identify the horizontal start boundary and the vertical start boundary.

[0050] Specifically, to identify the horizontal start boundary and the horizontal end boundary of the code area, that is, to identify the first line of code and the last line of code in the code area, specif...

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 present invention discloses a code information typesetting method, an electronic device and a computer storage medium. The method comprises: recognizing a code area contained in a document; respectively obtaining code information of each line contained in the code area, and storing the code information of the line as a piece of code information; for each piece of code information, determiningthe position of the first character in the piece of code information in the code area; and typesetting the piece of code information according to the position of the first character in the code area.By virtue of the technical scheme of the present invention, according to the format of the code in the document, the code extracted from the document is typeset, and the problems that the code extracted from the document needs to be manually checked and layout due to loss of the format of the extracted code in the document are solved, so that the related personnel can directly use the extracted code in a facilitated manner; and the technical scheme improves the readability of typeset codes and solves the problem of serialization of typeset codes.

Description

technical field [0001] The invention relates to the technical field of document processing, in particular to a typesetting method for code information, electronic equipment and a computer storage medium. Background technique [0002] With the increasing popularity of e-books, more and more original book materials are converted into e-book documents for the convenience of users to read. During the conversion process, it is necessary to identify the text information contained in the original book material, and to re-typeset according to the identified results. [0003] For example, take a common typesetting document as an example. Since the layout of the typesetting is fixed, the original editing layout is always displayed during the reading process, and the typesetting will not be automatically rearranged according to the page width after zooming. For example, PDF documents made from scanned initial images, as well as PDF documents and plain text files produced in a fixed fo...

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): G06F17/25G06F17/22G06F40/189
CPCG06F40/151G06F40/189
Inventor 于刚闫伟鸿
Owner 深圳掌阅动漫科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products