CN110674249B - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN110674249B
CN110674249B CN201910933914.6A CN201910933914A CN110674249B CN 110674249 B CN110674249 B CN 110674249B CN 201910933914 A CN201910933914 A CN 201910933914A CN 110674249 B CN110674249 B CN 110674249B
Authority
CN
China
Prior art keywords
position index
mark
target
record
character
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
CN201910933914.6A
Other languages
Chinese (zh)
Other versions
CN110674249A (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.)
Beijing Fantasy Network Technology Co ltd
Original Assignee
Beijing Fantasy Network 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 Beijing Fantasy Network Technology Co ltd filed Critical Beijing Fantasy Network Technology Co ltd
Priority to CN201910933914.6A priority Critical patent/CN110674249B/en
Publication of CN110674249A publication Critical patent/CN110674249A/en
Application granted granted Critical
Publication of CN110674249B publication Critical patent/CN110674249B/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/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • G06F16/316Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/34Browsing; Visualisation therefor

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)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an information processing method and device, electronic equipment and a storage medium; the method comprises the following steps: detecting an operation of displaying contents of a target book through a target application; acquiring a mark record corresponding to the target book based on the operation of displaying the content of the target book; determining at least partial characters of N paragraphs in the target book corresponding to the mark records based on the position index of the start paragraph, the position index of the start character, the position index of the end paragraph and the position index of the end character contained in the mark records; wherein N is an integer greater than or equal to 1; and marking at least part of characters of the N paragraphs of the target book.

Description

Information processing method and device
Technical Field
The present invention relates to the field of information processing, and in particular, to an information processing method and apparatus, an electronic device, and a storage medium.
Background
When a user reads an article by using a reading Application (APP), the APP generally supports the user to select several words or one word to add annotation information, i.e. notes, and the notes added by the user can be seen when the user reads the same article by using the APP on different devices; sometimes the user will also highlight the marked characters (or text) at the same time. However, the related art does not provide a concise and efficient processing scheme for how a user accurately records characters marked in an article.
Disclosure of Invention
The invention provides an information processing method and device, electronic equipment and a storage medium, which aim to solve the problems in the prior art.
One aspect of the present invention provides an information processing method, including:
detecting an operation of displaying contents of a target book through a target application;
acquiring a mark record corresponding to the target book based on the operation of displaying the content of the target book; wherein the mark record includes: book identification, a position index of a start paragraph, a position index of a start character, a position index of an end paragraph, and a position index of an end character;
determining at least partial characters of N paragraphs in the target book corresponding to the mark records based on the position index of the start paragraph, the position index of the start character, the position index of the end paragraph and the position index of the end character contained in the mark records; wherein N is an integer greater than or equal to 1;
and marking at least part of characters of the N paragraphs of the target book.
Another aspect of the present invention provides an information processing apparatus comprising:
a detection unit for detecting an operation of displaying contents of a target book by a target application;
an information acquisition unit configured to acquire a mark record corresponding to the target book based on the operation of displaying the content of the target book; wherein the mark record includes: book identification, a position index of a start paragraph, a position index of a start character, a position index of an end paragraph, and a position index of an end character;
the parsing unit is used for determining at least part of characters of N paragraphs in the target book corresponding to the mark records based on the position index of the start paragraph, the position index of the start character, the position index of the end paragraph and the position index of the end character contained in the mark records; wherein N is an integer greater than or equal to 1;
and the processing unit is used for marking and setting at least part of characters of the N paragraphs of the target book.
Another aspect of the present invention provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described above.
In another aspect, the present invention further provides a storage medium, wherein the computer instructions are used to make the computer execute the foregoing method.
By adopting the scheme, when the content of the target book is displayed through the target application, at least part of characters of N paragraphs in the target book corresponding to the mark records are determined based on the related information of the start paragraphs and the start characters of the mark records corresponding to the target book, so as to mark at least part of characters of the N paragraphs. Therefore, a scheme capable of marking across paragraphs is provided, and the mark record only records the related information of the initial paragraph and the initial character, so that the storage of the mark record is more efficient; meanwhile, since the information recorded in the mark record is small, the process of setting the mark by analyzing and using the mark record is also efficient.
Drawings
Fig. 1 is a schematic flow chart of an information processing method according to an embodiment of the present invention;
fig. 2 is a schematic view of a scenario for marking a character according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a process of storing a tag record according to an embodiment of the present invention;
fig. 4 is a first schematic structural diagram illustrating a composition of an information processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a second exemplary configuration of an information processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides an information processing method, as shown in fig. 1, including:
s101: detecting an operation of displaying contents of a target book through a target application;
s102: acquiring a mark record corresponding to the target book based on the operation of displaying the content of the target book; wherein the mark record includes: book identification, a position index of a start paragraph, a position index of a start character, a position index of an end paragraph, and a position index of an end character;
s103: determining at least partial characters of N paragraphs in the target book corresponding to the mark records based on the position index of the start paragraph, the position index of the start character, the position index of the end paragraph and the position index of the end character contained in the mark records; wherein N is an integer greater than or equal to 1;
s104: and marking at least part of characters of the N paragraphs of the target book.
The scheme provided by the embodiment is only applied to the electronic equipment with the processing function and the character display function. Such as smart phones, tablet computers, Personal Computers (PCs), notebook computers, and the like.
The aforementioned mark recording may further include: a start check code, an end check code, a chapter mark and identity information of a user.
Regarding the mark recording, the following formula can be employed for expression:
/p[index]/c[index]:(character);
wherein "p" (paragraph) represents a paragraph; "c" (character) represents a character; "character" means a check code, and correspondingly, if the corresponding start paragraph and start character, the check code is a start check code, and if the corresponding end paragraph and end character, the check code is an end check code, wherein character value hit in the text can be used for simple check; "index" represents a location index, which may take on values of int-type and function-type.
The characters can be characters, letters, punctuation marks and the like;
the position index may be int, such as [0], or may be a function, such as [ last () ], [ first () ].
Where a function is used to explicitly point to a specific location, such as last () representing the location of the last word. first () represents the position of the first word.
For example, as illustrated in the example provided in fig. 2, the record corresponding to a start character or an end character in the content provided in fig. 2 may be as shown in table 1:
content value Description of the invention
/p[0]/c[0]That (Jian) Building (2) Character 1 of segment 1
/p[2]/c[0]First and second And is Character 1 of segment 3
/p[1]/c[last()]:(。) Last character of paragraph 2
TABLE 1
In the scheme provided by this embodiment, the head and tail spaces of all paragraphs are removed, or are understood as not being counted, that is, there is a space at the beginning of a paragraph, if marking is performed from the beginning of the paragraph, recording is started from the valid character at the beginning of the paragraph, and no marking is performed on the head and tail spaces.
In one example, the description of how to generate and store the mark record, with reference to fig. 3, may include:
s201: detecting marking operation of at least part of characters in N paragraphs of a target chapter in a target book displayed by a target application;
s202: and establishing a marking record aiming at least part of characters in N paragraphs of a target chapter in the target book based on the marking operation, and storing the marking record.
The target application may be any application capable of book exhibition. The target book may be a book currently opened by the user. The target chapter is the chapter where the content to be marked by the user is located.
The marking operation may be understood as a user highlighting a part of characters in the content currently being browsed. Of course, the marking operation may not be limited to the highlighting operation, and may also be a picture frame, an underline, or the like, which is related to the marking manner selected by the user, and the specific manner of the marking operation is not limited in this embodiment. Based on this, the mark record may further include a mark manner selected by the user, such as at least one of a highlight mark manner, a highlight color, a frame mark manner, a frame line, an underline mark manner, an underline color, and an underline line form; of course, a default marking mode may be adopted, that is, the marking mode does not need to be saved in the marking record, which is not limited in this example.
For example, referring to fig. 2, a user is browsing a part of content through APP (application), and needs to mark a part of text therein, such as paragraphs 1-2 and a part of text in paragraph 3 in fig. 2; it is possible that the user may highlight the part of the content to perform the marking operation, for example, the content marked by the dashed box in fig. 2 may be understood as a part of the character corresponding to the marking operation performed by the user.
Based on the marking operation, a marking record for at least part of characters in N paragraphs of a target chapter in a target book is established, which may specifically be:
determining a position index of a beginning paragraph, a position index of a beginning character, a beginning check code, a label of an ending paragraph, a position index of an ending character and an ending check code of a target chapter in the target book based on the marking operation;
and generating a mark record containing the mark of the target book, the mark of the target chapter, the position index of the start paragraph, the position index of the start character, the start check code, the label of the end paragraph, the position index of the end character and the end check code.
For example, referring to fig. 2, if the user marks paragraphs 1-2 and a part of the text in paragraph 3, the position index of the beginning paragraph, the position index of the beginning character, the start check code, the label of the ending paragraph, the position index of the ending character, and the end check code in the generated mark record may be as shown in table 2:
Figure GDA0002475121570000061
TABLE 2
The index ordering of paragraphs and characters both start with 0, so 0 represents the first paragraph from the beginning; if the index ordering of the definition paragraph and the characters both start with 1, then paragraph 1 can be denoted as p [1 ]. In the former way, as shown in Table 2, p 0 represents the 1 st segment, c 0 represents the 1 st character, i.e., the beginning check code can be understood, and the content value represents all the characters from the beginning character of the beginning segment to the ending character of the ending segment.
In addition, the user can log in the target application through own identity information, such as an account, so that the recording can be performed by combining the account of the user when the mark recording is performed. That is, the identity information of the user may be the account used by the user to log into the target application.
In this example, the mark record may be in the form of a list or a single record.
If the mark records are in a list form, the identity information of the user and the identification of the book can be used as indexes, and each mark record corresponds to one marking operation of the user. Each mark record can have corresponding user identity information and book identification; or, a tag record list may correspond to the identity information of a user and the identification of a book. For example, table 2 may be understood as a list of stored tag records, where each tag record corresponds to a user's tagging operation. The content not shown in the list may be the identity information of the user and the identification of the book, which are the same for each mark record; or, a tag record list may correspond to the identity information of a user and the identification of a book.
If the record is in the form of a single record, each mark record can be separately saved, namely, each mark record corresponds to one marking operation of a user.
In this example, the storing the mark record may include: and sending the mark record to a server for storage. That is, storing the tag record may be performed by a server, and specifically, the tag record may be sent to a server side corresponding to the application by the application. Alternatively, the storage may be performed locally.
In this way, when generating and storing the mark record, the identity information of the user login target application, the book mark, the chapter mark, the position index of the start paragraph, the position index of the start character, the position index of the end paragraph and the position index of the end character are combined, so that the mark record is more accurate and flexible, and the stored content is not much and comprises some marks and index information, so that the storage is more efficient.
In another example, how to use the mark recording is explained:
if it is detected that the user clicks the target book in the book selection interface displayed by the target application (at this time, it may be considered that the user selects an operation of displaying the content of the target book by clicking the target book), the mark record corresponding to the target book may be obtained based on the operation.
Wherein the acquiring a mark record corresponding to the target book includes: and acquiring the mark record corresponding to the target book from a server.
Still further, the acquiring a mark record corresponding to the target book further includes:
and acquiring a mark record matched with the identity information of the user and the identification of the target book based on the identity information of the target application logged by the user and the identification of the target book.
That is, if the tag record is stored on the server side, the electronic device may send the tag record request information including the identifier of the target book to the server side, and then receive the tag record corresponding to the target book fed back by the server side. The tag record request information may include identity information of the user logging in the target application and an identifier of the target book.
Or, if the tag record is stored locally, the electronic device may search the local storage based on the identity information and the identifier of the target book, and obtain, from the local storage, the tag record corresponding to the identifier of the book stored in the tag record and the identifier of the target book.
The number of the mark records corresponding to the identity information of the user when the target application is logged in can be one or more, so that the mark record corresponding to the identifier of the target book is further obtained from the mark record corresponding to the identity information of the user through the identifier of the target book.
Since the mark records corresponding to one book may be in a list or may be a plurality of single mark records, when the mark records are obtained, all the mark records corresponding to the target book are obtained. For example, the tag record saved by the user may be first searched based on the identity information of the user, then the tag record including the identifier of the target book may be searched, and all the tag records included in the target book may be obtained.
The determining at least partial characters of N paragraphs in the target book corresponding to the tag record based on the position index of the start paragraph, the position index of the start character, the position index of the end paragraph, and the position index of the end character included in the tag record includes:
determining a target chapter in the target book based on chapter marks contained in the mark record;
determining at least part of characters of N paragraphs of a target chapter in the target book corresponding to the mark record based on the position index of the start paragraph, the position index of the start character, the position index of the end paragraph and the position index of the end character contained in the mark record.
The foregoing processing manner is processing for each mark record.
Specifically, after a target chapter is determined based on chapter marks included in a mark record, the start and end positions of a mark are determined according to a position index of a start paragraph, a position index of a start character, a position index of an end paragraph, and a position index of an end character, and contents included in satellites marking the start and the end are used as at least partial characters of N paragraphs of the target chapter in the target book corresponding to the mark record.
After at least part of the characters of the N paragraphs have been determined based on the aforementioned marking records, they may be marked.
Since the mark records may be a plurality of mark records corresponding to a plurality of target chapters in the target book, or a plurality of mark records of one chapter in the target book, all the set marks may not be completely displayed in one screen of the electronic device, and at this time, the mark records may be displayed only for marks included in part of the content of the target book displayed on the current screen.
Another example, the processing of verifying the content based on the verification code specifically includes:
the mark recording further includes:
a start check code and an end check code;
correspondingly, when determining at least some characters of N paragraphs in the target book corresponding to the tag record based on the position index of the start paragraph, the position index of the start character, the position index of the end paragraph, and the position index of the end character included in the tag record, the method further includes:
and carrying out consistency check on the characters corresponding to the position indexes of the initial characters based on the initial check codes, and/or carrying out consistency check on the characters corresponding to the position indexes of the end characters based on the end check codes.
Since the foregoing examples have been described, the start check code or the end check code is a start character value or an end character value, that is, a specific letter, symbol, or the like;
correspondingly, the consistency check of the character corresponding to the position index of the starting character based on the starting check code means that:
and comparing the initial check code, namely the initial character value, with the character corresponding to the position index of the initial character, and judging whether the initial check code and the character are consistent to obtain a consistency check result.
In addition, the consistency check is performed on the character corresponding to the position index of the end character based on the end check code, and similar to the previous start check, the consistency check refers to: and comparing the ending check code, namely the ending character value, with the character corresponding to the position index of the ending character, and judging whether the ending check code and the character are consistent to obtain a consistency check result.
The previous start check and end check may be used simultaneously, or only one of them may be used, and may be determined by an application developer, or may be selected by a user, which is not limited herein.
The foregoing results in consistency check, and the following processes that can be performed include:
if the consistency check result indicates that the two are consistent, the setting of the mark may be performed without any processing.
If the consistency result indicates that the two are inconsistent (such as the starting check is inconsistent and/or the ending check is inconsistent), setting of the mark may not be performed; or setting a mark after error correction; still alternatively, a prompt may be provided to the user (e.g., to prompt the user to mark a record of error); or the inconsistent result can be uploaded to a server, so that an operator can perform processing such as optimized debugging on the application based on the inconsistent result.
The setting of the mark after error correction may be setting of the mark directly according to a mark record if the start check code is consistent with the character corresponding to the position index of the start character, or if the end check code is consistent with the character corresponding to the position index of the end character; if the characters corresponding to the position indexes of the starting check code and the starting character and the characters corresponding to the position indexes of the ending check code and the ending character are not consistent, the mark record can be ignored. Of course, there may be more processing modes, and this example is not exhaustive.
In addition, in the process of prompting the user (for example, prompting the user that the mark record is incorrect), the user can update the mark according to the prompt; if the user performs the mark update, the operation of detecting the mark of the user and then generating the corresponding mark record may also be performed, which is not described herein again. It should be noted that, when the user performs the mark update, the mark record in which the error originally occurred may be deleted, and then a new mark record may be generated by performing the record according to a new operation. It may also include that the user may directly choose to delete the marked recording at the location if the user no longer needs to mark the location.
In addition, the prompt may be prompt information displayed for the user through an application display interface, and specifically may include: the position of the mark with error and the content of the text prompt information of the position mark check failure. And further, the current display interface can be positioned at the mark recording position where the error occurs, so that the user can modify or update the mark subsequently. If there are many errors of the mark record, the application may sequentially present for the user, for example, a mark record with an error at the forefront of the article may be presented first, and after the user completes modification, a next mark record with a verification error may be presented for the user, and so on, which is not described again.
The consistency check is provided in this example mainly to cope with the following two cases:
one is that there is a change in the system level, such as the system platform, or a problem with the code written by the programmer;
another is that the characters in the target book are changed.
For example, when a user reads the same book on different platforms, the resolution of the mark record may be different due to the difference of the platforms, and therefore, the consistency check is performed on the mark record to ensure that the last displayed mark is the same as the mark originally set by the user. Here, different platforms may be understood as different operating systems, for example, a user may read a book in a mobile phone of the android system through an APP, and mark at least a part of characters segmented therein, so as to obtain and store corresponding mark records; if the user logs in the APP again in the PC of the Windows system to read the same book next time, analysis of the mark records may be different due to different platforms at two times, and therefore the analysis result needs to be judged through the consistency check, and the problem that the user has a mark error due to different platforms for logging in the APP is solved.
As another example, the content of the target book is often changed, such as: adding and deleting original authors, shielding sensitive words, artificially correcting CP side and the like. Verification of the check code may also fail due to content changes. For example, a user reads a novel at a certain time through an APP, marks the novel, and stores a mark record; after a period of time, the novel content is changed in the period, for example, the original author makes adjustment, sensitive word shielding, and CP side manual correction on the novel content, so that when the user reads the novel through APP after a period of time, the situation of different analysis results may occur when the stored mark record is used for mark setting, and therefore, the analysis results need to be judged through the consistency check in the foregoing, thereby avoiding the problem of mark error caused by the change of the novel content.
In a last example, based on the foregoing examples, associating and saving the mark record with the annotation information set by the user may be further included.
That is, it is determined whether corresponding annotation information exists at a position corresponding to the mark record, and if so, the annotation information and the mark record can be associated and stored; correspondingly, when the subsequent user opens the application again to read the target book, the corresponding annotation information can be determined while marking the partial characters based on the marking record.
Therefore, by adopting the above scheme, when the content of the target book is displayed through the target application, at least part of characters of N paragraphs in the target book corresponding to the mark record can be determined based on the related information of the start paragraph and the start character of the mark record corresponding to the target book, so as to mark at least part of characters of the N paragraphs. Therefore, a scheme capable of marking across paragraphs is provided, and the mark record only records the related information of the initial paragraph and the initial character, so that the storage of the mark record is more efficient; meanwhile, since the information recorded in the mark record is small, the process of setting the mark by analyzing and using the mark record is also efficient.
An embodiment of the present invention provides an information processing apparatus, as shown in fig. 4, including:
a detection unit 41 for detecting an operation of displaying the content of the target book by the target application;
an information obtaining unit 42 configured to obtain a mark record corresponding to the target book based on the operation of displaying the content of the target book; wherein the mark record includes: book identification, a position index of a start paragraph, a position index of a start character, a position index of an end paragraph, and a position index of an end character;
an analyzing unit 43, configured to determine at least part of characters of N paragraphs in the target book corresponding to the tag record based on the position index of the start paragraph, the position index of the start character, the position index of the end paragraph, and the position index of the end character included in the tag record; wherein N is an integer greater than or equal to 1;
a processing unit 44, configured to perform flag setting on at least part of characters of the N paragraphs of the target book.
The apparatus provided in this embodiment may be disposed in an electronic device, such as a smart phone, a tablet computer, a Personal Computer (PC), a notebook computer, and the like.
The aforementioned mark recording may further include: a start check code, an end check code, a chapter mark and identity information of a user.
Regarding the mark recording, the following formula can be employed for expression:
/p[index]/c[index]:(character);
wherein "p" (paragraph) represents a paragraph; "c" (character) represents a character; "character" means a check code, and correspondingly, if the corresponding start paragraph and start character, the check code is a start check code, and if the corresponding end paragraph and end character, the check code is an end check code, wherein character value hit in the text can be used for simple check; "index" represents a location index, which may take on values of int-type and function-type.
The characters can be characters, letters, punctuation marks and the like;
the position index may be int, such as [0], or may be a function, such as [ last () ], [ first () ].
Where a function is used to explicitly point to a specific location, such as last () representing the location of the last word. first () represents the position of the first word.
In an example, how to generate and store the mark record is described, referring to fig. 5, on the basis of fig. 4, the apparatus further includes:
an information generating unit 45, configured to create a mark record for at least part of characters in N paragraphs of a target chapter in a target book based on the marking operation, and store the mark record;
the detecting unit 41 is further configured to detect a marking operation for at least some characters in N paragraphs of a target chapter in a target book displayed by a target application.
In this example, the apparatus further comprises:
a communication unit 46, configured to send the tag record to a server for storage; and acquiring the mark record corresponding to the target book from a server.
Still alternatively, the apparatus may further include a storage unit, that is, the generated flag may be recorded locally for saving.
In this way, when generating and storing the mark record, the identity information of the user login target application, the book mark, the chapter mark, the position index of the start paragraph, the position index of the start character, the position index of the end paragraph and the position index of the end character are combined, so that the mark record is more accurate and flexible, and the stored content is not much and comprises some marks and index information, so that the storage is more efficient.
In another example, how to use the mark recording is explained:
the information acquisition unit is used for acquiring a mark record matched with the identity information of the user and the identification of the target book based on the identity information of the target application logged by the user and the identification of the target book.
The parsing unit is used for determining a target chapter in the target book based on chapter marks contained in the mark records;
determining at least part of characters of N paragraphs of a target chapter in the target book corresponding to the mark record based on the position index of the start paragraph, the position index of the start character, the position index of the end paragraph and the position index of the end character contained in the mark record.
The foregoing processing manner is processing for each mark record.
Another example, the processing of verifying the content based on the verification code specifically includes:
the mark recording further includes:
a start check code and an end check code;
correspondingly, the parsing unit is configured to perform consistency check on a character corresponding to the position index of the start character based on the start check code, and/or perform consistency check on a character corresponding to the position index of the end character based on the end check code.
The specific functions of the respective units in the information processing apparatus in the present embodiment match the processing provided in the foregoing information processing method, and therefore, a repetitive description will not be made.
Therefore, by adopting the above scheme, when the content of the target book is displayed through the target application, at least part of characters of N paragraphs in the target book corresponding to the mark record can be determined based on the related information of the start paragraph and the start character of the mark record corresponding to the target book, so as to mark at least part of characters of the N paragraphs. Therefore, a scheme capable of marking across paragraphs is provided, and the mark record only records the related information of the initial paragraph and the initial character, so that the storage of the mark record is more efficient; meanwhile, since the information recorded in the mark record is small, the process of setting the mark by analyzing and using the mark record is also efficient.
Based on the hardware implementation of the program module, in order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides an electronic device. Fig. 6 is a schematic diagram of a hardware component structure of an electronic device according to an embodiment of the present invention, including:
a communication interface 91 capable of information interaction with other devices such as network devices and the like;
and the processor 92 is connected with the communication interface 91 to realize information interaction with other equipment, and is used for executing the method provided by one or more technical schemes of the information processing device when running a computer program. And the computer program is stored on the memory 93.
Of course, in practice, the various components of the information processing apparatus are coupled together by bus system 94.
It will be appreciated that the bus system 94 is used to enable communications among the components. The bus system 94 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 94 in fig. 6.
The memory 93 in the embodiment of the present invention is used to store various types of data to support the operation of the information processing apparatus. Examples of such data include: any computer program for operating on an information processing apparatus.
It will be appreciated that the memory 93 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory.
The method disclosed in the above embodiments of the present invention may be applied to the processor 92, or implemented by the processor 92.
In an exemplary embodiment, the present invention further provides a storage medium, i.e. a computer storage medium, specifically a computer readable storage medium, for example, including a memory 93 storing a computer program, which can be executed by a processor 92 of a terminal to implement the steps of the foregoing method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (12)

1. An information processing method, characterized in that the method comprises:
detecting an operation of displaying contents of a target book through a target application;
acquiring a mark record corresponding to the target book based on the operation of displaying the content of the target book; wherein the mark record includes: book identification, a position index of a start paragraph, a position index of a start character, a position index of an end paragraph, and a position index of an end character; wherein the position index is a function;
determining at least partial characters of N paragraphs in the target book corresponding to the mark records based on the position index of the start paragraph, the position index of the start character, the position index of the end paragraph and the position index of the end character contained in the mark records; wherein N is an integer greater than or equal to 1;
performing marking setting on at least partial characters of the N paragraphs of the target book;
the mark recording further includes: a start check code and an end check code; wherein, the initial check code is an initial character value, and the ending check code is an ending character value, wherein the character value is one of characters, letters and symbols;
correspondingly, the method further comprises the following steps: carrying out consistency check on characters corresponding to the position indexes of the initial characters based on the initial check codes, and/or carrying out consistency check on characters corresponding to the position indexes of the end characters based on the end check codes;
the method further comprises the following steps: if the consistency result represents that the initial verification is inconsistent and/or the end verification is inconsistent, uploading the inconsistent result to a server so as to perform optimized debugging processing on the target application;
the method further comprises the following steps: and judging whether corresponding annotation information exists at the position corresponding to the mark record, and if so, associating and storing the annotation information and the mark record.
2. The method of claim 1, wherein the marking a record, further comprises: chapter marks;
correspondingly, the determining at least partial characters of N paragraphs in the target book corresponding to the tag record based on the position index of the start paragraph, the position index of the start character, the position index of the end paragraph, and the position index of the end character included in the tag record includes:
determining a target chapter in the target book based on chapter marks contained in the mark record;
determining at least part of characters of N paragraphs of a target chapter in the target book corresponding to the mark record based on the position index of the start paragraph, the position index of the start character, the position index of the end paragraph and the position index of the end character contained in the mark record.
3. The method of claim 1, wherein the marking a record, further comprises: identity information corresponding to the user;
correspondingly, the acquiring a mark record corresponding to the target book further includes:
and acquiring a mark record matched with the identity information of the user and the identification of the target book based on the identity information of the target application logged by the user and the identification of the target book.
4. The method according to any one of claims 1-3, further comprising:
detecting marking operation of at least part of characters in N paragraphs of a target chapter in a target book displayed by a target application;
and establishing a marking record aiming at least part of characters in N paragraphs of a target chapter in the target book based on the marking operation, and storing the marking record.
5. The method of claim 4, wherein storing the marker record comprises:
sending the mark record to a server for storage;
correspondingly, the acquiring a mark record corresponding to the target book includes:
and acquiring the mark record corresponding to the target book from a server.
6. An information processing apparatus characterized in that the apparatus comprises:
a detection unit for detecting an operation of displaying contents of a target book by a target application;
an information acquisition unit configured to acquire a mark record corresponding to the target book based on the operation of displaying the content of the target book; wherein the mark record includes: book identification, a position index of a start paragraph, a position index of a start character, a position index of an end paragraph, and a position index of an end character; wherein the position index is a function;
the parsing unit is used for determining at least part of characters of N paragraphs in the target book corresponding to the mark records based on the position index of the start paragraph, the position index of the start character, the position index of the end paragraph and the position index of the end character contained in the mark records; wherein N is an integer greater than or equal to 1;
a processing unit, configured to perform flag setting on at least part of characters of the N paragraphs of the target book;
the mark recording further includes: a start check code and an end check code; wherein, the initial check code is an initial character value, and the ending check code is an ending character value, wherein the character value is one of characters, letters and symbols;
correspondingly, the parsing unit is configured to perform consistency check on a character corresponding to the position index of the start character based on the start check code, and/or perform consistency check on a character corresponding to the position index of the end character based on the end check code;
the analysis unit is used for uploading the inconsistent result to the server to perform optimized debugging processing on the target application if the consistent result represents that the initial verification is inconsistent and/or the end verification is inconsistent;
and the processing unit is used for judging whether corresponding annotation information exists at the position corresponding to the mark record, and if so, associating and storing the annotation information and the mark record.
7. The apparatus of claim 6, wherein the mark record further comprises: chapter marks;
correspondingly, the parsing unit is configured to determine a target chapter in the target book based on a chapter identifier included in the mark record; determining at least part of characters of N paragraphs of a target chapter in the target book corresponding to the mark record based on the position index of the start paragraph, the position index of the start character, the position index of the end paragraph and the position index of the end character contained in the mark record.
8. The apparatus of claim 6, wherein the mark record further comprises: identity information corresponding to the user;
correspondingly, the information obtaining unit is configured to obtain, based on the identity information of the user logging in the target application and the identifier of the target book, a tag record matched with the identity information of the user and the identifier of the target book.
9. The apparatus according to any one of claims 6-8, further comprising:
the information generating unit is used for establishing a mark record aiming at least part of characters in N paragraphs of a target chapter in a target book based on a marking operation and storing the mark record;
the detection unit is further configured to detect a marking operation for at least some characters in N paragraphs of a target chapter in a target book displayed by a target application.
10. The apparatus of claim 9, further comprising:
the communication unit is used for sending the mark record to a server for storage; and acquiring the mark record corresponding to the target book from a server.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
12. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-5.
CN201910933914.6A 2019-09-29 2019-09-29 Information processing method and device Active CN110674249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910933914.6A CN110674249B (en) 2019-09-29 2019-09-29 Information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910933914.6A CN110674249B (en) 2019-09-29 2019-09-29 Information processing method and device

Publications (2)

Publication Number Publication Date
CN110674249A CN110674249A (en) 2020-01-10
CN110674249B true CN110674249B (en) 2020-10-20

Family

ID=69080228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910933914.6A Active CN110674249B (en) 2019-09-29 2019-09-29 Information processing method and device

Country Status (1)

Country Link
CN (1) CN110674249B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114861613A (en) * 2022-05-31 2022-08-05 北京字节跳动网络技术有限公司 Method, apparatus, device, and medium for managing annotations in electronic books

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246635A (en) * 2012-02-10 2013-08-14 深圳市有方科技有限公司 Note management system and method for electronic document
CN105187551A (en) * 2015-09-29 2015-12-23 成都四象联创科技有限公司 Distributed computing method based on cloud platform
CN107291682A (en) * 2016-03-30 2017-10-24 同方知网(北京)技术有限公司 It is a kind of to divide piece algorithm based on many electronic documents for redirecting processing and twin check

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9275052B2 (en) * 2005-01-19 2016-03-01 Amazon Technologies, Inc. Providing annotations of a digital work
WO2008031625A2 (en) * 2006-09-15 2008-03-20 Exbiblio B.V. Capture and display of annotations in paper and electronic documents
JP5141671B2 (en) * 2009-11-27 2013-02-13 カシオ計算機株式会社 Electronic device and program with dictionary function
US9846688B1 (en) * 2010-12-28 2017-12-19 Amazon Technologies, Inc. Book version mapping
JP5910134B2 (en) * 2012-02-07 2016-04-27 カシオ計算機株式会社 Text search apparatus and program
CN102768614B (en) * 2012-06-14 2015-07-15 广东步步高电子工业有限公司 Text processing method applied to touch screen mobile handheld device
CN103268340B (en) * 2013-05-21 2016-08-10 龚如宾 Format reflowable file based on hierarchy type index is set up and method for drafting
CN107609001A (en) * 2017-07-18 2018-01-19 深圳天珑无线科技有限公司 Intelligent terminal and its mark display methods, the device with store function
CN108304361B (en) * 2018-02-12 2019-09-24 掌阅科技股份有限公司 The display methods of the hand-written notes of e-book calculates equipment and computer storage medium
CN108776575B (en) * 2018-06-08 2019-04-16 掌阅科技股份有限公司 Synchronous method, e-book reading device and the storage medium of the hand-written notes of user

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246635A (en) * 2012-02-10 2013-08-14 深圳市有方科技有限公司 Note management system and method for electronic document
CN105187551A (en) * 2015-09-29 2015-12-23 成都四象联创科技有限公司 Distributed computing method based on cloud platform
CN107291682A (en) * 2016-03-30 2017-10-24 同方知网(北京)技术有限公司 It is a kind of to divide piece algorithm based on many electronic documents for redirecting processing and twin check

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于位置索引的电力信息系统资源共享方案;陈建英 等;《电力系统自动化》;20100410;第34卷(第7期);第57-60页 *

Also Published As

Publication number Publication date
CN110674249A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
US10613971B1 (en) Autonomous testing of web-based applications
US8925822B2 (en) Encoding, updating, and decoding barcodes in a document
CN108399072B (en) Application page updating method and device
CN106649543B (en) Method, device and terminal for recording reading progress
US9069767B1 (en) Aligning content items to identify differences
CN105183760B (en) Webpage component loading method and device
US20170139813A1 (en) Method and device for checking influence of deleting cache file, and mobile terminal
CN110457628A (en) Webpage edition correcting method, device, equipment and storage medium
CN110555073A (en) data processing method and device, electronic equipment and storage medium
CN111753505A (en) Document processing method, document processing device, server and storage medium
CN110765015A (en) Method for testing application to be tested and electronic equipment
CN110806866A (en) Generation method and device of front-end management system
CN110825600B (en) Page information processing method, server and page display device
CN110674249B (en) Information processing method and device
JP2016045545A (en) Influence investigation system, influence investigation method, and influence investigation program
CN113377458B (en) Plug-in management method and device, electronic equipment and storage medium
CN110378566B (en) Information checking method, device, storage medium and apparatus
CN113177392B (en) Method for synchronizing row segment information in proofreading interface, computing device and storage medium
CN112667502A (en) Page testing method, device and medium
CN113590564A (en) Data storage method and device, electronic equipment and storage medium
CN107885839B (en) Method and device for reading information in Word file
KR101368610B1 (en) Method and system for selecting paragraph on electronic book environments
CN113704650A (en) Information display method, device, system, equipment and storage medium
CN109815426A (en) Page info detection method and device, terminal and computer readable storage medium
CN112749294B (en) Page hidden text recognition method, device, computer equipment and storage medium

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