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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
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