Method, device and medium for drawing marking lines of electronic books
By detecting the position and type of stylus stroke operation in real time in the e-book reading device, and determining and displaying mark lines, the problem of inaccurate mark lines drawing in the prior art is solved, and the user's interactive experience is improved.
Patent Information
- Application Number
- CN202210190587.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2042-02-28
AI Technical Summary
The marking function of existing e-book reading devices cannot accurately draw marking lines, resulting in poor user interaction experience.
Use a stylus to perform scribing operations on the e-book reading page, detect the pre-scribing position and type in real time, determine the scribing text, and display the marking lines below the scribing text.
It realizes the accuracy and convenience of drawing mark lines with stylus, and improves the user's interactive experience.
Smart Images

Figure CN114546208B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic devices, and in particular to a method, device, and medium for drawing marking lines in an e-book. Background Art
[0002] With the development of technology, more and more electronic devices have the function of e-book reading. In order to meet the reading habits of users, electronic devices also provide users with the function of marking in e-books, such as users can mark text in e-books according to their preferences.
[0003] However, the existing marking function can only support low-precision marking line drawing, so that users often make mistakes when drawing marking lines on text in e-books, resulting in a poor user interaction experience. Summary of the Invention
[0004] In order to solve the above technical problems, the present disclosure provides a method, device and medium for drawing marking lines in an e-book.
[0005] In a first aspect, the present disclosure provides a method for drawing marking lines in an e-book, comprising:
[0006] A first reading page of an e-book is displayed, the first reading page including a first e-book text; in response to a first handwriting stroke operation on the first reading page by a user, a first pre-stroke position of a first pre-stroke drawn by the first handwriting stroke operation is determined; in response to a first stroke determination operation on the first reading page by the user, a first pre-stroke type to which the first pre-stroke belongs is determined based on the first pre-stroke position; a first stroke text is determined in the first e-book text based on the first pre-stroke position and the first pre-stroke type; and a first marking line is displayed below the first stroke text.
[0007] In a second aspect, the present disclosure provides an electronic device including a processor and a memory, wherein the memory is configured to store executable instructions, and the executable instructions enable the processor to perform the following operations:
[0008] A first reading page of an e-book is displayed, the first reading page including a first e-book text; in response to a first handwriting stroke operation on the first reading page by a user, a first pre-stroke position of a first pre-stroke drawn by the first handwriting stroke operation is determined; in response to a first stroke determination operation on the first reading page by the user, a first pre-stroke type to which the first pre-stroke belongs is determined based on the first pre-stroke position; a first stroke text is determined in the first e-book text based on the first pre-stroke position and the first pre-stroke type; and a first marking line is displayed below the first stroke text.
[0009] In a third aspect, the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor implements the method for drawing marking lines for an electronic book according to the first aspect.
[0010] The technical solution provided by the embodiments of the present disclosure has the following advantages over the prior art:
[0011] The method, device, and medium for drawing marking lines for an e-book according to the disclosed embodiment can, when displaying the first reading page of the e-book, determine the first pre-strike position of the first pre-strike drawn by the first handwriting stroke operation after receiving the first handwriting stroke operation on the first reading page from the user, and after receiving the first stroke determination operation on the first reading page from the user, determine the first pre-strike type to which the first pre-strike belongs based on the first pre-strike position, and then determine the first struck-out text in the first e-book text displayed on the first reading page based on the first pre-strike position and the first pre-strike type, so as to display the first marking line below the first struck-out text. Therefore, in the disclosed embodiment, the struck-out text that the user wishes to mark can be accurately determined by the pre-strike position and pre-strike type of the pre-strike drawn by the stylus, thereby enabling the user to conveniently and accurately draw marking lines using the stylus, thereby improving the user's interactive experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
[0013] Figure 1 A flow chart of a method for drawing marking lines in an e-book provided by an embodiment of the present disclosure;
[0014] Figure 2 A schematic diagram of a handwriting pen stroke scenario provided in an embodiment of the present disclosure;
[0015] Figure 3 A schematic diagram of another handwriting pen stroke scenario provided in an embodiment of the present disclosure;
[0016] Figure 4 A schematic diagram of another handwriting pen stroke scenario provided in an embodiment of the present disclosure;
[0017] Figure 5 A schematic diagram of another handwriting pen stroke scenario provided in an embodiment of the present disclosure;
[0018] Figure 6 A schematic diagram of another handwriting pen stroke scenario provided in an embodiment of the present disclosure;
[0019] Figure 7 A schematic diagram of another handwriting pen stroke scenario provided in an embodiment of the present disclosure;
[0020] Figure 8 A schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0021] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0022] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0023] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "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," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0024] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0025] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0026] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0027] The embodiments of the present disclosure provide a method, device, and medium for drawing marking lines in an e-book, which enable a user to accurately and conveniently draw marking lines on the e-book text using a stylus.
[0028] First, combine Figure 1-7The method for drawing marking lines in an e-book provided by an embodiment of the present disclosure is described.
[0029] The method for drawing marking lines in an e-book provided by the embodiments of the present disclosure can be performed by an electronic device, which may include but is not limited to mobile terminals such as smartphones, laptops, tablet computers (PADs), e-book readers, and fixed terminals such as digital TVs and desktop computers.
[0030] Figure 1 A flow chart of a method for drawing marking lines in an e-book provided by an embodiment of the present disclosure is shown.
[0031] like Figure 1 As shown, the method for drawing marking lines of an electronic book may include the following steps.
[0032] S110: Display a first reading page of an e-book, where the first reading page includes a first e-book text.
[0033] In an embodiment of the present disclosure, the electronic device may display a first reading page of an e-book, so that a user can read a first e-book text displayed in the first reading page.
[0034] That is, the first reading page may be a reading page of an e-book currently displayed on the electronic device, and the first e-book text may be an e-book text within the reading page of the e-book currently displayed on the electronic device.
[0035] S120: In response to a first handwriting stroke operation performed by a user on a first reading page, determine a first pre-stroke position of a first pre-stroked line drawn by the first handwriting stroke operation.
[0036] In an embodiment of the present disclosure, the electronic device can detect in real time the user's handwriting stroke operation on the reading page during the process of displaying the first reading page and the first e-book text of the e-book. When the user wants to mark certain content in the first e-book text, the first handwriting stroke operation can be performed on the first reading page. After detecting the user's first handwriting stroke operation on the first reading page, the electronic device can respond to the first handwriting stroke operation and determine the first pre-stroke position of the first pre-stroke drawn by the first handwriting stroke operation.
[0037] Optionally, the first handwriting pen stroke operation can be an operation in which the user draws a track on the first reading page using a handwriting pen. Accordingly, the first pre-stroked line is the track actually drawn by the user on the first reading page through the first handwriting pen stroke operation.
[0038] Furthermore, the first pre-drawn line position may include the point positions of each point on the first pre-drawn line. Each point on the first pre-drawn line is the corresponding pixel point through which the trajectory actually drawn by the first handwriting pen stroke operation passes. Therefore, the point position of each point is actually the pixel position of the corresponding pixel point.
[0039] Thus, the electronic device can respond to the user's first handwriting stroke operation on the first reading page, obtain the pixel position of each pixel point passed by the trajectory actually drawn by the first handwriting stroke operation, and use the pixel position of each pixel point as the point position of the corresponding point on the first pre-drawn line, thereby obtaining the point position of each point on the first pre-drawn line, and then use the point position of each point on the first pre-drawn line as the first pre-drawn line position.
[0040] Optionally, in order to accurately determine the first pre-drawn line position, determining the first pre-drawn line position of the first pre-drawn line drawn by the first handwriting stroke operation in S120 may specifically include: calculating the various moving positions of the first handwriting stroke operation based on the starting position of the first handwriting stroke operation and the various moving displacement information of the first handwriting stroke operation; and using the starting position of the first handwriting stroke operation and the various moving positions of the first handwriting stroke operation as the first pre-drawn line position.
[0041] The starting position of the first handwriting pen stroke operation is the pen-dropping position of the first handwriting pen stroke operation.
[0042] Specifically, after the first handwriting stroke operation is completed, if the stylus remains in the state of not being lifted up and moves on the screen of the electronic device, that is, while the user continues to input the first handwriting stroke operation, the electronic device can obtain the movement displacement information of the first handwriting stroke operation relative to the starting position in real time, and obtain the various movement displacement information of the first handwriting stroke operation.
[0043] Each piece of movement displacement information of the first handwriting stroke operation includes the actual movement direction, movement length, etc. of the first handwriting stroke operation, wherein the movement direction is any direction in the first reading interface.
[0044] Therefore, the electronic device can obtain the pixel position of each pixel point passed by the trajectory actually drawn by the first handwriting stroke operation based on the starting position of the first handwriting stroke operation and the movement displacement information of each first handwriting stroke operation, and use the pixel position of each pixel point as the point position of the corresponding point on the first pre-drawn line, thereby obtaining the point position of each point on the first pre-drawn line, and then using the point position of each point on the first pre-drawn line as the first pre-drawn line position.
[0045] In some embodiments of the present disclosure, as long as the electronic device displays the reading page of the e-book and the e-book text within the reading page, it will detect the user's handwriting stroke operation on the reading page in real time.
[0046] In other embodiments of the present disclosure, when the electronic device is displaying the first reading page and the first e-book text, it will detect the user's handwriting stroke operation on the reading page in real time only when it is in the handwriting stroke mode.
[0047] Specifically, when the electronic device is displaying the first reading page of the e-book and the first e-book text, the user can select reading mode or note mode. In reading mode, the user cannot perform any handwritten notes or handwritten underlining operations; in note mode, the user can select handwritten note mode or handwritten underlining mode. In handwritten note mode, the user can perform handwritten note operations; in handwritten underlining mode, the user can click the pen icon displayed in the first reading page to put the electronic device into handwritten pen underlining mode, and the user can perform handwritten pen underlining operations. If the user does not click the pen icon displayed in the first reading page, the user can perform finger underlining operations. In this way, the user can be prevented from making accidental underlining operations in the first reading page, thereby enhancing the user's reading experience.
[0048] S130: In response to a first line determination operation performed by the user on the first reading page, determine a first pre-line type to which the first pre-line belongs according to a first pre-line position.
[0049] In an embodiment of the present disclosure, after detecting the user's first handwriting pen stroke operation on the first reading page, the electronic device can detect the user's stroke confirmation operation on the reading page in real time. After the user performs the first handwriting pen stroke operation on the first reading page, if the user believes that the stroke is finished, the electronic device can perform the first stroke confirmation operation on the first reading page. After detecting the user's first stroke confirmation operation on the first reading page, the electronic device can respond to the first stroke confirmation operation and determine the first pre-stroke type to which the first pre-stroke belongs according to the first pre-stroke position.
[0050] Optionally, the first line determination operation may be an operation for triggering the electronic device to mark the electronic book text based on the first pre-marked line.
[0051] In some embodiments, the first line-scribing operation may be a pen-lifting operation corresponding to the first stylus line-scribing operation. That is, the user may continuously draw a continuous track within the first reading page through the first stylus line-scribing operation without lifting the pen. If the electronic device detects that the user has lifted the pen, it determines that the first line-scribing operation has been detected.
[0052] In other embodiments, the first line-confirming operation may be a click operation on a line-confirming button displayed on the first reading page. That is, the user may continuously draw a continuous track on the first reading page using the first handwriting pen. If the electronic device detects that the user clicks the line-confirming button, it determines that the first line-confirming operation is detected.
[0053] Among them, the confirmation button can be displayed when the electronic device detects that the user lifts the pen, or it can be fixedly displayed on the first reading page, and there is no restriction here.
[0054] Optionally, the first pre-marked line type can be a straight line type or a curve type. The straight line type pre-marked line can be a strict straight line or a line approximating a straight line; the curve type pre-marked line can be a closed curve or an open curve.
[0055] Furthermore, the electronic device may determine whether the first pre-marked line is a straight line type or a curved line type according to the first pre-marked line position, ie, the position of each point on the first pre-marked line.
[0056] S140: Determine a first marked text in the first electronic book text according to the first pre-marked position and the first pre-marked type.
[0057] In the disclosed embodiment, after determining the first pre-strike type to which the first pre-strike belongs, the electronic device can determine the first struck-out text to be marked in the first e-book text based on the first pre-strike position and the first pre-strike type. Specifically, the first struck-out text is the e-book content that the user intends to mark in the first e-book text by striking with the first handwriting pen.
[0058] Specifically, the electronic device can determine the first stroke start text and the first stroke end text based on the first pre-stroke position according to the stroke text determination method corresponding to the first pre-stroke type, and use the first text segment containing the first stroke start text and the first stroke end text as the first stroke text.
[0059] S150: Display a first marking line below the first struck-through text.
[0060] In an embodiment of the present disclosure, after determining the first struck-out text to be marked with a line, the electronic device may display a first marking line below the first struck-out text.
[0061] The first marking line may be a marking line that the user wants to draw below the first lined text by performing a line drawing operation with the first handwriting pen. The marking line may serve as a line marking function.
[0062] When displaying marker lines, you can often use the same refresh mode as when displaying e-books. For example, if the electronic device is an ink screen device, you can use a grayscale refresh mode to ensure the overall display effect. Since the specific location of the marker line has been determined at this time, you can directly use the local grayscale refresh mode to draw directly in the local area, and draw a gray line as the marker line, thereby quickly responding to the user's line determination operation and improving the user's interactive experience.
[0063] In an embodiment of the present disclosure, when displaying a first reading page of an e-book, after receiving a first handwriting stroke operation on the first reading page by a user, a first pre-strike position of a first pre-strike drawn by the first handwriting stroke operation is determined, and after receiving the first stroke determination operation on the first reading page by the user, a first pre-strike type to which the first pre-strike belongs is determined based on the first pre-strike position, and then, based on the first pre-strike position and the first pre-strike type, a first struck-out text is determined in the first e-book text displayed on the first reading page, so as to display a first marking line below the first struck-out text. Thus, in an embodiment of the present disclosure, the struck-out text that the user wishes to mark can be accurately determined based on the pre-strike position and the pre-strike type of the pre-strike drawn by the stylus, thereby enabling the user to conveniently and accurately draw a marking line using the stylus, thereby improving the user's interactive experience.
[0064] In another embodiment of the present disclosure, in order to provide timely feedback on the user's handwriting pen stroke operation and further enhance the user's interactive experience, the electronic device can display the actual trajectory drawn by the handwriting pen stroke operation on the first reading page when the user performs the handwriting pen stroke operation.
[0065] In some embodiments of the present disclosure, after determining the first pre-drawn line position of the first pre-drawn line drawn by the first handwriting pen stroke operation, the electronic book marking line drawing method may further include: displaying the first pre-drawn line in the first reading page according to the first pre-drawn line position.
[0066] Specifically, after detecting the user's first handwriting stroke operation on the first reading page, the electronic device can determine the first pre-drawn line position of the first pre-drawn line drawn by the first handwriting stroke operation in response to the first handwriting stroke operation, and after determining the first pre-drawn line position of the first pre-drawn line, display the trajectory actually drawn in the first reading page, that is, the first pre-drawn line, in the first reading page according to the first pre-drawn line position.
[0067] Since the first pre-drawn line position is actually the pixel position of each pixel point passed by the trajectory actually drawn by the first handwriting pen stroke operation, the first pre-drawn line can be displayed directly based on these pixel positions.
[0068] When displaying pre-drawn lines, in order to respond more quickly to user interactions, the pre-drawn lines can be drawn in a fast refresh mode. For example, if the electronic device is an ink screen device, a second-order refresh mode such as the DU mode can be used to perform a partial fast refresh on the pre-drawn lines. That is, the electronic device can control the timing controller to control the changes in the pixel points passed by the actual trajectory drawn by the first handwriting stroke operation. Specifically, the movement of black and white ink particles can be controlled to draw the black pre-drawn line, greatly speeding up the drawing of the pre-drawn lines. At this time, the display of other areas is not affected, and the user's reading experience of the e-book is not affected.
[0069] For example, the user can draw any straight line or curve track in the first reading page by using the first handwriting pen to draw a line, and the electronic device can control the timing controller to draw the pre-drawn line corresponding to the track in a fast swipe mode.
[0070] Furthermore, S150 may specifically include: replacing the first pre-strike line with a first marking line displayed below the first struck text.
[0071] Specifically, when the electronic device displays the first pre-stroked line, after detecting the first stroke confirmation operation, it can respond to the first stroke confirmation operation by first canceling the display of the first pre-stroked line and then displaying the first marking line below the first stroke text to replace the first pre-stroked line with the first marking line.
[0072] In some embodiments, the first reading page may include a first text layer and a first handwriting layer overlying the first text layer. The first text layer may be a text layer within the first reading page for displaying the first e-book text, and the first handwriting layer may be a handwriting layer within the first reading page for displaying a trajectory actually drawn by the first handwriting stroke operation.
[0073] At this time, the first e-book text is located in the first text layer, that is, the electronic device can display the first e-book text in the first reading page in the first text layer of the first reading page.
[0074] Furthermore, the other page contents of the first reading page may also be located in the same layer as the first e-book text, that is, the 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 mode. Alternatively, the other page contents of the first reading page may also be located in a layer different from the first e-book text, that is, the other page contents of the first reading page may also be located in the first reading page layer above the first text layer. In this case, the first reading page layer may also be covered above the first handwriting layer, so that the user can still operate other functions of the reading page in the handwriting stroke mode.
[0075] Furthermore, the first pre-drawn line can be located within the first handwriting layer. That is, after detecting the user's first handwriting stroke operation on the first reading page, the electronic device can display the actual trace drawn on the first reading page, i.e., the first pre-drawn line, within the first handwriting layer of the first reading page, so that the first pre-drawn line and the display of the first e-book text do not affect each other.
[0076] Furthermore, replacing the first pre-strike line with displaying a first marking line below the first struck text may specifically include: canceling display of the first pre-strike line in the first handwriting layer; and displaying the first marking line below the first struck text in the first text layer.
[0077] Specifically, when the electronic device displays the first pre-strike in the first handwriting layer, after detecting the first stroke determination operation, it can respond to the first stroke determination operation and, based on the first pre-strike position, determine the first pre-strike type to which the first pre-strike belongs, and then determine the first struck-out text in the first e-book text based on the first pre-strike position and the first pre-strike type. After determining the first struck-out text, the electronic device can first cancel the display of the first pre-strike in the first handwriting layer, and then display the first marking line below the first struck-out text in the first text layer, so as to replace the first pre-strike with the first marking line.
[0078] In other embodiments, the first reading page may also only include the first reading page layer. In this case, the first e-book text, other page content of the first reading page, and the trajectory actually drawn by the first handwriting stroke operation are all located in the first reading page layer.
[0079] Furthermore, when the electronic device displays the first pre-line in the first reading page layer, after detecting the first line determination operation, it can respond to the first line determination operation and, based on the first pre-line position, determine the first pre-line type to which the first pre-line belongs, and then determine the first struck-out text in the first e-book text based on the first pre-line position and the first pre-line type. After determining the first struck-out text, the electronic device can first cancel the display of the first pre-line in the first reading page layer, and then display the first marking line below the first struck-out text in the first reading page layer, so as to replace the first pre-line with the first marking line.
[0080] Therefore, the electronic device can display the actual trajectory drawn by the handwriting pen stroke operation in the first reading page in different page structures, so that the user's handwriting pen stroke operation can get timely feedback, and the traces of the handwriting pen stroke can be intuitively felt on the screen, avoiding errors in line marking, and further improving the user's interactive experience.
[0081] In another embodiment of the present disclosure, in order to more accurately determine the first struck-out text that the user needs to mark, it is now necessary to accurately determine the first pre-strike type to which the first pre-strike belongs, and then determine the first struck-out text by different struck-out text determination methods for different first pre-strike types.
[0082] First, a specific method for determining the first pre-marked line type to which the first pre-marked line belongs is described in detail below.
[0083] In some embodiments, determining the first pre-marked line type to which the first pre-marked line belongs based on the first pre-marked line position in S130 may specifically include: detecting whether the first pre-marked line has an inflection point based on the first pre-marked line position; if it is detected that the first pre-marked line has an inflection point, determining that the first pre-marked line type is a curve type; if it is detected that the first pre-marked line does not have an inflection point, determining that the first pre-marked line type is a straight line type.
[0084] Specifically, the electronic device may calculate, based on the point positions of each point on the first pre-marked line, whether the angle between two straight lines formed by connecting every three adjacent points is less than a preset angle threshold.
[0085] Optionally, for every three adjacent points, every two adjacent points in the drawing order can be connected into a straight line in the drawing order to obtain two straight lines, and then based on the point positions of each point, the angle between the two straight lines is calculated, and then the angle is compared with the preset angle threshold to obtain a comparison result.
[0086] Furthermore, if the angle between two straight lines formed by connecting any group of three adjacent points is less than a preset angle threshold, then the first pre-marked line is determined to have an inflection point; otherwise, the first pre-marked line is determined to have no inflection point. If the electronic device detects that the first pre-marked line has an inflection point, then the type of the first pre-marked line can be determined to be a curve type; if the electronic device detects that the first pre-marked line does not have an inflection point, then the type of the first pre-marked line can be determined to be a straight line type.
[0087] In other embodiments, determining the first pre-marked line type to which the first pre-marked line belongs based on the first pre-marked line position in S130 may specifically include: detecting whether there is an inflection point in the first pre-marked line by various movement displacement information of the first handwriting pen stroke operation; if it is detected that the first pre-marked line has an inflection point, determining that the first pre-marked line type is a curve type; if it is detected that the first pre-marked line does not have an inflection point, determining that the first pre-marked line type is a straight line type.
[0088] Specifically, the electronic device may calculate whether the angle between the moving directions of every two adjacent points is less than a preset angle threshold based on the moving direction in the moving displacement information.
[0089] Optionally, for every two adjacent points, the moving direction angle between the two points may be calculated based on the moving directions of the two points, and then the moving direction angle may be compared with a preset angle threshold to obtain a comparison result.
[0090] Furthermore, if the moving direction angle between any two adjacent points is less than a preset angle threshold, it is determined that the first pre-marked line has an inflection point; otherwise, it is determined that the first pre-marked line does not have an inflection point. If the electronic device detects that the first pre-marked line has an inflection point, it can determine that the first pre-marked line is a curve type; if it detects that the first pre-marked line does not have an inflection point, it can determine that the first pre-marked line is a straight line type.
[0091] Next, different methods for determining the first struck-out text according to different first pre-strike types are described in detail.
[0092] In some embodiments, S140 may specifically include: if the first pre-line type is a straight line type, determining the first line start text and the first line end text in the first e-book text according to the first pre-line position; and using the first text segment containing the first line start text and the first line end text as the first line text.
[0093] Specifically, if the first pre-stroke type is a straight line type, the electronic device can determine the first stroke start text and the first stroke end text that the first pre-stroke passes through in the first e-book text based on the first pre-stroke position, and then use the first text segment containing the first stroke start text and the first stroke end text as the first stroke text.
[0094] If the first stroke start character and the first stroke end character are in a text line, the first text segment includes the first stroke start character, the first stroke end character and all characters between the first stroke start character and the first stroke end character in the text line.
[0095] If the first stroke start text and the first stroke end text are not in the same text line, then the first text segment includes the first stroke start text, all text located in the text line to which the first stroke start text belongs and after the first stroke start text along the reading direction of the first reading page, all text located in all text lines between the text line to which the first stroke start text belongs and the text line to which the second stroke start text belongs, the first stroke end text, and all text located in the text line to which the first stroke end text belongs and before the first stroke end text along the reading direction of the first reading page.
[0096] Furthermore, determining the first line starting text and the first line ending text in the first e-book text based on the first pre-line position may specifically include: determining the first candidate text corresponding to each endpoint of the first pre-line in the first e-book text based on the first pre-line position; and determining the first line starting text and the first line ending text in each first candidate text based on the relative positional relationship between each first candidate text.
[0097] Specifically, the electronic device can determine the pre-marked starting position and the pre-marked ending position of the first pre-marked line within the first reading page based on the first pre-marked position, and then use the characters belonging to the character range within which the pre-marked starting position falls and the characters belonging to the character range within which the pre-marked ending position falls as the first candidate characters, or use the first character passed by the pre-marked starting position and the last character passed by the pre-marked ending position as the first candidate characters, and then determine the first stroke starting character and the first stroke ending character in each first candidate character based on the relative position relationship between each first candidate character.
[0098] If two first candidate characters are in a text line, the first candidate character that is relatively positioned earlier in the reading direction is the first stroke-start character, and the first candidate character that is relatively positioned later in the reading direction is the first stroke-end character.
[0099] If the two first candidate characters are not in the same text line, the first candidate character that comes first in the text line is the first stroke-start character, and the first candidate character that comes later in the text line is the first stroke-end character.
[0100] The following will refer to Figures 2 to 4 Provide explanation.
[0101] Figure 2 A schematic diagram of a handwriting stroke line scenario provided by an embodiment of the present disclosure is shown.
[0102] like Figure 2 As shown, the electronic device 201 can display a first reading page 202, and the first e-book text can be displayed in the first reading page 202. The user can draw a first pre-marked line 204 in the first reading page 202. Since the first pre-marked line 204 is a straight line and the first pre-marked line 204 only passes through a line of text, the electronic device 201 can determine the first pre-marked text 203 in the text line and display a first marking line 205 below the first marked text 203.
[0103] Figure 3 A schematic diagram of another handwriting stroke scenario provided by an embodiment of the present disclosure is shown.
[0104] like Figure 3As shown, the electronic device 301 can display a first reading page 302, and the first e-book text can be displayed in the first reading page 302. The user can draw a first pre-marked line 304 in the first reading page 302. Since the first pre-marked line 304 is a straight line and the first pre-marked line 304 passes through two lines of text, the electronic device 301 can determine the first pre-marked text 303 in the two lines of text and display a first marking line 305 below the first marked text 303.
[0105] Figure 4 A schematic diagram of another handwriting stroke line scenario provided by an embodiment of the present disclosure is shown.
[0106] like Figure 4 As shown, the electronic device 401 can display a first reading page 402, and the first e-book text can be displayed in the first reading page 402. The user can draw a first pre-marked line 404 in the first reading page 402. Since the first pre-marked line 404 is a straight line and the first pre-marked line 404 passes through two lines of text, the electronic device 401 can determine the first pre-marked text 403 in the two lines of text and display a first marking line 405 below the first marked text 403.
[0107] In other embodiments, S140 may specifically include: if the first pre-stroke type is a curve type, determining the first rectangular area of the first minimum circumscribed rectangle of the first pre-stroke according to the first pre-stroke position; determining the first stroke start text and the first stroke end text in the first e-book text according to the first rectangular area; and using the first text segment containing the first stroke start text and the first stroke end text as the first stroke text.
[0108] Specifically, if the first pre-stroke type is a curve type, the electronic device can determine the first rectangular area of the first minimum circumscribed rectangle of the first pre-stroke based on the first pre-stroke position, and then determine the first stroke start text and the first stroke end text covered by the first rectangular area in the first e-book text, and then use the first text segment containing the first stroke start text and the first stroke end text as the first stroke text.
[0109] If the first stroke start character and the first stroke end character are in a text line, the first text segment includes the first stroke start character, the first stroke end character and all characters between the first stroke start character and the first stroke end character in the text line.
[0110] If the first stroke start text and the first stroke end text are not in the same text line, then the first text segment includes the first stroke start text, all text located in the text line to which the first stroke start text belongs and after the first stroke start text along the reading direction of the first reading page, all text located in all text lines between the text line to which the first stroke start text belongs and the text line to which the second stroke start text belongs, the first stroke end text, and all text located in the text line to which the first stroke end text belongs and before the first stroke end text along the reading direction of the first reading page.
[0111] Furthermore, determining the first stroke start text and the first stroke end text in the first e-book text based on the first rectangular position can specifically include: determining the first candidate text located in the first rectangular area in the first e-book text; using the first candidate text adjacent to the upper left corner point of the first rectangular area as the first stroke start text; and using the first candidate text adjacent to the lower right corner point of the first rectangular area as the first stroke end text.
[0112] Specifically, the electronic device can determine the first candidate text located in the first rectangular area in the first e-book text, wherein as long as at least part of the text is located in the first rectangular area, the text is the first candidate text, and then the electronic device can determine the position of the upper left corner point and the position of the lower right corner point of the first rectangular area based on the first rectangular position, and then according to the position of the upper left corner point and the position of the lower right corner point, use the first candidate text belonging to the text range in which the upper left corner point falls as the first line-breaking starting text, and use the first candidate text belonging to the text range in which the lower right corner point falls as the first line-breaking ending text, or, according to the position of the upper left corner point and the position of the lower right corner point, use the first candidate text adjacent to the upper left corner point of the first rectangular area as the first line-breaking starting text, and use the first candidate text adjacent to the lower right corner point of the first rectangular area as the first line-breaking ending text.
[0113] The following will refer to Figure 5 and Figure 6 Provide explanation.
[0114] Figure 5 A schematic diagram of another handwriting stroke line scenario provided by an embodiment of the present disclosure is shown.
[0115] like Figure 5As shown, the electronic device 501 can display a first reading page 502, and the first e-book text can be displayed in the first reading page 502. The user can draw a first pre-marked line 504 in the first reading page 502. Since the first pre-marked line 504 is an open curve and the first pre-marked line 504 passes through two lines of text, the electronic device 501 can determine the first pre-marked text 503 in the two lines of text and display a first marking line 505 below the first marked text 503.
[0116] Figure 6 A schematic diagram of another handwriting stroke line scenario provided by an embodiment of the present disclosure is shown.
[0117] like Figure 6 As shown, the electronic device 601 can display a first reading page 602, and the first e-book text can be displayed in the first reading page 602. The user can draw a first pre-marked line 604 in the first reading page 602. Since the first pre-marked line 604 is a closed curve and the first pre-marked line 604 passes through two lines of text, the electronic device 601 can determine the first pre-marked text 603 in the two lines of text and display the first marking line 605 below the first marked text 603.
[0118] In some further embodiments, when the electronic device determines the first candidate characters corresponding to the endpoints of the first pre-marked line in the first e-book text based on the first pre-marked line position, there may be a situation where the first candidate characters cannot be detected, for example, the first pre-marked line does not pass through any characters or any text line. In this case, the electronic device determines that there is no first marked character, and therefore, the first marking line will not be displayed.
[0119] Figure 7 A schematic diagram of another handwriting stroke line scenario provided by an embodiment of the present disclosure is shown.
[0120] like Figure 7 As shown, the electronic device 701 can display a first reading page 702, and the first e-book text can be displayed in the first reading page 702. The user can draw a first pre-marked line 703 in the first reading page 702. Since the first pre-marked line 703 does not pass through any word or any text line, the electronic device does not display any marking line.
[0121] It can be seen that in the embodiment of the present disclosure, the premise for detecting the first struck-out text and displaying the first marking line below the first struck-out text is that the first pre-strike line passes through any text or any text line to further avoid the situation of mistaken strike-out.
[0122] In another embodiment of the present disclosure, since there may be already crossed-out text in the first struck-out text that the user needs to mark, in order to further improve the user experience, it is necessary to first detect whether there is already crossed-out text in the first struck-out text, and then determine how to display the first marking line based on the detection results.
[0123] In some embodiments of the present disclosure, S150 may specifically include: detecting whether there is any struck-out text in the first struck-out text.
[0124] The underlined text refers to the text that has been underlined by the user.
[0125] Specifically, after determining the first struck-out text, the electronic device may first identify whether the characters in the first struck-out text intersect with the characters in the pre-stored historical struck-out text. Specifically, the electronic device may identify whether the first struck-out text contains characters at the same position as the characters in the pre-stored historical struck-out text, thereby detecting whether there are already struck-out characters in the first struck-out text. Furthermore, if the characters in the first struck-out text intersect with the characters in the pre-stored historical struck-out text, that is, if the first struck-out text contains characters at the same position as the characters in the pre-stored historical struck-out text, then it is determined that the first struck-out text contains already struck-out characters. Otherwise, it is determined that the first struck-out text contains no already struck-out characters.
[0126] In some embodiments, if the electronic device detects that there is struck-through text in the first struck-through text, it can determine the unstrike-through text in the first struck-through text and add a first marking line below the unstrike-through text in the first struck-through text.
[0127] The unmarked text refers to the text that has never been marked by the user.
[0128] Specifically, if the electronic device detects that there are crossed-out characters in the first crossed-out text, it can identify characters in the first crossed-out text that do not intersect with characters in pre-stored historical crossed-out texts. Specifically, it can identify characters in the first crossed-out text that are in different positions from characters in pre-stored historical crossed-out texts, and the identified characters are uncrossed characters.
[0129] If the electronic device recognizes unstrikethrough text, it can add and display a first marking line below the unstrikethrough text in the first struck-through text, so that the first marking line and the marking line below the struck-through text in the first struck-through text form a marking line; if the electronic device does not recognize unstrikethrough text, the first marking line will not be added below the first struck-through text.
[0130] In other embodiments, if the electronic device detects that there are struck-through texts in the first struck-through text, it can also detect unstrike-through texts in the first struck-through text. If unstrike-through texts are detected, a first marking line is added and displayed below the unstrike-through texts in the first struck-through text. Otherwise, the first marking line is not added below all the texts in the first struck-through text.
[0131] In some other embodiments, after detecting whether there is any struck-out text in the first struck-out text, the marking line drawing method of the electronic book may further include: if it is detected that there is no struck-out text in the first struck-out text, adding and displaying a first marking line below all the text of the first struck-out text.
[0132] Specifically, if the electronic device detects that there is no struck-out text in the first struck-out text, it may directly add and display a first marking line below all the text in the first struck-out text.
[0133] Therefore, in the embodiment of the present disclosure, not only can the user avoid repeatedly underlining the same text, but the user's underlining and annotation will not be affected by historical annotation results, and the user's underlining and annotation can be integrated with historical annotation results, which can meet the different needs of users and further enhance the user experience.
[0134] In another embodiment of the present disclosure, the user can also implement continuous marking of e-book texts within multiple reading pages, which will be explained below.
[0135] Optionally, the first reading page may be a non-first reading page when continuous marking is performed.
[0136] In the case that the first reading page is not the first reading page when continuously marked, S110 may specifically include: in response to the user's second marking confirmation operation on the second reading page of the e-book, displaying the first reading page of the e-book.
[0137] 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.
[0138] Furthermore, the second stroke determination operation may include a second handwriting stroke operation of the user on the second reading page staying in the target display area of the second reading page for a first preset time period.
[0139] Optionally, the second handwriting pen stroke operation can be an operation in which the user draws a track on the second reading page using a handwriting pen. Accordingly, the track actually drawn by the user on the second reading page using the second handwriting pen stroke operation is the second pre-drawn line.
[0140] The target display area of the second reading page can be any pre-set display area that can trigger the electronic device to jump to the first reading page. For example, the target display area can be the lower right corner area or the right sidebar area of the second reading page, etc., and there is no limitation here.
[0141] The first preset duration can be any duration pre-set as needed and is not limited here.
[0142] Therefore, when the user performs a second stylus stroke operation on the second reading page, if the user wants to trigger continuous stroke marking on the next page of the second reading page, that is, the first reading page, the user can keep the stylus in the state of not lifting it up and move it into the target display area, and then after moving to the target display area, stay there for a first preset time. At this time, the electronic device can detect the user's second stroke confirmation operation on the second reading page of the e-book, and in response to the second stroke confirmation operation, jump from the second reading page to display the first reading page.
[0143] After the electronic device jumps from the second reading page to display the first reading page, the user can use the first handwriting pen to perform a continuous line marking operation across the second reading page and the first reading page.
[0144] In these embodiments, optionally, the marking line drawing method of the e-book may also include: in response to the user's return operation to the second reading page, displaying a second marking line below the second struck-out text in the second reading page, and the second struck-out text is determined according to the second pre-strike position and second pre-strike type of the second pre-strike drawn according to the second strike determination operation.
[0145] Although the electronic device can jump from the second reading page to the first reading page in response to the second line determination operation after detecting the user's second line determination operation on the second reading page of the e-book, at this time, the electronic device can also respond to the second line determination operation and determine the second pre-line type to which the second pre-line belongs based on the second pre-line position of the second pre-line, and determine the second struck-out text in the second e-book text based on the second pre-line position and the second pre-line type, and determine that a second annotation line needs to be added for the second struck-out text.
[0146] Furthermore, when the user inputs a second handwriting stroke operation on the second reading page, the electronic device may also determine a second pre-stroke position of a second pre-stroke drawn by the second handwriting stroke operation in response to the user's second handwriting stroke operation on the second reading page.
[0147] Therefore, when the electronic device displays the first reading page, at any time, if the user wants to view the marked results in the second reading page, he can go back and view them.
[0148] The return operation can be a click operation on the button for returning to the previous page, or a long press operation in the designated display area, without limitation. Specifically, the designated display area can be any pre-set display area that can trigger the electronic device to jump to the second reading page, such as the upper left corner area or the left sidebar area of the first reading page, without limitation.
[0149] When the user wants to view the results of the underline marking in the second reading page, the user can input a return operation on the first reading page to return to the second reading page. After receiving the return operation, the electronic device can display the second marking line below the second underlined text in the second reading page.
[0150] In some examples, if the user has already made underline marks in the first reading page before returning to the second reading page, it is necessary to determine whether the last character of the second underlined text and the first character in the first underlined text are characters in a continuous reading order. For example, the electronic device needs to determine whether the last character of the second underlined text is the last character in the second reading page, and whether the first character in the first underlined text is the first character in the first reading page. If both are true, it is determined whether the last character in the second reading page and the first character in the first reading page belong to an e-book text paragraph. If so, it is determined that the last character of the second underlined text and the first character in the first underlined text are characters in a continuous reading order, and then the second marking line and the first marking line are used as a new marking line, and the second underlined text and the first underlined text are used as the new underlined text corresponding to the new marking line.
[0151] Otherwise, if the last character of the second struck-out text is not the last character in the second reading page, or if the first character in the first struck-out text is not the first character in the first reading page, or if the last character in the second reading page and the first character in the first reading page do not belong to the same e-book text paragraph, then it is determined that the last character of the second struck-out text and the first character in the first struck-out text are not continuous characters in the reading order, and then the second marking line and the first marking line are treated as two separate newly added marking lines, and the second struck-out text and the first struck-out text are respectively treated as newly added struck-out texts corresponding to the corresponding newly added marking lines.
[0152] Optionally, after the electronic device determines the second pre-drawn line position of the second pre-drawn line drawn by the second handwriting pen stroke operation, the second pre-drawn line may be displayed in the second reading page according to the second pre-drawn line position.
[0153] It should be noted that the method for determining the second pre-strike position, the second pre-strike type and the second struck text, and the method for displaying the second pre-strike and the second annotation line are similar to the method for determining the first pre-strike position, the first pre-strike type and the first struck text, and the method for displaying the first pre-strike and the first annotation line, and will not be repeated here.
[0154] Therefore, the electronic device can provide users with continuous annotation and underlining functions, reducing the number of times users trigger the electronic device to enter the handwriting pen underlining mode, and enable users to jointly annotate continuous e-book texts that are not on the same reading page, thereby improving the user experience.
[0155] In the case that the first reading page is not the first reading page to be marked continuously, after S110 , the method for drawing marking lines for an e-book may further include: timing the display duration of the first reading page.
[0156] Specifically, after the electronic device jumps from the second reading page to the first reading page, it will not always wait for the user's first handwriting pen to draw a line, that is, the electronic device will not always be in a state of continuous drawing and marking. Therefore, after the electronic device jumps from the second reading page to displaying the first reading page, the electronic device can also time the display time of the first reading page.
[0157] Furthermore, in response to the user's first handwriting stroke operation on the first reading page, determining the first pre-stroke position of the first pre-stroke line drawn by the first handwriting stroke operation can specifically include: when the display time is less than the second preset time, determining the first pre-stroke position in response to the first handwriting stroke operation.
[0158] The second preset duration may be any duration pre-set as needed and is not limited here.
[0159] If the display time of the first reading page is less than the second preset time, it means that the electronic device is in a state of continuous line marking and can wait for the user's first handwriting pen line marking operation. At this time, if the user inputs the first handwriting pen line marking operation, the electronic device can respond to the first handwriting pen line marking operation, determine the first pre-marking position, and implement subsequent line marking.
[0160] If the display time of the first reading page is greater than or equal to the second preset time, it means that the electronic device is no longer in the state of continuous line marking, and the electronic device is no longer waiting for the user's first handwriting pen line marking operation. At this time, if the user inputs the first handwriting pen line marking operation, the electronic device does not respond to the first handwriting pen line marking operation, and will not implement subsequent line marking.
[0161] Therefore, after displaying the first reading page, the electronic device can analyze the user's continuous marking needs based on the display length of the first reading page, and then automatically exit the continuous marking state when it is determined that the user no longer has the need for continuous marking, further improving the user experience.
[0162] In another embodiment of the present disclosure, the electronic device further supports storage of the user's line marking results, which will be described in detail below.
[0163] In an embodiment of the present disclosure, the method for drawing marking lines in an electronic book may further include: storing newly added marking lines in the electronic book and newly added underlined texts corresponding to the newly added marking lines.
[0164] Specifically, each time the electronic device obtains a new marking line and a new underlined text corresponding to the new marking line, it can automatically store the new marking line and the new underlined text corresponding to the new marking line. After the new underlined text corresponding to the new marking line is stored, it becomes the aforementioned pre-stored historical underlined text.
[0165] Among them, the electronic device can store the newly added marking lines and the newly added underlined text corresponding to the newly added marking lines locally, or store the newly added marking lines and the newly added underlined text corresponding to the newly added marking lines in a cloud server, without limitation here.
[0166] Thus, the electronic device can store the newly added marking lines and the newly added underlined text corresponding to the newly added marking lines each time the user makes a marking, so that the user can view them later, or provide a basis for avoiding the user from repeatedly underlining the underlined text.
[0167] Figure 8 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown.
[0168] The electronic devices provided by the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as smart phones, laptops, PADs, e-book readers, etc., and fixed terminals such as digital TVs, desktop computers, etc.
[0169] It should be noted that Figure 8 The electronic device 800 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present invention.
[0170] 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 can 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 for executable instructions (or program codes) 8211 for executing any method steps in the above-mentioned note processing method. For example, the storage space 821 for executable instructions may include individual executable instructions 8211 for respectively implementing various steps in the above-mentioned note processing method. These executable instructions can be read from or written to one or more computer program products. These computer program products include program code carriers such as a hard disk, a compact disc (CD), a memory card or a floppy disk. Such a computer program product is typically a portable or fixed storage unit. The storage unit may have a Figure 8 The memory 820 in the electronic device 800 is similarly arranged as a storage segment or storage space. The executable instructions can be compressed, for example, in an appropriate form. Generally, the storage unit includes executable instructions for executing the steps of the method for drawing marked lines in an electronic book according to the present invention, that is, codes that can be read by a processor such as the processor 810. When these codes are executed by the electronic device 800, the electronic device 800 executes the various steps of the method for drawing marked lines in an electronic book described above.
[0171] Of course, to simplify, Figure 8 Only some of the components related to the present invention in the electronic device 800 are shown, and components such as a bus, an input / output interface, an input device, an output device, etc. are omitted. In addition, the electronic device 800 may further include any other appropriate components according to specific application scenarios.
[0172] An embodiment of the present invention further provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the processor executes the marking line drawing method, device, and medium method for an e-book provided by various embodiments of the present invention.
[0173] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can, for example, include but is not limited to a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0174] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0175] In embodiments of the present invention, program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0176] The present invention discloses:
[0177] A1. A method for drawing marking lines in an e-book, comprising:
[0178] displaying a first reading page of an e-book, wherein the first reading page includes a first e-book text;
[0179] In response to a first handwriting stroke operation of a user on the first reading page, determining a first pre-stroke position of a first pre-stroke line drawn by the first handwriting stroke operation;
[0180] In response to the user's first line determination operation on the first reading page, determining a first pre-marked line type to which the first pre-marked line belongs according to the first pre-marked line position;
[0181] determining a first marked text in the first e-book text according to the first pre-marked position and the first pre-marked type;
[0182] A first marking line is displayed below the first struck-through text.
[0183] A2. The method according to claim A1, wherein, after determining the first pre-drawn line position of the first pre-drawn line drawn by the first handwriting pen stroke operation, the method further comprises:
[0184] In the first reading page, displaying the first pre-marked line according to the first pre-marked line position;
[0185] The step of displaying a first marking line below the first struck-through text includes:
[0186] The first pre-strike line is replaced by displaying the first marking line below the first struck text.
[0187] A3. The method according to claim A2, wherein the first reading page includes a first text layer and a first handwriting layer overlying the first text layer, the first e-book text is located in the first text layer, and the first pre-ruled line is located in the first handwriting layer;
[0188] The replacing the first pre-strike line with displaying the first marking line below the first struck-through text includes:
[0189] canceling display of the first pre-drawn line in the first handwriting layer;
[0190] The first marking line is displayed below the first ruled text in the first text layer.
[0191] A4. The method according to any one of claims A1 to A3, wherein determining the first pre-marked line type to which the first pre-marked line belongs based on the first pre-marked line position comprises:
[0192] detecting whether the first pre-marked line has an inflection point according to the position of the first pre-marked line;
[0193] If it is detected that the first pre-marked line has the inflection point, determining that the first pre-marked line type is a curve type;
[0194] If it is detected that the first pre-marked line does not have the inflection point, it is determined that the first pre-marked line is a straight line type.
[0195] A5. The method according to claim A1, wherein determining the first ruled text in the first electronic book text according to the first pre-ruled position and the first pre-ruled type comprises:
[0196] If the first pre-marked line type is a curve type, determining a first rectangular area of a first minimum circumscribed rectangle of the first pre-marked line according to the first pre-marked line position;
[0197] Determining a first stroke start character and a first stroke end character in the first e-book text according to the first rectangular area;
[0198] A first text segment including the first stroke start character and the first stroke end character is used as the first stroke text.
[0199] A6. The method according to claim A5, wherein determining a first stroke start character and a first stroke end character in the first e-book text based on the first rectangular position comprises:
[0200] Determining, in the first e-book text, a first candidate character located within the first rectangular area;
[0201] Using the first candidate character adjacent to the upper left corner of the first rectangular area as the first stroke starting character;
[0202] The first candidate character adjacent to the lower right corner of the first rectangular area is used as the first stroke ending character.
[0203] A7. The method according to claim A1, wherein determining the first ruled text in the first electronic book text according to the first pre-ruled position and the first pre-ruled type comprises:
[0204] If the first pre-marked line type is a straight line type, determining a first pre-marked start character and a first pre-marked end character in the first e-book text according to the first pre-marked line position;
[0205] A first text segment including the first stroke start character and the first stroke end character is used as the first stroke text.
[0206] A8. The method according to claim A7, wherein determining a first stroke start character and a first stroke end character in the first e-book text according to the first pre-stroke position comprises:
[0207] determining, in the first e-book text, first candidate characters corresponding to respective endpoints of the first pre-marked line according to the first pre-marked line position;
[0208] The first stroke start character and the first stroke end character are determined in each of the first candidate characters according to the relative positional relationship between the first candidate characters.
[0209] A9. The method according to any one of claims A1 to A8, wherein determining a first pre-drawn line position of a first pre-drawn line drawn by the first handwriting pen stroke operation comprises:
[0210] Calculating each moving position of the first handwriting pen stroke operation according to the starting position of the first handwriting pen stroke operation and each moving displacement information of the first handwriting pen stroke operation;
[0211] The starting position of the first handwriting pen stroke operation and each moving position of the first handwriting pen stroke operation are used as the first pre-stroke positions.
[0212] A10. The method according to claim A1, wherein displaying a first marking line below the first struck-through text comprises:
[0213] Detecting whether there is any struck-out text in the first struck-out text;
[0214] If the first struck-through text is detected to contain the struck-through text, detecting unstrike-through text in the first struck-through text;
[0215] If the uncrossed text is detected, the first marking line is added and displayed below the uncrossed text.
[0216] A11. The method according to claim A10, wherein, after detecting whether there is a struck-out character in the first struck-out text, the method further comprises:
[0217] If it is detected that the first struck-out text does not contain the struck-out text, the first marking line is added and displayed below all the characters of the first struck-out text.
[0218] A12. The method according to any one of claims A1 to A11, wherein displaying the first reading page of the electronic book comprises:
[0219] In response to the user's second stroke confirmation operation on the second reading page of the e-book, the first reading page of the e-book is displayed, and the second reading page is a reading page adjacent to the first reading page. The second stroke confirmation operation includes the user's second handwriting pen stroke operation on the second reading page staying in the target display area of the second reading page for a first preset time.
[0220] A13. The method according to claim A12, wherein, after displaying the first reading page of the electronic book, the method further comprises:
[0221] timing the display time of the first reading page;
[0222] The determining of a first pre-drawn line position of a first pre-drawn line drawn by a first handwriting stroke operation on the first reading page in response to the user's first handwriting stroke operation includes:
[0223] In a case where the display duration is less than a second preset duration, the first pre-drawn line position is determined in response to the first handwriting pen drawing operation.
[0224] A14. The method according to claim A12, wherein the method further comprises:
[0225] In response to the user's return operation to the second reading page, the second marking line is displayed below the second struck-out text in the second reading page, and the second struck-out text is determined according to the second pre-strike position and second pre-strike type of the second pre-strike line drawn according to the second handwriting pen stroke operation.
[0226] A15. The method according to any one of claims A1 to A14, wherein the method further comprises:
[0227] The newly added marking line of the electronic book and the newly added underlined text corresponding to the newly added marking line are stored.
[0228] B16. An electronic device comprising a processor and a memory, wherein the memory is configured to store executable instructions, the executable instructions causing the processor to perform the following operations:
[0229] displaying a first reading page of an e-book, wherein the first reading page includes a first e-book text;
[0230] In response to a first handwriting stroke operation of a user on the first reading page, determining a first pre-stroke position of a first pre-stroke line drawn by the first handwriting stroke operation;
[0231] In response to the user's first line determination operation on the first reading page, determining a first pre-marked line type to which the first pre-marked line belongs according to the first pre-marked line position;
[0232] determining a first marked text in the first e-book text according to the first pre-marked position and the first pre-marked type;
[0233] A first marking line is displayed below the first struck-through text.
[0234] B17. The electronic device according to claim B16, wherein, after the processor determines a first pre-drawn line position of a first pre-drawn line drawn by the first handwriting stroke operation, the executable instructions further cause the processor to perform the following operations:
[0235] In the first reading page, displaying the first pre-marked line according to the first pre-marked line position;
[0236] When the processor executes the step of displaying a first marking line below the first struck-through text, the executable instructions cause the processor to perform the following operations:
[0237] The first pre-strike line is replaced by displaying the first marking line below the first struck text.
[0238] B18. The electronic device according to claim B17, wherein the first reading page comprises a first text layer and a first handwriting layer covering the first text layer, the first e-book text is located in the first text layer, and the first pre-ruled line is located in the first handwriting layer;
[0239] When the processor replaces the first pre-strike line with the first marking line displayed below the first struck text, the executable instructions cause the processor to perform the following operations:
[0240] canceling display of the first pre-drawn line in the first handwriting layer;
[0241] The first marking line is displayed below the first ruled text in the first text layer.
[0242] B19. The electronic device according to any one of claims B16 to B18, wherein, when the processor executes the step of determining the first pre-marked line type according to the first pre-marked line position, the executable instructions cause the processor to perform the following operations:
[0243] detecting whether the first pre-marked line has an inflection point according to the position of the first pre-marked line;
[0244] If it is detected that the first pre-marked line has the inflection point, determining that the first pre-marked line type is a curve type;
[0245] If it is detected that the first pre-marked line does not have the inflection point, it is determined that the first pre-marked line is a straight line type.
[0246] B20. The electronic device according to claim B16, wherein, when the processor executes the step of determining the first ruled text in the first electronic book text based on the first pre-ruled position and the first pre-ruled type, the executable instructions cause the processor to perform the following operations:
[0247] If the first pre-marked line type is a curve type, determining a first rectangular area of a first minimum circumscribed rectangle of the first pre-marked line according to the first pre-marked line position;
[0248] Determining a first stroke start character and a first stroke end character in the first e-book text according to the first rectangular area;
[0249] A first text segment including the first stroke start character and the first stroke end character is used as the first stroke text.
[0250] B21. The electronic device according to claim B20, wherein, when the processor executes the step of determining a first stroke start character and a first stroke end character in the first e-book text based on the first rectangular position, the executable instructions cause the processor to perform the following operations:
[0251] Determining, in the first e-book text, a first candidate character located within the first rectangular area;
[0252] Using the first candidate character adjacent to the upper left corner of the first rectangular area as the first stroke starting character;
[0253] The first candidate character adjacent to the lower right corner of the first rectangular area is used as the first stroke ending character.
[0254] B22. The electronic device according to claim B16, wherein, when the processor executes the step of determining the first ruled text in the first electronic book text based on the first pre-ruled position and the first pre-ruled type, the executable instructions cause the processor to perform the following operations:
[0255] If the first pre-marked line type is a straight line type, determining a first pre-marked start character and a first pre-marked end character in the first e-book text according to the first pre-marked line position;
[0256] A first text segment including the first stroke start character and the first stroke end character is used as the first stroke text.
[0257] B23. The electronic device according to claim B22, wherein, when the processor executes the step of determining a first stroke start character and a first stroke end character in the first electronic book text based on the first pre-stroke position, the executable instructions cause the processor to perform the following operations:
[0258] determining, in the first e-book text, first candidate characters corresponding to respective endpoints of the first pre-marked line according to the first pre-marked line position;
[0259] The first stroke start character and the first stroke end character are determined in each of the first candidate characters according to the relative positional relationship between the first candidate characters.
[0260] B24. The electronic device according to any one of claims B16 to B23, wherein, when the processor performs the step of determining a first pre-drawn line position of a first pre-drawn line drawn by the first handwriting pen stroke operation, the executable instructions cause the processor to perform the following operations:
[0261] Calculating each moving position of the first handwriting pen stroke operation according to the starting position of the first handwriting pen stroke operation and each moving displacement information of the first handwriting pen stroke operation;
[0262] The starting position of the first handwriting pen stroke operation and each moving position of the first handwriting pen stroke operation are used as the first pre-stroke positions.
[0263] B25. The electronic device according to claim B16, wherein, when the processor executes the step of displaying a first marking line below the first struck-through text, the executable instructions cause the processor to perform the following operations:
[0264] Detecting whether there is any struck-out text in the first struck-out text;
[0265] If the first struck-through text is detected to contain the struck-through text, detecting unstrike-through text in the first struck-through text;
[0266] If the uncrossed text is detected, the first marking line is added and displayed below the uncrossed text.
[0267] B26. The electronic device according to claim B25, wherein, after the processor executes the step of detecting whether there is a struck-out word in the first struck-out text, the executable instructions further cause the processor to execute the following operations:
[0268] If it is detected that the first struck-out text does not contain the struck-out text, the first marking line is added and displayed below all the characters of the first struck-out text.
[0269] B27. The electronic device according to any one of claims B16 to B26, wherein, when the processor executes the step of displaying the first reading page of the electronic book, the executable instructions cause the processor to perform the following operations:
[0270] In response to the user's second stroke confirmation operation on the second reading page of the e-book, the first reading page of the e-book is displayed, and the second reading page is a reading page adjacent to the first reading page. The second stroke confirmation operation includes the user's second handwriting pen stroke operation on the second reading page staying in the target display area of the second reading page for a first preset time.
[0271] B28. The electronic device according to claim B27, wherein, after the processor executes the displaying of the first reading page of the electronic book, the executable instructions further cause the processor to perform the following operations:
[0272] timing the display time of the first reading page;
[0273] When the processor executes the first handwriting stroke operation in response to the user's first reading page, determining a first pre-stroke position of a first pre-stroked line drawn by the first handwriting stroke operation, the executable instructions cause the processor to perform the following operations:
[0274] In a case where the display duration is less than a second preset duration, the first pre-drawn line position is determined in response to the first handwriting pen drawing operation.
[0275] B29. The electronic device according to claim B27, wherein the executable instructions further cause the processor to perform the following operations:
[0276] In response to the user's return operation to the second reading page, the second marking line is displayed below the second struck-out text in the second reading page, and the second struck-out text is determined according to the second pre-strike position and second pre-strike type of the second pre-strike line drawn according to the second handwriting pen stroke operation.
[0277] B30. The electronic device according to any one of claims B16 to B29, wherein the executable instructions further cause the processor to perform the following operations:
[0278] The newly added marking line of the electronic book and the newly added underlined text corresponding to the newly added marking line are stored.
[0279] C31. A computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the marking line drawing method for an electronic book described in any one of claims A1 to A15.
[0280] The various component embodiments of the present invention can be implemented in hardware in whole or in part, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all of the functions of some or all of the components in the electronic device according to an embodiment of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0281] The above description is merely a preferred embodiment of the present invention and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present invention is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in the present invention.
[0282] In addition, although adopting specific order to describe each operation, this should not be interpreted as requiring these operations to be executed in the specific order shown or in sequential order.Under certain environment, multitasking and parallel processing may be advantageous.Similarly, although comprising some specific implementation details in the above discussion, these should not be interpreted as limiting the scope of the present invention.Some features described in the context of independent embodiment can also be implemented in single embodiment in combination.On the contrary, the various features described in the context of independent embodiment also can be implemented in multiple embodiments individually or in the mode of any suitable subcombination.
[0283] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should 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 merely example forms of implementing the claims.
Claims
1. A method for drawing marking lines in an electronic book, characterized in that: include: displaying a first reading page of an e-book, wherein the first reading page includes a first e-book text; In response to a first handwriting stroke operation of a user on the first reading page, determining a first pre-stroke position of a first pre-stroke line drawn by the first handwriting stroke operation; In response to the user's first line determination operation on the first reading page, determining a first pre-marked line type to which the first pre-marked line belongs according to the first pre-marked line position; determining a first marked text in the first e-book text according to the first pre-marked position and the first pre-marked type; displaying a first marking line below the first struck-through text; The determining of the first marked text in the first e-book text according to the first pre-marked position and the first pre-marked type includes: If the first pre-marked line type is a curve type, determining a first rectangular area of a first minimum circumscribed rectangle of the first pre-marked line according to the first pre-marked line position; Determining a first stroke start character and a first stroke end character in the first e-book text according to the first rectangular area; Using the first text segment including the first strike-through start character and the first strike-through end character as the first strike-through text; Among them, the first text segment containing the first strike-through starting text and the first strike-through ending text is taken as the first strike-through text, including: if the first strike-through starting text and the first strike-through ending text are not in the same text line, then the first text segment includes the first strike-through starting text, all characters located in the text line to which the first strike-through starting text belongs and after the first strike-through starting text along the reading direction of the first reading page, all characters located in all text lines between the text line to which the first strike-through starting text belongs and the text line to which the second strike-through starting text belongs, the first strike-through ending text, and all characters located in the text line to which the first strike-through ending text belongs and before the first strike-through ending text along the reading direction of the first reading page.
2. The method according to claim 1, characterized in that After determining a first pre-drawn line position of a first pre-drawn line drawn by the first handwriting pen stroke operation, the method further includes: In the first reading page, displaying the first pre-marked line according to the first pre-marked line position; The step of displaying a first marking line below the first struck-through text includes: The first pre-strike line is replaced by displaying the first marking line below the first struck text.
3. The method according to claim 2, characterized in that The first reading page includes a first text layer and a first handwriting layer covering the first text layer, the first e-book text is located in the first text layer, and the first pre-marked line is located in the first handwriting layer; The replacing the first pre-strike line with displaying the first marking line below the first struck-through text includes: canceling display of the first pre-drawn line in the first handwriting layer; The first marking line is displayed below the first ruled text in the first text layer.
4. The method according to any one of claims 1 to 3, characterized in that The determining, based on the first pre-marked line position, a first pre-marked line type to which the first pre-marked line belongs includes: detecting whether the first pre-marked line has an inflection point according to the position of the first pre-marked line; If it is detected that the first pre-marked line has the inflection point, determining that the first pre-marked line type is a curve type; If it is detected that the first pre-marked line does not have the inflection point, it is determined that the first pre-marked line is a straight line type.
5. The method according to claim 1, wherein The step of determining a first stroke start character and a first stroke end character in the first e-book text according to the first rectangular position includes: Determining, in the first e-book text, a first candidate character located within the first rectangular area; Using the first candidate character adjacent to the upper left corner of the first rectangular area as the first stroke starting character; The first candidate character adjacent to the lower right corner of the first rectangular area is used as the first stroke ending character.
6. The method according to claim 1, characterized in that The determining of the first marked text in the first e-book text according to the first pre-marked position and the first pre-marked type includes: If the first pre-marked line type is a straight line type, determining a first pre-marked start character and a first pre-marked end character in the first e-book text according to the first pre-marked line position; A first text segment including the first stroke start character and the first stroke end character is used as the first stroke text.
7. The method according to claim 6, characterized in that The step of determining a first line start character and a first line end character in the first e-book text according to the first pre-line position includes: determining, in the first e-book text, first candidate characters corresponding to respective endpoints of the first pre-marked line according to the first pre-marked line position; The first stroke start character and the first stroke end character are determined in each of the first candidate characters according to the relative positional relationship between the first candidate characters.
8. The method according to any one of claim 1, characterized in that The determining a first pre-drawn line position of a first pre-drawn line drawn by the first handwriting pen stroke operation includes: Calculating each moving position of the first handwriting pen stroke operation according to the starting position of the first handwriting pen stroke operation and each moving displacement information of the first handwriting pen stroke operation; The starting position of the first handwriting pen stroke operation and each moving position of the first handwriting pen stroke operation are used as the first pre-stroke positions.
9. The method according to claim 1, characterized in that The step of displaying a first marking line below the first struck-through text includes: Detecting whether there is any struck-out text in the first struck-out text; If the first struck-through text is detected to contain the struck-through text, detecting unstrike-through text in the first struck-through text; If the uncrossed text is detected, the first marking line is added and displayed below the uncrossed text.
10. The method according to claim 9, characterized in that After detecting whether there is a struck-out character in the first struck-out text, the method further includes: If it is detected that the first struck-out text does not contain the struck-out text, the first marking line is added and displayed below all the characters of the first struck-out text.
11. The method according to any one of claims 1, characterized in that The displaying of the first reading page of the e-book includes: In response to the user's second stroke confirmation operation on the second reading page of the e-book, the first reading page of the e-book is displayed, and the second reading page is a reading page adjacent to the first reading page. The second stroke confirmation operation includes the user's second handwriting pen stroke operation on the second reading page staying in the target display area of the second reading page for a first preset time.
12. The method according to claim 11, characterized in that After displaying the first reading page of the electronic book, the method further includes: timing the display time of the first reading page; The determining of a first pre-drawn line position of a first pre-drawn line drawn by a first handwriting stroke operation on the first reading page in response to the user's first handwriting stroke operation includes: In a case where the display duration is less than a second preset duration, the first pre-drawn line position is determined in response to the first handwriting pen drawing operation.
13. The method according to claim 11, characterized in that The method further comprises: In response to the user's return operation to the second reading page, a second marking line is displayed below the second struck-out text in the second reading page, and the second struck-out text is determined according to the second pre-strike position and second pre-strike type of the second pre-strike drawn according to the second handwriting pen stroke operation.
14. The method according to any one of claims 1, characterized in that The method further comprises: The newly added marking line of the electronic book and the newly added underlined text corresponding to the newly added marking line are stored.
15. An electronic device, characterized in that: The system comprises a processor and a memory, wherein the memory is configured to store executable instructions, and the executable instructions enable the processor to perform the following operations: displaying a first reading page of an e-book, wherein the first reading page includes a first e-book text; In response to a first handwriting stroke operation of a user on the first reading page, determining a first pre-stroke position of a first pre-stroke line drawn by the first handwriting stroke operation; In response to the user's first line determination operation on the first reading page, determining a first pre-marked line type to which the first pre-marked line belongs according to the first pre-marked line position; determining a first marked text in the first e-book text according to the first pre-marked position and the first pre-marked type; displaying a first marking line below the first struck-through text; When the processor executes the step of determining the first marked text in the first electronic book text according to the first pre-marked position and the first pre-marked type, the executable instructions cause the processor to perform the following operations: If the first pre-marked line type is a curve type, determining a first rectangular area of a first minimum circumscribed rectangle of the first pre-marked line according to the first pre-marked line position; Determining a first stroke start character and a first stroke end character in the first e-book text according to the first rectangular area; Using the first text segment including the first strike-through start character and the first strike-through end character as the first strike-through text; When the processor executes the step of using the first text segment including the first underline start character and the first underline end character as the first underline text, the executable instructions cause the processor to perform the following operations: If the first stroke start text and the first stroke end text are not in the same text line, then the first text segment includes the first stroke start text, all text located in the text line to which the first stroke start text belongs and after the first stroke start text along the reading direction of the first reading page, all text located in all text lines between the text line to which the first stroke start text belongs and the text line to which the second stroke start text belongs, the first stroke end text, and all text located in the text line to which the first stroke end text belongs and before the first stroke end text along the reading direction of the first reading page.
16. The electronic device according to claim 15, characterized in that After the processor determines a first pre-drawn line position of a first pre-drawn line drawn by the first handwriting stroke operation, the executable instructions further cause the processor to perform the following operations: In the first reading page, displaying the first pre-marked line according to the first pre-marked line position; When the processor executes the step of displaying a first marking line below the first struck-through text, the executable instructions cause the processor to perform the following operations: The first pre-strike line is replaced by displaying the first marking line below the first struck text.
17. The electronic device according to claim 16, wherein: The first reading page includes a first text layer and a first handwriting layer covering the first text layer, the first e-book text is located in the first text layer, and the first pre-marked line is located in the first handwriting layer; When the processor replaces the first pre-strike line with the first marking line displayed below the first struck text, the executable instructions cause the processor to perform the following operations: canceling display of the first pre-drawn line in the first handwriting layer; The first marking line is displayed below the first ruled text in the first text layer.
18. The electronic device according to any one of claims 15 to 17, characterized in that: When the processor executes the step of determining, based on the first pre-marked line position, a first pre-marked line type to which the first pre-marked line belongs, the executable instructions cause the processor to perform the following operations: detecting whether the first pre-marked line has an inflection point according to the position of the first pre-marked line; If it is detected that the first pre-marked line has the inflection point, determining that the first pre-marked line type is a curve type; If it is detected that the first pre-marked line does not have the inflection point, it is determined that the first pre-marked line is a straight line type.
19. The electronic device according to claim 15, wherein: When the processor executes the step of determining the first stroke start character and the first stroke end character in the first e-book text according to the first rectangular position, the executable instructions cause the processor to perform the following operations: Determining, in the first e-book text, a first candidate character located within the first rectangular area; Using the first candidate character adjacent to the upper left corner of the first rectangular area as the first stroke starting character; The first candidate character adjacent to the lower right corner of the first rectangular area is used as the first stroke ending character.
20. The electronic device according to claim 15, wherein When the processor executes the step of determining the first marked text in the first electronic book text according to the first pre-marked position and the first pre-marked type, the executable instructions cause the processor to perform the following operations: If the first pre-marked line type is a straight line type, determining a first pre-marked start character and a first pre-marked end character in the first e-book text according to the first pre-marked line position; A first text segment including the first stroke start character and the first stroke end character is used as the first stroke text.
21. The electronic device according to claim 20, characterized in that When the processor executes the step of determining a first stroke start character and a first stroke end character in the first e-book text according to the first pre-stroke position, the executable instructions cause the processor to perform the following operations: determining, in the first e-book text, first candidate characters corresponding to respective endpoints of the first pre-marked line according to the first pre-marked line position; The first stroke start character and the first stroke end character are determined in each of the first candidate characters according to the relative positional relationship between the first candidate characters.
22. The electronic device according to any one of claims 15, characterized in that: When the processor performs the step of determining a first pre-drawn line position of a first pre-drawn line drawn by the first handwriting pen stroke operation, the executable instructions cause the processor to perform the following operations: Calculating each moving position of the first handwriting pen stroke operation according to the starting position of the first handwriting pen stroke operation and each moving displacement information of the first handwriting pen stroke operation; The starting position of the first handwriting pen stroke operation and each moving position of the first handwriting pen stroke operation are used as the first pre-stroke positions.
23. The electronic device according to claim 15, wherein: When the processor executes the step of displaying a first marking line below the first struck text, the executable instructions cause the processor to perform the following operations: Detecting whether there is any struck-out text in the first struck-out text; If the first struck-through text is detected to contain the struck-through text, detecting unstrike-through text in the first struck-through text; If the uncrossed text is detected, the first marking line is added and displayed below the uncrossed text.
24. The electronic device according to claim 23, wherein: After the processor executes the step of detecting whether there is a struck-out character in the first struck-out text, the executable instructions further cause the processor to execute the following steps: If it is detected that the first struck-out text does not contain the struck-out text, the first marking line is added and displayed below all the characters of the first struck-out text.
25. The electronic device according to any one of claims 15, characterized in that When the processor executes the step of displaying the first reading page of the electronic book, the executable instructions cause the processor to perform the following operations: In response to the user's second stroke confirmation operation on the second reading page of the e-book, the first reading page of the e-book is displayed, and the second reading page is a reading page adjacent to the first reading page. The second stroke confirmation operation includes the user's second handwriting pen stroke operation on the second reading page staying in the target display area of the second reading page for a first preset time.
26. The electronic device according to claim 25, characterized in that After the processor executes the step of displaying the first reading page of the electronic book, the executable instructions further cause the processor to execute the following steps: timing the display time of the first reading page; When the processor determines a first pre-drawn line position of a first pre-drawn line drawn by the first handwriting stroke operation in response to the user's first handwriting stroke operation on the first reading page, the executable instructions cause the processor to perform the following operations: In a case where the display duration is less than a second preset duration, the first pre-drawn line position is determined in response to the first handwriting pen drawing operation.
27. The electronic device according to claim 25, characterized in that The executable instructions further cause the processor to: In response to the user's return operation to the second reading page, a second marking line is displayed below the second struck-out text in the second reading page, and the second struck-out text is determined according to the second pre-strike position and second pre-strike type of the second pre-strike drawn according to the second handwriting pen stroke operation.
28. The electronic device according to any one of claims 15, characterized in that: The executable instructions further cause the processor to: The newly added marking line of the electronic book and the newly added underlined text corresponding to the newly added marking line are stored.
29. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the method for drawing a marking line for an electronic book according to any one of claims 1 to 14.
Citation Information
Patent Citations
Digital ink annotation process and system for recognizing, anchoring and reflowing digital ink annotations
CN1609846A