WO2022063191A1 - 电子书手写笔记的显示方法、计算设备及计算机存储介质 - Google Patents

电子书手写笔记的显示方法、计算设备及计算机存储介质 Download PDF

Info

Publication number
WO2022063191A1
WO2022063191A1 PCT/CN2021/119987 CN2021119987W WO2022063191A1 WO 2022063191 A1 WO2022063191 A1 WO 2022063191A1 CN 2021119987 W CN2021119987 W CN 2021119987W WO 2022063191 A1 WO2022063191 A1 WO 2022063191A1
Authority
WO
WIPO (PCT)
Prior art keywords
book
handwritten
line segment
character
marked
Prior art date
Application number
PCT/CN2021/119987
Other languages
English (en)
French (fr)
Inventor
杨树彬
Original Assignee
掌阅科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 掌阅科技股份有限公司 filed Critical 掌阅科技股份有限公司
Publication of WO2022063191A1 publication Critical patent/WO2022063191A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes

Definitions

  • the present disclosure relates to the technical field of electronic books, and in particular, to a method for displaying handwritten notes in electronic books, a computing device, and a computer storage medium.
  • e-book terminals support users to write notes in the e-book by handwriting, for example, marking the content of interest to the user by handwriting marking lines in the e-book with a stylus matching the user terminal.
  • the present disclosure is proposed to provide a display method, computing device and computer storage medium for handwritten notes of an electronic book that overcome the above problems or at least partially solve the above problems.
  • a method for displaying handwritten notes of an e-book comprising: identifying a preset type of handwritten mark line from the handwritten note of the e-book, and determining a plurality of e-books marked by the preset type of handwritten mark line Characters; based on multiple e-book characters, split the preset type handwritten mark line by character to obtain multiple mark line segments corresponding to the preset type of handwritten mark line; for any mark line segment, identify Output the e-book character corresponding to the marked line segment, and record the offset of the marked line segment relative to the corresponding e-book character; The offset and/or mark line segment are scaled; according to the offset corresponding to the mark line segment before or after scaling processing, and the e-book character corresponding to the mark line segment after the preset format adjustment Position, showing marker line segments before or after scaling.
  • a computing device comprising: a processor, a memory, a communication interface and a communication bus, the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store at least one Executable instructions, which cause the processor to do the following:
  • a non-volatile computer-readable storage medium where at least one executable instruction is stored in the non-volatile computer-readable storage medium, and the executable instruction causes a processor to execute the above-mentioned Operations corresponding to the display method of handwritten notes in e-books.
  • a computer program product comprising a computing program stored on the above-mentioned non-volatile computer-readable storage medium.
  • a preset type of handwritten mark line is first identified from the handwritten note of the electronic book, and a plurality of e-books marked by the preset type of handwritten mark line are determined.
  • FIG. 1 shows a flowchart of a method for displaying handwritten notes in an electronic book according to Embodiment 1 of the present disclosure
  • FIG. 2 shows a schematic diagram of a handwritten note provided according to Embodiment 1 of the present disclosure
  • FIG. 3 shows a schematic diagram of a marker line segment provided according to Embodiment 1 of the present disclosure
  • FIG. 4 shows a flowchart of a method for displaying handwritten notes in an electronic book according to Embodiment 2 of the present disclosure
  • FIG. 5 shows a schematic diagram of a closed area corresponding to a marking line provided according to Embodiment 2 of the present disclosure
  • FIG. 6 shows a flowchart of a method for displaying handwritten notes in an electronic book according to Embodiment 3 of the present disclosure
  • FIG. 7 shows a flowchart of a method for displaying handwritten notes in an electronic book according to Embodiment 4 of the present disclosure
  • FIG. 8 shows a schematic structural diagram of a computing device according to Embodiment 6 of the present disclosure.
  • FIG. 1 shows a flowchart of a method for displaying handwritten notes in an electronic book according to Embodiment 1 of the present disclosure.
  • the method provided in this embodiment may be executed by a reading terminal (such as a mobile phone, tablet, reader, smart wearable device, etc.) on the user side; or, the method provided in this embodiment may be executed by a reading terminal on the user side
  • the interaction with the server is realized, for example, the reading terminal on the user side sends a request to the server, and after the server performs data processing, the server sends the content to be displayed to the reading terminal on the user side for display by the reading terminal on the user side.
  • the method includes:
  • Step S110 Identifying a preset type of handwritten marking line from the e-book handwritten notes, and determining a plurality of e-book characters marked by the preset type of handwritten marking line.
  • handwritten notes contain many types.
  • One of them is a handwritten character type, that is, handwritten notes are presented in the form of characters, such as handwritten note B in Figure 2, which is a handwritten character located between lines; character of.
  • handwritten note B in Figure 2
  • handwritten note C in FIG. 2, and so on.
  • the present embodiment further optimizes the display of this type of marking line.
  • the preset type of handwritten mark line in this embodiment is a circle mark line for a plurality of consecutive e-book characters in the same row.
  • the preset type of handwritten marking line may be a rectangular marking line, an oval marking line, a wavy marking line, an irregular circle marking line, and the like.
  • a corresponding method can be used to identify a preset type of handwritten mark line from the e-book handwritten notes, and then determine a plurality of e-book characters marked by the preset type of handwritten mark line.
  • the e-book characters in the present disclosure are characters existing in the original text of the e-book.
  • the marked e-book character in the process of determining a plurality of e-book characters marked by a preset type of handwritten marking line, the marked e-book character can be determined according to the coverage of the e-book character by the preset type of handwritten marking line marking.
  • the handwritten mark line A of the preset type covers the e-book characters "Yes or no success or failure", so that it is determined that the multiple e-book characters marked by the preset type of handwritten mark A are "Yes or no success or failure.” empty head”.
  • Step S120 Based on a plurality of e-book characters, split a preset type of handwritten mark line by character to obtain a plurality of mark line segments corresponding to the preset type of handwritten mark line.
  • split processing is performed on the preset type of handwritten mark line, so as to obtain the handwritten mark with the preset type.
  • Lines correspond to multiple marker line segments.
  • the preset type of handwritten mark line may be split by character according to a plurality of e-book characters marked by the preset type of handwritten mark line.
  • a predetermined type of handwritten mark line may be split by character by using the overlapping rectangle circumscribed line of two adjacent e-book characters as a dividing line.
  • each dashed box is the circumscribed rectangle of each e-book character, and in the case of the same font, the size of each e-book circumscribed rectangle is the same.
  • the five dashed lines in the figure are dividing lines, which are also the overlapping lines of the circumscribed rectangles of two adjacent e-book characters. By dividing the five dividing lines, the marking line A is divided to obtain the A1-A12 marking line segment.
  • Step S130 For any marked line segment, identify the e-book character corresponding to the marked line segment, and record the offset of the marked line segment relative to the corresponding e-book character.
  • the e-book character corresponding to the marker line segment is identified from a plurality of e-book characters marked by a preset type of handwritten marker line.
  • each marked line segment corresponds to one e-book character
  • one e-book character may correspond to one or more marked line segments.
  • the e-book character with the closest distance to the marking line segment can be identified, and then the e-book character is regarded as the corresponding marking line segment.
  • Ebook characters Still taking Fig.
  • the marked line segment A1 is the closest to the e-book character "Yes”, then the e-book character corresponding to the marked line segment A1 is "Yes”.
  • the book character is "NO”
  • the e-book characters corresponding to the marked line segments A3 and A8 are "Success”
  • the e-book characters corresponding to the marked line segments A4 and A9 are "Failed”
  • the marked line segments A5 and A10 correspond to
  • the e-book character is "zhuan”
  • the e-book character corresponding to the marked line segments A6 and A11 is "head”
  • the e-book character corresponding to the marked line segment A12 is "empty”.
  • the offset of the marked line segment relative to the corresponding e-book character is further recorded.
  • the offset of the marked line segment relative to the corresponding e-book character includes: a left offset, a right offset, an upper offset, and a lower offset.
  • the left offset is the distance between the marked line segment and the left side of the e-book character
  • the right offset is the distance between the marked line segment and the right side of the e-book character
  • the upper offset is the distance between the marked line segment and the e-book.
  • the distance from the upper end of the character, and the lower offset is the distance between the marker line segment and the lower end of the e-book character.
  • the e-book character corresponding to the mark line segment is the first character marked by a preset type handwritten mark line, then record the mark line segment relative to the corresponding e-book character.
  • marker line segment A1 in FIG. 3 For example, for marker line segment A1 in FIG. 3, record the upper offset, lower offset, and left offset of marker line segment A1 relative to "Yes”; for marker line segment A12, record The upper offset, lower offset and right offset of marker line segment A12 relative to “empty”; and for marker lines A2-A6, relative to “not”, “success”, and “failure” are recorded respectively , “Turn”, "Head” upper offset, and for marking lines A7-A11, record the lower offset relative to "Negative”, “Success”, “Failure”, “Turn”, “Head”, respectively quantity.
  • Step S140 If the preset format adjustment of the e-book is detected, scaling processing is performed on the offset corresponding to the marked line segment and/or the marked line segment.
  • the preset format adjustment in this embodiment is specifically the format adjustment that can cause the position of the e-book characters to change, such as font size adjustment, word spacing adjustment, line spacing adjustment, page margin adjustment, horizontal and vertical screen switching, and folding screen devices.
  • the preset format adjustment of the e-book may be caused by the user performing the preset format adjustment operation on the reading terminal on the user side. For example, when the user performs the font enlargement operation, the preset format adjustment of the e-book will be triggered;
  • the preset format adjustment of the book can also be caused by the process of synchronizing notes between different terminals.
  • the offset corresponding to the marked line segment is scaled, and/or the marked line itself is scaled.
  • Step S150 Display the mark before or after the scaling process according to the offset corresponding to the marker line segment before or after the scaling process, and the position of the e-book character corresponding to the marker line segment after the preset format adjustment line segment.
  • the to-be-received value of the marker line segment after the format adjustment is calculated. Display the position, and then display the marker line segment before zooming or after zooming at the to-be-displayed position. After the displayed multiple marking lines are connected in sections, a new marking line is formed, and the e-book characters marked by the marking line are the same as the e-book characters marked by the original marking line.
  • the marker line segment is adjusted according to the offset of the marker line segment before the scaling process and the marker line segment after adjustment in the preset format.
  • the position of the e-book character corresponding to the segment will display the marked line segment after scaling;
  • the offset of the segment, and the position of the e-book character corresponding to the marker segment after the preset format adjustment displays the marker segment before scaling; if the marker segment and the offset corresponding to the marker segment are both The zooming process is performed, and the zoomed marker line segment is displayed according to the offset of the marked line segment after the zooming process and the position of the e-book character corresponding to the marked line segment after the preset format adjustment operation.
  • this embodiment optimizes the display of the circle-selected mark line that circles multiple consecutive e-book characters in the same row.
  • the mark line is split by character to obtain multiple mark lines Segment, and bind each marked line segment with the marked e-book character.
  • each marked line segment As the processing unit to perform scaling processing, and finally according to the processing result and binding
  • the position of the e-book character is displayed, and each mark line segment is displayed, so that the mark line displayed after the format adjustment can be matched with the original marked e-book character, the restoration degree of the mark line after the format adjustment is improved, and the user experience is improved; and , in this embodiment, in the process of scaling processing with each marked line segment as the processing unit, the offset corresponding to the marked line segment and/or the marked line segment itself is processed, so as to achieve fine-grained marking line segmentation processing to further improve the matching degree between the finally displayed marked line and the identified e-book characters.
  • FIG. 4 shows a flowchart of a method for displaying handwritten notes in an electronic book according to Embodiment 2 of the present disclosure.
  • the method for displaying handwritten notes in an electronic book provided in this embodiment is a further optimization of the display method in the first embodiment.
  • the method includes:
  • Step S410 Identify the first type of handwritten notes, the second type of handwritten notes, the third type of handwritten notes, and the fourth type of handwritten marks from the e-book handwritten notes according to the number and continuity of the e-book characters covered by the e-book handwritten notes.
  • the first type of handwritten notes covers multiple consecutive e-book characters; the second type of handwritten notes covers multiple discontinuous e-book characters, the third type of handwritten notes covers a single e-book character, and the fourth type of handwritten notes does not cover electronic book character.
  • the closed area corresponding to the e-book handwritten note can be determined: wherein, if the e-book handwritten note is a character type handwritten note, the closed area corresponding to the e-book handwritten note is the circumscribed rectangle of the e-book handwritten note; If the e-book handwritten note is a closed mark line, the closed area corresponding to the e-book handwritten note is the area enclosed by the mark line; if the e-book handwritten note is a non-closed mark line, then the e-book handwritten note corresponds to The closed area is the area jointly enclosed by the line connecting the end point of the marker line to the start point and the marker line.
  • the number of e-book characters covered by the enclosed area corresponding to the handwritten note is determined. Wherein, if the degree of coincidence between the enclosed area corresponding to the e-book handwritten note and the circumscribed rectangle of the e-book character is greater than the preset threshold, it is determined that the e-book handwritten note covers the e-book character.
  • the degree of coincidence between the enclosed area corresponding to the e-book handwritten note and the enclosing rectangle of the e-book character is specifically the ratio of the overlapping area of the enclosed area corresponding to the e-book handwritten note and the enclosing rectangle of the e-book character to the area of the enclosing rectangle of the e-book character .
  • the handwritten note covers a single e-book character
  • the handwritten note is the third type of handwritten note; if the handwritten note does not cover the e-book character, the handwritten note is the fourth type of handwritten note without the e-book character.
  • the handwritten note L1 is a closed curve, then the closed area corresponding to the handwritten note L1 is the closed area enclosed by the handwritten note L1, and the degree of coincidence between the closed area and the circumscribed rectangle of the e-book character “one” is greater than the preset threshold (The preset threshold may be 70%), then it is determined that the handwritten note L1 covers the e-book character "one".
  • the preset threshold may be 70%
  • the e-book characters covered by the enclosed area corresponding to the handwritten note L1 are "one” and “two” , “three”, “four”, “five”, “six”, “seven”, “eight”;
  • the handwritten note L2 is a non-closed curve, its starting point is P1, and the end point is P2, then the closed area corresponding to the handwritten note L2 is The enclosed area enclosed by the handwritten note L2 and the line segment P1P2, the enclosed area is external to the e-book characters "one", "two", “three”, “four”, five”, “six”, “seven”, and “eight”
  • the e-book characters covered by the enclosed area corresponding to handwritten note L2 are "one", "two", “three”, “four”, five”, “six”, “seven”, “Eight”;
  • the handwritten note L3 is a non-closed curve, its starting point is P3 and the end point is P4, then the closed area corresponding to the hand
  • the handwritten note L4 is the handwritten character "I", and its corresponding enclosed area is the circumscribed rectangle of the character, and the overlap of the enclosed area with the circumscribed rectangles of the e-book characters "three” and “four” is higher than 70%, Then the handwritten note L4 covers the e-book characters "three" and "four".
  • the continuity of the covered closed area is further determined. If the plurality of e-book characters are continuous, the handwritten note is the first type of handwritten note, and if the plurality of e-book characters are not continuous, the handwritten note is the second type of handwritten note. As shown in Figure 2, the e-book characters covered by the enclosed area corresponding to the handwritten note A are continuous characters, then the handwritten note A is the first type of handwritten note; the e-book characters covered by the enclosed area corresponding to the handwritten note D are discontinuous, then mark Line B is the second type of handwritten notes.
  • Step S420 Use the marked line in the first type of handwritten note as a preset type of handwritten marked line.
  • a preset character recognition system may be used to determine whether the handwritten note is a handwritten character, and if not, it is determined that the handwritten note is a handwritten mark line.
  • This embodiment does not limit the specific recognition method of the preset character recognition system. For example, it can compare the handwritten note with the characters in the preset information library, and if the matching degree is higher than the preset threshold, it is determined that the handwritten note is handwritten character; otherwise, the handwritten note is determined to be a handwritten mark.
  • Step S430 splitting the preset type handwritten mark line by character to obtain a plurality of mark line segments; record the e-book characters and the offsets corresponding to each mark line segment respectively, and monitor the occurrence of a preset in the e-book. After format adjustment, according to the offset corresponding to the marked line segment before or after scaling processing, and the position of the e-book character corresponding to the marked line segment after the preset format adjustment, the display before or after scaling processing is performed. Mark line segments.
  • Step S440 Determine the identification character corresponding to the second type of handwritten note from the multiple e-book characters covered by the second type of handwritten note; if it is detected that a preset format adjustment occurs in the e-book, a preset control is displayed near the identification character; In response to the triggering operation for the preset control, the e-book page image when the second type of handwritten note is generated is displayed.
  • this embodiment further optimizes the display of the second type of handwritten notes.
  • the e-book page image when the second type of handwritten note is generated may be acquired by means of screenshots and the like, and the e-book page image is stored.
  • identifying characters corresponding to the second type of handwritten notes are determined from a plurality of e-book characters covered by the second type of handwritten notes.
  • one e-book character may be randomly selected from the plurality of e-book characters as the identification character, or alternatively, an e-book character with a high degree of overlap with the enclosed area of the second type of handwritten note may be selected as the identification character.
  • the preset control is displayed near the identification character.
  • the present embodiment does not limit the display form of the preset controls, for example, the preset controls may be presented in the form of buttons, floating windows, and the like. Further, the user's triggering operation on the preset control is monitored, and in response to the triggering operation on the preset control, the e-book page image when the second type of handwritten note is generated is displayed.
  • the character notes in the first type of handwritten notes from the covered multiple e-book characters, identify the first character (the first character may be the closest starting point of the character note). e-book character), and record the relative position of the character note relative to the first character; after the preset format adjustment of the e-book occurs, scale the character note according to the size of the first character, and determine the character note according to the new position of the first character , and then display the scaled character note at the new position of the character note.
  • a single e-book character covered by the handwritten note can be determined, and the relative position of the third type of handwritten note and the single e-book character can be recorded.
  • scale the third type of handwritten note according to the size change of the single e-book character; and according to the new position of the single e-book character, and the recorded third type of handwritten note and the single e-book
  • the relative position of the characters determines the new position of the third type of handwritten note, and then displays the zoomed third type of handwritten note at the new position.
  • the nearest e-book character to the fourth type of handwritten note may be determined, and the relative relationship between the fourth type of handwritten note and the nearest e-book character may be recorded Position; after the preset format adjustment of the e-book occurs, the character note is scaled according to the size of the latest e-book character, and the new position of the handwritten note is determined according to the new position of the recent e-book character, and then the new position of the handwritten note is The position shows the scaled character note.
  • this embodiment identifies various types of e-book notes through the number and continuity of covered e-book characters, so that handwritten notes to be optimized can be identified quantitatively, accurately, and automatically; further, this implementation
  • the page images of the e-book when the second type of handwritten notes are generated are displayed in a folded manner, so that the user can still view the e-book after the e-book format is adjusted.
  • the second type of handwritten notes of characters can further improve the user experience and the scope of application of the method.
  • FIG. 6 shows a flowchart of a method for displaying handwritten notes in an electronic book according to Embodiment 3 of the present disclosure.
  • the method for displaying handwritten notes in an electronic book provided in this embodiment is further optimized for the method in the first embodiment.
  • the method includes:
  • Step S610 Identify a preset type of handwritten marking line from the e-book handwritten notes, and determine a plurality of e-book characters marked by the preset type of handwritten marking line.
  • Step S620 Based on a plurality of e-book characters, split a preset type of handwritten mark line by character to obtain a plurality of mark line segments corresponding to the preset type of handwritten mark line.
  • Step S630 For any marked line segment, identify the e-book character corresponding to the marked line segment, and record the offset of the marked line segment relative to the corresponding e-book character.
  • Step S640 If the preset format adjustment of the e-book is detected, according to the type of preset format adjustment, scaling processing is performed on the offset corresponding to the marked line segment and/or the marked line segment.
  • the offset corresponding to the segment of the marked line is scaled. Specifically, scaling processing is performed on the upper offset and/or the lower offset corresponding to the marked line segment. Specifically, the proportional scaling processing is performed according to the change of the line spacing. For example, if the line spacing is increased by 10% after adjustment, the upper offset and/or lower offset corresponding to the marked line segment can be increased by 10% in the same proportion.
  • the marking line segment is scaled. Specifically, the marking line segments are scaled in equal proportions according to the change of the font size. For example, if the font size is reduced by 10%, the marking line segment will be reduced by 10% proportionally.
  • the marking line segment is scaled. Specifically, scaling processing is performed on the left offset and/or the right offset corresponding to the marked line segment. Specifically, the marking line segment is scaled in equal proportions according to the change of the word spacing. For example, if the word spacing is increased by 10%, then the marked line segment will be expanded by 10% proportionally.
  • the above three embodiments can be combined accordingly.
  • the line spacing is associated with the font size
  • the font size and line spacing will change, so the upper offset and line spacing corresponding to the marked line segment will be changed. / or the lower offset for scaling, as well as scaling the marker line segment.
  • Step S650 Display the mark before or after the scaling process according to the offset corresponding to the marker line segment before or after the scaling process, and the position of the e-book character corresponding to the marker line segment after the preset format adjustment line segment.
  • this embodiment performs scaling processing on the offset corresponding to the marker line segment and/or the marker line segment, and adopts different scaling processing for different preset format adjustment types. method, so that the mark lines presented after format adjustment can more match the characters of the e-book.
  • FIG. 7 shows a flowchart of a method for displaying handwritten notes in an electronic book according to Embodiment 4 of the present disclosure.
  • the method for displaying handwritten notes in an electronic book provided in this embodiment is further optimized for the method in the first embodiment.
  • Step S710 splitting the preset type handwritten marking line by character to obtain multiple marking line segments; respectively recording the e-book characters and the offsets corresponding to each marking line segment, and monitoring the occurrence of a preset in the e-book.
  • the display before or after scaling processing is performed. Mark line segments.
  • Step S720 Determine whether there is a gap between two adjacent marked line segments, and if so, perform filling processing on the gap.
  • each marker line segment displayed after format adjustment there may be two adjacent marker line segments. There are gaps between segments, so that multiple marker line segments cannot be connected into a continuous marker line, which affects the user experience.
  • each marker line segment presented after format adjustment is scanned to identify two adjacent marker line segments that have a gap, and a corresponding filling method is used to fill the gap.
  • the filling method can include at least one of the following methods:
  • Filling method 1 Fill in the gap according to the drawing parameters of the preset type handwritten mark line during the drawing process.
  • the drawing parameters include at least one of the following parameters: stroke type, drawing color, thickness of the pen tip, drawing arc, drawing inclination, and the like.
  • the gap is filled according to the drawing parameters of the two marked line segments at both ends of the gap.
  • the smooth connection of marked line segments can be realized.
  • the value of the drawing parameter of the segment is the same; if it is inconsistent, the value of the drawing parameter when drawing the gap can be the average value of the drawing parameter of the two marked line segments, or it can be the value of the drawing parameter.
  • the value of the drawing parameter of the two marker line segments is the initial value and the end value, so that the value of the drawing parameter when the gap is drawn is gradually changed within the initial value and the end value, thereby further improving the two marker line segments. the smoothness of the connection.
  • the gap is filled according to the drawing parameters of the two marked line segments at both ends of the gap and the intersection point of the gap.
  • Filling method 2 Cut out a preset length of marking line from the preset type of handwritten marking line, and use the preset length of the marking line to fill in the gap. In this way, the gap can be filled quickly and in batches.
  • a mark line of unit length can be randomly intercepted, and then in the subsequent gap filling process, one or more mark lines of unit length are used to fill in according to the width of the gap; or , cut out the marked line of unit length from the marked line segments at both ends of the gap, and then use the marked line of unit length to fill the gap.
  • the marker line segment is at the end of the line; and A note wrapping mark is displayed at a position near the e-book character corresponding to the mark line segment at the end of the line, thereby indicating that the mark line segments distributed in different lines are originally the same mark line. If the mark line segment that was at the end of the line is no longer at the end of the line after the format adjustment operation again, the note wrapping mark corresponding to the mark line segment is canceled.
  • the continuity between the marked line segments is further scanned; when a gap between two adjacent marked line segments is scanned, the corresponding The method is used to fill the gap, so as to ensure the continuity and integrity of the marked line displayed after the format adjustment, thereby improving the user experience.
  • a non-volatile computer-readable storage medium stores at least one executable instruction, and the computer-executable instruction can execute any of the foregoing method embodiments. Methods.
  • the executable instructions can specifically be used to cause the processor to perform the following operations: identify a preset type of handwritten mark line from the e-book handwritten notes, and determine a plurality of e-book characters marked by the preset type of handwritten mark line; based on the multiple e-books character, split the preset type handwritten mark line by character to obtain multiple mark line segments corresponding to the preset type handwritten mark line; for any mark line segment, identify the mark line segment corresponding to the mark line segment The corresponding e-book character, and record the offset of the marked line segment relative to the corresponding e-book character; if it is detected that the preset format adjustment occurs in the e-book, the offset corresponding to the marked line segment and/or
  • the marker line segment is zoomed; according to the offset corresponding to the marker line segment before or after the zoom process, and the position of the e-book character corresponding to the marker line segment after the preset format adjustment, the display before or after the zoom process is displayed. Scaled marker line segments.
  • the executable instructions cause the processor to perform the following operations: identify the first type of handwritten notes, the first type of handwritten notes, the second type of handwritten notes, Type 2 handwritten notes, type 3 handwritten notes and type 4 handwritten marks; the marks in the first type of handwritten notes are used as the default type of handwritten marks; wherein the first type of handwritten notes covers multiple consecutive e-book characters
  • the second type of handwritten note covers multiple discontinuous e-book characters
  • the third type of handwritten note covers a single e-book character
  • the fourth type of handwritten note does not cover the e-book character.
  • the executable instructions cause the processor to perform the following operations: if the degree of overlap between the enclosed area corresponding to the e-book handwritten note and the circumscribed rectangle of the e-book character is greater than a preset threshold, determine that the e-book is handwritten Notes overlay the eBook characters.
  • the executable instructions cause the processor to perform the following operations: if the e-book handwritten note is a character-type handwritten note, the enclosed area corresponding to the e-book handwritten note is the circumscribed rectangle of the e-book handwritten note; If the e-book handwritten note is a closed mark line, the closed area corresponding to the e-book handwritten note is the area enclosed by the mark line; if the e-book handwritten note is a non-closed mark line, then the e-book handwritten note corresponds to The closed area is the area jointly enclosed by the line connecting the end point of the marker line to the start point and the marker line.
  • the executable instructions cause the processor to perform the following operations: for the second type of handwritten note, determine from the plurality of e-book characters covered by the second type of handwritten note that the corresponding handwritten note of the second type corresponds to If the preset format adjustment of the e-book is detected, the preset control is displayed near the identification character; in response to the trigger operation for the preset control, the e-book page image when the second type of handwritten note is generated is displayed.
  • the executable instructions cause the processor to perform the following operations: using the overlapping rectangles of adjacent two e-book characters as the dividing line, split the preset type handwritten mark line by character; From a plurality of e-book characters marked by a preset type of handwritten marking line, the e-book character with the closest distance to the marking line segment is identified.
  • the executable instructions cause the processor to perform the following operations: if the e-book character corresponding to the marked line segment is the first character of a preset type of handwritten mark line mark, record the marked line segment The upper offset, lower offset and left offset relative to the corresponding e-book character; if the e-book character corresponding to the mark line segment is the tail character of the preset type handwritten mark line mark, record the mark The upper offset, lower offset and right offset of the line segment relative to the corresponding e-book character; if the e-book character corresponding to the marked line segment is not the first character or tail of the preset type handwritten mark line mark character, the upper or lower offset of the marked line segment relative to the corresponding e-book character is recorded.
  • the preset format adjustment includes at least one of the following format adjustments: font size adjustment, character spacing adjustment, line spacing adjustment, page margin adjustment, horizontal and vertical screen switching, and in a folding screen device Switch between folded and unfolded states.
  • the executable instructions cause the processor to perform the following operation: perform scaling processing on the offset corresponding to the marker line segment and/or the marker line segment according to the type of preset format adjustment.
  • the executable instructions cause the processor to perform the following operations: if the line spacing of the e-book changes before and after the preset format is adjusted, scaling the offset corresponding to the marked line segment; and /or, if the font size changes before and after the preset format is adjusted, the marking line segment is scaled; and/or, if the word spacing changes before and after the preset format is adjusted, the marking line segment is scaled.
  • the scaling processing specifically includes performing equal-scale scaling processing according to changes in line spacing, font size, and/or character spacing.
  • the executable instructions cause the processor to perform the following operations: if the marked line segment has been scaled and the offset corresponding to the marked line segment has not been scaled, then according to the mark before scaling processing The offset of the line segment and the position of the e-book character corresponding to the marked line segment after the preset format adjustment is displayed, and the zoomed marked line segment is displayed; if the marked line segment is not scaled, the marked line segment is displayed. If the corresponding offset is scaled, the mark segment before scaling is displayed according to the offset of the mark segment after scaling and the position of the e-book character corresponding to the mark segment after the preset format adjustment.
  • the e-book corresponding to the marked line segment after the scaling operation is adjusted according to the offset of the marked line segment after scaling and the preset format adjustment operation. The position of the character, showing the scaled marker line segment.
  • the executable instructions cause the processor to perform the following operation: after displaying the marker line segment before the zooming process or after the zooming process, determine whether there is a gap between two adjacent marker line segments , if so, fill the gap.
  • the executable instructions cause the processor to perform the following operations: fill in the gaps according to the drawing parameters of the preset type of handwritten marked lines in the drawing process.
  • the executable instructions cause the processor to perform the following operation: fill the gap according to the drawing parameters of the two marked line segments at both ends of the gap.
  • the drawing parameters include at least one of the following parameters: stroke type, drawing color, pen tip thickness, drawing arc, and drawing slope.
  • the executable instructions cause the processor to perform the following operations: truncate a marker line of a preset length from a preset type of handwritten marker line, and use the marker line of the preset length to fill the gap.
  • the executable instructions cause the processor to perform the following operations: if at least two of the multiple marker line segments are distributed on different lines after the preset format is adjusted, determine the marker at the end of the line Line segment; display the note wrapping mark at the position near the e-book character corresponding to the line segment marked at the end of the line.
  • this embodiment optimizes the display of the circle-selected mark line that circles multiple consecutive e-book characters in the same row.
  • the mark line is split by character to obtain multiple mark lines Segment, and bind each marked line segment with the marked e-book character.
  • each marked line segment As the processing unit to perform scaling processing, and finally according to the processing result and binding
  • the position of the e-book character is displayed, and each mark line segment is displayed, so that the mark line displayed after the format adjustment can be matched with the original marked e-book character, the restoration degree of the mark line after the format adjustment is improved, and the user experience is improved; and , in this embodiment, in the process of scaling processing with each marked line segment as the processing unit, the offset corresponding to the marked line segment and/or the marked line segment itself is processed, so as to achieve fine-grained marking line segmentation processing to further improve the matching degree between the finally displayed marked line and the identified e-book characters.
  • FIG. 8 shows a schematic structural diagram of a computing device according to Embodiment 6 of the present disclosure.
  • the specific embodiment of the present disclosure does not limit the specific implementation of the computing device.
  • the computing device may include: a processor (processor) 802 , a communication interface (Communications Interface) 804 , a memory (memory) 806 , and a communication bus 808 .
  • the processor 802 , the communication interface 804 , and the memory 806 communicate with each other through the communication bus 808 .
  • the communication interface 804 is used for communicating with network elements of other devices such as clients or other servers.
  • the processor 802 is configured to execute the program 810, and specifically may execute the relevant steps in the foregoing method embodiments.
  • the program 810 may include program code including computer operation instructions.
  • the processor 802 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present disclosure.
  • the one or more processors included in the computing device may be the same type of processors, such as one or more CPUs; or may be different types of processors, such as one or more CPUs and one or more ASICs.
  • the memory 806 is used to store the program 810 .
  • Memory 806 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.
  • the program 810 can specifically be used to cause the processor 802 to perform the following operations: identify a preset type of handwritten mark line from the e-book handwritten notes, and determine a plurality of e-book characters marked by the preset type of handwritten mark line; character, split the preset type handwritten mark line by character to obtain multiple mark line segments corresponding to the preset type handwritten mark line; for any mark line segment, identify the mark line segment corresponding to the mark line segment The corresponding e-book character, and record the offset of the marked line segment relative to the corresponding e-book character; if it is detected that the preset format adjustment occurs in the e-book, the offset corresponding to the marked line segment and/or
  • the marker line segment is zoomed; according to the offset corresponding to the marker line segment before or after the zoom process, and the position of the e-book character corresponding to the marker line segment after the preset format adjustment, the display before or after the zoom process is displayed. Scaled marker line segments.
  • the program 810 may be specifically configured to cause the processor 802 to perform the following operations: identify the first type from the e-book handwritten notes according to the number and continuity of the e-book handwritten notes covering the e-book characters Handwritten notes, the second type of handwritten notes, the third type of handwritten notes, and the fourth type of handwritten marks; the mark lines in the first type of handwritten notes are used as the default type of handwritten mark lines; wherein the first type of handwritten notes covers multiple consecutive The second type of handwritten notes covers multiple discrete e-book characters, the third type of handwritten notes covers a single e-book character, and the fourth type of handwritten notes does not cover e-book characters.
  • the program 810 may be specifically configured to cause the processor 802 to perform the following operations: if the degree of overlap between the enclosed area corresponding to the e-book handwritten note and the circumscribed rectangle of the e-book character is greater than a preset threshold, then determine The e-book handwritten notes overlay the e-book characters.
  • the program 810 may be specifically configured to cause the processor 802 to perform the following operations: if the e-book handwritten notes are character-type handwritten notes, the enclosed area corresponding to the e-book handwritten notes is the e-book handwritten notes If the e-book handwritten note is a closed mark line, the closed area corresponding to the e-book handwritten note is the area enclosed by the mark line; if the e-book handwritten note is a non-closed mark line, the e-book handwritten note The closed area corresponding to the handwritten note is the line connecting the end point of the marked line to the starting point, and the area jointly enclosed by the marked line.
  • the program 810 may be specifically configured to cause the processor 802 to perform the following operations: for the second type of handwritten note, determine a second type of handwritten note from a plurality of e-book characters covered by the second type of handwritten note The identification character corresponding to the handwritten note; if the preset format adjustment of the e-book is detected, the preset control is displayed near the identification character; in response to the trigger operation for the preset control, the electronic document when the second type of handwritten note is generated is displayed. Book page image.
  • the program 810 can be specifically configured to cause the processor 802 to perform the following operations: take the overlapping rectangle circumscribed line of two adjacent e-book characters as the dividing line, press the preset type handwritten mark line Character splitting; from a plurality of e-book characters marked by a preset type of handwritten mark line, identify the e-book character with the closest distance to the mark line segment.
  • the program 810 may be specifically configured to cause the processor 802 to perform the following operations: if the e-book character corresponding to the marked line segment is the first character marked by a preset type of handwritten marked line, record the The upper offset, lower offset and left offset of the marked line segment relative to the corresponding e-book character; if the e-book character corresponding to the marked line segment is the tail character of the preset type handwritten mark line mark, Then record the upper offset, lower offset and right offset of the marked line segment relative to the corresponding e-book character; if the e-book character corresponding to the marked line segment is not marked by a preset type handwritten mark line The first character or the last character, the upper or lower offset of the mark line segment relative to the corresponding e-book character is recorded.
  • the preset format adjustment includes at least one of the following format adjustments: font size adjustment, character spacing adjustment, line spacing adjustment, page margin adjustment, horizontal and vertical screen switching, and in a folding screen device Switch between folded and unfolded states.
  • the program 810 may be specifically configured to cause the processor 802 to perform the following operations: according to the type of preset format adjustment, perform the following operations on the offset corresponding to the marker line segment and/or the marker line segment. Zoom processing.
  • the program 810 may be specifically configured to cause the processor 802 to perform the following operations: if the line spacing of the e-book changes before and after the preset format is adjusted, perform the following operations on the offset corresponding to the marked line segment. scaling processing; and/or, if the font size changes before and after the preset format is adjusted, scaling the marker line segment; and/or, if the word spacing changes before and after the preset format is adjusted, then the marker line segment changes Perform zoom processing.
  • the scaling processing specifically includes performing equal-scale scaling processing according to changes in line spacing, font size, and/or character spacing.
  • the program 810 may be specifically configured to cause the processor 802 to perform the following operations: if the marked line segment is scaled and the offset corresponding to the marked line segment has not been scaled, then according to The offset of the marker line segment before scaling processing, and the position of the e-book character corresponding to the marker line segment after the preset format adjustment, displays the marker line segment after scaling processing; if the marker line segment is not scaled, the If the offset corresponding to the marked line segment is scaled, then according to the offset of the marked line segment after scaling processing and the position of the e-book character corresponding to the marked line segment after the adjustment of the preset format, the display before the scaling processing is performed.
  • Mark line segment if the marker line segment and the offset corresponding to the marker line segment are both scaled, the marker line segment after scaling is adjusted according to the offset of the marker line segment after scaling and the preset format. The position of the corresponding e-book character, showing the marked line segment after scaling.
  • the program 810 may be specifically configured to cause the processor 802 to perform the following operations: after displaying the marker line segment before the zooming process or after the zooming process, determine the difference between the two adjacent marker line segments Whether there is a gap between them, and if so, fill the gap.
  • the program 810 may be specifically configured to cause the processor 802 to perform the following operations: fill in the gaps according to the drawing parameters of the preset type of handwritten marked lines in the drawing process.
  • the program 810 may be specifically configured to cause the processor 802 to perform the following operations: fill the gap according to the drawing parameters of the two marked line segments at both ends of the gap.
  • the drawing parameters include at least one of the following parameters:
  • Stroke type drawing color, nib thickness, drawing arc, and drawing slope.
  • the program 810 may be specifically configured to cause the processor 802 to perform the following operations: cutting a preset length of marking lines from a preset type of handwritten marking lines, and using the preset length marking lines to perform the following operations on the gaps Fill processing.
  • the program 810 may be specifically configured to cause the processor 802 to perform the following operations: if after the preset format is adjusted, at least two of the multiple marker line segments are distributed in different lines, determine whether to Marked line segment at the end of the line; a note wrapping mark is displayed at the position near the e-book character corresponding to the marked line segment at the end of the line.
  • this embodiment optimizes the display of the circle-selected mark line that circles multiple consecutive e-book characters in the same row.
  • the mark line is split by character to obtain multiple mark lines Segment, and bind each marked line segment with the marked e-book character.
  • each marked line segment As the processing unit to perform scaling processing, and finally according to the processing result and binding
  • the position of the e-book character is displayed, and each mark line segment is displayed, so that the mark line displayed after the format adjustment can be matched with the original marked e-book character, the restoration degree of the mark line after the format adjustment is improved, and the user experience is improved; and , in this embodiment, in the process of scaling processing with each marked line segment as the processing unit, the offset corresponding to the marked line segment and/or the marked line segment itself is processed, so as to achieve fine-grained marking line segmentation processing to further improve the matching degree between the finally displayed marked line and the identified e-book characters.
  • modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment.
  • the modules or units or components in the embodiments may be combined into one module or unit or component, and further they may be divided into multiple sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination, unless at least some of such features and/or procedures or elements are mutually exclusive. All processes or units of equipment are combined.
  • Each feature disclosed in this specification may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
  • Various component embodiments of the present disclosure may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof.
  • a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components according to embodiments of the present disclosure.
  • DSP digital signal processor
  • the present disclosure can also be implemented as apparatus or apparatus programs (eg, computer programs and computer program products) for performing some or all of the methods described herein.
  • Such a program implementing the present disclosure may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.

Abstract

一种电子书手写笔记的显示方法、计算设备及计算机存储介质,方法包括:确定预设类型手写标记线(A)标记的多个电子书字符(S110, S610),对标记线(A)进行按字符拆分,获得多个标记线分段(A1-A12)(S120, S620);识别与标记线分段(A1-A12)对应的电子书字符,并记录标记线分段(A1-A12)相对于对应的电子书字符的偏移量(S130, S630);若监测到电子书发生预设格式调整,则对标记线分段(A1-A12)对应的偏移量和/或标记线分段(A1-A12)进行缩放处理(S140, S640);并根据缩放处理前或缩放处理后的标记线分段(A1-A12)对应的偏移量,以及预设格式调整后标记线分段(A1-A12)对应的电子书字符的位置,显示缩放处理前或缩放处理后的标记线分段(A1-A12) (S150, S650)。

Description

电子书手写笔记的显示方法、计算设备及计算机存储介质
相关申请的交叉参考
本申请要求于2020年9月28日提交中国专利局、申请号为202011042637.9、名称为“电子书手写笔记的显示方法、计算设备及计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开涉及电子书技术领域,具体涉及一种电子书手写笔记的显示方法、计算设备及计算机存储介质。
背景技术
目前,越来越多的电子书终端支持用户以手写方式在电子书中写入笔记,如通过与用户终端相匹配的手写笔在电子书中手写标记线来标注用户感兴趣的内容等。
然而,发明人在实施过程中发现,现有技术中存在如下缺陷:现有技术在电子书手写笔记的显示过程中,往往是以手写笔记整体作为处理对象。例如,用户通过标记圈的方式圈选了三个电子书字符,在电子书字体放大时,现有技术通常将该标记圈整体进行放大后显示。采用该种实施方式,会使得电子书格式调整后,显示的用户手写笔记与标记的电子书字符匹配度差,从而降低用户体验。
公开内容
鉴于上述问题,提出了本公开以便提供一种克服上述问题或者至少部分地解决上述问题的电子书手写笔记的显示方法、计算设备及计算机存储介质。
根据本公开的一个方面,提供了一种电子书手写笔记的显示方法,包括:从电子书手写笔记中识别出预设类型手写标记线,并确定预设类型手写标记线标记的多个电子书字符;基于多个电子书字符,对预设类型手写标记线进行按字符拆分,以获得与预设类型手写标记线对应的多个标记线分段;针对于任一标记线分段,识别出与该标记线分段对应的电子书字符,并记录该标记线分段相对于对应的电子书字符的偏移量;若监测到电子书发生预设格式调整,则对标记线分段对应的偏移量和/或标记线分段进行缩放处理;根据缩放处理前或缩放处理后的标记线分段对应的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前或缩放处理后的标记线分段。
根据本公开的另一方面,提供了一种计算设备,包括:处理器、存储器、通信接口和通信总线,处理器、存储器和通信接口通过通信总线完成相互间的通信;存储器用于存放至少一可执行指令,可执行指令使处理器执行如下操作:
从电子书手写笔记中识别出预设类型手写标记线,并确定预设类型手写标记线标记的多个电子书字符;基于多个电子书字符,对预设类型手写标记线进行按字符拆分,以获得与预设类型手写标记线对应的多个标记线分段;针对于任一标记线分段,识别出与该标记线分段对应的电子书字符,并记录该标记线分段相对于对应的电子书字符的偏移量;若监测到电子书发生预设格式调整,则对标记线分段对应的偏移量和/或标记线分段进行缩放处理;根据缩放处理前或缩放处理后的标记线分段对应的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前或缩放处理后的标记线分段。
根据本公开的再一方面,提供了一种非易失性计算机可读存储介质,该非易失性计算机可读存储介质中存储有至少一可执行指令,可执行指令使处理器执行如上述电子书手写笔记的显示方法对应的操作。
根据本公开的又一方面,还提供了一种计算机程序产品,该计算机程序产品包括存储在上述非易失性计算机可读存储介质上的计算程序。
根据本公开公开的电子书手写笔记的显示方法、计算设备及计算机存储介质,首先从电子书手写笔记中识别出预设类型手写标记线,并确定预设类型手写标记线标记的多个电子书字符;基于多个电子书字符,对预设类型手写标记线进行按字符拆分,以获得与预设类型手写标记线对应的多个标记线分段;针对于任一标记线分段,识别出与该标记线分段对应的电子书字符,并记录该标记线分段相对于对应的电子书字符的偏移量;若监测到电子书发生预设格式调整,则对标记线分段对应的偏移量和/或标记线分段进行缩放处理;根据缩放处理前或缩放处理后的标记线分段对应的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前或缩放处理后的标记线分段。采用本方案能够使得格式调整后显示的标记线与原来所标记的电子书字符相匹配,提升格式调整后标记线的还原度,提升用户体验。
上述说明仅是本公开技术方案的概述,为了能够更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为了让本公开的上述和其它目的、特征和优点能够更明显易懂,以下特举本公开的具体实施方式。
附图概述
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本公开的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示出了根据本公开实施例一提供的一种电子书手写笔记的显示方法的流程图;
图2示出了根据本公开实施例一提供的一种手写笔记示意图;
图3示出了根据本公开实施例一提供的一种标记线分段示意图;
图4示出了根据本公开实施例二提供的一种电子书手写笔记的显示方法的流程图;
图5示出了根据本公开实施例二提供的一种标记线对应的封闭区域示意图;
图6示出了根据本公开实施例三提供的一种电子书手写笔记的显示方法的流程图;
图7示出了根据本公开实施例四提供的一种电子书手写笔记的显示方法的流程图;
图8示出了根据本公开实施例六提供的一种计算设备的结构示意图。
本公开的较佳实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
实施例一
图1示出了根据本公开实施例一提供的一种电子书手写笔记的显示方法的流程图。其中,本实施例所提供的方法可以由用户侧的阅读终端(如手机、平板、阅读器、以及智能可穿戴设备等等)执行;或者,本实施例提供的方法可通过用户侧的阅读终端与服务器的交互实现,例如由用户侧的阅读终端发送请求至服务器,服务器在进行数据处理后,将待 显示内容发送给用户侧的阅读终端,供用户侧的阅读终端进行显示。
如图1所示,该方法包括:
步骤S110:从电子书手写笔记中识别出预设类型手写标记线,并确定预设类型手写标记线标记的多个电子书字符。
在实际的实施过程中,电子书手写笔记包含多种类型。其中一种为手写字符类型,即手写笔记以字符形式呈现,如图2中的手写笔记B为位于行间的手写字符;另一种为手写标记线,即以线条的形式勾选电子书中的字符。如图2中手写笔记A及D所示的圈选式标记线,及图2中手写笔记C所示的单字标记线,等等。
通过对现有技术中,各类型电子书手写笔记在电子书格式调整前后的手写笔记显示效果分析发现,针对同一行中连续多个电子书字符的圈选标记线,其在电子书格式调整后,与原有标记的电子书字符偏差较大。由此,本实施例针对于该类标记线的显示进行了进一步的优化。
具体地,本实施例中的预设类型手写标记线为针对同一行中连续多个电子书字符的圈选标记线。其中,该预设类型手写标记线可以为矩形标记线、椭圆形标记线、波浪线标记线及不规则圈选标记线等等。
在实际的实施过程中,可采用相应方法从电子书手写笔记中识别出预设类型手写标记线,继而确定预设类型手写标记线标记的多个电子书字符。本公开中的电子书字符为电子书原文中存在的字符。其中,在确定预设类型手写标记线标记的多个电子书字符过程中,可根据预设类型手写标记线标记对电子书字符的覆盖情况,确定所标记的电子书字符。如图2中预设类型手写标记线A,该标记线覆盖了电子书字符“是非成败转头空”,从而确定出预设类型手写标记线A标记的多个电子书字符为“是非成败转头空”。
步骤S120:基于多个电子书字符,对预设类型手写标记线进行按字符拆分,以获得与预设类型手写标记线对应的多个标记线分段。
不同于现有技术中以手写笔记为整体进行处理,本实施例针对于任一预设类型手写标记线,对该预设类型手写标记线进行拆分处理,以获得与该预设类型手写标记线对应的多个标记线分段。
其中,在具体的拆分过程中,可根据预设类型手写标记线所标记的多个电子书字符,对预设类型手写标记线进行按字符拆分。可选地,可以以相邻两个电子书字符的外接矩形重合线为分割线,对预设类型手写标记线进行按字符拆分。其中,如图3所示,各虚线框为各个电子书字符的外接矩形,在字体一致的情况下,各个电子书外接矩形尺寸一致。图中5条虚直线为分割线,也是相邻两个电子书字符的外接矩形的重合线,通过该5条分割线的分割,对标记线A进行分割后获得A1-A12标记线分段。
步骤S130:针对于任一标记线分段,识别出与该标记线分段对应的电子书字符,并记录该标记线分段相对于对应的电子书字符的偏移量。
针对于任一标记线分段,从预设类型手写标记线标记的多个电子书字符中识别出与该标记线分段对应的电子书字符。其中,每个标记线分段对应于一个电子书字符,一个电子书字符可对应于一个或多个标记线分段。可选地,可从预设类型手写标记线标记的多个电子书字符中,识别出与该标记线分段距离最近的电子书字符,继而将该电子书字符作为该标记线分段对应的电子书字符。仍以图3为例,标记线分段A1距离电子书字符“是”最近,则标记线分段A1对应的电子书字符为“是”,同理,标记线分段A2及A7对应的电子书字符为“非”,标记线分段A3及A8对应的电子书字符为“成”,标记线分段A4及A9对应的电子书字符为“败”,标记线分段A5及A10对应的电子书字符为“转”, 标记线分段A6及A11对应的电子书字符为“头”,标记线分段A12对应的电子书字符为“空”。
在识别出与该标记线分段对应的电子书字符后,进一步记录该标记线分段相对于对应的电子书字符的偏移量。其中,标记线分段相对于对应的电子书字符的偏移量包括:左偏移量、右偏移量、上偏移量、以及下偏移量。其中,左偏移量为标记线分段距电子书字符左侧的距离,右偏移量为标记线分段距电子书字符右侧的距离,上偏移量为标记线分段距电子书字符上端的距离,以及下偏移量为标记线分段距电子书字符下端的距离。
可选地,在偏移量记录过程中,若该标记线分段对应的电子书字符为预设类型手写标记线标记的首字符,则记录该标记线分段相对于对应的电子书字符的上偏移量、下偏移量以及左偏移量;若该标记线分段对应的电子书字符为预设类型手写标记线标记的尾字符,则记录该标记线分段相对于对应的电子书字符的上偏移量、下偏移量以及右偏移量;若该标记线分段对应的电子书字符不是预设类型手写标记线标记的首字符或尾字符,则记录该标记线分段相对于对应的电子书字符的上偏移量或下偏移量。
例如,针对于图3中的标记线分段A1,记录标记线分段A1相对于“是”的上偏移量、下偏移量以及左偏移量;针对于标记线分段A12,记录标记线分段A12相对于“空”的上偏移量、下偏移量以及右偏移量;而针对于标记线A2-A6,分别记录相对于“非”、“成”、“败”、“转”、“头”的上偏移量,以及针对于标记线A7-A11,分别记录相对于“非”、“成”、“败”、“转”、“头”的下偏移量。
步骤S140:若监测到电子书发生预设格式调整,对标记线分段对应的偏移量和/或标记线分段进行缩放处理。
其中,本实施例中的预设格式调整具体为能够引起电子书字符位置变化的格式调整,如字号调整、字间距调整、行间距调整、页边距调整、横竖屏切换、以及折叠屏设备中的折叠及非折叠状态的切换等等。进一步地,电子书发生预设格式调整可以是用户在用户侧阅读终端执行预设格式调整操作引起的,例如,用户在执行字体放大操作时,会触发电子书发生预设格式调整;此外,电子书发生预设格式调整还可以是在不同终端间进行笔记同步过程中引起的,例如,若同步的多个终端(如终端U1及终端U2)设置的字号、字间距、行间距、页边距调整、横竖屏状态、折叠屏设备中的屏幕折叠状态不同,则在将终端U1笔记同步至终端U2时,也会引起电子书发生预设格式调整。
若监测到电子书发生预设格式调整,则针对于任一标记线分段,对该标记线分段对应的偏移量进行缩放处理,和/或对该标记线本身进行缩放处理。
步骤S150:根据缩放处理前或缩放处理后的标记线分段对应的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前或缩放处理后的标记线分段。
具体地,根据缩放处理前或缩放处理后的标记线分段对应的偏移量以及预设格式调整后标记线分段对应的电子书字符的位置,计算出格式调整后标记线分段的待显示位置,继而在该待显示位置处显示缩放处理前或缩放处理后的标记线分段。显示的多个标记线分段连接后,形成新的标记线,该标记线所标记的电子书字符与原有标记线标记的电子书字符相同。
具体地,若标记线分段进行了缩放处理,标记线分段对应的偏移量未进行缩放处理,则根据缩放处理前标记线分段的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理后的标记线分段;若标记线分段未进行缩放处理,标记线分段对应的偏移量进行缩放处理,则根据缩放处理后标记线分段的偏移量,以及预设格式调整后 标记线分段对应的电子书字符的位置,显示缩放处理前的标记线分段;若标记线分段及标记线分段对应的偏移量均进行缩放处理,则根据缩放处理后标记线分段的偏移量,以及预设格式调整操作后标记线分段对应的电子书字符的位置,显示缩放处理后的标记线分段。
由此可见,本实施例对圈选同一行中连续多个电子书字符的圈选标记线的显示进行优化,在优化过程中,将该标记线进行按字符拆分,从而获得多个标记线分段,并将各个标记线分段与标识的电子书字符进行绑定,在电子书发生预设格式调整后,以各个标记线分段为处理单位进行缩放处理,最终根据处理结果及绑定的电子书字符的位置,显示各个标记线分段,从而能够使得格式调整后显示的标记线与原来所标记的电子书字符相匹配,提升格式调整后标记线的还原度,提升用户体验;并且,本实施例在以各个标记线分段为处理单位进行缩放处理过程中,对标记线分段对应的偏移量和/或标记线分段本身进行处理,从而实现标记线分段的细粒度处理,进一步地提升最终显示的标记线与标识的电子书字符的匹配度。
实施例二
图4示出了根据本公开实施例二提供的一种电子书手写笔记的显示方法的流程图。其中,本实施例所提供的电子书手写笔记的显示方法是针对于实施例一中显示方法的进一步优化。
如图4所示,该方法包括:
步骤S410:根据电子书手写笔记覆盖电子书字符的数量及连续性,从电子书手写笔记中识别出第一类手写笔记、第二类手写笔记、第三类手写笔记及第四类手写标记。
其中,第一类手写笔记覆盖多个连续的电子书字符;第二类手写笔记覆盖多个不连续的电子书字符,第三类手写笔记覆盖单个电子书字符,第四类手写笔记未覆盖电子书字符。
在实际的实施过程中,可确定电子书手写笔记对应的封闭区域:其中,若电子书手写笔记为字符类手写笔记,则电子书手写笔记对应的封闭区域为该电子书手写笔记的外接矩形;若电子书手写笔记为封闭的标记线,则该电子书手写笔记对应的封闭区域为该标记线围成的区域;若电子书手写笔记为非封闭的标记线,则该电子书手写笔记对应的封闭区域为,该标记线终点至起点的连线,和该标记线共同围成的区域。
进一步地,确定手写笔记对应的封闭区域覆盖的电子书字符的个数。其中,若电子书手写笔记对应的封闭区域与电子书字符的外接矩形的重合度大于预设阈值,则确定该电子书手写笔记覆盖该电子书字符。该电子书手写笔记对应的封闭区域与电子书字符的外接矩形的重合度具体为电子书手写笔记对应的封闭区域与电子书字符的外接矩形的重合面积与该电子书字符的外接矩形面积的比值。若手写笔记覆盖单个电子书字符,则该手写笔记为第三类手写笔记;若手写笔记未覆盖电子书字符,则该手写笔记为第四类手写笔记未覆盖电子书字符。
如图5所示,手写笔记L1为一封闭曲线,则手写笔记L1对应的封闭区域为手写笔记L1围成的封闭区域,该封闭区域与电子书字符“一”外接矩形重合度大于预设阈值(该预设阈值可以为70%),则确定手写笔记L1覆盖电子书字符“一”,同理,可确定出手写笔记L1对应的封闭区域覆盖的电子书字符为“一”、“二”、“三”、“四”、五”、“六”、“七”、“八”;手写笔记L2为非封闭曲线,其起点为P1,终点为P2,则手写笔记L2对应的封闭区域为手写笔记L2及线段P1P2围成的封闭区域,该封闭区域与电子书字符“一”、“二”、“三”、“四”、五”、“六”、“七”、“八”外接矩形重合度均高于70%,则手写笔记L2对应的封闭区域覆盖的电子书字符为“一”、“二”、“三”、“四”、五”、“六”、“七”、“八”;手写笔记L3为非封闭曲线,其起点 为P3,终点为P4,则手写笔记L3对应的封闭区域为手写笔记L3及线段P3P4围成的封闭区域,该封闭区域与电子书字符“一”、“二”、“三”、“四”、五”、“六”、“七”、“八”外接矩形重合度均低于70%,则手写笔记L3对应的封闭区域并无覆盖的电子书字符;手写笔记L4为手写字符“我”,其对应的封闭区域为该字符的外接矩形,该封闭区域与电子书字符“三”、“四”外接矩形重合度高于70%,则手写笔记L4覆盖电子书字符“三”、“四”。
进一步地,若手写笔记对应的封闭区域覆盖多个电子书字符,则进一步判断覆盖的封闭区域的连续性。若该多个电子书字符连续,则手写笔记为第一类手写笔记,若该多个电子书字符不连续,则手写笔记为第二类手写笔记。如图2所示,手写笔记A对应的封闭区域覆盖的电子书字符为连续字符,则手写笔记A为第一类手写笔记;手写笔记D对应的封闭区域覆盖的电子书字符不连续,则标记线B为第二类手写笔记。
步骤S420:将第一类手写笔记中的标记线作为预设类型手写标记线。
在实际的实施过程中,可采用预设字符识别系统判断手写笔记是否为手写字符,若否,则确定该手写笔记为手写标记线。本实施例对预设字符识别系统的具体识别方式不作限定,例如其可将手写笔记与预设信息库中的字符进行比对,若匹配度高于预设阈值,则确定该手写笔记为手写字符;否则,则确定该手写笔记为手写标记线。
步骤S430:对预设类型手写标记线进行按字符拆分,获得多个标记线分段;分别记录各个标记线分段对应的电子书字符及的偏移量,在监测到电子书发生预设格式调整后,根据缩放处理前或缩放处理后的标记线分段对应的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前或缩放处理后的标记线分段。
其中,针对于预设类型手写标记线的显示优化方法可参照实施例一中相应部分的描述,本实施例在此不做赘述。
步骤S440:从第二类手写笔记覆盖的多个电子书字符中确定出第二类手写笔记对应的标识字符;若监测到电子书发生预设格式调整,则在标识字符附近展示预设控件;响应于针对预设控件的触发操作,展示生成该第二类手写笔记时的电子书页面图像。
为进一步提升在电子式格式调整后,电子书手写笔记的展示效果,本实施例针对第二类手写笔记的显示进行了进一步地优化。在具体的实施过程中,在生成第二类手写笔记时,可以通过屏幕截图等方式获取生成该第二类手写笔记时的电子书页面图像,并存储该电子书页面图像。
进一步地,从第二类手写笔记覆盖的多个电子书字符中确定出第二类手写笔记对应的标识字符。例如,可从该多个电子书字符中随机选取一个电子书字符作为标识字符,又或者,可选取与第二类手写笔记的封闭区域重合度高的电子书字符作为标识字符。
若监测到电子书发生预设格式调整,则在标识字符附近展示预设控件。其中,本实施例对预设控件的展示形式不作限定,例如预设控件可以以按钮、浮窗等形式呈现。进一步地,监测用户针对该预设控件的触发操作,并响应于针对预设控件的触发操作,展示生成该第二类手写笔记时的电子书页面图像。
此外,在一种可选的实施方式中,针对于第一类手写笔记中的字符笔记,从覆盖的多个电子书字符中,识别出首字符(该首字符可以为字符笔记起笔点最近的电子书字符),并记录该字符笔记相对于该首字符的相对位置;在电子书发生预设格式调整后,根据首字符大小缩放该字符笔记,并根据首字符的新位置,确定该字符笔记的新位置,继而在该字符笔记的新位置显示缩放后的字符笔记。
在一种可选的实施方式中,针对于第三类手写笔记,可确定出手写笔记所覆盖的单个 电子书字符,并记录第三类手写笔记与该单个电子书字符的相对位置,在电子书发生预设格式调整后,根据该单个电子书字符的尺寸变化,缩放该第三类手写笔记;并根据该单个电子书字符的新位置,以及记录的第三类手写笔记与该单个电子书字符的相对位置,确定该第三类手写笔记的新位置,继而在该新位置处显示缩放后的第三类手写笔记。
在另一可选的实施方式中,针对于第四类手写笔记,可确定出距离第四类手写笔记最近的电子书字符,并记录第四类手写笔记相对于该最近的电子书字符的相对位置;在电子书发生预设格式调整后,根据最近的电子书字符大小缩放该字符笔记,并根据最近的电子书字符的新位置,确定该手写笔记的新位置,继而在该手写笔记的新位置显示缩放后的字符笔记。
由此可见,本实施例通过覆盖的电子书字符的数量及连续性,识别各类电子书笔记,从而能够定量化、准确化、及自动化的识别出待优化的手写笔记;进一步地,本实施例针对于第二类手写笔记,在电子书格式调整之后,以折叠显示的方式展示生成该第二类手写笔记时的电子书页面图像,便于用户在电子书格式调整后仍能查看针对电子书字符的第二类手写笔记,从而进一步提升用户体验,提升本方法的适用范围。
实施例三
图6示出了根据本公开实施例三提供的一种电子书手写笔记的显示方法的流程图。其中,本实施例所提供的电子书手写笔记的显示方法是针对于实施例一中方法的进一步优化。
如图6所示,该方法包括:
步骤S610:从电子书手写笔记中识别出预设类型手写标记线,并确定预设类型手写标记线标记的多个电子书字符。
步骤S620:基于多个电子书字符,对预设类型手写标记线进行按字符拆分,以获得与预设类型手写标记线对应的多个标记线分段。
步骤S630:针对于任一标记线分段,识别出与该标记线分段对应的电子书字符,并记录该标记线分段相对于对应的电子书字符的偏移量。
步骤S640:若监测到电子书发生预设格式调整,则根据预设格式调整的类型,对标记线分段对应的偏移量和/或标记线分段进行缩放处理。
为了能够使得格式调整后呈现的标记线与电子书字符更加匹配,本实施例在对标记线分段对应的偏移量和/或标记线分段进行缩放处理过程中,针对不同的预设格式调整类型,采用不同的缩放处理方法。其中,不同的缩放处理方法如下:
方式一,若预设格式调整前后,电子书行间距发生变化,则对标记线分段对应的偏移量进行缩放处理。具体地,针对标记线分段对应的上偏移量和/或下偏移量进行缩放处理。其中,具体根据行间距变化进行等比例缩放处理。例如行间距在调整后增加10%,则可将标记线分段对应的上偏移量和/或下偏移量同比例增加10%。
方式二,若预设格式调整前后,字号发生变化,则对标记线分段进行缩放处理。其中,具体根据字号变化对标记线分段进行等比例缩放处理。例如,若字号缩小10%,则将标记线分段等比例缩小10%。
方式三,若预设格式调整前后,字间距发生变化,则对标记线分段进行缩放处理。具体地,针对标记线分段对应的左偏移量和/或右偏移量进行缩放处理。其中,具体根据字间距变化对标记线分段进行等比例缩放处理。例如,若字间距扩大10%,则将标记线分段等比例扩大10%。
此外,上述三种实施方式可进行相应组合。例如,在实际的实施过程中,当行间距与 字号关联时,若用户执行字号调整操作,则在格式调整后,字号及行间距均发生变化,从而对标记线分段对应的上偏移量和/或下偏移量进行缩放处理,以及对标记线分段进行缩放处理。
步骤S650:根据缩放处理前或缩放处理后的标记线分段对应的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前或缩放处理后的标记线分段。
由此可见,本实施例根据预设格式调整的类型,对标记线分段对应的偏移量和/或标记线分段进行缩放处理,针对不同的预设格式调整类型,采用不同的缩放处理方法,从而能够使得格式调整后呈现的标记线与电子书字符更加匹配。
实施例四
图7示出了根据本公开实施例四提供的一种电子书手写笔记的显示方法的流程图。其中,本实施例所提供的电子书手写笔记的显示方法是针对于实施例一中方法的进一步优化。
步骤S710:对预设类型手写标记线进行按字符拆分,获得多个标记线分段;分别记录各个标记线分段对应的电子书字符及的偏移量,在监测到电子书发生预设格式调整后,根据缩放处理前或缩放处理后的标记线分段对应的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前或缩放处理后的标记线分段。
其中,针对于预设类型手写标记线的显示优化方法可参照实施例一中相应部分的描述,本实施例在此不做赘述。
步骤S720:判断相邻两个标记线分段之间是否存在间隙,若是,则对间隙进行填补处理。
在某些场景中,尤其是涉及对标记线分段和/或对应的偏移量的放大场景中,在格式调整后显示的各个标记线分段中,可能会存在相邻两个标记线分段之间存在间隙的情况,从而使得多个标记线分段无法连接成一条连续的标记线,继而影响用户体验。
为克服这一弊端,本实施例对格式调整后呈现的各个标记线分段进行扫描,以识别出存在间隙的相邻两个标记线分段,并采用相应的填补方法对该间隙进行填补。其中,填补方式可包括以下方式中的至少一种:
填补方式一:根据预设类型手写标记线在绘制过程中的绘制参数,对间隙进行填补处理。其中,绘制参数包括以下参数中的至少一种:笔触类型、绘制颜色、笔尖粗细、绘制弧度、以及绘制倾斜度等等。
在具体的实施过程中,根据间隙两端的两个标记线分段的绘制参数,对间隙进行填补处理。采用该种方式能够实现标记线分段的平滑连接。具体地,针对于任一绘制参数,判断该两个标记线分段的该绘制参数的取值是否一致,若一致,则在绘制间隙时的该绘制参数的取值与该两个标记线分段的该绘制参数的取值相同;若不一致,则在绘制间隙时的该绘制参数的取值,可以为该两个标记线分段的该绘制参数的取值的平均值,也可以以该两个标记线分段的该绘制参数的取值为初始值及终止值,使绘制间隙时的该绘制参数的取值在该初始值及终止值内渐变,从而进一步提升两个标记线分段的连接的平滑度。可选地,若间隙两端的标记线分段内部的绘制参数不一致,则具体根据间隙两端的两个标记线分段与间隙交接点的绘制参数,对间隙进行填补处理。
填补方式二:从预设类型手写标记线中截取预设长度的标记线,利用预设长度的标记线对间隙进行填补处理。采用该种方式能够实现间隙的快速及批量化的填补。在具体的实施过程中,在生成手写标记线后,可随机截取一个单位长度的标记线,继而在后续间隙填 补过程中,根据间隙宽度采用一个或多个单位长度的标记线进行填补;又或者,在间隙两端的标记线分段中截取单位长度的标记线,继而利用该单位长度的标记线进行间隙的填补。
此外,在一种可选的实施方式中,若预设格式调整操作后,多个标记线分段中至少两个分布在不同的行,则进一步确定在处于行末地标记线分段;并在行末标记线分段对应的电子书字符附近位置处显示笔记换行标识,从而标识该分布在不同行的标记线分段原本为同一标记线。若再次格式调整操作后,之前处于行末地标记线分段不再位于行末,则取消该标记线分段对应的笔记换行标识。
由此可见,本实施例在显示各标记线分段之后,进一步对标记线分段之间的连续性进行扫描;当扫描出相邻两个标记线分段之间存在间隙时,采用相应的方法来对该间隙进行填补处理,从而保障格式调整后显示的标记线的连续性及完整性,继而提升用户体验。
实施例五
根据本公开实施例五提供了一种非易失性计算机可读存储介质,非易失性计算机可读存储介质存储有至少一可执行指令,该计算机可执行指令可执行上述任意方法实施例中的方法。
可执行指令具体可以用于使得处理器执行以下操作:从电子书手写笔记中识别出预设类型手写标记线,并确定预设类型手写标记线标记的多个电子书字符;基于多个电子书字符,对预设类型手写标记线进行按字符拆分,以获得与预设类型手写标记线对应的多个标记线分段;针对于任一标记线分段,识别出与该标记线分段对应的电子书字符,并记录该标记线分段相对于对应的电子书字符的偏移量;若监测到电子书发生预设格式调整,则对标记线分段对应的偏移量和/或标记线分段进行缩放处理;根据缩放处理前或缩放处理后的标记线分段对应的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前或缩放处理后的标记线分段。
在一种可选的实施方式中,可执行指令使处理器执行如下操作:根据电子书手写笔记覆盖电子书字符的数量及连续性,从电子书手写笔记中识别出第一类手写笔记、第二类手写笔记、第三类手写笔记及第四类手写标记;将第一类手写笔记中的标记线作为预设类型手写标记线;其中,第一类手写笔记覆盖多个连续的电子书字符;第二类手写笔记覆盖多个不连续的电子书字符,第三类手写笔记覆盖单个电子书字符,第四类手写笔记未覆盖电子书字符。
在一种可选的实施方式中,可执行指令使处理器执行如下操作:若电子书手写笔记对应的封闭区域与电子书字符的外接矩形的重合度大于预设阈值,则确定该电子书手写笔记覆盖该电子书字符。
在一种可选的实施方式中,可执行指令使处理器执行如下操作:若电子书手写笔记为字符类手写笔记,则电子书手写笔记对应的封闭区域为该电子书手写笔记的外接矩形;若电子书手写笔记为封闭的标记线,则该电子书手写笔记对应的封闭区域为该标记线围成的区域;若电子书手写笔记为非封闭的标记线,则该电子书手写笔记对应的封闭区域为,该标记线终点至起点的连线,和该标记线共同围成的区域。
在一种可选的实施方式中,可执行指令使处理器执行如下操作:针对于第二类手写笔记,从第二类手写笔记覆盖的多个电子书字符中确定出第二类手写笔记对应的标识字符;若监测到电子书发生预设格式调整,则在标识字符附近展示预设控件;响应于针对预设控件的触发操作,展示生成该第二类手写笔记时的电子书页面图像。
在一种可选的实施方式中,可执行指令使处理器执行如下操作:以相邻两个电子书字 符的外接矩形重合线为分割线,对预设类型手写标记线进行按字符拆分;从预设类型手写标记线标记的多个电子书字符中,识别出与该标记线分段距离最近的电子书字符。
在一种可选的实施方式中,可执行指令使处理器执行如下操作:若该标记线分段对应的电子书字符为预设类型手写标记线标记的首字符,则记录该标记线分段相对于对应的电子书字符的上偏移量、下偏移量以及左偏移量;若该标记线分段对应的电子书字符为预设类型手写标记线标记的尾字符,则记录该标记线分段相对于对应的电子书字符的上偏移量、下偏移量以及右偏移量;若该标记线分段对应的电子书字符不是预设类型手写标记线标记的首字符或尾字符,则记录该标记线分段相对于对应的电子书字符的上偏移量或下偏移量。
在一种可选的实施方式中,预设格式调整包括以下格式调整中的至少一种:字号调整、字间距调整、行间距调整、页边距调整、横竖屏切换、以及折叠屏设备中的折叠及非折叠状态的切换。
在一种可选的实施方式中,可执行指令使处理器执行如下操作:根据预设格式调整的类型,对标记线分段对应的偏移量和/或标记线分段进行缩放处理。
在一种可选的实施方式中,可执行指令使处理器执行如下操作:若预设格式调整前后,电子书行间距发生变化,则对标记线分段对应的偏移量进行缩放处理;和/或,若预设格式调整前后,字号发生变化,则对标记线分段进行缩放处理;和/或,若预设格式调整前后,字间距发生变化,则对标记线分段进行缩放处理。
在一种可选的实施方式中,缩放处理具体为根据行间距变化、字号变化和/或字间距变化,进行等比例缩放处理。
在一种可选的实施方式中,可执行指令使处理器执行如下操作:若标记线分段进行了缩放处理,标记线分段对应的偏移量未进行缩放处理,则根据缩放处理前标记线分段的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理后的标记线分段;若标记线分段未进行缩放处理,标记线分段对应的偏移量进行缩放处理,则根据缩放处理后标记线分段的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前的标记线分段;若标记线分段及标记线分段对应的偏移量均进行缩放处理,则根据缩放处理后标记线分段的偏移量,以及预设格式调整操作后标记线分段对应的电子书字符的位置,显示缩放处理后的标记线分段。
在一种可选的实施方式中,可执行指令使处理器执行如下操作:在显示缩放处理前或缩放处理后的标记线分段之后,判断相邻两个标记线分段之间是否存在间隙,若是,则对间隙进行填补处理。
在一种可选的实施方式中,可执行指令使处理器执行如下操作:根据预设类型手写标记线在绘制过程中的绘制参数,对间隙进行填补处理。
在一种可选的实施方式中,可执行指令使处理器执行如下操作:根据间隙两端的两个标记线分段的绘制参数,对间隙进行填补处理。
在一种可选的实施方式中,绘制参数包括以下参数中的至少一种:笔触类型、绘制颜色、笔尖粗细、绘制弧度、以及绘制倾斜度。
在一种可选的实施方式中,可执行指令使处理器执行如下操作:从预设类型手写标记线中截取预设长度的标记线,利用预设长度的标记线对间隙进行填补处理。
在一种可选的实施方式中,可执行指令使处理器执行如下操作:若预设格式调整后,多个标记线分段中至少两个分布在不同的行,则确定在处于行末的标记线分段;在行末标记线分段对应的电子书字符附近位置处显示笔记换行标识。
由此可见,本实施例对圈选同一行中连续多个电子书字符的圈选标记线的显示进行优化,在优化过程中,将该标记线进行按字符拆分,从而获得多个标记线分段,并将各个标记线分段与标识的电子书字符进行绑定,在电子书发生预设格式调整后,以各个标记线分段为处理单位进行缩放处理,最终根据处理结果及绑定的电子书字符的位置,显示各个标记线分段,从而能够使得格式调整后显示的标记线与原来所标记的电子书字符相匹配,提升格式调整后标记线的还原度,提升用户体验;并且,本实施例在以各个标记线分段为处理单位进行缩放处理过程中,对标记线分段对应的偏移量和/或标记线分段本身进行处理,从而实现标记线分段的细粒度处理,进一步地提升最终显示的标记线与标识的电子书字符的匹配度。
实施例六
图8示出了根据本公开实施例六提供的一种计算设备的结构示意图,本公开具体实施例并不对计算设备的具体实现做限定。
如图8所示,该计算设备可以包括:处理器(processor)802、通信接口(Communications Interface)804、存储器(memory)806、以及通信总线808。其中:处理器802、通信接口804、以及存储器806通过通信总线808完成相互间的通信。通信接口804,用于与其它设备比如客户端或其它服务器等的网元通信。处理器802,用于执行程序810,具体可以执行上述方法实施例中的相关步骤。
具体地,程序810可以包括程序代码,该程序代码包括计算机操作指令。处理器802可能是中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本公开实施例的一个或多个集成电路。计算设备包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。
存储器806,用于存放程序810。存储器806可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。
程序810具体可以用于使得处理器802执行以下操作:从电子书手写笔记中识别出预设类型手写标记线,并确定预设类型手写标记线标记的多个电子书字符;基于多个电子书字符,对预设类型手写标记线进行按字符拆分,以获得与预设类型手写标记线对应的多个标记线分段;针对于任一标记线分段,识别出与该标记线分段对应的电子书字符,并记录该标记线分段相对于对应的电子书字符的偏移量;若监测到电子书发生预设格式调整,则对标记线分段对应的偏移量和/或标记线分段进行缩放处理;根据缩放处理前或缩放处理后的标记线分段对应的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前或缩放处理后的标记线分段。
在一种可选的实施方式中,程序810具体可以用于使得处理器802执行以下操作:根据电子书手写笔记覆盖电子书字符的数量及连续性,从电子书手写笔记中识别出第一类手写笔记、第二类手写笔记、第三类手写笔记及第四类手写标记;将第一类手写笔记中的标记线作为预设类型手写标记线;其中,第一类手写笔记覆盖多个连续的电子书字符;第二类手写笔记覆盖多个不连续的电子书字符,第三类手写笔记覆盖单个电子书字符,第四类手写笔记未覆盖电子书字符。
在一种可选的实施方式中,程序810具体可以用于使得处理器802执行以下操作:若电子书手写笔记对应的封闭区域与电子书字符的外接矩形的重合度大于预设阈值,则确定该电子书手写笔记覆盖该电子书字符。
在一种可选的实施方式中,程序810具体可以用于使得处理器802执行以下操作:若 电子书手写笔记为字符类手写笔记,则电子书手写笔记对应的封闭区域为该电子书手写笔记的外接矩形;若电子书手写笔记为封闭的标记线,则该电子书手写笔记对应的封闭区域为该标记线围成的区域;若电子书手写笔记为非封闭的标记线,则该电子书手写笔记对应的封闭区域为,该标记线终点至起点的连线,和该标记线共同围成的区域。
在一种可选的实施方式中,程序810具体可以用于使得处理器802执行以下操作:针对于第二类手写笔记,从第二类手写笔记覆盖的多个电子书字符中确定出第二类手写笔记对应的标识字符;若监测到电子书发生预设格式调整,则在标识字符附近展示预设控件;响应于针对预设控件的触发操作,展示生成该第二类手写笔记时的电子书页面图像。
在一种可选的实施方式中,程序810具体可以用于使得处理器802执行以下操作:以相邻两个电子书字符的外接矩形重合线为分割线,对预设类型手写标记线进行按字符拆分;从预设类型手写标记线标记的多个电子书字符中,识别出与该标记线分段距离最近的电子书字符。
在一种可选的实施方式中,程序810具体可以用于使得处理器802执行以下操作:若该标记线分段对应的电子书字符为预设类型手写标记线标记的首字符,则记录该标记线分段相对于对应的电子书字符的上偏移量、下偏移量以及左偏移量;若该标记线分段对应的电子书字符为预设类型手写标记线标记的尾字符,则记录该标记线分段相对于对应的电子书字符的上偏移量、下偏移量以及右偏移量;若该标记线分段对应的电子书字符不是预设类型手写标记线标记的首字符或尾字符,则记录该标记线分段相对于对应的电子书字符的上偏移量或下偏移量。
在一种可选的实施方式中,预设格式调整包括以下格式调整中的至少一种:字号调整、字间距调整、行间距调整、页边距调整、横竖屏切换、以及折叠屏设备中的折叠及非折叠状态的切换。
在一种可选的实施方式中,程序810具体可以用于使得处理器802执行以下操作:根据预设格式调整的类型,对标记线分段对应的偏移量和/或标记线分段进行缩放处理。
在一种可选的实施方式中,程序810具体可以用于使得处理器802执行以下操作:若预设格式调整前后,电子书行间距发生变化,则对标记线分段对应的偏移量进行缩放处理;和/或,若预设格式调整前后,字号发生变化,则对标记线分段进行缩放处理;和/或,若预设格式调整前后,字间距发生变化,则对标记线分段进行缩放处理。
在一种可选的实施方式中,缩放处理具体为根据行间距变化、字号变化和/或字间距变化,进行等比例缩放处理。
在一种可选的实施方式中,程序810具体可以用于使得处理器802执行以下操作:若标记线分段进行了缩放处理,标记线分段对应的偏移量未进行缩放处理,则根据缩放处理前标记线分段的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理后的标记线分段;若标记线分段未进行缩放处理,标记线分段对应的偏移量进行缩放处理,则根据缩放处理后标记线分段的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前的标记线分段;若标记线分段及标记线分段对应的偏移量均进行缩放处理,则根据缩放处理后标记线分段的偏移量,以及预设格式调整操作后标记线分段对应的电子书字符的位置,显示缩放处理后的标记线分段。
在一种可选的实施方式中,程序810具体可以用于使得处理器802执行以下操作:在显示缩放处理前或缩放处理后的标记线分段之后,判断相邻两个标记线分段之间是否存在间隙,若是,则对间隙进行填补处理。
在一种可选的实施方式中,程序810具体可以用于使得处理器802执行以下操作:根 据预设类型手写标记线在绘制过程中的绘制参数,对间隙进行填补处理。
在一种可选的实施方式中,程序810具体可以用于使得处理器802执行以下操作:根据间隙两端的两个标记线分段的绘制参数,对间隙进行填补处理。
在一种可选的实施方式中,绘制参数包括以下参数中的至少一种:
笔触类型、绘制颜色、笔尖粗细、绘制弧度、以及绘制倾斜度。
在一种可选的实施方式中,程序810具体可以用于使得处理器802执行以下操作:从预设类型手写标记线中截取预设长度的标记线,利用预设长度的标记线对间隙进行填补处理。
在一种可选的实施方式中,程序810具体可以用于使得处理器802执行以下操作:若预设格式调整后,多个标记线分段中至少两个分布在不同的行,则确定在处于行末的标记线分段;在行末标记线分段对应的电子书字符附近位置处显示笔记换行标识。
由此可见,本实施例对圈选同一行中连续多个电子书字符的圈选标记线的显示进行优化,在优化过程中,将该标记线进行按字符拆分,从而获得多个标记线分段,并将各个标记线分段与标识的电子书字符进行绑定,在电子书发生预设格式调整后,以各个标记线分段为处理单位进行缩放处理,最终根据处理结果及绑定的电子书字符的位置,显示各个标记线分段,从而能够使得格式调整后显示的标记线与原来所标记的电子书字符相匹配,提升格式调整后标记线的还原度,提升用户体验;并且,本实施例在以各个标记线分段为处理单位进行缩放处理过程中,对标记线分段对应的偏移量和/或标记线分段本身进行处理,从而实现标记线分段的细粒度处理,进一步地提升最终显示的标记线与标识的电子书字符的匹配度。
在此提供的算法或显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本公开实施例也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本公开的内容,并且上面对特定语言所做的描述是为了披露本公开的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本公开的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个公开方面中的一个或多个,在上面对本公开的示例性实施例的描述中,本公开实施例的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本公开要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,公开方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本公开的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征 来代替。
此外,本领域的技术人员能够理解,尽管在此的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本公开的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本公开的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本公开实施例的一些或者全部部件的一些或者全部功能。本公开还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本公开的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
应该注意的是上述实施例对本公开进行说明而不是对本公开进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本公开可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。上述实施例中的步骤,除有特殊说明外,不应理解为对执行顺序的限定。

Claims (38)

  1. 一种电子书手写笔记的显示方法,包括:
    从电子书手写笔记中识别出预设类型手写标记线,并确定所述预设类型手写标记线标记的多个电子书字符;
    基于所述多个电子书字符,对所述预设类型手写标记线进行按字符拆分,以获得与所述预设类型手写标记线对应的多个标记线分段;
    针对于任一标记线分段,识别出与该标记线分段对应的电子书字符,并记录该标记线分段相对于对应的电子书字符的偏移量;
    若监测到电子书发生预设格式调整,则对标记线分段对应的偏移量和/或所述标记线分段进行缩放处理;
    根据缩放处理前或缩放处理后的标记线分段对应的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前或缩放处理后的标记线分段。
  2. 根据权利要求1所述的方法,其中,所述从电子书手写笔记中识别出预设类型手写标记线进一步包括:
    根据电子书手写笔记覆盖电子书字符的数量及连续性,从电子书手写笔记中识别出第一类手写笔记、第二类手写笔记、第三类手写笔记及第四类手写标记;
    将所述第一类手写笔记中的标记线作为预设类型手写标记线;
    其中,第一类手写笔记覆盖多个连续的电子书字符;第二类手写笔记覆盖多个不连续的电子书字符,第三类手写笔记覆盖单个电子书字符,第四类手写笔记未覆盖电子书字符。
  3. 根据权利要求2所述的方法,其中,若电子书手写笔记对应的封闭区域与电子书字符的外接矩形的重合度大于预设阈值,则确定该电子书手写笔记覆盖该电子书字符。
  4. 根据权利要求3所述的方法,其中,若电子书手写笔记为字符类手写笔记,则电子书手写笔记对应的封闭区域为该电子书手写笔记的外接矩形;
    若电子书手写笔记为封闭的标记线,则该电子书手写笔记对应的封闭区域为该标记线围成的区域;
    若电子书手写笔记为非封闭的标记线,则该电子书手写笔记对应的封闭区域为,该标记线终点至起点的连线,和该标记线共同围成的区域。
  5. 根据权利要求2-4中任一项所述的方法,其中,所述方法还包括:
    针对于第二类手写笔记,从所述第二类手写笔记覆盖的多个电子书字符中确定出所述第二类手写笔记对应的标识字符;
    若监测到电子书发生预设格式调整,则在所述标识字符附近展示预设控件;
    响应于针对预设控件的触发操作,展示生成该第二类手写笔记时的电子书页面图像。
  6. 根据权利要求1-5中任一项所述的方法,其中,所述对所述预设类型手写标记线进行按字符拆分进一步包括:
    以相邻两个电子书字符的外接矩形重合线为分割线,对所述预设类型手写标记线进行按字符拆分;
    则所述识别出与该标记线分段对应的电子书字符进一步包括:
    从所述预设类型手写标记线标记的多个电子书字符中,识别出与该标记线分段距离最近的电子书字符。
  7. 根据权利要求6所述的方法,其中,所述记录该标记线分段相对于对应的电子书字符的偏移量进一步包括:
    若该标记线分段对应的电子书字符为所述预设类型手写标记线标记的首字符,则记录该标记线分段相对于对应的电子书字符的上偏移量、下偏移量以及左偏移量;
    若该标记线分段对应的电子书字符为所述预设类型手写标记线标记的尾字符,则记录该标记线分段相对于对应的电子书字符的上偏移量、下偏移量以及右偏移量;
    若该标记线分段对应的电子书字符不是所述预设类型手写标记线标记的首字符或尾字符,则记录该标记线分段相对于对应的电子书字符的上偏移量或下偏移量。
  8. 根据权利要求1-7中任一项所述的方法,其中,所述预设格式调整包括以下格式调整中的至少一种:
    字号调整、字间距调整、行间距调整、页边距调整、横竖屏切换、以及折叠屏设备中的折叠及非折叠状态的切换。
  9. 根据权利要求8所述的方法,其中,所述对标记线分段对应的偏移量和/或所述标记线分段进行缩放处理进一步包括:根据预设格式调整的类型,对标记线分段对应的偏移量和/或所述标记线分段进行缩放处理。
  10. 根据权利要求9所述的方法,其中,所述根据预设格式调整的类型,对标记线分段对应的偏移量和/或所述标记线分段进行缩放处理进一步包括:
    若预设格式调整前后,电子书行间距发生变化,则对标记线分段对应的偏移量进行缩放处理;
    和/或,若预设格式调整前后,字号发生变化,则对所述标记线分段进行缩放处理;
    和/或,若预设格式调整前后,字间距发生变化,则对所述标记线分段进行缩放处理。
  11. 根据权利要求10所述的方法,其中,所述缩放处理具体为根据行间距变化、字号变化和/或字间距变化,进行等比例缩放处理。
  12. 根据权利要求1-11中任一项所述的方法,其中,所述根据缩放处理前或缩放处理后的标记线分段对应的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前或缩放处理后的标记线分段进一步包括:
    若标记线分段进行了缩放处理,标记线分段对应的偏移量未进行缩放处理,则根据缩放处理前标记线分段的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理后的标记线分段;
    若标记线分段未进行缩放处理,标记线分段对应的偏移量进行缩放处理,则根据缩放处理后标记线分段的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前的标记线分段;
    若标记线分段及标记线分段对应的偏移量均进行缩放处理,则根据缩放处理后标记线分段的偏移量,以及预设格式调整操作后标记线分段对应的电子书字符的位置,显示缩放处理后的标记线分段。
  13. 根据权利要求1-12中任一项所述的方法,其中,在所述显示缩放处理前或缩放处理后的标记线分段之后,所述方法还包括:判断相邻两个标记线分段之间是否存在间隙,若是,则对所述间隙进行填补处理。
  14. 根据权利要求13所述的方法,其中,所述对所述间隙进行填补处理进一步包括:根据所述预设类型手写标记线在绘制过程中的绘制参数,对所述间隙进行填补处理。
  15. 根据权利要求14所述的方法,其中,所述根据所述预设类型手写标记线在绘制过程中的绘制参数,对所述间隙进行填补处理进一步包括:根据间隙两端的两个标记线分段的绘制参数,对所述间隙进行填补处理。
  16. 根据权利要求14或15所述的方法,其中,所述绘制参数包括以下参数中的至少一种:笔触类型、绘制颜色、笔尖粗细、绘制弧度、以及绘制倾斜度。
  17. 根据权利要求13所述的方法,其中,所述对所述间隙进行填补处理进一步包括:从所述预设类型手写标记线中截取预设长度的标记线,利用所述预设长度的标记线对所述间隙进行填补处理。
  18. 根据权利要求1-17中任一项所述的方法,其中,所述方法还包括:若预设格式调整后,多个标记线分段中至少两个分布在不同的行,则确定在处于行末的标记线分段;在所述行末标记线分段对应的电子书字符附近位置处显示笔记换行标识。
  19. 一种计算设备,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;
    所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行如下操作:
    从电子书手写笔记中识别出预设类型手写标记线,并确定所述预设类型手写标记线标记的多个电子书字符;
    基于所述多个电子书字符,对所述预设类型手写标记线进行按字符拆分,以获得与所述预设类型手写标记线对应的多个标记线分段;
    针对于任一标记线分段,识别出与该标记线分段对应的电子书字符,并记录该标记线分段相对于对应的电子书字符的偏移量;
    若监测到电子书发生预设格式调整,则对标记线分段对应的偏移量和/或所述标记线分段进行缩放处理;
    根据缩放处理前或缩放处理后的标记线分段对应的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前或缩放处理后的标记线分段。
  20. 根据权利要求19所述的计算设备,其中,所述可执行指令使所述处理器执行如下操作:
    根据电子书手写笔记覆盖电子书字符的数量及连续性,从电子书手写笔记中识别出第一类手写笔记、第二类手写笔记、第三类手写笔记及第四类手写标记;
    将所述第一类手写笔记中的标记线作为预设类型手写标记线;其中,第一类手写笔记覆盖多个连续的电子书字符;
    第二类手写笔记覆盖多个不连续的电子书字符,第三类手写笔记覆盖单个电子书字符,第四类手写笔记未覆盖电子书字符。
  21. 根据权利要求20所述的计算设备,其中,若电子书手写笔记对应的封闭区域与电子书字符的外接矩形的重合度大于预设阈值,则确定该电子书手写笔记覆盖该电子书字符。
  22. 根据权利要求21所述的计算设备,其中,若电子书手写笔记为字符类手写笔记,则电子书手写笔记对应的封闭区域为该电子书手写笔记的外接矩形;
    若电子书手写笔记为封闭的标记线,则该电子书手写笔记对应的封闭区域为该标记线围成的区域;
    若电子书手写笔记为非封闭的标记线,则该电子书手写笔记对应的封闭区域为,该标记线终点至起点的连线,和该标记线共同围成的区域。
  23. 根据权利要求19-22中任一项所述的计算设备,其中,所述可执行指令使所述处理器执行如下操作:
    针对于第二类手写笔记,从所述第二类手写笔记覆盖的多个电子书字符中确定出所述第二类手写笔记对应的标识字符;
    若监测到电子书发生预设格式调整,则在所述标识字符附近展示预设控件;响应于针对预设控件的触发操作,展示生成该第二类手写笔记时的电子书页面图像。
  24. 根据权利要求19-23中任一项所述的计算设备,其中,所述可执行指令使所述处理器执行如下操作:
    以相邻两个电子书字符的外接矩形重合线为分割线,对所述预设类型手写标记线进行按字符拆分;
    从所述预设类型手写标记线标记的多个电子书字符中,识别出与该标记线分段距离最近的电子书字符。
  25. 根据权利要求24所述的计算设备,其中,所述可执行指令使所述处理器执行如下操作:
    若该标记线分段对应的电子书字符为所述预设类型手写标记线标记的首字符,则记录 该标记线分段相对于对应的电子书字符的上偏移量、下偏移量以及左偏移量;
    若该标记线分段对应的电子书字符为所述预设类型手写标记线标记的尾字符,则记录该标记线分段相对于对应的电子书字符的上偏移量、下偏移量以及右偏移量;
    若该标记线分段对应的电子书字符不是所述预设类型手写标记线标记的首字符或尾字符,则记录该标记线分段相对于对应的电子书字符的上偏移量或下偏移量。
  26. 根据权利要求19-25中任一项所述的计算设备,其中,所述预设格式调整包括以下格式调整中的至少一种:
    字号调整、字间距调整、行间距调整、页边距调整、横竖屏切换、以及折叠屏设备中的折叠及非折叠状态的切换。
  27. 根据权利要求26所述的计算设备,其中,所述可执行指令使所述处理器执行如下操作:根据预设格式调整的类型,对标记线分段对应的偏移量和/或所述标记线分段进行缩放处理。
  28. 根据权利要求27所述的计算设备,其中,所述可执行指令使所述处理器执行如下操作:
    若预设格式调整前后,电子书行间距发生变化,则对标记线分段对应的偏移量进行缩放处理;
    和/或,若预设格式调整前后,字号发生变化,则对所述标记线分段进行缩放处理;
    和/或,若预设格式调整前后,字间距发生变化,则对所述标记线分段进行缩放处理。
  29. 根据权利要求28所述的计算设备,其中,所述缩放处理具体为根据行间距变化、字号变化和/或字间距变化,进行等比例缩放处理。
  30. 根据权利要求19-29中任一项所述的计算设备,其中,所述可执行指令使所述处理器执行如下操作:
    若标记线分段进行了缩放处理,标记线分段对应的偏移量未进行缩放处理,则根据缩放处理前标记线分段的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理后的标记线分段;
    若标记线分段未进行缩放处理,标记线分段对应的偏移量进行缩放处理,则根据缩放处理后标记线分段的偏移量,以及预设格式调整后标记线分段对应的电子书字符的位置,显示缩放处理前的标记线分段;
    若标记线分段及标记线分段对应的偏移量均进行缩放处理,则根据缩放处理后标记线分段的偏移量,以及预设格式调整操作后标记线分段对应的电子书字符的位置,显示缩放处理后的标记线分段。
  31. 根据权利要求19-30中任一项所述的计算设备,其中,所述可执行指令使所述处理器执行如下操作:在所述显示缩放处理前或缩放处理后的标记线分段之后,判断相邻两个标记线分段之间是否存在间隙,若是,则对所述间隙进行填补处理。
  32. 根据权利要求31所述的计算设备,其中,所述可执行指令使所述处理器执行如下操作:根据所述预设类型手写标记线在绘制过程中的绘制参数,对所述间隙进行填补处理。
  33. 根据权利要求32所述的计算设备,其中,所述可执行指令使所述处理器执行如下操作:根据间隙两端的两个标记线分段的绘制参数,对所述间隙进行填补处理。
  34. 根据权利要求32或33所述的计算设备,其中,所述绘制参数包括以下参数中的至少一种:笔触类型、绘制颜色、笔尖粗细、绘制弧度、以及绘制倾斜度。
  35. 根据权利要求31所述的计算设备,其中,所述可执行指令使所述处理器执行如下操作:从所述预设类型手写标记线中截取预设长度的标记线,利用所述预设长度的标记线对所述间隙进行填补处理。
  36. 根据权利要求19-35中任一项所述的计算设备,其中,所述可执行指令使所述处理器执行如下操作:若预设格式调整后,多个标记线分段中至少两个分布在不同的行,则确定在处于行末的标记线分段;在所述行末标记线分段对应的电子书字符附近位置处显示笔记换行标识。
  37. 一种非易失性计算机可读存储介质,所述非易失性计算机可读存储介质中存储有至少一可执行指令,所述可执行指令使处理器执行如权利要求1-18中任一项所述的电子书手写笔记的显示方法对应的操作。
  38. 一种计算机程序产品,该计算机程序产品包括存储在非易失性计算机可读存储介质上的计算程序,该计算机程序包括程序指令,当该程序指令被处理器执行时,使该处理器执行前述任一权利要求1-18所述的电子书手写笔记的显示方法对应的操作。
PCT/CN2021/119987 2020-09-28 2021-09-23 电子书手写笔记的显示方法、计算设备及计算机存储介质 WO2022063191A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011042637.9 2020-09-28
CN202011042637.9A CN112183019B (zh) 2020-09-28 2020-09-28 电子书手写笔记的显示方法、计算设备及计算机存储介质

Publications (1)

Publication Number Publication Date
WO2022063191A1 true WO2022063191A1 (zh) 2022-03-31

Family

ID=73945395

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/119987 WO2022063191A1 (zh) 2020-09-28 2021-09-23 电子书手写笔记的显示方法、计算设备及计算机存储介质

Country Status (2)

Country Link
CN (1) CN112183019B (zh)
WO (1) WO2022063191A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112183019B (zh) * 2020-09-28 2021-10-22 掌阅科技股份有限公司 电子书手写笔记的显示方法、计算设备及计算机存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609846A (zh) * 2003-06-13 2005-04-27 微软公司 用于识别,锚定和回流数字墨水注释的数字墨水注释方法和系统
CN101882384A (zh) * 2010-06-29 2010-11-10 汉王科技股份有限公司 一种在电子书上进行笔记管理的方法及电子书设备
US20140304586A1 (en) * 2013-04-04 2014-10-09 Kabushiki Kaisha Toshiba Electronic device and data processing method
CN108255386A (zh) * 2018-02-12 2018-07-06 掌阅科技股份有限公司 电子书手写笔记的显示方法、计算设备及计算机存储介质
CN108304361A (zh) * 2018-02-12 2018-07-20 掌阅科技股份有限公司 电子书手写笔记的显示方法、计算设备及计算机存储介质
CN112183019A (zh) * 2020-09-28 2021-01-05 掌阅科技股份有限公司 电子书手写笔记的显示方法、计算设备及计算机存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7865817B2 (en) * 2006-12-29 2011-01-04 Amazon Technologies, Inc. Invariant referencing in digital works
US10223344B2 (en) * 2015-01-26 2019-03-05 Adobe Inc. Recognition and population of form fields in an electronic document
CN109062885B (zh) * 2018-07-16 2022-09-09 广州视源电子科技股份有限公司 文本框布局的调整方法、装置和设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609846A (zh) * 2003-06-13 2005-04-27 微软公司 用于识别,锚定和回流数字墨水注释的数字墨水注释方法和系统
CN101882384A (zh) * 2010-06-29 2010-11-10 汉王科技股份有限公司 一种在电子书上进行笔记管理的方法及电子书设备
US20140304586A1 (en) * 2013-04-04 2014-10-09 Kabushiki Kaisha Toshiba Electronic device and data processing method
CN108255386A (zh) * 2018-02-12 2018-07-06 掌阅科技股份有限公司 电子书手写笔记的显示方法、计算设备及计算机存储介质
CN108304361A (zh) * 2018-02-12 2018-07-20 掌阅科技股份有限公司 电子书手写笔记的显示方法、计算设备及计算机存储介质
CN112183019A (zh) * 2020-09-28 2021-01-05 掌阅科技股份有限公司 电子书手写笔记的显示方法、计算设备及计算机存储介质

Also Published As

Publication number Publication date
CN112183019B (zh) 2021-10-22
CN112183019A (zh) 2021-01-05

Similar Documents

Publication Publication Date Title
US11455460B2 (en) Method for displaying handwritten note in electronic book, electronic device and computer storage medium
US7791589B2 (en) Method and apparatus for displaying electronic document including handwritten data
US9007405B1 (en) Column zoom
WO2019154198A1 (zh) 电子书手写笔记的显示方法、计算设备及计算机存储介质
US8515176B1 (en) Identification of text-block frames
CN109712218B (zh) 电子书笔记处理方法、手写阅读设备和存储介质
US8959432B2 (en) Utilizing document structure for animated pagination
US20130246911A1 (en) Method and device for rearranging paragraphs of webpage picture content
US11409427B2 (en) Display control device, image forming apparatus, and non-transitory computer readable medium storing program
JP5789719B2 (ja) 電子文書の表示モードを確定するための方法と装置
US9734132B1 (en) Alignment and reflow of displayed character images
JP6543290B2 (ja) 電子図書製作用プログラム
CN111857893A (zh) 标注图形生成方法及装置
WO2022063191A1 (zh) 电子书手写笔记的显示方法、计算设备及计算机存储介质
CN112835499A (zh) 一种轮播图展示方法、装置、设备及介质
US20140223291A1 (en) System and method for restructuring content on reorientation of a mobile device
CN113821146A (zh) 一种全局批注方法、装置、终端设备及存储介质
US20120105455A1 (en) Utilizing document structure for animated pagination
CN111859865A (zh) 用于转换pdf文档的方法、装置、终端及介质
US20210073458A1 (en) Comic data display system, method, and program
Sandnes Lost in OCR-translation: pixel-based text reflow to the rescue: magnification of archival raster image documents in the browser without horizontal scrolling
US9229608B2 (en) Character display apparatus, character display method, and computer readable medium
CN111045578A (zh) 显示控制方法、显示控制装置、终端设备和电子设备
CN111563511B (zh) 一种智能框题的方法、装置、电子设备及存储介质
CN114564915A (zh) 文本排版方法、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21871560

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21871560

Country of ref document: EP

Kind code of ref document: A1