CN114356204A - Note processing method, electronic device and computer storage medium - Google Patents

Note processing method, electronic device and computer storage medium Download PDF

Info

Publication number
CN114356204A
CN114356204A CN202210003833.8A CN202210003833A CN114356204A CN 114356204 A CN114356204 A CN 114356204A CN 202210003833 A CN202210003833 A CN 202210003833A CN 114356204 A CN114356204 A CN 114356204A
Authority
CN
China
Prior art keywords
note
track
existing
erasing
data
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.)
Granted
Application number
CN202210003833.8A
Other languages
Chinese (zh)
Other versions
CN114356204B (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.)
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN202210003833.8A priority Critical patent/CN114356204B/en
Publication of CN114356204A publication Critical patent/CN114356204A/en
Application granted granted Critical
Publication of CN114356204B publication Critical patent/CN114356204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a note processing method, electronic equipment and a computer storage medium. The method comprises the following steps: responding to a note erasing operation generated by a current page read by an ink screen reader, and acquiring a note erasing track generated along with the note erasing operation; according to the note erasing track and the report point data of the existing note track, determining report point data to be cleared in the existing note track, and clearing the report point data to be cleared in the existing note track; and redrawing the existing note track according to the removed report point data of the existing note track. According to the scheme, the erasing effect can be displayed in real time, when the font, the font size, the line spacing and the like in the current reading page are changed, the existing note track is redrawn according to the cleared report point data of the existing note track during redisplay, and the existing note track can still be reproduced normally.

Description

Note processing method, electronic device and computer storage medium
Technical Field
The invention relates to the technical field of application programs, in particular to a note processing method, electronic equipment and a computer storage medium.
Background
Currently, with the popularization of mobile terminals such as mobile phones and the development of electronic book readers, electronic books are more and more favored by reading users. Meanwhile, in order to further improve the use experience of the user of the electronic book, more and more electronic book readers are provided with electromagnetic plates and electromagnetic pens, and the user is supported to carry out electromagnetic notes on the screen of the reader so as to mark the content which the user is interested in.
The electronic book reader is usually an ink screen, and a user can take notes on a reading page by using an electromagnetic pen, so in order to store the notes taken by the user and redisplay the notes later, in the prior art, the notes and a background template are usually stored in a picture form so as to facilitate the reproduction of the notes.
However, in the process of implementing the present invention, the inventor finds that the above solution in the prior art has at least the following defects: the erasing of the reading page note is not flexible enough, and when the font, the font size, the line spacing and the like in the reading page are changed, if the erasing mode of the note on the picture is adopted, the problem exists during redisplay and the reappearance cannot be realized.
Disclosure of Invention
In view of the above, the present invention has been made to provide a note processing method, an electronic device, and a computer storage medium that overcome or at least partially solve the above problems.
According to an aspect of the present invention, there is provided an annotation processing method, including:
responding to a note erasing operation generated by a current page read by an ink screen reader, and acquiring a note erasing track generated along with the note erasing operation;
according to the note erasing track and the report point data of the existing note track, determining report point data to be cleared in the existing note track, and clearing the report point data to be cleared in the existing note track;
and redrawing the existing note track according to the removed report point data of the existing note track.
According to another aspect of the present invention, there is provided an electronic apparatus including: 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:
responding to a note erasing operation generated by a current page read by an ink screen reader, and acquiring a note erasing track generated along with the note erasing operation;
according to the note erasing track and the report point data of the existing note track, determining report point data to be cleared in the existing note track, and clearing the report point data to be cleared in the existing note track;
and redrawing the existing note track according to the removed report point data of the existing note track.
According to still 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 perform operations corresponding to the note processing method.
According to the note processing method, the electronic equipment and the computer storage medium disclosed by the invention, firstly, the note reporting data to be eliminated in the existing note track is determined according to the note erasing track and the note reporting data of the existing note track, the note reporting data to be eliminated in the existing note track is eliminated, then the existing note track is redrawn according to the eliminated note reporting data of the existing note track, the erasing effect can be displayed in real time, and when the font, the font size, the line spacing and the like in the current reading page are changed, the existing note track is redrawn according to the eliminated note reporting data of the existing note track during redisplay, and normal reproduction can still be realized.
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 schematic flow chart illustrating a note processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for processing notes according to a second embodiment of the present invention;
FIG. 3 is a flow chart illustrating a method for processing notes according to a third embodiment of the present invention;
fig. 4 is a flowchart illustrating a note processing method according to a fourth embodiment of the present invention;
fig. 5 shows a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can 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 invention to those skilled in the art.
Example one
Fig. 1 is a flowchart illustrating a method for processing notes according to an embodiment of the present invention.
The note processing method provided by the embodiment of the invention is executed by the note processing device provided by the embodiment of the invention, the note processing device can be realized in a software or hardware mode, and the note processing device can be integrated in an ink screen reader.
As shown in fig. 1, the method includes:
and step S110, responding to a note erasing operation generated by the current page read by the ink screen reader, and acquiring a note erasing track generated along with the note erasing operation.
The note is a mark or a label added when the ink screen reader is used for reading, for example, the ink screen reader may be a reader with an electromagnetic plate or an electromagnetic pen. And a user carries out handwritten notes on corresponding characters of a reading page of the ink screen reader through an electromagnetic plate or an electromagnetic pen. The note content includes underlining, circling, writing text annotations, writing reading feelings of the user to the text, and pictures expressing the mood of the user.
The reading page may be a display interface of an electronic book (e.g., a novel, a prose, etc.), and the content of the electronic book is displayed through the display interface.
For example, an erasing button is arranged at a certain position of the ink screen reader or the current reading page, a user clicks the erasing button to enter a note erasing mode, an operation generated on a display screen of the ink screen reader by using the electromagnetic pen or the finger is recognized as a note erasing operation, and a note erasing track is generated on the current reading page following the note erasing operation.
Step S120, according to the note erasing track and the report point data of the existing note track, the report point data to be eliminated in the existing note track is determined, and the report point data to be eliminated in the existing note track is eliminated.
Specifically, when a note erasing track is generated following a note erasing operation, the hit data of the note erasing track is saved. Wherein, the punctuation data of the note erasure track includes coordinate information, line information (e.g., line color and/or line width). Similarly, the user may also save the report data of the note track (for example, in the local database or the remote server database) when writing the note, and obtain the report data of the existing note track when the note erasing operation is generated, where the report data of the existing note track includes at least one of coordinate information, line information (for example, line color and/or line width), note type (for example, pen, pencil, etc.), and a corresponding relationship between the start point coordinate and the end point coordinate and the offset of the preset text.
The preset characters may be characters within a preset range of the starting point coordinates and the ending point coordinates of the existing note track, for example, characters right above, or right below, or left above, or left below, or right above the starting point coordinates and the ending point coordinates. When the page mode of the current reading page changes (for example, the font size, the line spacing, and the like change), in order to redraw the existing note track in the changed reading page, a corresponding relationship between the start point coordinate and the end point coordinate and the offset of the preset text needs to be established, where the offset of the preset text is the display position or the text sequence of the text recorded in the source file on the reading page, for example, the 100 th word of the paragraph where the text is located, and the corresponding offset is always the 100 th word of the paragraph where the text is located no matter how the page mode changes, and cannot be changed along with the change.
Specifically, the note erasing operation is based on the existing note track, so that there may be a part where the newspaper point data of the note erasing track generated by the note erasing operation and the newspaper point data of the existing note track are overlapped, the newspaper point data of the overlapped part is determined as newspaper point data to be cleared in the existing note track, and further, the newspaper point data to be cleared in the existing note track is cleared.
And step S130, redrawing the existing note track according to the removed report point data of the existing note track.
Specifically, through the above step of clearing the point data, the cleared point data of the existing note track may be divided into point data of a plurality of note tracks. In the step, the existing note track can be directly redrawn according to the cleared report point data of the existing note track after the erasing operation is finished. Or when the user turns the page, or refreshes or restarts the current reading page, responding to the page turning operation, or refreshing operation or restarting operation of the current reading page, and redrawing the existing note track on the current reading page according to the cleared report point data of the existing note track.
Specifically, during drawing, firstly, a note layer is generated according to the cleared report point data of the existing note track, the note layer is synthesized with a page layer of the current reading page, the synthesized page is sent to a display cache, and the synthesized page is synchronized to an ink screen reader for displaying. Because the removed report point data of the existing note track does not contain the erased report point data, the existing note track redrawn according to the removed report point data of the existing note track is the erased note track, and the erasing effect can be displayed in real time.
Therefore, according to the embodiment, firstly, the newspaper point data to be cleared in the existing note track is determined according to the note erasing track and the newspaper point data of the existing note track, the newspaper point data to be cleared in the existing note track is cleared, then, the existing note track is redrawn according to the cleared newspaper point data of the existing note track, the erasing effect can be displayed in real time, and when the font, the font size, the line spacing and the like in the current reading page are changed, the existing note track is redrawn according to the cleared newspaper point data of the existing note track during redisplay, and normal reappearance can still be achieved.
Example two
Fig. 2 is a flow chart illustrating a note processing method according to the second embodiment of the present invention.
The embodiment is further optimized on the basis of the embodiment. As shown in fig. 2, the method includes:
step S210, responding to a note erasing operation generated by the current page read by the ink screen reader, and acquiring a note erasing track generated along with the note erasing operation.
Step S220, according to the report data of the note erasing track, directly drawing the note erasing track in a display cache and synchronizing the note erasing track to the current reading page of the ink screen reader for displaying; the point reporting data of the note erasing track comprises coordinate information and line width information of all track points of the note erasing track.
Specifically, in this step, according to the point reporting data of the note erasing track, that is, the coordinate information and the line width information of each track point, the note erasing track, that is, the erasing process, is drawn in the display cache, and is displayed on the current reading page, that is, the note erasing track is displayed on the current reading page in real time, and the erasing process is directly presented to the user.
Step S230, determining the report data to be cleared in the existing note track according to the note erasing track and the report data of the existing note track, and clearing the report data to be cleared in the existing note track.
And step S240, redrawing the existing note track according to the removed report point data of the existing note track.
Therefore, the erasing is firstly performed on the display, namely the erasing process is displayed, then the existing note track is redrawn according to the cleared report point data of the existing note track, the erasing effect can be displayed in real time, and when the font, the font size, the line spacing and the like in the current reading page are changed, the existing note track is redrawn according to the cleared report point data of the existing note track during redisplay, and the existing note track can still be normally reproduced.
EXAMPLE III
Fig. 3 is a flow chart illustrating a note processing method according to the third embodiment of the present invention. The embodiment is further optimized on the basis of the embodiment. As shown in fig. 3, the method includes:
and S310, responding to a note erasing operation generated by the current page read by the ink screen reader, and acquiring a note erasing track generated along with the note erasing operation.
And step S320, recording the coordinates of the intersection point of the note erasing track and the existing note track according to the note erasing track and the report point data of the existing note track.
The report point data of the note erasing track comprises coordinates and erasing width information of each report point in the note erasing track, the report point data of the existing note track comprises coordinates of each report point in the existing note track, crossed coordinates in the note erasing track are traversed according to the coordinates of each report point in the existing note track, and the crossed coordinates of the report points are used as crossed coordinates. Specifically, when traversing the crossed coordinates in the note erasing track, the coordinates and erasing width information of each report point in the note erasing track are comprehensively considered, that is, whether the coordinate point of the existing note track is crossed in the width area of the note erasing track is considered.
And when the coordinates of the report points of the note erasing track and the existing note track are determined to have no crossed report point coordinates according to the coordinates and the erasing width information of the report points of the note erasing track and the coordinates of the report points of the existing note track, selecting a coordinate point closest to the edge of the note erasing track from the report point coordinates of the existing note track as a crossed point coordinate. Specifically, when the closest coordinate point is determined, the erasing width information of the note erasing track is considered, and the coordinate point closest to the edge of the note erasing track is selected from the report point coordinates of the existing note erasing track as the intersection point coordinate according to the erasing width information.
Step S330, clearing the report point data of the existing note track between the cross points.
Specifically, there may be multiple intersections, which may divide the existing note track into multiple segments. Taking an existing handwriting as an example, after an erasing operation is finished, for example, a pen is detected to be lifted, the newspaper point data of a line segment between the intersection points of the existing handwriting is cleared, according to the newspaper point data coordinate point generating sequence during the existing handwriting drawing, the coordinates of the prior intersection points are respectively marked as pen lifting coordinates, namely starting point coordinates, and the coordinates of the subsequent intersection points are marked as pen falling coordinates, namely end point coordinates, so as to form two independent line segments, namely, each line segment comprises pen falling coordinates and pen lifting coordinates. The case of erasing into multiple segments is similar and this step can be considered as erasing on the data.
And step S340, redrawing the existing note track according to the eliminated report point data of the existing note track.
Therefore, the erasing operation is realized by recording the intersection coordinates of the note erasing track and the existing note track, the existing note track is redrawn according to the removed report data of the existing note track, the erasing effect can be displayed in real time, and when the font, the font size, the line spacing and the like in the current reading page are changed, the existing note track is redrawn according to the removed report data of the existing note track during redisplay, and the existing note track can still be normally reproduced.
Example four
Fig. 4 is a flowchart illustrating a note processing method according to another embodiment of the present invention.
The embodiment is further optimized on the basis of the embodiment. As shown in fig. 4, the method includes:
and step S410, responding to a note erasing operation generated by the current page read by the ink screen reader, and acquiring a note erasing track generated along with the note erasing operation.
Step S420, according to the note erasing track and the report data of the existing note track, the report data to be eliminated in the existing note track is determined, and the report data to be eliminated in the existing note track is eliminated.
Step S430, acquiring a new line generated in the cleared existing note track.
Specifically, a new line generated in the existing note track may be determined according to the removed report point data of the existing note track, and after the note erasing operation, the existing note track may be divided into one or more lines, so that the new line determined according to the removed report point data of the existing note track may be one or more lines.
Step S440, searching preset characters in a preset range according to the start point coordinates and the end point coordinates of the new lines.
Specifically, since there is a corresponding relationship between the existing note track and the text of the current reading page, when there is one new line, preset text in a preset range, for example, text directly above or below the start point coordinate and text directly above or below the end point coordinate, are searched according to the start point coordinate and the end point coordinate of the new line. And when the number of the new lines is multiple, searching for preset characters in a preset range according to the corresponding start point coordinates and the corresponding end point coordinates respectively based on the start point coordinates and the end point coordinates determined by each line.
Step S450, establishing a corresponding relation between the coordinates of the starting point and the ending point of the new line and the offset of the preset characters.
Specifically, since the offset of the text itself in the e-book source file is not changed, the corresponding relationship between the start point coordinate and the end point coordinate and the offset of the text can be established.
Step S460, determining corresponding preset characters according to the start point coordinates and the end point coordinates of the new line, and redrawing the existing note track based on the corresponding preset characters.
Specifically, because the offset of the text itself in the e-book source file is not changed, by establishing the corresponding relationship between the start point coordinate and the offset of the end point coordinate and the offset of the preset text, even if the page style of the current reading page is changed and the position of the preset text on the page is changed, the new position coordinate of the preset text can be found according to the offset of the preset text, so that the start point coordinate and the end point coordinate of a new line are changed according to the new position coordinate, each report point coordinate between the start point and the end point is synchronously updated according to the changed start point coordinate and end point coordinate, and the existing note track is redrawn according to each report point coordinate.
Therefore, in the embodiment, by establishing the corresponding relationship between the start point coordinate and the end point coordinate of the new line and the offset of the preset character, when the page styles such as the font, the font size, the line spacing and the like in the current reading page are changed, the new position coordinate of the preset character is found according to the offset of the preset character during redisplay, so that the existing note track is redrawn, and the normal reappearance of the reading page can still be ensured.
EXAMPLE five
An embodiment five of the present invention 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 note processing method in any of the above method embodiments.
Responding to a note erasing operation generated by a current page read by an ink screen reader, and acquiring a note erasing track generated along with the note erasing operation;
according to the note erasing track and the report point data of the existing note track, determining report point data to be cleared in the existing note track, and clearing the report point data to be cleared in the existing note track;
and redrawing the existing note track according to the removed report point data of the existing note track.
In an optional embodiment, after the note erasing track generated by following the note erasing operation is obtained, and before the breakpoint data to be cleared in the existing note track is determined according to the note erasing track and the breakpoint data of the existing note track, the executable instructions cause the processor to perform the following operations:
according to the report data of the note erasing track, directly drawing the note erasing track in a display cache and synchronizing the note erasing track to the current reading page of the ink screen reader for displaying; and the point reporting data of the note erasing track comprises coordinate information and line width information of each track point of the note erasing track.
In an alternative embodiment, the executable instructions cause the processor to:
recording the coordinates of the intersection point of the note erasing track and the existing note track according to the note erasing track and the report point data of the existing note track;
clearing the newspaper point data of the existing note tracks positioned between the cross points.
In an alternative embodiment, the executable instructions cause the processor to:
when the fact that no intersection point coordinate exists between the note erasing track and the existing note track is determined according to the note erasing track and the report point data of the existing note track, a coordinate point which is closest to the edge of the note erasing track is selected from the report point data of the existing note track to serve as an intersection point coordinate;
clearing the newspaper point data of the existing note tracks positioned between the cross points.
In an alternative embodiment, the executable instructions cause the processor to:
responding to any one of page turning operation, refreshing operation and restarting operation of the current reading page, and acquiring the cleared report point data of the existing note track;
and redrawing the existing note track on the current reading page according to the removed report point data of the existing note track.
In an alternative embodiment, the executable instructions cause the processor to:
generating a note layer according to the cleared report point data of the existing note track, and synthesizing the note layer with the page layer of the current reading page;
and sending the synthesized page to a display cache, and synchronizing the synthesized page to the ink screen reader for display.
In an alternative embodiment, after the clearing of the waypoint data to be cleared in the existing note track, the executable instructions cause the processor to:
acquiring a new line generated in the removed existing note track;
searching preset characters in a preset range according to the starting point coordinates and the end point coordinates of the new lines;
and establishing a corresponding relation between the coordinates of the starting point and the ending point of the new line and the offset of the preset characters.
In an optional embodiment, the report point data of the existing note track includes at least one of coordinate information, line information, and a corresponding relationship between a start point coordinate, an end point coordinate, and an offset of a preset text.
In an optional embodiment, the hit data of the note erasure track includes coordinate information and/or line information.
EXAMPLE six
Fig. 5 shows a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 5, the electronic device may include: a processor (processor)502, a Communications Interface 504, a memory 506, and a communication bus 508.
Wherein: the processor 502, communication interface 504, and memory 506 communicate with one another via a communication bus 508. A communication interface 504 for communicating with network elements of other devices, such as clients or other servers. The processor 502 is configured to execute the program 510, and may specifically perform the relevant steps in the above method embodiments.
In particular, program 510 may include program code that includes computer operating instructions.
The processor 502 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 electronic device 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 506 for storing a program 510. The memory 506 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 510 may specifically be used to cause the processor 502 to perform the following operations:
responding to a note erasing operation generated by a current page read by an ink screen reader, and acquiring a note erasing track generated along with the note erasing operation;
according to the note erasing track and the report point data of the existing note track, determining report point data to be cleared in the existing note track, and clearing the report point data to be cleared in the existing note track;
and redrawing the existing note track according to the removed report point data of the existing note track.
In an optional embodiment, after the note erasing trace generated by following the note erasing operation is obtained, and before the breakpoint data to be cleared in the existing note trace is determined according to the note erasing trace and the breakpoint data of the existing note trace, the program 510 may be specifically configured to enable the processor 502 to perform the following operations:
according to the report data of the note erasing track, directly drawing the note erasing track in a display cache and synchronizing the note erasing track to the current reading page of the ink screen reader for displaying; and the point reporting data of the note erasing track comprises coordinate information and line width information of each track point of the note erasing track.
In an alternative embodiment, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
recording the coordinates of the intersection point of the note erasing track and the existing note track according to the note erasing track and the report point data of the existing note track;
clearing the newspaper point data of the existing note tracks positioned between the cross points.
In an alternative embodiment, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
when the fact that no intersection point coordinate exists between the note erasing track and the existing note track is determined according to the note erasing track and the report point data of the existing note track, a coordinate point which is closest to the edge of the note erasing track is selected from the report point data of the existing note track to serve as an intersection point coordinate;
clearing the newspaper point data of the existing note tracks positioned between the cross points.
In an alternative embodiment, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
responding to any one of page turning operation, refreshing operation and restarting operation of the current reading page, and acquiring the cleared report point data of the existing note track;
and redrawing the existing note track on the current reading page according to the removed report point data of the existing note track.
In an alternative embodiment, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
generating a note layer according to the cleared report point data of the existing note track, and synthesizing the note layer with the page layer of the current reading page;
and sending the synthesized page to a display cache, and synchronizing the synthesized page to the ink screen reader for display.
In an optional embodiment, after the clearing of the waypoint data to be cleared in the existing note track, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
acquiring a new line generated in the removed existing note track;
searching preset characters in a preset range according to the starting point coordinates and the end point coordinates of the new lines;
and establishing a corresponding relation between the starting point coordinate and the end point coordinate of the new line and the offset of the preset characters.
In an optional embodiment, the report point data of the existing note track includes at least one of coordinate information, line information, and a corresponding relationship between a start point coordinate and a stop point coordinate of the start point coordinate and an offset of a preset character.
In an optional embodiment, the hit data of the note erasure track includes coordinate information and/or line information.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
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 embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention 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 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 following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
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. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.
The application discloses: A1. a method of processing notes, comprising:
responding to a note erasing operation generated by a current page read by an ink screen reader, and acquiring a note erasing track generated along with the note erasing operation;
according to the note erasing track and the report point data of the existing note track, determining report point data to be cleared in the existing note track, and clearing the report point data to be cleared in the existing note track;
and redrawing the existing note track according to the removed report point data of the existing note track.
A2. The method of claim a1, wherein after the obtaining a note erasure trace generated following the note erasure operation and before determining, from the note erasure trace and the waypoint data of the existing note trace, waypoint data to be cleared from the existing note trace, the method further comprises:
according to the report data of the note erasing track, directly drawing the note erasing track in a display cache and synchronizing the note erasing track to the current reading page of the ink screen reader for displaying; and the point reporting data of the note erasing track comprises coordinate information and line width information of each track point of the note erasing track.
A3. The method of claim a1, wherein the determining, according to the note erasure trajectory and the waypoint data of the existing note trajectory, waypoint data to be cleared from the existing note trajectory, and clearing, according to the note erasure trajectory and the waypoint data of the existing note trajectory, waypoint data to be cleared from the existing note trajectory includes:
recording the coordinates of the intersection point of the note erasing track and the existing note track according to the note erasing track and the report point data of the existing note track;
clearing the newspaper point data of the existing note tracks positioned between the cross points.
A4. The method of claim a1, wherein the determining, according to the note erasure trajectory and the waypoint data of the existing note trajectory, waypoint data to be cleared from the existing note trajectory, and clearing, according to the note erasure trajectory and the waypoint data of the existing note trajectory, waypoint data to be cleared from the existing note trajectory includes:
when the fact that no intersection point coordinate exists between the note erasing track and the existing note track is determined according to the note erasing track and the report point data of the existing note track, a coordinate point which is closest to the edge of the note erasing track is selected from the report point data of the existing note track to serve as an intersection point coordinate;
clearing the newspaper point data of the existing note tracks positioned between the cross points.
A5. The method of any of claims a1-a4, wherein the redrawing of the existing note track from the cleared existing note track's waypoint data comprises:
responding to any one of page turning operation, refreshing operation and restarting operation of the current reading page, and acquiring the cleared report point data of the existing note track;
and redrawing the existing note track on the current reading page according to the removed report point data of the existing note track.
A6. The method of claim a5, wherein the redrawing an existing note track on the current reading page according to the breakpoint data of the cleared existing note track comprises:
generating a note layer according to the cleared report point data of the existing note track, and synthesizing the note layer with the page layer of the current reading page;
and sending the synthesized page to a display cache, and synchronizing the synthesized page to the ink screen reader for display.
A7. The method of any of claims a1-a4, wherein, after the clearing of waypoint data to be cleared in the existing note track, the method further comprises:
acquiring a new line generated in the removed existing note track;
searching preset characters in a preset range according to the starting point coordinates and the end point coordinates of the new lines;
and establishing a corresponding relation between the coordinates of the starting point and the ending point of the new line and the offset of the preset characters.
A8. The method of any of claims a1-a4, wherein the newspaper data of the existing note track includes at least one of coordinate information, line information, and correspondence between start point coordinates, end point coordinates, and offset of a preset letter.
A9. The method of any of claims a1-a4, wherein the hit data of the note erasure track includes coordinate information and/or line information.
The application also discloses: B10. 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:
responding to a note erasing operation generated by a current page read by an ink screen reader, and acquiring a note erasing track generated along with the note erasing operation;
according to the note erasing track and the report point data of the existing note track, determining report point data to be cleared in the existing note track, and clearing the report point data to be cleared in the existing note track;
and redrawing the existing note track according to the removed report point data of the existing note track.
B11. The electronic device of claim B10, wherein, after the obtaining a note erasure trace generated following the note erasure operation and before determining, from the note erasure trace and the waypoint data of the existing note trace, waypoint data to be cleared from the existing note trace, the executable instructions cause the processor to:
according to the report data of the note erasing track, directly drawing the note erasing track in a display cache and synchronizing the note erasing track to the current reading page of the ink screen reader for displaying; and the point reporting data of the note erasing track comprises coordinate information and line width information of each track point of the note erasing track.
B12. The electronic device of claim B10, wherein the executable instructions cause the processor to:
recording the coordinates of the intersection point of the note erasing track and the existing note track according to the note erasing track and the report point data of the existing note track;
clearing the newspaper point data of the existing note tracks positioned between the cross points.
B13. The electronic device of claim B10, wherein the executable instructions cause the processor to:
when the fact that no intersection point coordinate exists between the note erasing track and the existing note track is determined according to the note erasing track and the report point data of the existing note track, a coordinate point which is closest to the edge of the note erasing track is selected from the report point data of the existing note track to serve as an intersection point coordinate;
clearing the newspaper point data of the existing note tracks positioned between the cross points.
B14. The electronic device of any one of claims B10-B13, wherein the executable instructions cause the processor to:
responding to any one of page turning operation, refreshing operation and restarting operation of the current reading page, and acquiring the cleared report point data of the existing note track;
and redrawing the existing note track on the current reading page according to the removed report point data of the existing note track.
B15. The electronic device of claim B14, wherein the executable instructions cause the processor to:
generating a note layer according to the cleared report point data of the existing note track, and synthesizing the note layer with the page layer of the current reading page;
and sending the synthesized page to a display cache, and synchronizing the synthesized page to the ink screen reader for display.
B16. The electronic device of any one of claims B10-B13, wherein, after the clearing of waypoint data to be cleared in the existing note track, the executable instructions cause the processor to:
acquiring a new line generated in the removed existing note track;
searching preset characters in a preset range according to the starting point coordinates and the end point coordinates of the new lines;
and establishing a corresponding relation between the coordinates of the starting point and the ending point of the new line and the offset of the preset characters.
B17. The electronic device of any one of claims B10-B13, wherein the newspaper data of the existing note track includes at least one of coordinate information, line information, and correspondence between start and end coordinates and an offset of a preset text.
B18. The electronic device of any one of claims B10-B13, wherein the hit data of the note-erasing trace includes coordinate information and/or line information.
The application also discloses: C19. a computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the note processing method of any one of claims a1-a 9.

Claims (10)

1. A method of processing notes, comprising:
responding to a note erasing operation generated by a current page read by an ink screen reader, and acquiring a note erasing track generated along with the note erasing operation;
according to the note erasing track and the report point data of the existing note track, determining report point data to be cleared in the existing note track, and clearing the report point data to be cleared in the existing note track;
and redrawing the existing note track according to the removed report point data of the existing note track.
2. The method of claim 1, wherein after the obtaining of the note erasure track generated following the note erasure operation and before determining, from the note erasure track and the waypoint data of the existing note track, waypoint data to be cleared from the existing note track, the method further comprises:
according to the report data of the note erasing track, directly drawing the note erasing track in a display cache and synchronizing the note erasing track to the current reading page of the ink screen reader for displaying; and the point reporting data of the note erasing track comprises coordinate information and line width information of each track point of the note erasing track.
3. The method of claim 1, wherein the determining, according to the note erasure track and the breakpoint data of the existing note track, the breakpoint data to be cleared from the existing note track, and clearing the breakpoint data to be cleared from the existing note track comprises:
recording the coordinates of the intersection point of the note erasing track and the existing note track according to the note erasing track and the report point data of the existing note track;
clearing the newspaper point data of the existing note tracks positioned between the cross points.
4. The method of claim 1, wherein the determining, according to the note erasure track and the breakpoint data of the existing note track, the breakpoint data to be cleared from the existing note track, and clearing the breakpoint data to be cleared from the existing note track comprises:
when the fact that no intersection point coordinate exists between the note erasing track and the existing note track is determined according to the note erasing track and the report point data of the existing note track, a coordinate point which is closest to the edge of the note erasing track is selected from the report point data of the existing note track to serve as an intersection point coordinate;
clearing the newspaper point data of the existing note tracks positioned between the cross points.
5. The method of any of claims 1-4, wherein the redrawing of the existing note track according to the cleared existing note track's breakpoint data comprises:
responding to any one of page turning operation, refreshing operation and restarting operation of the current reading page, and acquiring the cleared report point data of the existing note track;
and redrawing the existing note track on the current reading page according to the removed report point data of the existing note track.
6. The method of claim 5, wherein said redrawing an existing note track on said current reading page according to the breakpoint data of said cleared existing note track comprises:
generating a note layer according to the cleared report point data of the existing note track, and synthesizing the note layer with the page layer of the current reading page;
and sending the synthesized page to a display cache, and synchronizing the synthesized page to the ink screen reader for display.
7. The method of any of claims 1-4, wherein after the clearing of the waypoint data to be cleared in the existing note track, the method further comprises:
acquiring a new line generated in the removed existing note track;
searching preset characters in a preset range according to the starting point coordinates and the end point coordinates of the new lines;
and establishing a corresponding relation between the coordinates of the starting point and the ending point of the new line and the offset of the preset characters.
8. The method according to any one of claims 1 to 4, wherein the newspaper point data of the existing note track includes at least one of coordinate information, line information, and a corresponding relationship between a start point coordinate, an end point coordinate, and an offset of a preset text.
9. 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:
responding to a note erasing operation generated by a current page read by an ink screen reader, and acquiring a note erasing track generated along with the note erasing operation;
according to the note erasing track and the report point data of the existing note track, determining report point data to be cleared in the existing note track, and clearing the report point data to be cleared in the existing note track;
and redrawing the existing note track according to the removed report point data of the existing note track.
10. A computer storage medium having stored therein at least one executable instruction that causes a processor to perform operations corresponding to the note processing method of any one of claims 1-8.
CN202210003833.8A 2022-01-04 2022-01-04 Note processing method, electronic device, and computer storage medium Active CN114356204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210003833.8A CN114356204B (en) 2022-01-04 2022-01-04 Note processing method, electronic device, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210003833.8A CN114356204B (en) 2022-01-04 2022-01-04 Note processing method, electronic device, and computer storage medium

Publications (2)

Publication Number Publication Date
CN114356204A true CN114356204A (en) 2022-04-15
CN114356204B CN114356204B (en) 2024-04-19

Family

ID=81107772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210003833.8A Active CN114356204B (en) 2022-01-04 2022-01-04 Note processing method, electronic device, and computer storage medium

Country Status (1)

Country Link
CN (1) CN114356204B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114924685A (en) * 2022-04-30 2022-08-19 新华三智能终端有限公司 Writing interaction method and device and writing terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562331A (en) * 2017-08-21 2018-01-09 广州视源电子科技股份有限公司 Display method, device and equipment of handwritten characters and storage medium
CN109062490A (en) * 2018-07-19 2018-12-21 掌阅科技股份有限公司 Take down notes delet method, electronic equipment and computer storage medium
CN110703978A (en) * 2019-09-25 2020-01-17 掌阅科技股份有限公司 Information display method, reader, and computer storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562331A (en) * 2017-08-21 2018-01-09 广州视源电子科技股份有限公司 Display method, device and equipment of handwritten characters and storage medium
CN109062490A (en) * 2018-07-19 2018-12-21 掌阅科技股份有限公司 Take down notes delet method, electronic equipment and computer storage medium
CN110703978A (en) * 2019-09-25 2020-01-17 掌阅科技股份有限公司 Information display method, reader, and computer storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114924685A (en) * 2022-04-30 2022-08-19 新华三智能终端有限公司 Writing interaction method and device and writing terminal

Also Published As

Publication number Publication date
CN114356204B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
CN103492997B (en) Systems and methods for manipulating user annotations in electronic books
CN111539188B (en) Note generation method, computing device, and computer storage medium
CN105631393A (en) Information recognition method and device
CN101533317A (en) Fast recording device with handwriting identifying function and method thereof
US20140351718A1 (en) Information processing device, information processing method, and computer-readable medium
CN103606305A (en) Chinese character writing learning system
CN107977155B (en) Handwriting recognition method, device, equipment and storage medium
CN111783385A (en) Note processing method based on electronic book, electronic equipment and storage medium
CN114879869A (en) Note erasing method, electronic device and computer storage medium
CN114356204B (en) Note processing method, electronic device, and computer storage medium
JP6136967B2 (en) Information processing system, information processing method, and program
CN111027533B (en) Click-to-read coordinate transformation method, system, terminal equipment and storage medium
CN111914713A (en) Recording method and device of dot matrix writing content and electronic equipment
CN109977873B (en) Handwriting-based note generation method, electronic equipment and storage medium
CN106648367A (en) Touch reading method and touch reading device
CN110209280A (en) A kind of answer method, answering device and storage medium
CN114548040A (en) Note processing method, electronic device and storage medium
CN113705178A (en) Document processing method, document processing device, electronic equipment and medium
CN113723065A (en) Display method of handwritten annotations, reading equipment and computer storage medium
JP6676121B2 (en) Data input device and data input program
CN102855223A (en) Electronic document display method and electronic reading equipment
JP5846378B2 (en) Information management method and information management system
CN114356205A (en) Note processing method, electronic device and computer storage medium
CN114217709B (en) Page display method, reader and computer storage medium
JP2012243230A (en) Display control device and program

Legal Events

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