CN114546208A - Method, device and medium for drawing mark line of electronic book - Google Patents

Method, device and medium for drawing mark line of electronic book Download PDF

Info

Publication number
CN114546208A
CN114546208A CN202210190587.1A CN202210190587A CN114546208A CN 114546208 A CN114546208 A CN 114546208A CN 202210190587 A CN202210190587 A CN 202210190587A CN 114546208 A CN114546208 A CN 114546208A
Authority
CN
China
Prior art keywords
line
text
scribed
scribing
determining
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.)
Pending
Application number
CN202210190587.1A
Other languages
Chinese (zh)
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 CN202210190587.1A priority Critical patent/CN114546208A/en
Publication of CN114546208A publication Critical patent/CN114546208A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure relates to a method, apparatus, and medium for marking line drawing of an electronic book. The method for drawing the mark line of the electronic book comprises the following steps: displaying a first reading page of the electronic book, the first reading page including first electronic book text; determining a first pre-stroke position of a first pre-stroke line drawn by the first handwriting stroke operation in response to the first handwriting stroke operation of the user on the first reading page; responding to a first scribing determination operation of a user on a first reading page, and determining a first scribing type to which a first scribing belongs according to a first scribing position; determining a first scribed text in the first e-book text according to the first pre-scribed position and the first pre-scribed type; a first marker line is displayed below the first lined text. According to the embodiment of the disclosure, the user can draw the mark line conveniently and accurately through the handwriting pen, and the interaction experience of the user is improved.

Description

Method, device and medium for drawing mark line of electronic book
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method, device, and medium for drawing a mark line of an electronic book.
Background
With the development of technology, more and more electronic devices have the function of reading electronic books. In order to meet the reading habits of the users, the electronic equipment also provides the functions of marking in the electronic book for the users, for example, the users can mark the text in the electronic book according to the own preferences.
However, the existing marking function can only support marking line drawing with low precision, so that when a user draws marking lines of texts in an electronic book, the situation of false marking often occurs, and the interaction experience of the user is poor.
Disclosure of Invention
In order to solve the above technical problem, the present disclosure provides a method, an apparatus, and a medium for drawing a mark line of an electronic book.
In a first aspect, the present disclosure provides a method for drawing a mark line of an electronic book, including:
displaying a first reading page of the electronic book, the first reading page including first electronic book text; determining a first pre-stroke position of a first pre-stroke line drawn by the first handwriting stroke operation in response to the first handwriting stroke operation of the user on the first reading page; responding to a first scribing determination operation of a user on a first reading page, and determining a first scribing type to which a first scribing belongs according to a first scribing position; determining a first scribed text in the first e-book text according to the first pre-scribed position and the first pre-scribed type; a first marker line is displayed below the first lined text.
In a second aspect, the present disclosure provides an electronic device comprising a processor and a memory, the memory for storing executable instructions that cause the processor to:
displaying a first reading page of the electronic book, the first reading page including first electronic book text; determining a first pre-stroke position of a first pre-stroke line drawn by the first handwriting stroke operation in response to the first handwriting stroke operation of the user on the first reading page; responding to a first scribing determination operation of a user on a first reading page, and determining a first scribing type to which a first scribing belongs according to a first scribing position; determining a first scribed text in the first e-book text according to the first pre-scribed position and the first pre-scribed type; a first marker line is displayed below the first lined text.
In a third aspect, the present disclosure provides a computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement the method for drawing a mark line of an electronic book according to the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
according to the method, the device and the medium for drawing the mark line of the electronic book, when a first reading page of the electronic book is displayed, after a first handwriting pen line drawing operation of a user on the first reading page is received, a first pre-drawing position of a first pre-drawing line drawn by the first handwriting pen line drawing operation is determined, after the first line determining operation of the user on the first reading page is received, a first pre-drawing type to which the first pre-drawing line belongs is determined according to the first pre-drawing position, and then a first mark line text is determined in the first electronic book text displayed on the first reading page according to the first pre-drawing position and the first pre-drawing type, so that the first mark line is displayed below the first mark line text. Therefore, in the embodiment of the disclosure, the marking text which the user wants to mark can be accurately judged through the pre-marking position and the pre-marking type of the pre-marking line drawn by the handwriting pen, so that the user can draw the marking line conveniently and accurately through the handwriting pen, and the interaction experience of the user is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a flowchart of a method for drawing a mark line of an electronic book according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a handwriting stroke scenario provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of another handwriting stroke scenario provided by embodiments of the present disclosure;
FIG. 4 is a schematic diagram of yet another handwriting stroke scenario provided by an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of yet another handwriting scenario provided by an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of yet another handwriting stroke scenario provided by an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of yet another handwriting stroke scenario provided by an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will appreciate that references to "one or more" are intended to be exemplary and not limiting unless the context clearly indicates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The embodiment of the disclosure provides a method, equipment and medium for drawing a mark line of an electronic book, which can enable a user to accurately and conveniently draw a mark line of a text of the electronic book through a stylus pen.
First, a method for drawing a mark line of an electronic book provided in an embodiment of the present disclosure is described with reference to fig. 1 to 7.
The method for drawing the mark line of the electronic book provided by the embodiment of the disclosure can be executed by an electronic device. The electronic device may include, but is not limited to, a mobile terminal such as a smart phone, a notebook computer, a PAD (PAD), an e-book reader, etc., and a stationary terminal such as a digital TV, a desktop computer, etc., among others.
Fig. 1 shows a flow chart of a method for drawing a mark line of an electronic book provided by an embodiment of the present disclosure.
As shown in fig. 1, the method for drawing a mark line of an electronic book may include the following steps.
S110, displaying a first reading page of the electronic book, wherein the first reading page comprises first electronic book texts.
In the disclosed embodiments, the electronic device may display a first reading page of the electronic book for a user to read a first electronic book text displayed within the first reading page.
That is, the first reading page may be a reading page of an electronic book currently displayed by the electronic device, and the first electronic book text may be electronic book text in the reading page of the electronic book currently displayed by the electronic device.
And S120, responding to the first handwriting stroke operation of the user on the first reading page, and determining a first pre-stroke line position of the first pre-stroke line drawn by the first handwriting stroke operation.
In the embodiment of the disclosure, during the process of displaying the first reading page of the electronic book and the first electronic book text, the electronic device may detect, in real time, a handwriting stroke line operation of a user on the reading page, when the user wants to mark some content in the first electronic book text, the first handwriting pen line operation may be performed on the first reading page, and after detecting the first handwriting pen line operation of the user on the first reading page, the electronic device may determine, in response to the first handwriting pen line operation, a first pre-drawing position of a first pre-drawing line drawn by the first handwriting pen line operation.
Alternatively, the first handwriting pen drawing operation may be an operation in which the user draws a trajectory on the first reading page with the handwriting pen. Accordingly, the first pre-scribed line is the trace that the user actually draws in the first reading page by the first stylus scribing operation.
Further, the first pre-drawing line position may include a point position of each point on the first pre-drawing line, where each point on the first pre-drawing line is a corresponding pixel point through which a trajectory actually drawn by the first stylus pen drawing operation passes, and therefore, the point position of each point is actually a pixel position of the corresponding pixel point.
Therefore, the electronic equipment can respond to the first handwriting pen drawing operation of the user on the first reading page, the pixel position of each pixel point through which the track actually drawn by the first handwriting pen drawing operation passes is obtained, the pixel position of each pixel point is used as the position of the corresponding point on the first pre-drawing line, the position of each point on the first pre-drawing line is obtained, and then the position of each point on the first pre-drawing line is used as the position of the first pre-drawing line.
Optionally, in order to accurately determine the first pre-drawing line position, the determining the first pre-drawing line position of the first pre-drawing line drawn by the first handwriting pen drawing operation in S120 may specifically include: calculating each moving position of the first handwriting stroke operation according to the initial position of the first handwriting stroke operation and each moving displacement information of the first handwriting stroke operation; the start position of the first handwriting stroke operation and each movement position of the first handwriting stroke operation are taken as a first pre-stroke position.
The initial position of the first handwriting stroke operation is the pen-down position of the first handwriting stroke operation.
Specifically, after the first handwriting pen drawing operation is dropped, if the handwriting pen remains in an un-lifted state and moves on the screen of the electronic device, that is, in the process of the user continuously inputting the first handwriting pen drawing operation, the electronic device may obtain the movement displacement information of the first handwriting pen drawing operation relative to the starting position in real time, so as to obtain each movement displacement information of the first handwriting pen drawing operation.
The information of each movement displacement of the first handwriting stroke operation comprises the actual movement direction, the actual movement length and the like of the first handwriting stroke operation, wherein the movement direction is any direction in the first reading interface.
Therefore, the electronic equipment can obtain the pixel position of each pixel point through which the track actually drawn by the first handwriting pen scribing operation passes based on the initial position of the first handwriting pen scribing operation and the movement displacement information of each first handwriting pen scribing operation, and take the pixel position of each pixel point as the point position of the corresponding point on the first pre-scribing line, so as to obtain the point position of each point on the first pre-scribing line, and further take the point position of each point on the first pre-scribing line as the first pre-scribing position.
In some embodiments of the present disclosure, as long as the electronic device displays the reading page of the electronic book and the electronic book text in the reading page, the handwriting stroke line operation of the user on the reading page is detected in real time.
In other embodiments of the present disclosure, in the process of displaying the first reading page of the electronic book and the first electronic book text, the electronic device may detect the handwriting stroke line operation of the user on the reading page in real time only in the case of the handwriting stroke line mode.
Specifically, during the process of displaying a first reading page of the electronic book and a first electronic book text, the electronic device may select a reading mode or a note mode. In the reading mode, the user can not carry out any handwritten notes and handwritten line drawing operations; in the note mode, the user may select a handwritten note mode or a handwritten line mode. In the handwriting note mode, a user can perform handwriting note operation; under the condition of the handwriting and line drawing mode, a user can click and select a pen icon displayed in the first reading page, so that the electronic equipment enters a handwriting and line drawing mode, and the user can perform handwriting and line drawing operation. If the user does not click on the pen icon displayed in the first reading page, the user may perform a finger scribe operation. Therefore, the phenomenon that the user makes wrong line drawing operation in the first reading page can be avoided, and the reading experience of the user is enhanced.
S130, responding to a first scribing determination operation of the user on the first reading page, and determining a first scribing type of the first scribing line according to the first scribing position.
In the embodiment of the disclosure, after detecting a first handwriting pen drawing operation of a user on a first reading page, the electronic device may detect a drawing determination operation of the user on the reading page in real time, after performing the first handwriting pen drawing operation on the first reading page, if the user considers that drawing is finished, the user may perform the first drawing determination operation on the first reading page, and after detecting the first drawing determination operation of the user on the first reading page, the electronic device may determine, in response to the first drawing determination operation, a first pre-drawing type to which a first pre-drawing line belongs according to a first pre-drawing position.
Optionally, the first scribing determination operation may be an operation for triggering the electronic device to scribe and label the text of the electronic book based on the first pre-scribed line.
In some embodiments, the first stroke determination operation may be a pen-up operation corresponding to the first handwriting stroke operation. That is, the user may continuously draw a continuous trace in the first reading page through the first handwriting stroke operation without lifting the pen, and if the electronic device detects that the user lifts the pen, it is determined that the first stroke determining operation is detected.
In still other embodiments, the first stroke determining operation may be a click operation of a stroke determining button displayed in the first reading page. That is, the user may continuously draw a continuous trajectory in the first reading page through the first handwriting stroke operation, and if the electronic device detects that the user clicks the stroke determining button, it is determined that the first stroke determining operation is detected.
The confirmation button may be displayed when the electronic device detects that the user lifts the pen, or may be fixedly displayed in the first reading page, which is not limited herein.
Alternatively, the first pre-scribed line type may be a straight line type or a curved line type. The straight-line type pre-scribed line can be a straight line in a strict sense and can also be a line similar to a straight line; the curve-type pre-scribed lines may be closed curves or unclosed curves.
Further, the electronic device may determine whether the first pre-scribed line is of a straight line type or a curved line type according to a position of the first pre-scribed line, that is, a point position of each point on the first pre-scribed line.
And S140, determining a first scribed text in the first e-book text according to the first pre-scribed position and the first pre-scribed type.
In the embodiment of the disclosure, after determining the first pre-drawing type to which the first pre-drawing line belongs, the electronic device may determine, according to the first pre-drawing position and the first pre-drawing type, a first drawing text to be marked by drawing in the first electronic book text. That is, the first scribed text is the e-book content that the user wants to label in the first e-book text by the first handwriting pen scribing operation.
Specifically, the electronic device may determine, according to a scribing text determination manner corresponding to the first pre-scribing type, a first scribing start character and a first scribing end character based on the first pre-scribing position, and use a first text segment containing the first scribing start character and the first scribing end character as the first scribing text.
And S150, displaying a first marking line below the first marking text.
In the embodiment of the disclosure, after determining the first ruled text to be ruled and marked, the electronic device may display a first marking line below the first ruled text.
Wherein the first marking line may be a marking line that the user wants to draw under the first lined text by the first handwriting pen-drawing operation. The marking lines can play a role in marking lines.
When the mark line is displayed, the mark line can be drawn by adopting the same refreshing mode as that of the display electronic book. If the electronic device is an ink screen device, a gray level refreshing mode can be adopted to ensure the overall display effect. Because the specific position of the marking line is determined at the moment, the local gray level refreshing mode can be directly utilized to draw in the local area, and the gray line is drawn to be used as the marking line, so that the marking line determining operation of the user can be responded quickly, and the interaction experience of the user can be improved.
In the embodiment of the disclosure, when a first reading page of an electronic book is displayed, after a first handwriting stroke operation of a user on the first reading page is received, a first pre-drawing position of a first pre-drawing line drawn by the first handwriting stroke operation is determined, after the first stroke determination operation of the user on the first reading page is received, a first pre-drawing line type to which the first pre-drawing line belongs is determined according to the first pre-drawing position, and then according to the first pre-drawing position and the first pre-drawing line type, a first stroke text is determined in the first electronic book text displayed on the first reading page, so that a first mark line is displayed below the first stroke text. Therefore, in the embodiment of the disclosure, the marking text which the user wants to mark can be accurately judged through the pre-marking position and the pre-marking type of the pre-marking line drawn by the handwriting pen, so that the user can draw the marking line conveniently and accurately through the handwriting pen, and the interaction experience of the user is improved.
In another embodiment of the present disclosure, in order to enable the handwriting stroke operation of the user to be fed back in time, the interaction experience of the user is further improved. The electronic equipment can display the track actually drawn in the first reading page by the handwriting stroke line operation when the user performs the handwriting stroke line operation.
In some embodiments of the present disclosure, after determining a first pre-drawing position of a first pre-drawing line drawn by a first handwriting stroke operation, the method for drawing a marker line of an electronic book may further include: a first pre-scribed line is displayed within the first reading page according to the first pre-scribed line position.
Specifically, the electronic device may determine, after detecting a first handwriting stroke operation on the first reading page by the user, a first pre-stroke position of a first pre-stroke line drawn by the first handwriting stroke operation in response to the first handwriting stroke operation, and display, after determining the first pre-stroke position of the first pre-stroke line, a trajectory actually drawn in the first reading page, that is, the first pre-stroke line, in the first reading page according to the first pre-stroke position.
Since the first pre-drawing position is actually the pixel position of each pixel point through which the trajectory actually drawn by the first handwriting pen drawing operation passes, the first pre-drawing can be directly displayed based on these pixel positions.
When displaying the pre-scribed line, the pre-scribed line may be drawn in a fast-swipe mode in order to more quickly respond to interaction with the user. If the electronic device is an ink screen device, the pre-scribing line can be locally and quickly brushed by adopting a second-order refreshing mode such as a DU (digital channel) mode, namely the electronic device can control the time schedule controller to control the pixel point through which the trace actually drawn by the first handwriting pen scribing operation passes to change, and specifically can control black and white ink particles to move, so that the black pre-scribing line is drawn, and the speed of drawing the pre-scribing line is greatly accelerated. At this time, the display of other areas is not affected, and the effect of the user in reading the electronic book is not affected.
For example, the user may draw an arbitrary straight line or curved line in the first reading page through the first handwriting stroke operation, and the electronic device may control the timing controller to draw the pre-stroke line corresponding to the line in the fast-brush mode.
Further, S150 may specifically include: the first pre-scribed line is replaced with displaying a first marker line under the first scribed text.
Specifically, in the case where the first pre-scribed line is displayed, after detecting the first scribe line determination operation, the electronic device may cancel displaying the first pre-scribed line and then display the first mark line under the first scribe line text in response to the first scribe line determination operation to replace the first pre-scribed line with the first mark line.
In some embodiments, the first reading page may include a first text layer and a first handwritten layer overlaid over the first text layer. The first text layer may be a text layer in the first reading page for displaying a first e-book text, and the first handwriting layer may be a handwriting layer in the first reading page for displaying a trace actually drawn by a first handwriting pen drawing operation.
At this time, the first e-book text is located in the first text layer, that is, the electronic device may display the first e-book text in the first reading page in the first text layer of the first reading page.
Further, other page contents of the first reading page may also be located in the same layer as the first ebook text, that is, other page contents of the first reading page may also be located in the first text layer, so that the user cannot operate other functions of the reading page in the handwriting stroke line mode. Or, other page contents of the first reading page may also be located on a layer different from the first ebook text, that is, other page contents of the first reading page may also be located in the first reading page layer above the first text layer, and at this time, the first reading page layer may also be covered above the first handwriting layer, so that the user may still operate other functions of the reading page in the handwriting stroke line mode.
Further, the first pre-scribed line may be located within the first handwritten pattern layer. That is, after detecting the first handwriting stroke operation of the user on the first reading page, the electronic device may display a first pre-drawing line, which is a trajectory actually drawn in the first reading page, in the first handwriting layer of the first reading page, so that the first pre-drawing line and the display of the first e-book text do not affect each other.
Further, replacing the first pre-scribed line with displaying the first marked line under the first scribed text may specifically include: canceling the display of the first pre-scribed line within the first handwritten pattern; a first marker line is displayed below the first lined text within the first text layer.
Specifically, in the case that the electronic device displays a first pre-scribed line in the first handwritten diagram, after detecting the first scribe line determination operation, the electronic device may determine, in response to the first scribe line determination operation, a first pre-scribed line type to which the first pre-scribed line belongs according to the first pre-scribed line position, and then determine a first scribed line text in the first electronic book text according to the first pre-scribed line position and the first pre-scribed line type, and after determining the first scribed line text, the electronic device may cancel displaying the first pre-scribed line in the first handwritten diagram and then display the first mark line below the first scribed line text in the first text diagram, so as to replace the first pre-scribed line with the first mark line.
In other embodiments, the first reading page may further include only the first reading page map layer, and at this time, the first ebook text, the other page contents of the first reading page, and the trace actually drawn by the first handwriting stroke operation are all located in the first reading page map layer.
Further, in the case that the electronic device displays the first pre-scribed line in the first reading page layer, after detecting the first scribing determining operation, the electronic device may determine, in response to the first scribing determining operation, a first pre-scribed line type to which the first pre-scribed line belongs according to the first pre-scribed line position, and then determine the first scribed line text in the first electronic book text according to the first pre-scribed line position and the first pre-scribed line type, and after determining the first scribed line text, the electronic device may cancel displaying the first pre-scribed line in the first reading page layer, and then display the first mark line below the first scribed line text in the first reading page layer, so as to replace the first pre-scribed line with the first mark line.
Therefore, the electronic equipment realizes the display of the track actually drawn by the handwriting pen line drawing operation in the first reading page in different page structures, so that the handwriting pen line drawing operation of a user can be fed back in time, the trace drawn by the handwriting pen can be visually felt on a screen, the error of line drawing and marking is avoided, and the interaction experience of the user is further improved.
In another embodiment of the present disclosure, in order to more accurately determine the first ruled text that the user needs to perform the ruling marking, it is now necessary to accurately determine the first pre-ruled line type to which the first pre-ruled line belongs, and further determine the first ruled text by different ruled text determination methods for different first pre-ruled lines.
First, a detailed description will be given of a specific method of determining the type of the first scribe line to which the first scribe line belongs.
In some embodiments, determining the first scribe line type to which the first scribe line belongs according to the first scribe line position in S130 may specifically include: detecting whether the first pre-scribing line has an inflection point or not according to the first pre-scribing line position; if the first pre-scribing line is detected to have an inflection point, determining that the type of the first pre-scribing line is a curve type; and if the first pre-scribed line is detected to have no inflection point, determining that the first pre-scribed line type is a straight line type.
Specifically, the electronic device may calculate whether an included angle between two straight lines connected by every three adjacent points is smaller than a preset angle threshold value based on the point positions of the points on the first pre-scribed line.
Optionally, for every three adjacent points, every two adjacent points in the drawing order may be connected into a straight line according to the drawing order to obtain two straight lines, then an included angle between the two straight lines is calculated based on the point position of each point, and then the included angle is compared with a preset angle threshold value to obtain a comparison result.
Further, if the included angle between two straight lines formed by connecting any group of three adjacent points is smaller than a preset angle threshold, determining that an inflection point exists in the first pre-scribing line, and otherwise, determining that the inflection point does not exist in the first pre-scribing line. If the electronic equipment detects that the first pre-scribing line has an inflection point, determining that the type of the first pre-scribing line is a curve type; if it is detected that the first pre-scribed line does not have an inflection point, it may be determined that the first pre-scribed line type is a straight line type.
In other embodiments, the determining, according to the first pre-scribe line position in S130, the first pre-scribe line type to which the first pre-scribe line belongs may specifically include: detecting whether the first pre-drawing line has an inflection point or not according to the movement displacement information of the first handwriting pen drawing operation; if the first pre-scribing line is detected to have an inflection point, determining that the type of the first pre-scribing line is a curve type; and if the first pre-scribing line is detected to have no inflection point, determining that the type of the first pre-scribing line is a straight line type.
Specifically, the electronic device may calculate whether a moving direction included angle between each two adjacent points is smaller than a preset angle threshold based on the moving direction in the moving displacement information.
Optionally, for each two adjacent points, a moving direction included angle between the two points may be calculated based on moving directions of the two points, and then the moving direction included angle is compared with a preset angle threshold value to obtain a comparison result.
Further, if the moving direction included angle between any two adjacent points in any group is smaller than a preset angle threshold, determining that an inflection point exists in the first pre-scribing line, otherwise, determining that the inflection point does not exist in the first pre-scribing line. If the electronic equipment detects that the first pre-scribing line has an inflection point, determining that the type of the first pre-scribing line is a curve type; if it is detected that the first pre-scribed line does not have an inflection point, it may be determined that the first pre-scribed line type is a straight line type.
Next, different ruled text determination methods for determining a first ruled text for different first pre-ruled types will be described in detail.
In some embodiments, S140 may specifically include: if the first pre-scribing type is a straight line type, determining a first scribing start character and a first scribing end character in the first electronic book text according to the first pre-scribing position; and taking a first text segment containing a first line starting character and a first line ending character as a first line text.
Specifically, if the first pre-scribed line type is a straight line type, the electronic device may determine, according to the first pre-scribed line position, a first line start character and a first line end character through which the first pre-scribed line passes in the first electronic book text, and then use a first text segment including the first line start character and the first line end character as the first line text.
If the first beginning and ending stroke words are in a text line, the first text segment includes the first beginning and ending stroke words and all words in the text line between the first beginning and ending stroke words.
If the first stroke start character and the first stroke end character are not in one text line, the first text segment comprises the first stroke start character, all characters which are positioned in the text line to which the first stroke start character belongs and are positioned behind the first stroke start character along the reading direction of the first reading page, all characters which are positioned in all text lines between the text line to which the first stroke start character belongs and the text line to which the second stroke start character belongs, the first stroke end character, and all characters which are positioned in the text line to which the first stroke end character belongs and are positioned in front of the first stroke end character along the reading direction of the first reading page.
Further, according to the first pre-scribing position, determining a first scribing start character and a first scribing end character in the first electronic book text may specifically include: determining first candidate characters corresponding to all end points of a first pre-scribed line in a first electronic book text according to the first pre-scribed line position; and determining a first line marking starting character and a first line marking ending character in each first candidate character according to the relative position relation between each first candidate character.
Specifically, the electronic device may determine, according to the first pre-drawing position, a pre-drawing start position and a pre-drawing end position of the first pre-drawing in the first reading page, then use, as first candidate texts, a text range to which the pre-drawing start position falls and a text range to which the pre-drawing end position falls, or use, as the first candidate texts, a first text passed through by the pre-drawing start position and a last text passed through by the pre-drawing end position, and then determine, according to a relative positional relationship between the first candidate texts, the first pre-drawing start text and the first pre-drawing end text in each first candidate text.
If the two first candidate characters are in one text line, the first candidate character at the front relative position in the reading direction is a first stroke start character, and the first candidate character at the back relative position in the reading direction is a first stroke end character.
If the two first candidate characters are not in one text line, the first candidate character with the first order of the text line is the first line-drawing starting character, and the first candidate character with the second order of the text line is the first line-drawing ending character.
This will be explained below with reference to fig. 2 to 4.
FIG. 2 illustrates a schematic diagram of a handwriting stroke scenario provided by an embodiment of the present disclosure.
As shown in fig. 2, the electronic device 201 may display a first reading page 202, a first ebook text may be displayed within the first reading page 202, a user may draw a first pre-scribed line 204 within the first reading page 202, and since the first pre-scribed line 204 is a straight line and the first pre-scribed line 204 only passes through a line of text, the electronic device 201 may determine a first pre-scribed line of text 203 within the line of text and display a first marker line 205 below the first scribed line of text 203.
FIG. 3 illustrates a schematic diagram of another handwriting stroke scenario provided by embodiments of the present disclosure.
As shown in fig. 3, the electronic device 301 may display a first reading page 302, the first reading page 302 may display a first ebook text therein, the user may draw a first pre-scribed line 304 within the first reading page 302, and since the first pre-scribed line 304 is a straight line and the first pre-scribed line 304 passes through two lines of text, the electronic device 301 may determine a first pre-scribed line of text 303 within the two lines of text and display a first marker line 305 below the first scribed line of text 303.
FIG. 4 illustrates a schematic diagram of yet another handwriting stroke scenario provided by an embodiment of the present disclosure.
As shown in fig. 4, the electronic device 401 may display a first reading page 402, a first ebook text may be displayed within the first reading page 402, a user may draw a first pre-scribed line 404 within the first reading page 402, and since the first pre-scribed line 404 is a straight line and the first pre-scribed line 404 passes through two lines of text, the electronic device 401 may determine a first pre-scribed text 403 within the two lines of text and display a first mark-up line 405 below the first scribed text 403.
In other embodiments, S140 may specifically include: if the first pre-scribing line type is a curve type, determining a first rectangular area of a first minimum circumscribed rectangle of the first pre-scribing line according to the first pre-scribing line position; determining a first line starting character and a first line ending character in the first electronic book text according to the first rectangular area; and taking a first text segment containing a first line starting character and a first line ending character as a first line text.
Specifically, if the first pre-drawing type is a curve type, the electronic device may determine, according to the first pre-drawing position, a first rectangular region of a first minimum circumscribed rectangle of the first pre-drawing, then determine a first start-drawing character and a first end-drawing character that are covered by the first rectangular region in the first electronic book text, and further use a first text segment containing the first start-drawing character and the first end-drawing character as the first drawing text.
If the first beginning and ending stroke words are in a text line, the first text segment includes the first beginning and ending stroke words and all words in the text line between the first beginning and ending stroke words.
If the first stroke start character and the first stroke end character are not in one text line, the first text segment comprises the first stroke start character, all characters which are positioned in the text line to which the first stroke start character belongs and are positioned behind the first stroke start character along the reading direction of the first reading page, all characters which are positioned in all text lines between the text line to which the first stroke start character belongs and the text line to which the second stroke start character belongs, the first stroke end character, and all characters which are positioned in the text line to which the first stroke end character belongs and are positioned in front of the first stroke end character along the reading direction of the first reading page.
Further, according to the first rectangular position, determining a first line start character and a first line end character in the first electronic book text may specifically include: determining a first candidate word positioned in a first rectangular area in the first e-book text; taking a first candidate character adjacent to the upper left corner point of the first rectangular area as a first line starting character; and taking the first candidate character adjacent to the lower right corner point of the first rectangular area as a first stroke end character.
In particular, the electronic device may determine a first candidate word in the first ebook text that is within a first rectangular region, wherein, as long as at least part of the character is located in the first rectangular area, the character is the first candidate character, the electronic device may then determine the position of the top left corner and the position of the bottom right corner of the first rectangular area from the first rectangular position, then according to the position of the upper left corner point and the position of the lower right corner point, taking the first candidate character belonging to the character range in which the upper left corner point falls as a first line starting character, taking the first candidate character belonging to the character range in which the lower right corner point falls as a first line ending character, or according to the position of the upper left corner point and the position of the lower right corner point, taking a first candidate character adjacent to the upper left corner point of the first rectangular area as a first line starting character, and taking a first candidate character adjacent to the lower right corner point of the first rectangular area as a first line ending character.
This will be explained below with reference to fig. 5 and 6.
FIG. 5 illustrates a schematic diagram of yet another handwriting stroke scenario provided by an embodiment of the present disclosure.
As shown in fig. 5, the electronic device 501 may display a first reading page 502, a first ebook text may be displayed within the first reading page 502, a user may draw a first pre-scribed line 504 within the first reading page 502, and since the first pre-scribed line 504 is an open curve and the first pre-scribed line 504 passes through two lines of text, the electronic device 501 may determine a first pre-scribed line of text 503 within the two lines of text and display a first marker line 505 below the first scribed line of text 503.
FIG. 6 illustrates a schematic diagram of yet another handwriting stroke scenario provided by an embodiment of the present disclosure.
As shown in fig. 6, the electronic device 601 may display a first reading page 602, a first ebook text may be displayed within the first reading page 602, a user may draw a first pre-scribed line 604 within the first reading page 602, the electronic device 601 may determine a first pre-scribed text 603 within two lines of text and display a first marker line 605 below the first scribed text 603 because the first pre-scribed line 604 is an enclosed curve and the first pre-scribed line 604 passes through the two lines of text.
In still other embodiments, when the electronic device determines, according to the first pre-drawing line position, the first candidate words corresponding to the endpoints of the first pre-drawing line in the text of the first electronic book, there may also be a case where the first candidate words are not detected, for example, the first pre-drawing line does not pass through any word or any line of text, at which time, the electronic device determines that there is no first drawing line word, and therefore, the first mark line is not displayed.
FIG. 7 illustrates a schematic diagram of yet another handwriting stroke scenario provided by an embodiment of the present disclosure.
As shown in fig. 7, the electronic device 701 may display a first reading page 702, a first ebook text may be displayed in the first reading page 702, and the user may draw a first pre-scribed line 703 in the first reading page 702, and therefore, the electronic device does not display any mark-up line because the first pre-scribed line 703 does not cross any text or any line of text.
It can be seen that, in the embodiment of the present disclosure, the first ruled line can be detected and the first mark line is displayed below the first ruled line on the premise that the first pre-ruled line passes through any one of the characters or any one of the lines of the characters, so as to further avoid the situation of false ruling.
In another embodiment of the present disclosure, since a first ruled text that a user needs to perform ruling and labeling may have ruled characters, in order to further improve the user experience, it is necessary to first detect whether the first ruled text has ruled characters, and then determine how to display the first mark line according to a detection result.
In some embodiments of the present disclosure, S150 may specifically include: and detecting whether the first lined text has lined characters.
The marked characters refer to characters marked by marking lines by a user.
Specifically, after determining the first ruled text, the electronic device may first identify whether a word in the first ruled text intersects with a word in the pre-stored historical ruled text, and specifically, may identify whether a word in the first ruled text is positioned at the same position as a word in the pre-stored historical ruled text, so as to detect whether a ruled word is present in the first ruled text. Further, if the intersection exists between the characters in the first lined text and the characters in the pre-stored historical lined text, namely the characters with the same positions as the characters in the pre-stored historical lined text exist in the first lined text, it is determined that the first lined text is detected to have the lined characters, and otherwise, it is determined that the first lined text is detected not to have the lined characters.
In some embodiments, if the electronic device detects that there is a scribed character in the first scribed text, the electronic device may determine an unpainted character in the first scribed text and additionally display a first marker line below the unpainted character in the first scribed text.
The underline characters refer to characters which are never marked by underline by a user.
Specifically, if the electronic device detects that the first ruled text has ruled characters, it may identify characters in the first ruled text that do not have an intersection with the prestored historical ruled text, specifically, it may identify characters in the first ruled text that are at different positions from the prestored historical ruled text, where the identified characters are non-ruled characters.
If the electronic equipment identifies the non-scribed character, a first marking line can be additionally displayed below the non-scribed character in the first scribed text, so that the first marking line and the marking line below the scribed character in the first scribed text form a marking line; and if the electronic equipment does not recognize the unmarked characters, adding no first marking line below the first marked text.
In other embodiments, the electronic device may further detect an un-scribed character in the first scribed text if it is detected that the first scribed text has the scribed character, and if the un-scribed character is detected, additionally display a first mark line below the un-scribed character in the first scribed text, otherwise, not newly add the first mark line below all characters in the first scribed text.
In still other embodiments, after detecting whether there is a scribed text in the first scribed text, the method for drawing a mark line of the electronic book may further include: and if the first marking line text is detected to have no marked characters, additionally displaying a first marking line below all the characters of the first marking line text.
Specifically, if the electronic device detects that the first lined text does not have the lined characters, the electronic device may directly increase and display the first mark line below all the characters of the first lined text.
Therefore, in the embodiment of the disclosure, the user can not repeatedly mark the same character, the marking of the user can be not influenced by the historical marking result, the marking of the user can be fused with the historical marking result, different requirements of the user can be met, and the user experience is further improved.
In yet another embodiment of the present disclosure, the user may also implement continuous marking of e-book text within multiple reading pages, as will be described below.
Optionally, the first reading page may be a non-first reading page when marking is performed continuously.
In the case that the first reading page is a non-first reading page when marking lines continuously, S110 may specifically include: and displaying the first reading page of the electronic book in response to a second line drawing determination operation of the second reading page of the electronic book by the user.
The second reading page may be a reading page that is adjacent to the first reading page in the display order, that is, a page previous to the first reading page.
Further, the second stroke determining operation may include that the second handwriting pen stroke operation of the second reading page by the user stays in the target display area of the second reading page for a first preset time length.
Alternatively, the second handwriting pen drawing operation may be an operation in which the user draws a trajectory on the second reading page with the handwriting pen. Accordingly, the trace actually drawn in the second reading page by the user through the second handwriting stroke operation is the second pre-stroke line.
The target display area of the second reading page may be any preset display area capable of triggering the electronic device to jump to the first reading page, for example, the target display area may be a lower right corner point area or a right side bar area of the second reading page, and the like, which is not limited herein.
The first preset time period may be any time period preset according to needs, and is not limited herein.
Therefore, when the user performs the second writing pen marking operation in the second reading page, if the user wants to trigger continuous marking in the next page of the second reading page, namely the first reading page, the user can keep the writing pen in an un-lifted state and move to the target display area, and then stay in place for the first preset time after moving to the target display area, at this time, the electronic device can detect the second marking determining operation of the user on the second reading page of the electronic book, and jump to display the first reading page from the second reading page in response to the second marking determining operation.
After the electronic equipment jumps from the second reading page to the display of the first reading page, the user can realize continuous marking operation across the second reading page and the first reading page through the first handwriting pen marking operation.
In these embodiments, optionally, the method for drawing a mark line of the electronic book may further include: and displaying a second marking line under a second ruled line text in the second reading page in response to a returning operation of the user to the second reading page, the second ruled line text being determined according to a second ruled line position and a second ruled line type of a second ruled line drawn by the second ruled line determining operation.
Although the electronic device may jump from the second reading page to the display of the first reading page in response to the second stroke determining operation after detecting the second stroke determining operation by the user on the second reading page of the electronic book, at this time, the electronic device may also determine a second stroke type to which the second stroke belongs in accordance with a second stroke position of the second stroke and determine a second stroke text in the second electronic book text in accordance with the second stroke position and the second stroke type and determine that a second mark line needs to be added to the second stroke text in response to the second stroke determining operation.
Further, when the user inputs the second handwriting stroke operation on the second reading page, the electronic device may further determine, in response to the second handwriting stroke operation on the second reading page by the user, a second pre-stroke position of the second pre-stroke line drawn by the second handwriting stroke operation.
Thus, at any time during the display of the first reading page by the electronic device, if the user wants to view the scribe mark results within the second reading page, the user can return to viewing, if any.
The return operation may be a click operation on a previous page return button, or a long press operation in a designated display area, which is not limited herein. Specifically, the designated display area may be any preset display area capable of triggering the electronic device to jump to the second reading page, for example, the designated display area may be an upper left corner point area or a left side sidebar area of the first reading page, which is not limited herein.
When the user wants to view the scribing annotation result in the second reading page, the user can input a return operation for returning to the second reading page for the first reading page, and after receiving the return operation, the electronic device can display the second marking line below the second scribing text in the second reading page.
In some examples, if the user has marked a line in the first reading page before returning to the second reading page, it is determined whether the last word of the second scribed text and the first word of the first scribed text are consecutive words in reading order, e.g., the electronic device determines whether the last word of the second scribed text is the last word of the second reading page and the first word of the first scribed text is the first word of the first reading page, if so, it determines whether the last word of the second reading page and the first word of the first reading page belong to an e-book text paragraph, and if so, it determines that the last word of the second scribed text and the first word of the first scribed text are consecutive words in reading order, and further uses the second mark line and the first mark line as a new mark line, and taking the second scribing text and the first scribing text as the new scribing text corresponding to the new marking line.
Otherwise, if the last word of the second scribed text is not the last word in the second reading page, or if the first word in the first scribed text is not the first word in the first reading page, or if the last word in the second reading page and the first word in the first reading page do not belong to an e-book text paragraph, determining that the last word of the second scribed text and the first word in the first scribed text are not words in a reading sequence, and further taking the second marked line and the first marked line as two separate additional marked lines, and taking the second scribed text and the first scribed text as the additional marked text corresponding to the corresponding additional marked lines respectively.
Optionally, after the electronic device determines a second pre-scribe position of a second pre-scribe line drawn by a second handwriting pen-scribing operation, the second pre-scribe line may also be displayed according to the second pre-scribe position within the second reading page.
It should be noted that the method for determining the second pre-drawing position, the second pre-drawing type and the second drawing text and the method for displaying the second pre-drawing and the second marking line are similar to the method for determining the first pre-drawing position, the first pre-drawing type and the first drawing text and the method for displaying the first pre-drawing and the first marking line, and are not described herein again.
Therefore, the electronic equipment can provide a continuous marking and line drawing function for a user, the frequency of the user triggering the electronic equipment to enter a handwriting stroke line mode is reduced, the common marking of the user on continuous electronic book texts which are not in a reading page can be realized, and the user experience is improved.
In the case that the first reading page is a non-first reading page when marking is performed continuously, after S110, the method for drawing the mark line of the electronic book may further include: and timing the display time of the first reading page.
Specifically, after the electronic device jumps from the second reading page to the first reading page, the electronic device does not wait for the first handwriting pen line drawing operation of the user all the time, that is, the electronic device is not always in a continuous line drawing and marking state, and therefore, after the electronic device jumps from the second reading page to the display of the first reading page, the electronic device can also time the display duration of the first reading page.
Further, in response to the first handwriting stroke operation by the user on the first reading page, determining a first pre-stroke position of the first pre-stroke drawn by the first handwriting stroke operation may specifically include: and under the condition that the display duration is less than a second preset duration, responding to the first handwriting pen drawing operation, and determining a first pre-drawing position.
The second preset time period may be any time period preset according to needs, and is not limited herein.
If the display duration of the first reading page is less than the second preset duration, it indicates that the electronic device is in a continuous marking state, and may wait for a first handwriting pen marking operation of a user, at this time, if the user inputs the first handwriting pen marking operation, the electronic device may determine a first pre-marking position in response to the first handwriting pen marking operation, and implement subsequent marking.
If the display duration of the first reading page is greater than or equal to the second preset duration, it is indicated that the electronic device is no longer in the state of continuous marking, the electronic device no longer waits for the first handwriting pen marking operation of the user, and at this time, if the user inputs the first handwriting pen marking operation, the electronic device does not respond to the first handwriting pen marking operation and does not realize subsequent marking.
Therefore, after the first reading page is displayed, the electronic equipment can analyze the continuous marking and marking requirements of the user based on the display duration of the first reading page, and then automatically quit the continuous marking and marking state under the condition that the user is determined not to have the continuous marking and marking requirements any more, so that the user experience is further improved.
In yet another embodiment of the present disclosure, the electronic device further supports storage of the marking-out results for the user, as will be described in detail below.
In an embodiment of the present disclosure, the method for drawing a mark line of an electronic book may further include: and storing the new mark line of the electronic book and the new marking text corresponding to the new mark line.
Specifically, after the electronic device obtains a new mark line and a new marking text corresponding to the new mark line each time, the obtained new mark line and the new marking text corresponding to the new mark line can be automatically stored, and the stored new marking text corresponding to the new mark line becomes the pre-stored historical marking text.
The electronic device may store the new mark line and the new scribing text corresponding to the new mark line locally, or store the new mark line and the new scribing text corresponding to the new mark line in the cloud server, which is not limited herein.
Therefore, the electronic equipment can store the newly added marking line obtained by marking the line by the user each time and the newly added marking text corresponding to the newly added marking line for the user to check in the future or provide a basis for avoiding the user to repeatedly mark the marked character.
Fig. 8 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention.
The electronic devices provided by the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as smart phones, notebook computers, PADs, e-book readers, and the like, and fixed terminals such as digital TVs, desktop computers, and the like.
It should be noted that the electronic device 800 shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments of the present invention.
The electronic device 800 conventionally includes a processor 810 and a computer program product or computer-readable medium in the form of a memory 820. The memory 820 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 820 has a storage space 821 of executable instructions (or program code) 8211 for performing any method step in the note processing method described above. For example, the storage space 821 for executable instructions may include respective executable instructions 8211 for implementing various steps in the note processing method above, respectively. The executable instructions may be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such computer program products are typically portable or fixed storage units. The storage unit may have a memory segment or a memory space or the like arranged similarly to the memory 820 in the electronic device 800 of fig. 8. The executable instructions may be compressed, for example, in a suitable form. In general, the memory unit comprises executable instructions for performing the steps of the mark line drawing method of the electronic book according to the invention, i.e. code that is readable by a processor, such as the processor 810 for example, which when run by the electronic device 800 causes the electronic device 800 to perform the various steps in the mark line drawing method of the electronic book described above.
Of course, for simplicity, only some of the components of the electronic device 800 relevant to the present invention are shown in fig. 8, and components such as a bus, input/output interfaces, input devices, and output devices, etc. are omitted. In addition, electronic device 800 may include any other suitable components depending on the particular application.
Embodiments of the present invention further provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the processor executes a method, a device, and a medium method for drawing a mark line of an electronic book provided by embodiments of the present invention.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
In an embodiment of the present invention, program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The invention discloses:
A1. a method for drawing a mark line of an electronic book comprises the following steps:
displaying a first reading page of an electronic book, the first reading page including first electronic book text;
determining a first pre-stroke position of a first pre-stroke line drawn by a first handwriting stroke operation in response to the first handwriting stroke operation on the first reading page by a user;
responding to a first scribing determination operation of the user on the first reading page, and determining a first scribing type to which the first scribing belongs according to the first scribing position;
determining a first scribed text in the first e-book text according to the first pre-scribed position and the first pre-scribed type;
displaying a first marking line below the first lined text.
A2. The method of claim a1, wherein, after the determining a first pre-scribe position for a first pre-scribe line drawn by the first stylus scribing operation, the method further comprises:
displaying the first pre-scribed line according to the first pre-scribed line position within the first reading page;
wherein the displaying a first marking line below the first lined text comprises:
replacing the first pre-scribed line with displaying the first marker line under the first scribed text.
A3. The method of claim a2, wherein the first reading page includes a first text layer and a first handwritten layer overlaying the first text layer, the first ebook text being located within the first text layer, the first pre-scribed line being located within the first handwritten layer;
wherein the replacing the first pre-scribed line with the displaying the first marker line under the first scribed text comprises:
canceling the first pre-scribe line from display within the first handwritten pattern;
displaying the first marker line below the first stroke text within the first text layer.
A4. The method of any of claims a 1-A3, wherein the determining a first pre-scribe line type to which the first pre-scribe line belongs from the first pre-scribe line position includes:
detecting whether an inflection point exists in the first pre-scribed line according to the first pre-scribed line position;
if the inflection point of the first pre-scribing line is detected, determining that the type of the first pre-scribing line is a curve type;
and if the first pre-scribing line is detected to have no inflection point, determining that the type of the first pre-scribing line is a straight line type.
A5. The method of claim a1, wherein the determining first scribed text in the first ebook text in accordance with the first pre-scribed position and the first pre-scribed type includes:
if the first pre-scribing line type is a curve type, determining a first rectangular area of a first minimum circumscribed rectangle of the first pre-scribing line according to the first pre-scribing line position;
determining a first line starting character and a first line ending character in the first electronic book text according to the first rectangular area;
and taking a first text segment containing the first stroke start character and the first stroke end character as the first stroke text.
A6. The method of claim a5, wherein the determining a first beginning-of-line word and an ending-of-line word at the first e-book text according to the first rectangular position includes:
determining a first candidate word located within the first rectangular region in the first e-book text;
taking a first candidate character adjacent to the upper left corner point of the first rectangular area as the first line starting character;
and taking a first candidate character adjacent to the lower right corner point of the first rectangular area as the first stroke end character.
A7. The method of claim a1, wherein the determining first scribed text in the first ebook text in accordance with the first pre-scribed position and the first pre-scribed type includes:
if the first pre-scribing type is a straight line type, determining a first scribing start character and a first scribing end character in the first electronic book text according to the first pre-scribing position;
and taking a first text segment containing the first stroke start character and the first stroke end character as the first stroke text.
A8. The method of claim a7, wherein the determining a first beginning-of-stroke word and an ending-of-stroke word in the first ebook text according to the first pre-scribed position includes:
determining first candidate characters corresponding to all end points of the first pre-scribed line in the first electronic book text according to the first pre-scribed line position;
and determining the first line starting character and the first line ending character in each first candidate character according to the relative position relation between the first candidate characters.
A9. The method of any of claims a 1-A8, wherein the determining a first pre-scribe location of a first pre-scribe line drawn by the first handwriting stroke operation comprises:
calculating each moving position of the first handwriting stroke operation according to the starting position of the first handwriting stroke operation and each moving displacement information of the first handwriting stroke operation;
and taking the initial position of the first handwriting stroke operation and each moving position of the first handwriting stroke operation as the first pre-stroke position.
A10. The method of claim a1, wherein the displaying a first marker line below the first lined text includes:
detecting whether the first lined text has lined characters or not;
if the first marking text is detected to have the marked characters, detecting the non-marked characters in the first marking text;
and if the unmarked characters are detected, additionally displaying the first mark line below the unmarked characters.
A11. The method of claim a10, wherein, after the detecting whether there is a scribed text in the first scribed text, the method further comprises:
and if the first marking line is detected to be absent from the first marking text, additionally displaying the first marking line below all the characters of the first marking text.
A12. The method of any of claims a1-a 11, wherein the displaying a first reading page of an electronic book includes:
and responding to a second scribing determination operation of a user on a second reading page of the electronic book, and displaying the first reading page of the electronic book, wherein the second reading page is a reading page adjacent to the first reading page, and the second scribing determination operation comprises that the second writing pen scribing operation of the user on the second reading page stays in a target display area of the second reading page for a first preset time length.
A13. The method of claim a12, wherein, after the displaying the first reading page of the electronic book, the method further includes:
timing the display duration of the first reading page;
wherein said determining a first pre-stroke location of a first pre-stroke line drawn by a first handwriting stroke operation in response to the first handwriting stroke operation by a user on the first read page comprises:
and under the condition that the display duration is less than a second preset duration, responding to the first handwriting pen drawing operation, and determining the first pre-drawing position.
A14. The method of claim a12, wherein the method further comprises:
in response to a user return operation to the second reading page, displaying the second marking line below the second scribed text in the second reading page, the second scribed text determined according to a second pre-scribed line position and a second pre-scribed line type for a second pre-scribed line drawn by the second handwriting stroke operation.
A15. The method of any one of claims a1 to a14, wherein the method further comprises:
and storing the newly added mark line of the electronic book and the newly added marking text corresponding to the newly added mark line.
B16. An electronic device comprising a processor and a memory, the memory to store executable instructions that cause the processor to:
displaying a first reading page of an electronic book, the first reading page including first electronic book text;
determining a first pre-stroke position of a first pre-stroke line drawn by a first handwriting stroke operation in response to the first handwriting stroke operation on the first reading page by a user;
responding to a first scribing determination operation of the user on the first reading page, and determining a first scribing type to which the first scribing belongs according to the first scribing position;
determining a first scribed text in the first e-book text according to the first pre-scribed position and the first pre-scribed type;
and displaying a first mark line below the first scribed text.
B17. The electronic device of claim B16, wherein, after the processor performs the determining a first pre-scribe position for a first pre-scribe line drawn by the first handwriting stroke operation, the executable instructions further cause the processor to:
displaying the first pre-scribed line according to the first pre-scribed line position within the first reading page;
wherein, when the processor executes the displaying of the first marker line under the first lined text, the executable instructions cause the processor to:
replacing the first pre-scribed line with displaying the first marker line under the first scribed text.
B18. The electronic device of claim B17, wherein the first reading page includes a first text layer and a first handwritten layer overlaying the first text layer, the first ebook text being located within the first text layer, the first pre-scribed line being located within the first handwritten layer;
wherein, when the processor performs the replacing of the first pre-scribed line with the first marker line being displayed below the first scribed text, the executable instructions cause the processor to:
canceling the first pre-scribe line from display within the first handwritten pattern;
displaying the first marker line below the first stroke text within the first text layer.
B19. The electronic device of any of claims B16-B18, wherein the executable instructions, when the processor executes the determining the first type of pre-scribe line to which the first pre-scribe line belongs from the first pre-scribe line position, cause the processor to:
detecting whether an inflection point exists in the first pre-scribed line according to the first pre-scribed line position;
if the inflection point of the first pre-scribing line is detected, determining that the type of the first pre-scribing line is a curve type;
and if the first pre-scribing line is detected to have no inflection point, determining that the type of the first pre-scribing line is a straight line type.
B20. The electronic device of claim B16, wherein, when the processor executes the determining of first lined text in the first ebook text in accordance with the first pre-scribed position and the first pre-scribed type, the executable instructions cause the processor to:
if the first pre-scribing line type is a curve type, determining a first rectangular area of a first minimum circumscribed rectangle of the first pre-scribing line according to the first pre-scribing line position;
determining a first line starting character and a first line ending character in the first electronic book text according to the first rectangular area;
and taking a first text segment containing the first stroke start character and the first stroke end character as the first stroke text.
B21. The electronic device of claim B20, wherein, when the processor executes the determining a first beginning-of-line word and a first ending-of-line word for the first e-book text in accordance with the first rectangular position, the executable instructions cause the processor to:
determining a first candidate word in the first e-book text, wherein the first candidate word is located in the first rectangular area;
taking a first candidate character adjacent to the upper left corner point of the first rectangular area as the first line starting character;
and taking a first candidate character adjacent to the lower right corner point of the first rectangular area as the first stroke end character.
B22. The electronic device of claim B16, wherein, when the processor executes the determining of first lined text in the first ebook text in accordance with the first pre-scribed position and the first pre-scribed type, the executable instructions cause the processor to:
if the first pre-scribing type is a straight line type, determining a first scribing start character and a first scribing end character in the first electronic book text according to the first pre-scribing position;
and taking a first text segment containing the first stroke start character and the first stroke end character as the first stroke text.
B23. The electronic device of claim B22, wherein, when the processor executes the determining a first scribe start word and a first scribe end word for the first electronic book text in accordance with the first pre-scribe position, the executable instructions cause the processor to:
determining first candidate characters corresponding to all end points of the first pre-scribed line in the first electronic book text according to the first pre-scribed line position;
and determining the first line-drawing starting character and the first line-drawing ending character in each first candidate character according to the relative position relation between the first candidate characters.
B24. The electronic device of any one of claims B16-B23, wherein the executable instructions, when the processor performs the determining a first pre-scribe position for a first pre-scribe line drawn by the first handwriting stroke operation, cause the processor to:
calculating each moving position of the first handwriting stroke operation according to the initial position of the first handwriting stroke operation and each moving displacement information of the first handwriting stroke operation;
and taking the initial position of the first handwriting stroke operation and each moving position of the first handwriting stroke operation as the first pre-stroke position.
B25. The electronic device of claim B16, wherein the executable instructions, when the processor executes the displaying a first marker line below the first lined text, cause the processor to:
detecting whether the first lined text has lined characters or not;
if the first marking text is detected to have the marked characters, detecting the non-marked characters in the first marking text;
and if the unmarked characters are detected, additionally displaying the first mark line below the unmarked characters.
B26. The electronic device of claim B25, wherein, after the processor performs the detecting whether there is scribed text in the first scribed text, the executable instructions further cause the processor to:
and if the first marking line is detected to be absent from the first marking text, additionally displaying the first marking line below all the characters of the first marking text.
B27. The electronic device of any of claims B16-B26, wherein the executable instructions, when the processor executes the displaying a first reading page of an electronic book, cause the processor to:
and responding to a second scribing determination operation of a user on a second reading page of the electronic book, and displaying the first reading page of the electronic book, wherein the second reading page is a reading page adjacent to the first reading page, and the second scribing determination operation comprises that the second writing pen scribing operation of the user on the second reading page stays in a target display area of the second reading page for a first preset time length.
B28. The electronic device of claim B27, wherein, after the processor executes the display of the first reading page of the electronic book, the executable instructions further cause the processor to:
timing the display duration of the first reading page;
wherein, when the processor performs the first handwriting stroke operation on the first read page in response to the user, determining a first pre-stroke position of a first pre-stroke line drawn by the first handwriting stroke operation, the executable instructions cause the processor to:
and under the condition that the display duration is less than a second preset duration, responding to the first handwriting pen drawing operation, and determining the first pre-drawing position.
B29. The electronic device of claim B27, wherein the executable instructions further cause the processor to:
in response to a user's return operation to the second reading page, displaying the second marking line under the second scribed text within the second reading page, the second scribed text determined according to a second pre-scribe position and a second pre-scribe type of a second pre-scribe line drawn by the second handwriting stroke operation.
B30. The electronic device of any of claims B16-B29, wherein the executable instructions further cause the processor to:
and storing the newly added mark line of the electronic book and the newly added marking text corresponding to the newly added mark line.
C31. A computer-readable storage medium, wherein the storage medium stores a computer program which, when executed by a processor, causes the processor to implement the method of marker line drawing for an electronic book of any one of the preceding claims a1-a 15.
Various component embodiments of the invention may be implemented in whole or in part 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 in an electronic device 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.
The foregoing description is only exemplary of the preferred embodiments of the invention and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents is encompassed without departing from the spirit of the disclosure. For example, the above features and (but not limited to) features having similar functions disclosed in the present invention are mutually replaced to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the invention. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method for drawing a mark line of an electronic book is characterized by comprising the following steps:
displaying a first reading page of an electronic book, the first reading page including first electronic book text;
determining a first pre-stroke position of a first pre-stroke line drawn by a first handwriting stroke operation in response to the first handwriting stroke operation on the first reading page by a user;
responding to a first scribing determination operation of the user on the first reading page, and determining a first scribing type to which the first scribing belongs according to the first scribing position;
determining a first scribed text in the first e-book text according to the first pre-scribed position and the first pre-scribed type;
displaying a first marking line below the first lined text.
2. The method of claim 1, wherein after the determining a first pre-scribe position for a first pre-scribe line drawn by the first stylus scribing operation, the method further comprises:
displaying the first pre-scribed line according to the first pre-scribed line position within the first reading page;
wherein the displaying a first marking line below the first lined text comprises:
replacing the first pre-scribed line with displaying the first marker line under the first scribed text.
3. The method of any of claims 1-2, wherein said determining a first type of pre-scribe line to which the first pre-scribe line belongs from the first pre-scribe line location comprises:
detecting whether an inflection point exists in the first pre-scribed line according to the first pre-scribed line position;
if the inflection point of the first pre-scribing line is detected, determining that the type of the first pre-scribing line is a curve type;
and if the first pre-scribing line is detected to have no inflection point, determining that the type of the first pre-scribing line is a straight line type.
4. The method of claim 1, wherein determining first scribed text in the first ebook text according to the first pre-scribed position and the first pre-scribed type comprises:
if the first pre-scribing line type is a curve type, determining a first rectangular area of a first minimum circumscribed rectangle of the first pre-scribing line according to the first pre-scribing line position;
determining a first line starting character and a first line ending character in the first electronic book text according to the first rectangular area;
and taking a first text segment containing the first stroke start character and the first stroke end character as the first stroke text.
5. The method of claim 4, wherein determining a first beginning-of-line word and an ending-of-line word in the first e-book text according to the first rectangular position comprises:
determining a first candidate word located within the first rectangular region in the first e-book text;
taking a first candidate character adjacent to the upper left corner point of the first rectangular area as the first line starting character;
and taking a first candidate character adjacent to the lower right corner point of the first rectangular area as the first line end character.
6. The method of claim 1, wherein determining first scribed text in the first ebook text according to the first pre-scribed position and the first pre-scribed type comprises:
if the first pre-scribing type is a straight line type, determining a first scribing start character and a first scribing end character in the first electronic book text according to the first pre-scribing position;
and taking a first text segment containing the first stroke start character and the first stroke end character as the first stroke text.
7. The method of claim 6, wherein determining a first beginning-of-line word and an ending-of-line word in the first e-book text according to the first pre-line position comprises:
determining first candidate characters corresponding to all end points of the first pre-scribed line in the first electronic book text according to the first pre-scribed line position;
and determining the first line-drawing starting character and the first line-drawing ending character in each first candidate character according to the relative position relation between the first candidate characters.
8. The method of claim 1, wherein displaying a first marking line below the first lined text comprises:
detecting whether the first lined text has lined characters or not;
if the first scribed text is detected to have the scribed characters, detecting the scribed characters in the first scribed text;
and if the unmarked characters are detected, additionally displaying the first mark line below the unmarked characters.
9. An electronic device comprising a processor and a memory, the memory to store executable instructions that cause the processor to:
displaying a first reading page of an electronic book, the first reading page including first electronic book text;
determining a first pre-stroke position of a first pre-stroke line drawn by a first handwriting stroke operation in response to the first handwriting stroke operation on the first reading page by a user;
responding to a first scribing determination operation of the user on the first reading page, and determining a first scribing type to which the first scribing belongs according to the first scribing position;
determining a first scribed text in the first e-book text according to the first pre-scribed position and the first pre-scribed type;
displaying a first marking line below the first lined text.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, causes the processor to implement the mark line drawing method for an electronic book according to any one of claims 1 to 8.
CN202210190587.1A 2022-02-28 2022-02-28 Method, device and medium for drawing mark line of electronic book Pending CN114546208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210190587.1A CN114546208A (en) 2022-02-28 2022-02-28 Method, device and medium for drawing mark line of electronic book

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210190587.1A CN114546208A (en) 2022-02-28 2022-02-28 Method, device and medium for drawing mark line of electronic book

Publications (1)

Publication Number Publication Date
CN114546208A true CN114546208A (en) 2022-05-27

Family

ID=81661945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210190587.1A Pending CN114546208A (en) 2022-02-28 2022-02-28 Method, device and medium for drawing mark line of electronic book

Country Status (1)

Country Link
CN (1) CN114546208A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609846A (en) * 2003-06-13 2005-04-27 微软公司 Digital ink annotation process and system for recognizing, anchoring and reflowing digital ink annotations
US20060050969A1 (en) * 2004-09-03 2006-03-09 Microsoft Corporation Freeform digital ink annotation recognition
CN109582929A (en) * 2018-12-13 2019-04-05 掌阅科技股份有限公司 Mark line method for drafting and electronic equipment based on e-book

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609846A (en) * 2003-06-13 2005-04-27 微软公司 Digital ink annotation process and system for recognizing, anchoring and reflowing digital ink annotations
US20060050969A1 (en) * 2004-09-03 2006-03-09 Microsoft Corporation Freeform digital ink annotation recognition
CN109582929A (en) * 2018-12-13 2019-04-05 掌阅科技股份有限公司 Mark line method for drafting and electronic equipment based on e-book

Similar Documents

Publication Publication Date Title
US7424154B2 (en) Boxed and lined input panel
US7256773B2 (en) Detection of a dwell gesture by examining parameters associated with pen motion
US20180107359A1 (en) Text processing method and device
US9569107B2 (en) Gesture keyboard with gesture cancellation
CN105302464B (en) System and method for scribing flow type document
KR102075433B1 (en) Handwriting input apparatus and control method thereof
CN107977155B (en) Handwriting recognition method, device, equipment and storage medium
EP3413179B1 (en) Rejecting extraneous touch inputs in an electronic presentation system
CN112711362B (en) Method and device for generating hand-drawn flow chart icon in standardized manner
JP2015158900A (en) Information processing device, information processing method and information processing program
CN104346071A (en) Display control device, display control method, and computer program product
CN108958511B (en) Interactive display device, writing control method, mobile terminal and storage medium
CN114879869A (en) Note erasing method, electronic device and computer storage medium
US20150121204A1 (en) Method and system for a visual indicator a displayed page enablement for guided reading
US20150121206A1 (en) Method and system for a single tap gesture advancement to next content portion
CN113703631A (en) Writing control method and device, electronic equipment and storage medium
KR102078748B1 (en) Method for inputting for character in flexible display an electronic device thereof
CN112596623A (en) Interaction method and device of interaction equipment, electronic equipment and storage medium
CN114546208A (en) Method, device and medium for drawing mark line of electronic book
CN114548040A (en) Note processing method, electronic device and storage medium
CN112042175A (en) Terminal page turning method and device and handwriting board
CN113849106A (en) Page-turning handwriting processing method and device, electronic device and storage medium
CN113485590A (en) Touch operation method and device
CN113467671A (en) Text selection method and device, terminal equipment and readable storage medium
CN112527183A (en) Method and device for deleting text by hand drawing

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