CN111460765B - Electronic book labeling processing method, electronic equipment and storage medium - Google Patents

Electronic book labeling processing method, electronic equipment and storage medium Download PDF

Info

Publication number
CN111460765B
CN111460765B CN202010236125.XA CN202010236125A CN111460765B CN 111460765 B CN111460765 B CN 111460765B CN 202010236125 A CN202010236125 A CN 202010236125A CN 111460765 B CN111460765 B CN 111460765B
Authority
CN
China
Prior art keywords
text
information
character
text character
labeled
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
CN202010236125.XA
Other languages
Chinese (zh)
Other versions
CN111460765A (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.)
Ireader Technology Co Ltd
Original Assignee
Ireader 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 Ireader Technology Co Ltd filed Critical Ireader Technology Co Ltd
Priority to CN202010236125.XA priority Critical patent/CN111460765B/en
Publication of CN111460765A publication Critical patent/CN111460765A/en
Application granted granted Critical
Publication of CN111460765B publication Critical patent/CN111460765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an electronic book labeling processing method, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a marking operation request triggered by a user, and generating text information to be marked; the text information includes: position information of at least one text character; traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of at least one text character in the text information to be labeled exists or not; and if so, fusing the text information to be marked and the marked text information. By comparing the text information to be labeled with the labeled text information, the labeling operation does not need to be repeatedly executed on the corresponding text characters in the labeled text information. And the position information of the text characters is used for comparison, so that whether the text characters of the position information are labeled can be accurately and quickly determined, and repeated labeling is reduced.

Description

Electronic book labeling processing method, electronic equipment and storage medium
Technical Field
The invention relates to the field of electronic book application, in particular to an electronic book label processing method, electronic equipment and a storage medium.
Background
The electronic books can be convenient for a user to read at any time and any place, after the user reads the content of the current page, the content of the next page can be read continuously through manual page turning, or the user can jump to the page where the appointed directory is located to read in a directory jumping mode, and the like, and various reading convenience is provided for the user through different reading modes.
The electronic books can be read by users, and the function of marking the electronic books by the users is provided, so that the users can conveniently select text characters in the electronic books to mark according to reading habits of the users. When a user repeatedly marks the same text characters in the electronic book, the same text characters need to be judged so as to avoid the problems that the display effect is poor and the like caused by multiple marking on the same text characters, and the reading experience of the user is influenced.
Disclosure of Invention
In view of the above problems, the present invention has been made to provide an electronic book annotation processing method, an electronic device, and a storage medium that overcome or at least partially solve the above problems.
According to an aspect of the present invention, there is provided an electronic book labeling processing method, including:
receiving a marking operation request triggered by a user, and generating text information to be marked; the text information includes: position information of at least one text character;
traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of at least one text character in the text information to be labeled exists or not;
and if so, fusing the text information to be marked and the marked text information.
According to another aspect of the present invention, there is provided an electronic apparatus including: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following operations:
receiving a marking operation request triggered by a user, and generating text information to be marked; the text information includes: position information of at least one text character;
traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of at least one text character in the text information to be labeled exists or not;
and if so, fusing the text information to be marked and the marked text information.
According to yet another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
receiving a marking operation request triggered by a user, and generating text information to be marked; the text information includes: position information of at least one text character;
traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of at least one text character in the text information to be labeled exists or not;
and if so, fusing the text information to be marked and the marked text information.
According to the electronic book labeling processing method, the electronic equipment and the storage medium, provided by the invention, a labeling operation request triggered by a user is received, and text information to be labeled is generated; the text information includes: position information of at least one text character; traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of at least one text character in the text information to be labeled exists or not; and if so, fusing the text information to be marked and the marked text information. By comparing the text information to be labeled with the labeled text information, the labeling operation does not need to be repeatedly executed on the corresponding text characters in the labeled text information. And the position information of the text characters is used for comparison, so that whether the text characters of the position information are labeled can be accurately and quickly determined, and repeated labeling is reduced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of an electronic book labeling processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an electronic book labeling processing method according to another embodiment of the present invention;
fig. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
Fig. 1 is a flow chart illustrating an electronic book labeling processing method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S101, receiving a marking operation request triggered by a user, and generating text information to be marked.
When a user reads an electronic book, the text characters can be marked according to the reading habit of the user, and the marking operation comprises a line drawing operation, so that the text characters are highlighted conveniently by drawing lines. The annotation generally refers to the page content of the electronic book displayed on the current terminal screen, and generates corresponding text information for the text characters to be annotated according to an annotation operation request triggered by a user. The text information includes position information of at least one text character.
And acquiring the position information of the text character according to a marking operation request triggered by a user, wherein the marking operation request is at least one text character to be marked. For at least one text character to be labeled. The position information is determined according to its position in the electronic book. The location information may include a node level at which the at least one text character is located in the electronic book, and text character ordering information of the at least one text character at the node level at which the at least one text character is located. Such as:
Figure GDA0002614457310000041
as shown above, the text character "under" to be labeled is located under the 2 nd < p > node under the 1 st < div > node under the 1 st < span > node, the node level of the text character "under" to be labeled can be determined, the text character ordering information of the node layer < p > node layer where the text character "under" to be labeled is located is the 5 th text character, the position information of the text character "under" can be recorded as 1 ═ 2#5, the ordering information of the positions of the nesting levels among the nodes and the node layer can be recorded from 1, or can be recorded from 0, the position information of the text character "under" can be recorded from 0 as 0 ═ 1#4, the nesting level relationship among the nodes can be connected by using a preset node connector, the node level and the text character information can be connected by using a preset ordering connector, the position may also be set to a specific recording mode according to the implementation, and is only for illustration and not limited specifically here.
In addition to the position information of the text characters, the text information also includes a label identification, coding information of at least one text character, and the like. The marking identifier is used for identifying the text information to be marked, and generating a corresponding marking identifier according to a marking operation request triggered by a user. And the coding information of the text characters is obtained by coding the text characters to be labeled. If the charCodeAt coding processing is carried out on the text characters, the unicode character values of the text characters are obtained, and compared with the recording of the text characters, the unicode character values of the text characters avoid the problem of error reporting when text information is stored.
In order to facilitate the subsequent comparison with the labeled text information, the position information of the at least one text character and the coding information of the at least one text character can be stored in a key-value pair mode.
Specifically, if a tagging operation request triggered by a user is received, the generated text information to be tagged is as follows:
Figure GDA0002614457310000051
in the above text information, "abc 1" is a label of the text information, "0 ═ 1 ═ 9#6" and "0 ═ 1 ═ 9#7" are position information of the text character, and the numerical value following the position information is coding information of the text character. The text information records that the labeling operation request triggered by the user needs to label the 7 th text character and the 8 th text character under the 10 th node under the 2 nd node under the 1 st node. The encoding information of the 7 th text character is 9, and the encoding information of the 8 th text character is 97. The text information may be recorded using, for example, a JavaScript object.
In this embodiment, for an electronic book, chapter contents in the electronic book may be written into a designated variable of an HTML file in a character string manner, the designated variable is inserted into a target container of the HTML file, and a browser kernel is used to perform page rendering on contents in the designated variable in the target container, so as to complete page display of the electronic book. Because the electronic book is subjected to paging display in an HTML file mode, the node level of the text characters in the HTML file, the sequencing information in the nodes and the like can be conveniently and quickly obtained.
Step S102, traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of at least one text character in the text information to be labeled exists.
After receiving a marking operation request triggered by a user to generate text information to be marked for the user, acquiring marked text information displayed by a current terminal, and comparing the text information and the marked text information to avoid marking marked text characters again.
When comparing with the labeled text information, traversing the labeled text information displayed by the current terminal, inquiring whether the labeled text information which is the same as the position information of at least one text character in the text information to be labeled exists or not, and the labeled text information which is the same as the position information of at least one text character in the text information to be labeled shows that a superposition label exists between the labeled text information and the labeled text information, executing the step S103, and fusing the superposition label.
Because the position information of the text characters in the text information and the coding information of the text characters are stored in a key-value pair mode, the position information of the text characters can be directly compared during comparison, the same position information of the text characters can be conveniently and quickly searched, the searching efficiency is improved, and whether the superposition mark exists between the text characters and the coding information of the text characters can be quickly and accurately determined.
When there is position information including a plurality of text characters in the text information, the position information of each text character is arranged in order of the position information. When traversing the labeled text information displayed by the current terminal, inquiring whether the labeled text information which is the same as the position information of the first text character and the position information of the last text character in the text information to be labeled exists, namely whether all text characters corresponding to the text information to be labeled already exist in the labeled text information.
Step S103, the text information to be marked and the marked text information are fused.
And if the position information of part of text characters of the text information to be labeled is the same with the position information of part of text characters of the text information to be labeled, the position information of different text characters in the text information to be labeled can be selected to be stored in the labeled text information, the text characters are labeled according to the position information of different text characters and the coding information of the text characters, and the corresponding labeling processing is completed in response to the labeling operation request of a user. When the text characters are determined, the text characters can be accurately determined according to the position information of the text characters and the coding information of the text characters.
Further, if the labeled text information which is the same as the position information of the first text character and the position information of the last text character in the text information to be labeled exists, that is, the labeled text information already contains all text characters corresponding to the text information to be labeled, and all text characters corresponding to the text information to be labeled are labeled and processed, the labeling operation request of the user does not need to be labeled, and a labeled prompt can be directly returned to the user, for example, the user is reminded that the text characters are labeled and processed.
In this embodiment, the annotation operation request may be a drawing operation request, and when a user selects at least one text character in an electronic book displayed on a current terminal screen to perform a drawing operation, text information to be drawn is generated according to the at least one text character selected by the user. Comparing the text information to be scribed with the scribed text information in the current terminal screen, when the scribed text information which is the same as the position information of at least one text character in the text information to be scribed exists, scribing only the text character corresponding to the position information of different text characters, repeatedly scribing the text character corresponding to the position information of the same text character, and fusing the text information to be scribed with the scribed text information.
According to the method for processing the label of the electronic book, provided by the invention, a label operation request triggered by a user is received, and text information to be labeled is generated; the text information includes: position information of at least one text character; traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of at least one text character in the text information to be labeled exists or not; and if so, fusing the text information to be marked and the marked text information. By comparing the text information to be labeled with the labeled text information, the labeling operation does not need to be repeatedly executed on the corresponding text characters in the labeled text information. And the position information of the text characters is used for comparison, so that whether the text characters of the position information are labeled can be accurately and quickly determined, and repeated labeling is reduced.
Example two
Fig. 2 is a flow chart illustrating an electronic book labeling processing method according to another embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
step S201, compressing and storing the position information of at least one text character and the encoding information of at least one text character in the text information in an array mode.
When a user marks a text character displayed on a current terminal screen, text information needs to be stored in the terminal. When the labels are more, the amount of text information to be stored is also larger, and more storage space of the terminal is occupied. In order to improve the occupation of the storage space of the terminal, the embodiment compresses and stores the text information generated by the label.
Specifically, the text information includes position information of at least one text character and encoding information of at least one text character. For the position information of the text characters, the position information comprises the node level of the at least one text character in the electronic book and the text character sequencing information of the node level of the at least one text character. For a plurality of text characters under the same text information, the node levels of the text characters in the electronic book are mostly the same, so that the same node level in the position information of at least one text character can be extracted as an array prefix. And taking the text character sequencing information of at least one text character at the node layer where the text character is located as an array subscript, and taking the coding information of at least one text character as assignment of the array subscript. If the text information abc1{ "0 ═ 1 ═ 9# 6:" 9, "0 ═ 1 ═ 9#7":97}, the node hierarchy in which the position information of the text characters is the same is extracted, resulting in 0 ═ 1 ═ 9 as the array prefix. The 6 corresponds to the array index 6, the value of the array index 6 being the coding information 9 of the text character. 7 corresponds to an array index 7, and the assignment of the array index 7 is the encoding information 97 for the text character. When the text character sorting information of at least one text character in the text information at the node layer where the text character is located is discontinuous sorting information, as in the above text information, only the array subscripts 6 and 7 are included, and for the array subscripts with the array subscripts 0-5 being discontinuous sorting, the assignment of the array subscripts with discontinuous sorting may be set as a preset numerical value, such as 0. The result is an array that is compressed and stored in array mode, where 0 is 1 and 9: [0, 0, 0, 0, 0, 9, 97] }, compared with the storage space occupied by the text information, the storage space of the terminal occupied by the text information can be greatly reduced by compressing and storing the text information in an array mode.
Step S202, decompressing the compressed and stored text information, and combining the array prefix, at least one array subscript and assignment of the array subscript to obtain the decompressed text information.
After compression and storage, if operations such as comparison, labeling processing and the like need to be performed according to the text information, the compressed and stored text information also needs to be decompressed. And during decompression, performing the inverse operation of compression processing, and combining the array prefix, at least one array subscript and assignment of the array subscript. If the array of compressed storage is {0 ═ 1 ═ 9: [0, 0, 0, 0, 9, 97] }, during decompression, obtaining assignment of an array subscript outside a non-preset numerical value, combining at least one array subscript, the assignment of the array subscript and the array prefix, taking the array prefix as a node level where a text character is located in the electronic book, taking the array subscript as text character sorting information of the text character at the node level where the text character is located, and taking the assignment of the array subscript as encoding information of the text character to obtain decompressed text information { "0 ═ 1 ═ 9#6":9, "0 { (1) ═ 9#7":97 }.
According to the electronic book labeling processing method provided by the invention, the position information of at least one text character and the coding information of at least one text character in the text information are compressed and stored in an array mode, so that the storage space occupied by the text information stored in the terminal is greatly saved. And when the text information needs to be decompressed, carrying out reverse operation on the text information to obtain the corresponding text information.
EXAMPLE III
The third embodiment of the present application provides a non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the electronic book annotation processing method in any of the above method embodiments.
The executable instructions may be specifically configured to cause the processor to: receiving a marking operation request triggered by a user, and generating text information to be marked; the text information includes: position information of at least one text character; traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of at least one text character in the text information to be labeled exists or not; and if so, fusing the text information to be marked and the marked text information.
In an alternative embodiment, the executable instructions further cause the processor to: acquiring at least one text character to be marked, and determining the position information of the at least one text character to be marked; the position information comprises a node level of at least one text character in the electronic book and text character sequencing information of the at least one text character in the node level of the text character; coding the text character to be marked to obtain the coding information of the corresponding text character; the encoding information of the text characters is unicode character values of the text characters; and generating a corresponding labeling identifier according to the labeling operation request. The text information also comprises a label identification and coding information of at least one text character; the position information of the at least one text character is stored in a key-value pair with the encoding information of the at least one text character.
In an alternative embodiment, the executable instructions further cause the processor to: traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of the first text character and the position information of the last text character in the text information to be labeled exists; and if the marked text information which is the same as the position information of the first text character and the position information of the last text character in the text information to be marked exists, returning the marked prompt. The text information includes position information of a plurality of text characters arranged in the order of the position information.
In an alternative embodiment, the executable instructions further cause the processor to: and compressing and storing the position information of at least one text character and the coding information of at least one text character in the text information in an array mode.
In an alternative embodiment, the executable instructions further cause the processor to: extracting the same node level in the position information of at least one text character as an array prefix; and taking the text character sequencing information of at least one text character at the node layer where the text character is located as an array subscript, and taking the coding information of at least one text character as assignment of the array subscript.
In an alternative embodiment, the executable instructions further cause the processor to: and if the text character sorting information of at least one text character in the text information at the node layer where the text character is located is discontinuous sorting information, setting the assignment of the subscripts of the discontinuous arrays to be a preset numerical value.
In an alternative embodiment, the executable instructions further cause the processor to: decompressing the compressed and stored text information, and combining the array prefix, the at least one array subscript and the assignment of the array subscript to obtain the decompressed text information.
In an alternative embodiment, the annotation operation request is a scribe operation request.
Example four
Fig. 3 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 3, the electronic device may include: a processor (processor)302, a communication Interface 304, a memory 306, and a communication bus 308.
Wherein:
the processor 302, communication interface 304, and memory 306 communicate with each other via a communication bus 308.
A communication interface 304 for communicating with network elements of other devices, such as clients or other servers.
The processor 302 is configured to execute the program 310, and may specifically execute the relevant steps in the above-mentioned electronic book annotation processing method embodiment.
In particular, program 310 may include program code comprising computer operating instructions.
The processor 302 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The server comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 306 for storing a program 310. Memory 306 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 310 may specifically be configured to cause the processor 302 to perform the following operations: receiving a marking operation request triggered by a user, and generating text information to be marked; the text information includes: position information of at least one text character; traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of at least one text character in the text information to be labeled exists or not; and if so, fusing the text information to be marked and the marked text information.
In an alternative embodiment, the program 310 is configured to enable the processor 302 to obtain at least one text character to be labeled, determine position information of the at least one text character to be labeled; the position information comprises a node level of at least one text character in the electronic book and text character sequencing information of the at least one text character in the node level of the text character; coding the text character to be marked to obtain the coding information of the corresponding text character; the encoding information of the text characters is unicode character values of the text characters; and generating a corresponding labeling identifier according to the labeling operation request. The text information also comprises a label identification and coding information of at least one text character; the position information of the at least one text character is stored in a key-value pair with the encoding information of the at least one text character.
In an alternative embodiment, the program 310 is configured to enable the processor 302 to traverse the labeled text information displayed at the current terminal, and query whether there is labeled text information that is the same as the position information of the first text character and the position information of the last text character in the text information to be labeled; and if the marked text information which is the same as the position information of the first text character and the position information of the last text character in the text information to be marked exists, returning the marked prompt. The text information includes position information of a plurality of text characters arranged in the order of the position information.
In an alternative embodiment, the program 310 is configured to enable the processor 302 to compress and store the position information of at least one text character and the encoding information of at least one text character in the text message in an array mode.
In an alternative embodiment, program 310 is configured to cause processor 302 to extract a same node level in the location information of the at least one text character as an array prefix; and taking the text character sequencing information of at least one text character at the node layer where the text character is located as an array subscript, and taking the coding information of at least one text character as assignment of the array subscript.
In an alternative embodiment, the program 310 is configured to enable the processor 302 to set the assignment of the array subscript of the discontinuous sorting as a preset value if the text character sorting information of at least one text character in the text information at the node layer where the text character is located is discontinuous sorting information.
In an alternative embodiment, the program 310 is configured to enable the processor 302 to decompress the compressed and stored text information, and combine the array prefix, the at least one array subscript, and the assignment of the array subscript to obtain the decompressed text information.
In an alternative embodiment, the annotation operation request is a scribe operation request.
For specific implementation of each step in the program 310, reference may be made to the corresponding description in the corresponding step in the above-mentioned electronic book labeling processing embodiment, which is not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
According to the scheme provided by the embodiment, a marking operation request triggered by a user is received, and text information to be marked is generated; the text information includes: position information of at least one text character; traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of at least one text character in the text information to be labeled exists or not; and if so, fusing the text information to be marked and the marked text information. By comparing the text information to be labeled with the labeled text information, the labeling operation does not need to be repeatedly executed on the corresponding text characters in the labeled text information. And the position information of the text characters is used for comparison, so that whether the text characters of the position information are labeled can be accurately and quickly determined, and repeated labeling is reduced.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (21)

1. An electronic book labeling processing method, comprising:
receiving a marking operation request triggered by a user, and generating text information to be marked; the text information includes: position information of at least one text character, marking identification and coding information of at least one text character; the position information of the at least one text character and the coding information of the at least one text character are stored in a key-value pair mode;
traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of at least one text character in the text information to be labeled exists or not;
if so, fusing the text information to be marked and the marked text information;
the receiving a labeling operation request triggered by a user and generating text information to be labeled further comprises:
acquiring at least one text character to be marked, and determining the position information of the at least one text character to be marked; the position information comprises a node level of the at least one text character in the electronic book and text character sequencing information of the at least one text character at the node level of the at least one text character;
coding the text characters to be marked to obtain the coding information of the corresponding text characters; the encoding information of the text characters is unicode character values of the text characters;
and generating a corresponding labeling identifier according to the labeling operation request.
2. The method of claim 1, wherein the text information includes position information of a plurality of text characters arranged in a position information order;
the step of traversing the labeled text information displayed by the current terminal and inquiring whether the labeled text information identical to the position information of at least one text character in the text information to be labeled further comprises the following steps:
traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of the first text character and the position information of the last text character in the text information to be labeled exists;
the fusing the text information to be labeled and the labeled text information further comprises:
and if the marked text information which is the same as the position information of the first text character and the position information of the last text character in the text information to be marked exists, returning a marked prompt.
3. The method according to claim 1 or 2, wherein the method further comprises:
and compressing and storing the position information of at least one text character and the coding information of at least one text character in the text information in an array mode.
4. The method of claim 3, wherein the compressing the position information of at least one text character and the encoding information of at least one text character in the text information in an array mode further comprises:
extracting the same node level in the position information of at least one text character as an array prefix;
and taking the text character sequencing information of the at least one text character at the node layer where the text character is located as an array subscript, and taking the coding information of the at least one text character as assignment of the array subscript.
5. The method of claim 4, wherein the compressing the position information of at least one text character and the encoding information of at least one text character in the text information in an array mode further comprises:
and if the text character sequencing information of at least one text character in the text information at the node layer where the text character is located is discontinuous sequencing information, setting the assignment of the array subscript with discontinuous sequencing as a preset numerical value.
6. The method of claim 3, wherein the method further comprises:
decompressing the compressed and stored text information, and combining the array prefix, the at least one array subscript and the assignment of the array subscript to obtain the decompressed text information.
7. The method of claim 1 or 2, wherein the annotation operation request is a scribe-lane operation request.
8. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
receiving a marking operation request triggered by a user, and generating text information to be marked; the text information includes: position information of at least one text character, marking identification and coding information of at least one text character; the position information of the at least one text character and the coding information of the at least one text character are stored in a key-value pair mode;
traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of at least one text character in the text information to be labeled exists or not;
if so, fusing the text information to be marked and the marked text information;
the receiving a labeling operation request triggered by a user and generating text information to be labeled further comprises:
acquiring at least one text character to be marked, and determining the position information of the at least one text character to be marked; the position information comprises a node level of the at least one text character in the electronic book and text character sequencing information of the at least one text character at the node level of the at least one text character;
coding the text characters to be marked to obtain the coding information of the corresponding text characters; the encoding information of the text characters is unicode character values of the text characters;
and generating a corresponding labeling identifier according to the labeling operation request.
9. The electronic device of claim 8, the text information comprising position information of a plurality of text characters arranged in a position information order;
the executable instructions further cause the processor to:
traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of the first text character and the position information of the last text character in the text information to be labeled exists;
and if the marked text information which is the same as the position information of the first text character and the position information of the last text character in the text information to be marked exists, returning a marked prompt.
10. The electronic device of claim 8 or 9, the executable instructions further causing the processor to:
and compressing and storing the position information of at least one text character and the coding information of at least one text character in the text information in an array mode.
11. The electronic device of claim 10, the executable instructions further cause the processor to:
extracting the same node level in the position information of at least one text character as an array prefix;
and taking the text character sequencing information of the at least one text character at the node layer where the text character is located as an array subscript, and taking the coding information of the at least one text character as assignment of the array subscript.
12. The electronic device of claim 11, the executable instructions further cause the processor to:
and if the text character sequencing information of at least one text character in the text information at the node layer where the text character is located is discontinuous sequencing information, setting the assignment of the array subscript with discontinuous sequencing as a preset numerical value.
13. The electronic device of claim 10, the executable instructions further cause the processor to:
decompressing the compressed and stored text information, and combining the array prefix, the at least one array subscript and the assignment of the array subscript to obtain the decompressed text information.
14. The electronic device of claim 8 or 9, the annotation operation request being a scribe-and-scribe operation request.
15. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
receiving a marking operation request triggered by a user, and generating text information to be marked; the text information includes: position information of at least one text character, marking identification and coding information of at least one text character; the position information of the at least one text character and the coding information of the at least one text character are stored in a key-value pair mode;
traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of at least one text character in the text information to be labeled exists or not;
if so, fusing the text information to be marked and the marked text information;
the receiving a labeling operation request triggered by a user and generating text information to be labeled further comprises:
acquiring at least one text character to be marked, and determining the position information of the at least one text character to be marked; the position information comprises a node level of the at least one text character in the electronic book and text character sequencing information of the at least one text character at the node level of the at least one text character;
coding the text characters to be marked to obtain the coding information of the corresponding text characters; the encoding information of the text characters is unicode character values of the text characters;
and generating a corresponding labeling identifier according to the labeling operation request.
16. The computer storage medium of claim 15, the text information comprising position information for a plurality of text characters arranged in a position information order;
the executable instructions further cause the processor to:
traversing the labeled text information displayed by the current terminal, and inquiring whether labeled text information identical to the position information of the first text character and the position information of the last text character in the text information to be labeled exists;
and if the marked text information which is the same as the position information of the first text character and the position information of the last text character in the text information to be marked exists, returning a marked prompt.
17. The computer storage medium of claim 15 or 16, the executable instructions further causing the processor to:
and compressing and storing the position information of at least one text character and the coding information of at least one text character in the text information in an array mode.
18. The computer storage medium of claim 17, the executable instructions further causing the processor to:
extracting the same node level in the position information of at least one text character as an array prefix;
and taking the text character sequencing information of the at least one text character at the node layer where the text character is located as an array subscript, and taking the coding information of the at least one text character as assignment of the array subscript.
19. The computer storage medium of claim 18, the executable instructions further causing the processor to:
and if the text character sequencing information of at least one text character in the text information at the node layer where the text character is located is discontinuous sequencing information, setting the assignment of the array subscript with discontinuous sequencing as a preset numerical value.
20. The computer storage medium of claim 17, the executable instructions further causing the processor to:
decompressing the compressed and stored text information, and combining the array prefix, the at least one array subscript and the assignment of the array subscript to obtain the decompressed text information.
21. The computer storage medium of claim 15 or 16, the annotation operation request is a scribe-lane operation request.
CN202010236125.XA 2020-03-30 2020-03-30 Electronic book labeling processing method, electronic equipment and storage medium Active CN111460765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010236125.XA CN111460765B (en) 2020-03-30 2020-03-30 Electronic book labeling processing method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010236125.XA CN111460765B (en) 2020-03-30 2020-03-30 Electronic book labeling processing method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111460765A CN111460765A (en) 2020-07-28
CN111460765B true CN111460765B (en) 2020-12-29

Family

ID=71683369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010236125.XA Active CN111460765B (en) 2020-03-30 2020-03-30 Electronic book labeling processing method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111460765B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486636A (en) * 2021-07-07 2021-10-08 建信金融科技有限责任公司 Text labeling method and device
CN113657325B (en) * 2021-08-24 2024-04-12 北京百度网讯科技有限公司 Method, apparatus, medium and program product for determining annotation style information

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1568501A (en) * 2001-10-12 2005-01-19 皇家飞利浦电子股份有限公司 Correction device for marking parts of recognized text

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6507678B2 (en) * 1998-06-19 2003-01-14 Fujitsu Limited Apparatus and method for retrieving character string based on classification of character
EP1774765A1 (en) * 2004-07-29 2007-04-18 THOMSON Licensing System and method for providing visual markers in electronic documents
CN101227685B (en) * 2008-01-25 2011-02-02 深圳凯虹移动通信有限公司 Method and apparatus for obtaining number region of mobile terminal
CN101539904B (en) * 2009-04-21 2012-05-30 武汉大学 Automatic indexing method of quotations
CN102005138B (en) * 2009-08-28 2014-07-23 英华达(上海)电子有限公司 Electronic device for displaying document and data management method
CN102110230A (en) * 2009-12-29 2011-06-29 鸿富锦精密工业(深圳)有限公司 Electronic book reader capable of drawing lines on electronic book and line drawing method
CN102411478B (en) * 2011-11-16 2013-10-09 鸿富锦精密工业(深圳)有限公司 Electronic device and text guiding method therefor
CN104216969B (en) * 2014-08-26 2018-03-06 小米科技有限责任公司 Read flag method and device
JP6717141B2 (en) * 2016-09-20 2020-07-01 コニカミノルタ株式会社 Document browsing device and program
CN109117032A (en) * 2017-06-22 2019-01-01 北大方正集团有限公司 Reading processing method and device based on epub e-book
CN107943390B (en) * 2017-11-15 2020-04-24 维沃移动通信有限公司 Character copying method and mobile terminal
CN109657017B (en) * 2018-11-05 2021-03-23 北京市天元网络技术股份有限公司 Display method and device for aggregation point set in map
CN110471597A (en) * 2019-07-25 2019-11-19 北京明略软件系统有限公司 A kind of data mask method and device, computer readable storage medium
CN110598057B (en) * 2019-08-30 2022-08-19 北京电子工程总体研究所 Data searching method and device for telemetering data
CN111339381A (en) * 2020-03-06 2020-06-26 昆明理工大学 Method and device for batch query of character strings of dictionary sequence partition double arrays

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1568501A (en) * 2001-10-12 2005-01-19 皇家飞利浦电子股份有限公司 Correction device for marking parts of recognized text

Also Published As

Publication number Publication date
CN111460765A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN103455475B (en) Composition method, equipment and system
CN111460765B (en) Electronic book labeling processing method, electronic equipment and storage medium
CN108334508B (en) Webpage information extraction method and device
CN107239566B (en) User journal generation method, electronic equipment and computer-readable storage medium
CN103020266A (en) Method and device for extracting webpage text content
CN105843800A (en) DOI-based language information display method and device
CN104516920A (en) Data inquiry method and data inquiry system
WO2013119603A1 (en) Web page retrieval method and device
CN101751462A (en) Network information storage and access methods, equipment and terminals
CN103136199A (en) User information writing method and user information writing device
CN111460345B (en) Electronic book loading display method, electronic equipment and storage medium
CN104899203B (en) Webpage generation method and device and terminal equipment
CN104978325B (en) A kind of web page processing method, device and user terminal
CN103377246B (en) Bookmark processing method and terminal browser
CN113127776A (en) Breadcrumb path generation method and device and terminal equipment
CN110969501B (en) Method, system, equipment and storage medium for displaying web shopping cart page
CN111143732A (en) Webpage rendering method and device
CN110750958A (en) Text display method and device, electronic equipment and medium
WO2019227705A1 (en) Image entry method, server and computer storage medium
CN106484827A (en) Retrieval method and device, and terminal
CN108920610B (en) Novel indexing method and device
JP2019121165A (en) Retrieval result outputting program, retrieval result outputting apparatus, and retrieval result outputting method
CN106844406B (en) Search method and search device
CN113177391B (en) Method for redirecting operation cursor in streaming interface, computing equipment and storage medium
CN108255878B (en) User information processing method and related device

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