CN107885715B - Composition method, electronic equipment and the computer storage media of code information - Google Patents

Composition method, electronic equipment and the computer storage media of code information Download PDF

Info

Publication number
CN107885715B
CN107885715B CN201711181689.2A CN201711181689A CN107885715B CN 107885715 B CN107885715 B CN 107885715B CN 201711181689 A CN201711181689 A CN 201711181689A CN 107885715 B CN107885715 B CN 107885715B
Authority
CN
China
Prior art keywords
code
section
code information
character
rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711181689.2A
Other languages
Chinese (zh)
Other versions
CN107885715A (en
Inventor
于刚
闫伟鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhangyue Animation Technology Co ltd
Original Assignee
Zhangyue Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201711181689.2A priority Critical patent/CN107885715B/en
Publication of CN107885715A publication Critical patent/CN107885715A/en
Application granted granted Critical
Publication of CN107885715B publication Critical patent/CN107885715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of composition method of code information, electronic equipment and computer storage media, this method to include:The code region for including in identification document;The every line code information for including in code region is obtained respectively, is one section of code information by the line code information storage;It is directed to every section of code information respectively, determines position of the first character in code region in this section of code information;Typesetting is carried out to this section of code information according to position of the first character in code region.Typesetting is carried out to the code extracted from document according to the format of code in document, the code extracted is avoided to lose its format in a document, the problem of to need to the manual inspection of the code extracted from document and typesetting, the code extracted is directly utilized convenient for related personnel.Which improves the readability of the code after typesetting, solves the problems, such as that the code after typesetting is serial.

Description

Composition method, electronic equipment and the computer storage media of code information
Technical field
The present invention relates to document processing technology fields, and in particular to a kind of composition method of code information, electronic equipment and Computer storage media.
Background technology
With the increased popularity of e-book, more and more original books materials are converted into e-book document, with convenient User reads.In transfer process, need to be identified for the text information for including in original books material, and according to identification Result afterwards carries out typesetting again.
For example, by taking the document of common format typesetting as an example, since the space of a whole page of format typesetting is fixed, in reading process Always it is shown with original editor's format, typesetting again will not be carried out automatically according to page width after scaling.It is such as obtained using scanning first The PDF document and text-only file etc. of PDF document made of beginning picture and fixed format making, and the document of streaming typesetting Including word, number, table and graph image carry out specific version row mode and handle, the content after preservation is original editor Element.For generically, the typesetting of the document of format typesetting cannot be changed, and the typesetting of the document of streaming typesetting can be changed, After the document that the document of format typesetting is converted to streaming typesetting, character, the picture in the document of format typesetting can be retained Etc. information, but the typesetting format of its document will not retain.
But inventor has found in the implementation of the present invention, and above-mentioned type-setting mode at least has following defects:To original After beginning document is identified and converts, the type-setting mode of original document is often changed, the document after typesetting again and row are made Document before version exists different in format, and/or typesetting etc..It, may be again before typesetting for example, for text information Often style of writing word in include 50 words, and again in the often style of writing word after typesetting then include 40 words, before and after typesetting Total line number of word has differences.The reading of reader, still, code information are not interfered with after word content change type-setting mode still It is quite different:Code includes a variety of special formats such as retraction, separator, and/or newline, wherein can be defined by retraction each The range of code block, by separator, newline etc. can improve code can be readability.In addition to this, the annotation in code Whole section of code can be made to become unreadable if serial.It can be seen that the type-setting mode of code can significantly reduce if change The readability of code, it is serious also to make this section of code that can not read completely.However, type-setting mode in the prior art there is no method Solve code information reduces readable technical problem after typesetting again.
Invention content
In view of the above problems, it is proposed that the present invention overcoming the above problem in order to provide one kind or solves at least partly State the composition method, electronic equipment and computer storage media of the code information of problem.
According to an aspect of the invention, there is provided a kind of composition method of code information, including:Include in identification document Code region;
The every line code information for including in the code region is obtained respectively, is one section of code by the line code information storage Information;
It is directed to every section of code information respectively, determines position of the first character in the code region in this section of code information It sets;
Typesetting is carried out to this section of code information according to position of the first character in the code region.
According to another aspect of the present invention, a kind of electronic equipment is provided, including:Processor, memory, communication interface and Communication bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is following that the executable instruction makes the processor execute Operation:
The code region for including in identification document;
The every line code information for including in the code region is obtained respectively, is one section of code by the line code information storage Information;
It is directed to every section of code information respectively, determines position of the first character in the code region in this section of code information It sets;
Typesetting is carried out to this section of code information according to position of the first character in the code region.
According to another aspect of the present invention, provide a kind of computer storage media, be stored in the storage medium to A few executable instruction, the executable instruction make processor execute following operation:
The code region for including in identification document;
The every line code information for including in the code region is obtained respectively, is one section of code by the line code information storage Information;
It is directed to every section of code information respectively, determines position of the first character in the code region in this section of code information It sets;
Typesetting is carried out to this section of code information according to position of the first character in the code region.
Composition method, electronic equipment and the computer storage media of code information according to the present invention, by identifying document In include code region;The every line code information for including in code region is obtained respectively, is one by the line code information storage Section code information;It is directed to every section of code information respectively, determines position of the first character in code region in this section of code information It sets;Typesetting is carried out to this section of code information according to position of the first character in code region.According to the format of code in document Typesetting is carried out to the code extracted from document, avoids the code extracted from losing its format in a document, to need The problem of to the manual inspection of the code extracted from document and typesetting, the code extracted is directly utilized convenient for related personnel. Which improves the readability of the code after typesetting, solves the problems, such as that the code after typesetting is serial.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow diagram of the composition method of according to embodiments of the present invention one code information;
Fig. 2 shows the flow diagrams of the composition method of according to embodiments of the present invention two code information;
Fig. 3 shows the structural schematic diagram of electronic equipment according to an embodiment of the invention.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Embodiment one
One embodiment of the invention provides a kind of composition method of code information.Under normal conditions, document passes through format It converts, format of the code in obtained document without code in original text shelves or the code in document pass through direct copying, Obtained code does not have the format of code in original text shelves, for example, PDF document is converted to word document, or by PDF document In content copy to word document or TXT documents in, the content for including in PDF document is used, but often PDF For document by the content in conversion or PDF document after copy, the content in word document does not have it in PDF document In format, the content in TXT documents does not have its format in PDF document yet, compared to the lattice of the content in PDF document Formula, is embodied in font and line space is changed, content folds, blank character are deleted etc..
After the document of format typesetting is carried out format conversion, code that document includes loses its text in format typesetting Format in shelves, including the retraction of statement element, the corresponding separator of AND operator, newline etc. so that related personnel is not This section of code can be directly used, for the code in document, each programming language has the code that exploitation community suggests It is retracted specification, one is in order to be conducive to code reading, the second is in order to define the range of each code block, such as Python According to the range of the retraction cognizance code block before first character in every line code, if every line code after conversion does not contract before Into then code is unable to operate normally, and for another example with the pattern of annotated information of " // " beginning in code, notes content is to be started to this with " // " Row terminate between content, if document conversion after every line code between lose newline, " // " later and with " // ", will be confirmed as notes content positioned at the original notes content and code with a line.
Based on this, a kind of method that the code in document carries out typesetting is present embodiments provided.Certainly, art technology Personnel are, it is understood that method provided by the invention can be not only used for arranging the original document of format typesetting again Version, additionally it is possible to be applied to carry out typesetting again, and the text after typesetting to the original document of papery or the original document of streaming typesetting Part may be various formats or various type-setting modes, and the present invention does not limit specific application scenarios.
Fig. 1 shows the flow diagram of the composition method of the code information of the embodiment, as shown in Figure 1, this method packet It includes:
Step S101 identifies the code region for including in document.
Wherein, it can identify in several ways.For example, it is contemplated that code language, font, line space etc. may with it is normal It is different to advise word, therefore, can be wrapped according to line space feature, language feature, and/or the character feature of document to identify in document The code region contained.In the present embodiment, by the lateral beginning boundary and lateral junction of the code region for including in identification document Beam boundary determines the range of code region.It can specifically be existed by the first character of cognizance code, the first character for extracting code The last character of coordinate position and cognizance code in document extracts the last character of code in a document Coordinate position determines the code region for including in document according to above-mentioned coordinate position, certainly, the side in cognizance code region of the present invention Method is not limited to this.
Step S102 obtains the every line code information for including in code region respectively, is one by the line code information storage Section code information.
When it is implemented, during the method for the present embodiment can be used for copying the code in document, i.e., to text After the duplication operation of code in shelves, before paste operation, it can also be used to during carrying out format conversion to document, when So, this is not limited by the present invention.
Since the form that code is presented is a line a line, in order to quickly and conveniently carry out typesetting to the code of acquisition, The code of acquisition is set to pass through typesetting again, consistent with the format of the code in document, the present embodiment is determined according to above-mentioned steps Code region obtains every line code information in code region, will be extracted as one section of code information per line code information, Wherein, the character that every section of code information is included is consistent with the character for including per line code information, but the lattice of every section of code information Formula may not be consistent with the format per line code information, therefore can be corresponding per line code information according to every section of code information Format in a document carries out typesetting so that the format of every section of code information is often gone with corresponding respectively to every section of code information The format of code information in a document is consistent.
In short, by the way that every line code of code region is separately stored as one section of code, every line code can be made to be wrapped The quantity and content of the character contained do not change, to maintain the type-setting mode of code itself.
Step S103 is directed to every section of code information, determines the first character in this section of code information in code region respectively In position.
During obtaining the every line code information for including in code region, can get every line code information is included Each character, while the corresponding coordinate bit in original document of each character in every line code information can be got It sets, position of the first character of this section of code information in code region further can be determined according to the range of code region. When specific implementation, coordinate system can be established according to code region, each word that code region includes is determined according to the coordinate system The coordinate position of symbol further determines that coordinate position of the first character in code region in this section of code information.
Step S104 carries out typesetting according to position of the first character in code region to this section of code information.
Wherein, position of the first character in code region can reflect retraction feelings of this section of code in original document Condition, to carry out typesetting according to the retraction situation.
Specifically, the coordinate position according to first character in code region calculates first character apart from code region The distance of longitudinal boundary obtains the retraction distance of this section of code information, is retracted to this section of code according to retraction distance, In, longitudinal beginning boundary of code region can be the longitudinal boundary of document, can also code region include code in distance Initial line is played in longitudinal straight line on coordinate position where the nearest character of the longitudinal boundary of document, the longitudinal direction as code region Boundary, this is not limited by the present invention certainly.
The present embodiment carries out the code in format conversion and copy document to the method for the present invention progress with above-mentioned to document It explains, it can be appreciated that, above two scene is only the specific implementation scene of the present invention, and method of the invention is not limited to Above two implement scene.
According to the composition method of the code information of the present embodiment, by identifying the code region for including in document;It obtains respectively The every line code information for including in code region is taken, is one section of code information by the line code information storage;It is directed to every section respectively Code information determines position of the first character in code region in this section of code information;According to first character in code area Position in domain carries out typesetting to this section of code information.By according to the format of code in document to generation for being extracted from document Code carries out typesetting, and avoid the code extracted loses its format in a document, to need the generation to being extracted from document The problem of manual inspection of code and typesetting, the code extracted is directly utilized convenient for related personnel.After which improves typesetting Code readability, solve the problems, such as that the code after typesetting is serial.
Embodiment two
Fig. 2 shows the method flow diagrams of the composition method of according to embodiments of the present invention two code information, such as Fig. 2 institutes Show, this method includes:
Step S201 identifies that the lateral of the code region for including in document is originated according to preset code characteristic recognition rule Boundary and lateral end boundary.
Wherein, code characteristic recognition rule includes at least one of following three kinds of rules:The first rule is:For knowing Not lateral beginning boundary and/or the line space recognition rule of lateral end boundary, Character Font Recognition rule, language identification rule.It should Rule is common to the lateral beginning boundary of identification and longitudinal beginning boundary.
Specifically, the lateral beginning boundary in cognizance code region and lateral end boundary, the i.e. head in cognizance code region Line code and last column code can specifically be identified according to following three kinds of modes:
Mode one:Due to code region and the line space of character in non-code region can exist it is different, can be according to text Per the line space cognizance code region between line character in shelves, such as detect the upper of a line character in document and the line character Line space between a line character is different from the line space between the line character and next line character of the line character, and includes The spacing between continuous several line characters after the line character and the line character is consistent, it is determined that the line character is code First trip code.Similarly, detect that the line space between a line character in document and the lastrow character of the line character is different from Line space between the line character and next line character of the line character, and before including the line character and the line character Spacing between continuous several line characters is consistent, it is determined that the line character is last column code of code.
Mode two:Due to code region and the font of the character in non-code region and/or font size can exist it is different, Font that can be according to character in document and/or font size cognizance code region, for example, detecting that a line character in document is the Song typeface Character, and font size is No. four, and several line characters after the line character are the character of monospaced font, and font size is small Four, then show that the first line character after the line character is the first trip code of code.Similarly, if detecting a line character in document For the character of the Song typeface, and font size is No. four, and several line characters before the line character are wide character, and font size is small Four, then last column character before showing the line character is last column code of code.
Mode three:The character in code is English under normal conditions, therefore can be according to the first trip generation of language identification code Code and last column code, for example, detecting that a line character in document is English, last column word before the line character Symbol is Chinese, and continuous several line characters after the line character are English, then shows that the line character is the first trip generation of code Code.Similarly, if detecting, a line character in document is English, and several line characters before the line character are English, and should The first line character after line character is Chinese, then shows that the line character is last column code of code.
Second of rule be:The beginning boundary rule of lateral beginning boundary for identification, wherein beginning boundary rule according to Preset code initiation feature determines, and code initiation feature includes:The feature sentence that includes in program language, keyword, behaviour Make symbol, and/or program origin identification.
Specifically, according to the first trip code for the feature sentence cognizance code for including in program language, feature sentence is for example while(i<J), for (int j=1;j<=num;J++) etc.;According to the head for the keyword recognition code for including in program language Line code, distinct program language are corresponding with different keywords, such as Java language has 50 keywords, including: Abstract, boolean, break, byte, case etc.;According to the first trip for the operator cognizance code for including in program language Code, the operator for including in program language include "==", "/", " % " and " ++ " etc.;In addition recognizer can also be passed through Language Program origin identification is identified, for example, Java code is usually started with " package ", C language code is usually with " # Include " starts, and Python code is to state coding " #coding:Utf-8 " starts, therefore can be determined according to the above method The first trip code of code.
The third rule is:The end boundary rule of lateral end boundary for identification, wherein end boundary rule according to Preset the code ends feature determines, and the code ends feature includes at least:EP (end of program) identifies.For example, C language code and In Java code with ";" end that indicates line code, with " " indicate the end etc. of a function, therefore can be according to generation Code terminates last column code that feature determines code.
Transverse horizontal line corresponding to each character top in first trip code is determined as to the lateral beginning boundary of code; Transverse horizontal line corresponding to each character bottom end in last column code is determined as to the lateral end boundary of code.When So, it can also determine that lateral beginning boundary and lateral end boundary, the present invention do not do this in the present embodiment by other means It limits.
Wherein, the code region for including in document refers to:The area of typesetting is carried out in original document by format type-setting mode Domain, namely can not be to the retraction for the character that the code region includes, character font, character font size, line space and more Format is modified.Correspondingly, the original row of code in original document is can determine by the code region for including in the document Version mode.
Step S202 determines the range of code region according to lateral beginning boundary and lateral end boundary.
The lateral beginning boundary of code and lateral end boundary, lateral beginning boundary is determined according to above-mentioned steps S201 And the range in the lateral end boundary region that is included is the range of code region, includes to code region further subsequently Code handled.
Step S203 obtains the every line code information for including in code region respectively, is one by the line code information storage Section code information.
Since the form that code is presented is a line a line, in order to quickly and conveniently carry out typesetting to the code of acquisition, The code of acquisition is set to pass through typesetting again, consistent with the format of the code in document, the present embodiment is determined according to above-mentioned steps Code region obtains every line code information in code region, will be extracted as one section of code information per line code information, Wherein, the character that every section of code information is included is consistent with the character for including per line code information, but the lattice of every section of code information Formula may not be consistent with the format per line code information, therefore can be corresponding per line code information according to every section of code information Format in a document carries out typesetting so that the format of every section of code information is often gone with corresponding respectively to every section of code information The format of code information in a document is consistent.
Step S204 is directed to every section of code information, determines the first character in this section of code information in code region respectively In position.
According to the above, the retraction in code is very important, and the method for the present embodiment is to the every of acquisition Section code information carries out retraction processing per the retraction mode of line code in a document according to corresponding to every section of code information, therefore It needs to be determined that position of the first character in code region in every section of code information.For example, can be in code locale packet Coordinate system containing transverse coordinate axis and longitudinal coordinate axle, transverse coordinate axis and lateral beginning boundary or longitudinal beginning boundary are mutually flat Row, the lateral coordinates value obtained by transverse coordinate axis can reflect the retraction situation of character in a lateral direction.Correspondingly, exist In this step, the lateral coordinates value corresponding to the first character in this section of code information is obtained, is determined according to the lateral coordinates value Position of the character in code region.
Step S205 determines longitudinal beginning boundary of code region.
Longitudinal beginning boundary is used to indicate the initial position of the code of non-indent, with specific reference to each line code in code region The location determination of the first character of information.In this step, it is right to obtain first character institute in a line not being retracted in code region The lateral coordinates value answered, and determine therefrom that longitudinal beginning boundary.
Step S206, calculate position of the first character in code region between longitudinal beginning boundary at a distance from.
Specifically, for one section of code in step S204, if this section of code is handled without retraction, this section of code Position of the first character in code region between longitudinal beginning boundary at a distance from be zero;If this section of code is by retraction Reason, then position of the first character of this section of code in code region between longitudinal beginning boundary at a distance from can reflect retraction Multiple.
Specifically, unit indent is determined according to character duration corresponding with this section of code information;According to distance and list Position indent determines retraction multiple, and retraction processing is carried out to this section of code information according to retraction multiple.
According to longitudinal beginning boundary of above-mentioned different code region, position and longitudinal direction of the first character in code region The distance between beginning boundary can be calculated by following two modes:
Mode one:Determine that the corresponding lateral coordinates value in position of the first character of this section of code information in code region is First lateral coordinates value determines longitudinal coordinate value position identical with the longitudinal coordinate value of first character on the longitudinal boundary of document It sets, determines that the lateral coordinates value corresponding to the position is the second lateral coordinates value, calculate the first lateral coordinates value and second laterally The difference of coordinate value, the difference are position of the first character of this section of code information in code region and longitudinal beginning boundary The distance between.
Mode two:Determine that the corresponding lateral coordinates value in position of the first character of this section of code information in code region is First lateral coordinates value determines the corresponding transverse direction in position where the character of the frontier distance minimum in code region apart from document Coordinate value is the second lateral coordinates value, calculates the difference of the first lateral coordinates value and the second lateral coordinates value, which is should Position of the first character in code region of section code information between longitudinal beginning boundary at a distance from.
Step S207 carries out retraction processing according to distance to this section of code information, for retraction treated this section of code Information carries out typesetting.
The present embodiment is by streaming type-setting mode, according to position of the first character in code region to this section of code information Carry out typesetting.It can be to the font size of the retraction of this section of code information, the font of character, character, line space and more lattice Formula is modified.
The character for including according to this section of code information corresponds to the character duration in code region and determines that the first unit is retracted Amount specifically can determine that the first unit indent is 4 times of character durations, correspondingly, according to the word of the character in this section of code information Symbol width determines the second unit indent, and it is 4 times of character durations to determine the corresponding second unit indent of this section of code information also, By position of the first character in code region between longitudinal beginning boundary at a distance from be divided by with the first unit indent, obtain It is retracted multiple, retraction processing is further carried out to this section of code information according to retraction multiple and the second unit indent.
For retraction, treated that this section of code information carries out typesetting, specifically, when determining that this section of code information need to insert When entering separator, separator is inserted into this section of code information, it should be noted that the present invention is inserted into this section of code information Separator operates the sequence with the operation for carrying out retraction processing to this section of code information without limiting.
Wherein, when determining that this section of code information needs to be inserted into separator, being inserted into separator in this section of code information can It is realized by following two modes:
Mode one:The spacing between each character for including is determined in this section of code information according to code region, when adjacent Two characters between spacing when being more than default spacing threshold, be inserted into separator between two adjacent characters.
The coordinate position in code region is corresponded to according to each character for including in the code region, it may be determined that code The spacing between each character in the code information of this section of region can specifically determine the character duration of character in code region pre- If spacing threshold, when the spacing between two characters adjacent in code region is more than default spacing threshold, it is determined that need It needs to be inserted into separator between two characters in this section of code information, according to the spacing between two characters of this in code region Divided by the result of the character duration of the character in code region determines the quantity for the separator being inserted into, it should in this section of code information The separator of above-mentioned quantity is inserted between two adjacent characters.
Mode two:The each statement element for including in this section of code information is determined respectively;According to the language of each statement element Sentence type determines that separator corresponding with the statement element is inserted into rule;It is inserted into rule according to separator, for the statement element It is inserted into separator;Wherein, separator is inserted into rule and divides for being determined according to the keyword and/or operator for including in statement element Every the insertion position of symbol.
According to program language rule, while can be readability in order to improve code, usually it is inserted between the character of code Separator, wherein being essential for the separator being inserted into according to LISP program LISP rule, no it will cause codes to run out Mistake, therefore can determine that the corresponding separator insertion operation rule of statement element is inserted into according to the statement type of statement element and divide Every symbol, such as this section of code information is " vari=5 ", identifies that " var " is to correspond to variable declarations keyword, and "=" is to assign Value Operations accord with, therefore are determined according to program language rule and need to be inserted into separator between keyword " var " and " i ", and are operating Accord with "=" it is front and back be inserted into separator can be readability for improve code, be " var i by this section of code information after the step =5 ", the code information that related personnel can be to this section Jing Guo typesetting directly utilizes.
According to the composition method of code information provided in this embodiment, by being known according to preset code characteristic recognition rule The lateral beginning boundary for the code region for including in other document and lateral end boundary;According to lateral beginning boundary and transverse direction End boundary determines the range of code region;The every line code information for including in code region is obtained respectively, which is believed Breath is stored as one section of code information;It is directed to every section of code information respectively, determines the first character in this section of code information in code Position in region;Determine longitudinal beginning boundary of code region;Calculate position and longitudinal direction of the first character in code region The distance between beginning boundary;Retraction processing is carried out to this section of code information according to distance, for retraction treated this section of generation Code information carries out typesetting.According to the vertical of position and code region of the first character in one section of code information in code region The retraction distance of this section of code information is determined to beginning boundary, to carry out retraction processing to this section of code information;According further to Spacing of each character that one section of code information includes in code region and/or sentenced according to the statement element of this section of code information Whether this section of code information of breaking needs to be inserted into separator, to be inserted into separator in this section of code information according to judging result, The present invention, can be according to the lattice of code in document by carrying out retraction processing to every section of code information and being inserted into separator processing Formula carries out typesetting to the code extracted from document, and the code extracted is avoided to lose its format in a document, to need Will be to the manual inspection of the code extracted from document and typesetting the problem of, the generation extracted is directly utilized convenient for related personnel Code.Which improves the readability of the code after typesetting, solves the problems, such as that the code after typesetting is serial.
The embodiment of the present application three provides a kind of nonvolatile computer storage media, the computer storage media storage There are an at least executable instruction, the computer executable instructions to can perform the row of the code information in above-mentioned any means embodiment Version method.
Executable instruction specifically can be used for so that processor executes following operation:
The code region for including in identification document;
The every line code information for including in code region is obtained respectively, is that one section of code is believed by the line code information storage Breath;
It is directed to every section of code information respectively, determines position of the first character in code region in this section of code information;
Typesetting is carried out to this section of code information according to position of the first character in code region.
Executable instruction specifically can be also used for so that processor executes following operation:
According to preset code characteristic recognition rule identify document in include code region lateral beginning boundary and Lateral end boundary;
The range of code region is determined according to lateral beginning boundary and lateral end boundary.
Executable instruction specifically can be also used for so that processor executes following operation:
Lateral beginning boundary and/or the line space recognition rule of lateral end boundary, Character Font Recognition rule, language for identification Say recognition rule;
The beginning boundary rule of lateral beginning boundary for identification, wherein beginning boundary rule rises according to preset code Beginning feature determines, and code initiation feature includes:Feature sentence, keyword, operator, and/or the journey for including in program language Sequence origin identification;
The end boundary rule of lateral end boundary for identification, wherein end boundary rule is according to preset code knot Shu Tezheng is determined, and the code ends feature includes at least:EP (end of program) identifies.
Executable instruction specifically can be also used for so that processor executes following operation:
Determine longitudinal beginning boundary of code region;
Calculate position of the first character in code region between longitudinal beginning boundary at a distance from;
Retraction processing is carried out to this section of code information according to distance, treated that this section of code information is arranged for retraction Version.
Executable instruction specifically can be also used for so that processor executes following operation:
Unit indent is determined according to character duration corresponding with this section of code information;
Retraction multiple is determined according to distance and unit indent, this section of code information is retracted according to retraction multiple Processing.
Executable instruction specifically can be also used for so that processor executes following operation:
When determining that this section of code information needs to be inserted into separator, separator is inserted into this section of code information.
Executable instruction specifically can be also used for so that processor executes following operation:
The spacing between each character for including is determined in this section of code information according to code region, when two adjacent words When spacing between symbol is more than default spacing threshold, separator is inserted between two adjacent characters.
Executable instruction specifically can be also used for so that processor executes following operation:
The each statement element for including in this section of code information is determined respectively;
According to the statement type of each statement element, determine that separator corresponding with the statement element is inserted into rule;
It is inserted into rule according to separator, separator is inserted into for the statement element;
Wherein, separator is inserted into rule and separates for being determined according to the keyword and/or operator for including in statement element The insertion position of symbol.
Executable instruction specifically can be also used for so that processor executes following operation:
The code region for including in document is the region that typesetting is carried out by format type-setting mode.
Executable instruction specifically can be also used for so that processor executes following operation:
By streaming type-setting mode, this section of code information is arranged according to position of the first character in code region Version.
Fig. 3 shows the structural schematic diagram of electronic equipment according to an embodiment of the invention, the specific embodiment of the invention The specific implementation of electronic equipment is not limited.
As shown in figure 3, the electronic equipment may include:Processor (processor) 302, communication interface (Communications Interface) 304, memory (memory) 306 and communication bus 308.
Wherein:
Processor 302, communication interface 304 and memory 306 complete mutual communication by communication bus 308.
Communication interface 304, for being communicated with the network element of miscellaneous equipment such as client or other servers etc..
Processor 302 can specifically execute the above-mentioned e-book color matching analyzed based on cover for executing program 310 Correlation step in embodiment of the method.
Specifically, program 310 may include program code, which includes computer-managed instruction.
Processor 302 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that electronic equipment includes can be same type of processor, such as one or more CPU;Also may be used To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 306, for storing program 310.Memory 306 may include high-speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 310 specifically can be used for so that processor 302 executes following operation:
The code region for including in identification document;
The every line code information for including in code region is obtained respectively, is that one section of code is believed by the line code information storage Breath;
It is directed to every section of code information respectively, determines position of the first character in code region in this section of code information;
Typesetting is carried out to this section of code information according to position of the first character in code region.
Program 310 specifically can be also used for so that processor 302 executes following operation:
According to preset code characteristic recognition rule identify document in include code region lateral beginning boundary and Lateral end boundary;
The range of code region is determined according to lateral beginning boundary and lateral end boundary.
Program 310 specifically can be also used for so that processor 302 executes following operation:
Lateral beginning boundary and/or the line space recognition rule of lateral end boundary, Character Font Recognition rule, language for identification Say recognition rule;
The beginning boundary rule of lateral beginning boundary for identification, wherein beginning boundary rule rises according to preset code Beginning feature determines, and code initiation feature includes:Feature sentence, keyword, operator, and/or the journey for including in program language Sequence origin identification;
The end boundary rule of lateral end boundary for identification, wherein end boundary rule is according to preset code knot Shu Tezheng is determined, and the code ends feature includes at least:EP (end of program) identifies.
Program 310 specifically can be also used for so that processor 302 executes following operation:
Determine longitudinal beginning boundary of code region;
Calculate position of the first character in code region between longitudinal beginning boundary at a distance from;
Retraction processing is carried out to this section of code information according to distance, treated that this section of code information is arranged for retraction Version.
Program 310 specifically can be also used for so that processor 302 executes following operation:
Unit indent is determined according to character duration corresponding with this section of code information;
Retraction multiple is determined according to distance and unit indent, this section of code information is retracted according to retraction multiple Processing.
Program 310 specifically can be also used for so that processor 302 executes following operation:
When determining that this section of code information needs to be inserted into separator, separator is inserted into this section of code information.
Program 310 specifically can be also used for so that processor 302 executes following operation:
The spacing between each character for including is determined in this section of code information according to code region, when two adjacent words When spacing between symbol is more than default spacing threshold, separator is inserted between two adjacent characters.
Program 310 specifically can be also used for so that processor 302 executes following operation:
The each statement element for including in this section of code information is determined respectively;
According to the statement type of each statement element, determine that separator corresponding with the statement element is inserted into rule;
It is inserted into rule according to separator, separator is inserted into for the statement element;
Wherein, separator is inserted into rule and separates for being determined according to the keyword and/or operator for including in statement element The insertion position of symbol.
Program 310 specifically can be also used for so that processor 302 executes following operation:
The code region for including in document is the region that typesetting is carried out by format type-setting mode.
Program 310 specifically can be also used for so that processor 302 executes following operation:
By streaming type-setting mode, this section of code information is arranged according to position of the first character in code region Version.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.The use of word first, second, and third does not indicate that any sequence.These words can be construed to title.

Claims (21)

1. a kind of composition method of code information, including:
The lateral beginning boundary and transverse direction of the code region for including in document are identified according to preset code characteristic recognition rule End boundary determines the range of the code region according to the lateral beginning boundary and the lateral end boundary;
The every line code information for including in the code region is obtained respectively, is that one section of code is believed by the line code information storage Breath;
It is directed to every section of code information respectively, determines position of the first character in the code region in this section of code information;
Typesetting is carried out to this section of code information according to position of the first character in the code region;
Wherein, the code characteristic recognition rule includes at least one of the following:For identification the lateral beginning boundary and/ Or the line space recognition rule of the lateral end boundary, Character Font Recognition rule, language identification rule;The transverse direction for identification The beginning boundary rule of beginning boundary, wherein the beginning boundary rule determines according to preset code initiation feature, and described Code initiation feature includes:Feature sentence, keyword, operator, and/or the program origin identification for including in program language;With In the end boundary rule for identifying the lateral end boundary, wherein the end boundary rule is according to preset the code ends Feature determines, and the code ends feature includes at least:EP (end of program) identifies.
2. according to the method described in claim 1, wherein, the position according to the first character in the code region The step of carrying out typesetting to this section of code information specifically includes:
Determine longitudinal beginning boundary of the code region;
Calculate position of the first character in the code region between longitudinal beginning boundary at a distance from;
Retraction processing is carried out to this section of code information according to the distance, treated that this section of code information is arranged for retraction Version.
3. described to carry out retraction processing to this section of code information according to the distance according to the method described in claim 2, wherein The step of specifically include:
Unit indent is determined according to character duration corresponding with this section of code information;
Retraction multiple is determined according to the distance and the unit indent, according to the retraction multiple to this section of code information Carry out retraction processing.
4. according to any methods of claim 1-3, wherein it is described according to the first character in the code region Position the step of typesetting is carried out to this section of code information after, further comprise:
When determining that this section of code information needs to be inserted into separator, separator is inserted into this section of code information.
5. it is described when determining that this section of code information needs to be inserted into separator according to the method described in claim 4, wherein, The step of separator is inserted into this section of code information specifically includes:
The spacing between each character for including is determined in this section of code information according to the code region, when two adjacent words When spacing between symbol is more than default spacing threshold, separator is inserted between two adjacent characters.
6. it is described when determining that this section of code information needs to be inserted into separator according to the method described in claim 4, wherein, The step of separator is inserted into this section of code information specifically includes:
The each statement element for including in this section of code information is determined respectively;
According to the statement type of each statement element, determine that separator corresponding with the statement element is inserted into rule;
It is inserted into rule according to the separator, separator is inserted into for the statement element;
Wherein, the separator is inserted into rule and separates for being determined according to the keyword and/or operator for including in statement element The insertion position of symbol.
7. according to any methods of claim 1-3, wherein the code region for including in the document is to be arranged by format Version mode carries out the region of typesetting;
The step of position according to the first character in the code region carries out typesetting to this section of code information tool Body includes:
By streaming type-setting mode, this section of code information is carried out according to position of the first character in the code region Typesetting.
8. a kind of electronic equipment, including:Processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute following behaviour for storing an at least executable instruction, the executable instruction Make:
The lateral beginning boundary and transverse direction of the code region for including in document are identified according to preset code characteristic recognition rule End boundary determines the range of the code region according to the lateral beginning boundary and the lateral end boundary;
The every line code information for including in the code region is obtained respectively, is that one section of code is believed by the line code information storage Breath;
It is directed to every section of code information respectively, determines position of the first character in the code region in this section of code information;
Typesetting is carried out to this section of code information according to position of the first character in the code region;
Wherein, the code characteristic recognition rule includes at least one of the following:For identification the lateral beginning boundary and/ Or the line space recognition rule of the lateral end boundary, Character Font Recognition rule, language identification rule;The transverse direction for identification The beginning boundary rule of beginning boundary, wherein the beginning boundary rule determines according to preset code initiation feature, and described Code initiation feature includes:Feature sentence, keyword, operator, and/or the program origin identification for including in program language;With In the end boundary rule for identifying the lateral end boundary, wherein the end boundary rule is according to preset the code ends Feature determines, and the code ends feature includes at least:EP (end of program) identifies.
9. electronic equipment according to claim 8, the executable instruction further makes the processor execute following behaviour Make:
Determine longitudinal beginning boundary of the code region;
Calculate position of the first character in the code region between longitudinal beginning boundary at a distance from;
Retraction processing is carried out to this section of code information according to the distance, treated that this section of code information is arranged for retraction Version.
10. electronic equipment according to claim 9, the executable instruction further makes the processor execute following behaviour Make:
Unit indent is determined according to character duration corresponding with this section of code information;
Retraction multiple is determined according to the distance and the unit indent, according to the retraction multiple to this section of code information Carry out retraction processing.
11. according to any electronic equipments of claim 8-10, the executable instruction further holds the processor The following operation of row:
When determining that this section of code information needs to be inserted into separator, separator is inserted into this section of code information.
12. electronic equipment according to claim 11, it is following that the executable instruction further executes the processor Operation:
The spacing between each character for including is determined in this section of code information according to the code region, when two adjacent words When spacing between symbol is more than default spacing threshold, separator is inserted between two adjacent characters.
13. electronic equipment according to claim 11, it is following that the executable instruction further executes the processor Operation:
The each statement element for including in this section of code information is determined respectively;
According to the statement type of each statement element, determine that separator corresponding with the statement element is inserted into rule;
It is inserted into rule according to the separator, separator is inserted into for the statement element;
Wherein, the separator is inserted into rule and separates for being determined according to the keyword and/or operator for including in statement element The insertion position of symbol.
14. according to any electronic equipments of claim 8-10, the executable instruction further holds the processor The following operation of row:
The step of position according to the first character in the code region carries out typesetting to this section of code information tool Body includes:
By streaming type-setting mode, this section of code information is carried out according to position of the first character in the code region Typesetting.
15. a kind of computer storage media, an at least executable instruction, the executable instruction are stored in the storage medium Processor is set to execute following operation:
The lateral beginning boundary and transverse direction of the code region for including in document are identified according to preset code characteristic recognition rule End boundary determines the range of the code region according to the lateral beginning boundary and the lateral end boundary;
The every line code information for including in the code region is obtained respectively, is that one section of code is believed by the line code information storage Breath;
It is directed to every section of code information respectively, determines position of the first character in the code region in this section of code information;
Typesetting is carried out to this section of code information according to position of the first character in the code region;
Wherein, the code characteristic recognition rule includes at least one of the following:For identification the lateral beginning boundary and/ Or the line space recognition rule of the lateral end boundary, Character Font Recognition rule, language identification rule;The transverse direction for identification The beginning boundary rule of beginning boundary, wherein the beginning boundary rule determines according to preset code initiation feature, and described Code initiation feature includes:Feature sentence, keyword, operator, and/or the program origin identification for including in program language;With In the end boundary rule for identifying the lateral end boundary, wherein the end boundary rule is according to preset the code ends Feature determines, and the code ends feature includes at least:EP (end of program) identifies.
16. computer storage media according to claim 15, the executable instruction further holds the processor The following operation of row:
Determine longitudinal beginning boundary of the code region;
Calculate position of the first character in the code region between longitudinal beginning boundary at a distance from;
Retraction processing is carried out to this section of code information according to the distance, treated that this section of code information is arranged for retraction Version.
17. computer storage media according to claim 16, the executable instruction further holds the processor The following operation of row:
Unit indent is determined according to character duration corresponding with this section of code information;
Retraction multiple is determined according to the distance and the unit indent, according to the retraction multiple to this section of code information Carry out retraction processing.
18. according to any computer storage medias of claim 15-17, the executable instruction further makes the place It manages device and executes following operation:
When determining that this section of code information needs to be inserted into separator, separator is inserted into this section of code information.
19. computer storage media according to claim 18, the executable instruction further holds the processor The following operation of row:
The spacing between each character for including is determined in this section of code information according to the code region, when two adjacent words When spacing between symbol is more than default spacing threshold, separator is inserted between two adjacent characters.
20. according to the computer storage media described in right 18, the executable instruction further execute the processor with Lower operation:
The each statement element for including in this section of code information is determined respectively;
According to the statement type of each statement element, determine that separator corresponding with the statement element is inserted into rule;
It is inserted into rule according to the separator, separator is inserted into for the statement element;
Wherein, the separator is inserted into rule and separates for being determined according to the keyword and/or operator for including in statement element The insertion position of symbol.
21. according to any computer storage medias of claim 15-17, the executable instruction further makes the place It manages device and executes following operation:
The step of position according to the first character in the code region carries out typesetting to this section of code information tool Body includes:
By streaming type-setting mode, this section of code information is carried out according to position of the first character in the code region Typesetting.
CN201711181689.2A 2017-11-23 2017-11-23 Composition method, electronic equipment and the computer storage media of code information Active CN107885715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711181689.2A CN107885715B (en) 2017-11-23 2017-11-23 Composition method, electronic equipment and the computer storage media of code information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711181689.2A CN107885715B (en) 2017-11-23 2017-11-23 Composition method, electronic equipment and the computer storage media of code information

Publications (2)

Publication Number Publication Date
CN107885715A CN107885715A (en) 2018-04-06
CN107885715B true CN107885715B (en) 2018-10-09

Family

ID=61774731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711181689.2A Active CN107885715B (en) 2017-11-23 2017-11-23 Composition method, electronic equipment and the computer storage media of code information

Country Status (1)

Country Link
CN (1) CN107885715B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710355B (en) * 2018-12-18 2020-01-10 北京字节跳动网络技术有限公司 WEB interaction-based TIP display content processing method and device and electronic equipment
CN109683881B (en) * 2018-12-27 2022-04-05 潍柴动力股份有限公司 Code format adjusting method and device
CN110764760B (en) * 2019-10-29 2023-09-05 中国工商银行股份有限公司 Method, apparatus, computer system, and medium for drawing program flow chart
CN112699634B (en) * 2020-12-28 2022-05-24 掌阅科技股份有限公司 Typesetting processing method of electronic book, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479173A (en) * 2010-11-25 2012-05-30 北京大学 Method and device for identifying reading sequence of layout
CN105760358A (en) * 2014-12-19 2016-07-13 阿里巴巴集团控股有限公司 Methods and systems for electronic book layout rearrangement and electronic book display

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8381101B2 (en) * 2009-11-16 2013-02-19 Apple Inc. Supporting platform-independent typesetting for documents

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479173A (en) * 2010-11-25 2012-05-30 北京大学 Method and device for identifying reading sequence of layout
CN105760358A (en) * 2014-12-19 2016-07-13 阿里巴巴集团控股有限公司 Methods and systems for electronic book layout rearrangement and electronic book display

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Optical Character Recognition for Running C Code;Upendra Mishra et al.;《International Journal of Scientific & Engineering Research》;20170331;第8卷(第3期);第1850-1853页 *

Also Published As

Publication number Publication date
CN107885715A (en) 2018-04-06

Similar Documents

Publication Publication Date Title
CN107885715B (en) Composition method, electronic equipment and the computer storage media of code information
US7555711B2 (en) Generating a text layout boundary from a text block in an electronic document
EP1739574B1 (en) Method of identifying words in an electronic document
RU2437152C2 (en) Device to process images, method and computer programme to process images
US7775435B2 (en) Systems and methods for preserving and maintaining document integrity
CN109933756A (en) Image based on OCR turns shelves method, apparatus, equipment and readable storage medium storing program for executing
US20120324341A1 (en) Detection and extraction of elements constituting images in unstructured document files
US20060080309A1 (en) Article extraction
CN110879937A (en) Method and device for generating webpage from document, computer equipment and storage medium
US11615635B2 (en) Heuristic method for analyzing content of an electronic document
CN111797630B (en) PDF-format-paper-oriented biomedical entity identification method
US20150228045A1 (en) Methods for embedding and extracting a watermark in a text document and devices thereof
US20120137207A1 (en) Systems and methods for converting a pdf file
US9008425B2 (en) Detection of numbered captions
US9779091B2 (en) Restoration of modified document to original state
US20210019366A1 (en) Text Extraction Heuristics
CN105159877A (en) Cross-media automatic typesetting system and method thereof
CN101008940A (en) Method and device for automatic processing font missing
US20090063965A1 (en) Preparing a display document for analysis
US20170344583A1 (en) Image processing apparatus that performs compression processing of document file and compression method of document file and storage medium
US9390689B2 (en) Need-below processing across z-band boundaries
JP2002073598A (en) Document processor and method of processing document
CN112686000B (en) Format conversion method of electronic book document, electronic equipment and storage medium
CN102880653A (en) Document combination method and system
JP6204076B2 (en) Text area reading order determination apparatus, text area reading order determination method, and text area reading order determination program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220622

Address after: 518054-13098, 13th floor, main tower of marine center, No. 59, Linhai Avenue, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong

Patentee after: Shenzhen ZhangYue Animation Technology Co.,Ltd.

Address before: 100124 2029e, Sihui building, Chaoyang District, Beijing

Patentee before: ZHANGYUE TECHNOLOGY Co.,Ltd.