CN109582929B - Electronic book-based marking line drawing method and electronic equipment - Google Patents

Electronic book-based marking line drawing method and electronic equipment Download PDF

Info

Publication number
CN109582929B
CN109582929B CN201811523956.4A CN201811523956A CN109582929B CN 109582929 B CN109582929 B CN 109582929B CN 201811523956 A CN201811523956 A CN 201811523956A CN 109582929 B CN109582929 B CN 109582929B
Authority
CN
China
Prior art keywords
handwriting input
line
input operation
rule
marking line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811523956.4A
Other languages
Chinese (zh)
Other versions
CN109582929A (en
Inventor
程超
况琴
邢九占
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201811523956.4A priority Critical patent/CN109582929B/en
Publication of CN109582929A publication Critical patent/CN109582929A/en
Application granted granted Critical
Publication of CN109582929B publication Critical patent/CN109582929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/117Tagging; Marking up; Designating a block; Setting of attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
    • G06F15/025Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application
    • G06F15/0291Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application for reading, e.g. e-books

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a marking line drawing method based on an electronic book and electronic equipment, wherein the method comprises the following steps: acquiring operation attribute information corresponding to the monitored handwriting input operation; when the acquired operation attribute information is determined to be matched with a preset marking line input rule, a marking line drawing rule corresponding to the preset marking line input rule is determined; and drawing the marking line corresponding to the handwriting input operation according to the marking line drawing rule. Therefore, the method can automatically identify the type and the drawing mode of the marking line corresponding to the handwriting input operation of the user by presetting the mapping relation between the marking line input rule and the marking line drawing rule, does not need manual selection of the user, reduces the operation complexity and the waiting time of the user, and obviously improves the drawing efficiency of the marking line.

Description

Electronic book-based marking line drawing method and electronic equipment
Technical Field
The invention relates to the field of computers, in particular to a marking line drawing method based on an electronic book and electronic equipment.
Background
At present, the number of users of electronic books is increasing along with the improvement of reading consciousness. To facilitate the user adding marks during reading, many e-book applications provide a mark-line drawing function. In the conventional marking line drawing method, before drawing a marking line, a user needs to manually click a line drawing entry corresponding to the type of the marking line in order to select the type of the marking line. After the user selects the type of the marking line, a painting brush matched with the type appears on the screen, and the user can realize the marking line drawing operation of the corresponding type by controlling the painting brush.
However, in the process of implementing the present invention, the inventor finds that the above solution in the prior art has at least the following defects: before drawing a marking line, a user needs to manually click a line drawing inlet corresponding to the type of the marking line, and needs to wait for a brush pen matched with the type to appear on a screen before drawing the corresponding marking line. Therefore, the method needs a user to perform complicated manual operation and wait for a long time, and the drawing efficiency of the mark line is obviously reduced.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method of drawing a mark line based on an electronic book and an electronic device that overcome or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a method for drawing a mark line based on an electronic book, including:
acquiring operation attribute information corresponding to the monitored handwriting input operation;
when the acquired operation attribute information is determined to be matched with a preset marking line input rule, a marking line drawing rule corresponding to the preset marking line input rule is determined;
and drawing the marking line corresponding to the handwriting input operation according to the marking line drawing rule.
According to another aspect of the present invention, there is provided an electronic apparatus including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
acquiring operation attribute information corresponding to the monitored handwriting input operation;
when the acquired operation attribute information is determined to be matched with a preset marking line input rule, a marking line drawing rule corresponding to the preset marking line input rule is determined;
and drawing the marking line corresponding to the handwriting input operation according to the marking line drawing rule.
According to yet another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing the processor to:
acquiring operation attribute information corresponding to the monitored handwriting input operation;
when the acquired operation attribute information is determined to be matched with a preset marking line input rule, a marking line drawing rule corresponding to the preset marking line input rule is determined;
and drawing the marking line corresponding to the handwriting input operation according to the marking line drawing rule.
In the method for drawing a mark line based on an electronic book and the electronic device, the operation attribute information corresponding to the monitored handwriting input operation can be acquired, the acquired operation attribute information is automatically matched with the preset mark line input rule, the mark line drawing rule corresponding to the matched mark line input rule is further determined, and the mark line corresponding to the handwriting input operation is drawn according to the mark line drawing rule. As can be seen from this, in this aspect, on the one hand, the type of the marker line drawn by the user can be automatically identified from the marker line input rule and the operation attribute information of the user; on the other hand, the corresponding marker line can be automatically drawn according to the marker line drawing rule corresponding to the type. According to the method, the type and the drawing mode of the marking line corresponding to the handwriting input operation of the user can be automatically identified through the preset mapping relation between the marking line input rule and the marking line drawing rule, the manual selection of the user is not needed, the operation complexity and the waiting time of the user are reduced, and the drawing efficiency of the marking line is remarkably improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a method for marking line drawing based on an electronic book according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for marking line drawing based on an electronic book according to another embodiment of the present invention;
fig. 3 shows a schematic structural diagram of an electronic device according to another embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
Fig. 1 is a flowchart illustrating a method for drawing a mark line based on an electronic book according to an embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
step S110: and acquiring operation attribute information corresponding to the monitored handwriting input operation.
In this embodiment, in order to achieve the effect of automatically drawing a marking line without the need for a user to select a type of the marking line, when a handwriting input operation is monitored, operation attribute information corresponding to the monitored handwriting input operation needs to be automatically acquired.
The handwriting input operation in this embodiment generally refers to various operations executed by a handwriting input method, including: operations for drawing a mark line, operations for inputting characters, operations for drawing a pattern, and the like.
In order to facilitate determination of whether the handwriting input operation is an operation for drawing a marking line in a subsequent step, operation attribute information corresponding to the handwriting input operation needs to be acquired. The operation attribute information is used for describing the operation mode, the operation type and other characteristics of the current handwriting input operation, and all information which can be used for describing the operation characteristics of the current handwriting input operation can be used as the operation attribute information.
Step S120: and when the acquired operation attribute information is determined to be matched with the preset marking line input rule, determining a marking line drawing rule corresponding to the preset marking line input rule.
Specifically, in the present embodiment, a marker line input rule is set in advance. The marking line input rule is used for determining whether the handwriting input operation of the user is an operation for drawing a marking line according to the operation attribute information, and the marking line input rule is further used for determining which type of marking line the handwriting input operation of the user is specifically an operation for drawing. The specific connotation of the marking line input rule is not limited by the invention, and the skilled person can flexibly set the marking line input rule according to the preset rule and/or the user setting.
In addition, in the embodiment, a corresponding relationship between the marking line input rule and the marking line drawing rule is further set, and each marking line input rule corresponds to at least one marking line drawing rule, so that automatic drawing of the marking line is realized. The marking line drawing rule is used for setting drawing information such as a mapping pattern, line thickness, offset, color and/or line type of the corresponding marking line. The technicians in the invention can flexibly set the marking line drawing rules, which is not limited by the invention.
Step S130: and drawing a marking line corresponding to the handwriting input operation according to the marking line drawing rule.
Specifically, since the specific parameter information for drawing the marking line is set in the marking line drawing rule, the marking line corresponding to the handwriting input operation can be automatically drawn according to the marking line drawing rule, so that the marking line can be automatically drawn quickly.
As can be seen from this, in this aspect, on the one hand, the type of the marker line drawn by the user can be automatically identified from the marker line input rule and the operation attribute information of the user; on the other hand, the corresponding marker line can be automatically drawn according to the marker line drawing rule corresponding to the type. According to the method, the type and the drawing mode of the marking line corresponding to the handwriting input operation of the user can be automatically identified through the preset mapping relation between the marking line input rule and the marking line drawing rule, the manual selection of the user is not needed, the operation complexity and the waiting time of the user are reduced, and the drawing efficiency of the marking line is remarkably improved.
Example two
Fig. 2 is a flowchart illustrating a method for drawing a mark line based on an electronic book according to another embodiment of the present invention. As shown in fig. 2, the method comprises the steps of:
step S210: and continuously acquiring operation attribute information corresponding to the currently executed handwriting input operation every time the handwriting input operation is monitored.
In this embodiment, various types of handwriting input operations triggered by the user need to be automatically monitored, for example, the handwriting input operations can be monitored according to the pressure information. Since the handwriting input operation for drawing the mark line usually lasts for a period of time, when the handwriting input operation is monitored, the operation attribute information corresponding to the currently executed handwriting input operation needs to be continuously acquired, so as to accurately judge the type of the current handwriting input operation.
In the present embodiment, the operation attribute information corresponding to the currently performed handwriting input operation includes at least one of: the electronic book information processing method comprises the steps of setting a pen-down position of a handwriting input operation, setting a pen-up position of the handwriting input operation, relative position information of the handwriting input operation relative to characters of the electronic book, and track direction information of the handwriting input operation. The pen-down position of the handwriting input operation refers to: the position where the user triggers the current handwriting input operation may be, for example, a position where the user's finger initially touches. The pen-lifting position of the handwriting input operation refers to: the position where the user ends the current handwriting input operation may be, for example, a position where the user's finger is finally lifted. The relative position information between the handwriting input operation and the e-book characters is used for describing the relative position relationship between the handwriting input operation and the e-book characters, for example, the handwriting input operation may be located in the middle, top or bottom of the e-book characters. The track direction information of the handwriting input operation is used to describe the continuous direction of the handwriting input operation, for example, when the user performs a mark line operation, the track direction is usually matched with the text reading direction, the text reading direction may be an arrangement direction of text rows from left to right, or an arrangement direction of text columns from top to bottom, specifically depends on the text typesetting direction, and the specific direction of the text reading direction is not limited in the present invention.
Step S220: and determining whether the acquired operation attribute information is matched with a preset marking line input rule.
The preset mark line input rule may be one or more, depending on the kind of mark lines supported by the electronic book application. In this embodiment, the preset marking line input rule includes a plurality of rules respectively corresponding to different types of marking lines. For example, the preset mark line input rule at least includes: an underline input rule corresponding to a marker line of an underline type, and a marker pen input rule corresponding to a marker line of a marker type.
The underline input rule is used for identifying the handwriting input operation for drawing underlines so as to realize the effect of automatically drawing underlines. The specific content of the underline input rule depends on the system settings or user configuration of the ebook application. In this embodiment, the underline input rule specifically includes: the pen-down position of the handwriting input operation is located at the bottom of the characters, the relative position of the handwriting input operation relative to the characters of the electronic book is located at the bottom of the characters, and the track direction of the handwriting input operation is matched with the character reading direction. For example, if the user's pen-down position is located between two character lines (i.e., between two character lines), and the motion trajectory of the handwriting input operation passes through a first preset number of characters (e.g., two or more characters) from left to right along the lower side of the characters, it is determined that the user wishes to draw an underlining effect. The first preset word number can be flexibly adjusted according to the actual situation, and the more the first preset word number is set, the more accurate the judgment result is; the smaller the first preset word number is set, the faster the response speed is. In this embodiment, in order to take account of the accuracy and the response speed, the first preset word number is set to two, and it is determined that the underline input rule is met as long as the motion trajectory of the handwriting input operation passes through two words along the bottom of the word; in addition, in the subsequent steps, correction processing is further performed in combination with the correction processing rule, so as to prevent misjudgment due to less number of characters.
The Mark pen input rule is used for identifying the handwriting input operation of the drawing Mark pen so as to realize the effect of automatically drawing the Mark pen. The specific content of the marker input rule depends on the system settings or user configuration of the ebook application. In this embodiment, the marker input rule includes: the pen-down position of the handwriting input operation is located in the middle of the characters, the relative position of the handwriting input operation relative to the characters of the electronic book is located in the middle of the characters, and the track direction of the handwriting input operation is matched with the character reading direction. For example, if the user's pen-down position is located in the middle of the line of characters (i.e., passes through the middle of the characters), and the motion trajectory of the handwriting input operation passes through a second preset number of words (e.g., two or more words) from left to right along the middle of the characters, it is determined that the user wishes to draw the marker effect. It can be seen that as long as the first two words traversed after the pen-down are in a left-to-right direction and pass through the middle of the word, it is determined that the user wishes to draw a marker effect. The second preset word number and the first preset word number can be the same or different, and can be flexibly adjusted according to actual conditions, and the more the second preset word number is set, the more accurate the judgment result is; the smaller the second preset word number is set, the faster the response speed is. In this embodiment, in order to take account of the accuracy and the response speed, the second preset word number is set to two, and the motion trajectory of the handwriting input operation is determined to conform to the input rule of the marker pen as long as the motion trajectory passes through two words along the middle part of the character; in addition, in the subsequent steps, correction processing is further performed in combination with the correction processing rule, so as to prevent misjudgment due to less number of characters.
Therefore, whether the acquired operation attribute information is matched with the preset mark line input rule or not can be determined through the step, and when the operation attribute information is specifically determined, the acquired operation attribute information can be matched with each mark line input rule (such as underline input rules and Mark pen input rules) one by one, and the specific type of the mark line input rule matched with the operation attribute information is determined.
Step S230: if yes, determining a marking line drawing rule corresponding to the preset marking line input rule.
The preset marking line input rule mentioned in this step refers to a marking line input rule matched with the operation attribute information. For example, if it is determined in the previous step that the operation attribute information matches the underline input rule, the preset marking line input rule mentioned in this step is the underline input rule; for another example, if it is determined in the previous step that the operation attribute information matches the marker input rule, the preset marker line input rule mentioned in this step is the marker input rule.
Accordingly, in the present embodiment, a correspondence relationship between the marking line input rule and the marking line drawing rule is preset, and each marking line input rule corresponds to at least one marking line drawing rule, so as to implement automatic drawing of the marking line. For example, the marker line drawing rule corresponding to the underline input rule is an underline drawing rule, and the underline drawing rule includes: and drawing an underline of the straight line type along the track direction of the handwriting input operation. Of course, instead of a straight line type, a wavy or dashed line type underline may be drawn, depending on system settings or user configuration. For another example, the marker line drawing rule corresponding to the marker pen input rule is a marker pen drawing rule, and the marker pen drawing rule includes: and drawing a mark line of a preset Mark pen type along the track direction of the handwriting input operation. Wherein the specific form of marker lines of marker pen type can be flexibly set by a person skilled in the art.
Step S240: and drawing a marking line corresponding to the handwriting input operation according to the marking line drawing rule.
Specifically, since specific parameter information for drawing the marking line, such as a drawing pattern, a line thickness, an offset amount, a color, and/or a line type of the marking line, is set in the marking line drawing rule. Accordingly, the marking line corresponding to the handwriting input operation can be automatically drawn according to the marking line drawing rule, so that the marking line can be automatically and quickly drawn. For example, assuming that the marking line drawing rule corresponding to the preset marking line input rule determined in the previous step is an underline drawing rule, drawing a marking line according to the underline drawing rule; for another example, assuming that the marking line drawing rule corresponding to the preset marking line input rule determined in the previous step is a mark pen drawing rule, drawing the marking line according to the mark pen drawing rule. Therefore, the mark lines of the corresponding types can be automatically matched according to the characteristics of the handwriting input operation, the operation selected by a user in advance is omitted, the waiting time of the user is saved, and the drawing efficiency is improved.
In addition, the line types described above include: straight line type, curved line type, solid line type, and dotted line type. Accordingly, various types of regular line segments can be drawn conveniently and quickly through the marking line drawing rule. Further optionally, in the process of drawing the marking line corresponding to the handwriting input operation according to the marking line drawing rule, firstly, detecting whether the marking line corresponding to the handwriting input operation conforms to a preset marking line correction rule; and if so, executing correction processing on the mark line corresponding to the handwriting input operation according to a preset mark line correction rule, and drawing the mark line after the correction processing. Wherein, the preset mark line correction rule comprises: rules for correcting the mark line to a straight line. The inventor discovers that in the process of implementing the invention: most users cannot draw a completely regular straight line by hand, the drawn straight line mostly has a more or less bending phenomenon, and in order to help the users draw a regular and beautiful straight line, in the embodiment, whether a marking line corresponding to a handwriting input operation conforms to a preset marking line correction rule or not can be automatically detected, for example, coordinates of a plurality of position points in the marking line can be obtained, and whether the marking line is a line segment approximate to the straight line or not can be detected according to coordinate values of the position points. For example, when the difference between the horizontal coordinate values of the respective position points is smaller than a preset difference threshold, it is indicated that the mark line is similar to a straight line, and what the user wishes to draw should be a straight line; in addition, when the horizontal coordinate values of all the position points are not equal completely, the situation that the straight line drawn by the user is not standard enough and needs to be corrected is described, correspondingly, a straight line is automatically generated through a marking line correction rule, the generating position of the straight line is determined according to the coordinates of a plurality of position points in the marking line drawn by the user, and the mark line drawn by the user and not straight enough is replaced through the straight line, so that the effect of automatically helping the user to correct the marking line is achieved, and the drawn marking line is more attractive.
In addition, optionally, in order to prevent a determination error in step S220 or eliminate a drawing error caused by a user changing an input mode halfway, in this step, the following operations are further performed:
continuously acquiring operation attribute information corresponding to the currently executed handwriting input operation in the process of drawing a marking line corresponding to the handwriting input operation, and continuously judging whether the operation attribute information corresponding to the currently executed handwriting input operation is matched with a preset marking line input rule or not; if not, correction processing is carried out according to a preset correction processing rule. Specifically, since the process of drawing the mark line by hand usually lasts for a period of time, in the process of continuing the handwriting input operation, the operation attribute information corresponding to the currently executed handwriting input operation is continuously acquired, and whether the operation attribute information corresponding to the currently executed handwriting input operation matches the preset mark line input rule or not is continuously determined. And when judging that the operation attribute information of the subsequent handwriting input operation is not matched with the mark line input rule, performing correction processing according to a preset correction processing rule. The preset modification processing rule may include a plurality of rules, which is not limited in the present invention.
In an optional implementation manner, the modification processing rule specifically includes: deleting the drawn marking line corresponding to the handwriting input operation; and/or determining a handwriting input rule matched with the operation attribute information corresponding to the currently executed handwriting input operation, and processing according to the handwriting input rule. The handwriting input rule matched with the operation attribute information corresponding to the currently executed handwriting input operation specifically depends on the characteristics of the currently executed handwriting input operation. Accordingly, the handwriting input rule may be other types of handwriting input rules than the mark line drawing rule, such as a text input rule, a pattern input rule, and the like; the handwriting input rule may also be other types of marking line drawing rules, for example, it is originally determined that drawing needs to be performed according to an underline drawing rule, but in the drawing process, the input position of the user is changed to pass through the middle of the text, and the handwriting input rule is a mark pen drawing rule. Therefore, the handwriting input rule comprises various rules such as a marked line drawing rule and a non-marked line drawing rule, and the specific connotation of the handwriting input rule is not limited by the invention. For example, in the process of determining that drawing is performed by a marker drawing rule or an underline drawing rule, it is continuously determined whether correction is required: for example, if the user does not draw a handwriting close to a straight line in the subsequent process, but performs operations such as drawing a circle or writing that obviously do not belong to the drawing behavior, the drawing of the marker pen or the underline is cancelled (the drawn mark line is deleted), and the path of the actual handwriting is drawn.
In addition, further optionally, in order to improve the efficiency of drawing the marking line by the user, in this embodiment, a plurality of lines of drawing rules are preset, so that the user can draw a plurality of lines of marking lines quickly. The specific content of the multiple rows of drawing rules may be set by a system or configured by a user, which is not limited by the present invention. Correspondingly, in the process of drawing the marking line corresponding to the handwriting input operation, if the operation attribute information of the currently executed handwriting input operation is detected to be matched with a preset multi-line drawing rule; a plurality of character lines corresponding to the operation attribute information of the handwriting input operation currently performed is determined, and a mark line is drawn for the plurality of character lines.
In this embodiment, the preset multi-line drawing rule includes: an input position of a currently performed handwriting input operation is located at an end of a character line, and a trajectory direction of the handwriting input operation is changed to a preset direction corresponding to a plurality of character lines. The ends of the lines of text mainly refer to: the range of the end portion can be flexibly set by those skilled in the art according to the precision requirement and the habit of the user, for example, the range of the end portion can be set to the position of one character at the rightmost end of the character row, and for example, the range of the end portion can be set to the position of at least two characters at the right end of the character row and the partial blank area at the right side. As can be seen, when the input position of the handwriting input operation is detected to be at the end of a text line, it is determined that it conforms to the multi-line drawing rule if the trajectory direction of the handwriting input operation is changed to a preset direction corresponding to a plurality of text lines. Wherein, the preset directions corresponding to the plurality of character lines are as follows: the direction of a plurality of character lines can be covered at the same time. For example, in the present embodiment, the preset directions corresponding to the plurality of text lines include: a direction perpendicular to the direction of reading the text and/or the direction of the line of text. Wherein, the text row direction is usually the horizontal direction, and the text reading direction is usually the horizontal direction from left to right, namely: in most cases, the reading direction of the characters is the same as the row direction of the characters, and is the horizontal direction, but the reading direction of the characters in some books arranged in rows is the vertical direction from top to bottom. In summary, by setting the preset direction to a direction perpendicular to the text reading direction, it is possible to facilitate use for quickly covering a plurality of text lines. The track direction of the handwriting input operation is vertical to the character reading direction and/or the character line direction, which is an ideal implementation manner, but in practical situations, in consideration of the deviation of the user operation, the handwriting input operation is difficult to be strictly vertical, so that the verticality is not limited to the vertical relation of a strict 90-degree included angle, and also includes the situation of being approximately vertical. Or, the included angle between the track direction of the handwriting input operation and the character reading direction and/or the character line direction may be within a preset vertical range, the preset vertical range may include various angles within 60 degrees to 120 degrees, and the specific range may be flexibly set by a person skilled in the art.
In addition, when a marking line corresponding to a handwriting input operation is drawn according to a marking line drawing rule, it is necessary to determine a start position of the marking line according to a pen-down position of the handwriting input operation, and when a pen-up operation corresponding to the handwriting input operation (i.e., a position where a user ends the current handwriting input operation) is monitored, determine an end position of the marking line according to a pen-up position corresponding to the pen-up operation.
For example, when a user draws a mark line of an underline or a mark pen type, if the user is in a mark pen or underline drawing mode and a pen (or a hand) is located at the last character of the last character line or a certain range of the right side of the last character of the character line, whether the user draws vertically downwards (or upwards) is detected, if yes, the mode of drawing the mark pen or the underline in the whole line is entered, and in the mode, each line drawn downwards (or upwards) by the user is added with a mark pen or an underline effect in the whole, so that the drawing efficiency is improved. And, in order to facilitate accurate determination of the end position, the user can adjust the end position of the marker or underline effect of the current line by moving left and right on the last line of text. For example, when the user moves the finger to a position in the middle of the third line when drawing vertically on the third line, the marker pen or the underline effect can be ended at a position in the middle of the third line, and the ending with the end of the entire line is not necessary, thereby improving the accuracy in drawing multiple lines.
In addition, the drawing effect of the underline or the mark pen can be adjusted through the parameters, for example, the handwriting can be in original appearance or optimized to various modes, and the specific adjustable content includes color, wavy line, various preset mapping patterns, line thickness (related to line height, such as 80% of line height), up-down offset, and the like. Among these, the underlined tunable parameters include: dot-dash lines, and the like are common underlined types. The above parameters can be set by default by the system or can be preset by the user.
For ease of understanding, the manner in which the present invention is presented in one specific example is as follows: the current setting in the system is that the Mark pen mode is set as a wavy line, the underline mode is set as a straight line, and the user can set in advance in the setting menu. For example, if the user starts to drop a pen in the middle of a character and continues to slide to the right, the handwriting is directly drawn according to the original path, when the user penetrates two characters from the middle of the character, the program automatically enters a Mark pen drawing mode, the Mark pen effect of a wavy line from the starting position to the current pen position of the user is displayed, and if the user lifts the pen at one position, the Mark pen effect of a wavy line type from the starting position to the pen lifting position is finally obtained. For another example, if the user's pen-down starting point is below a character and slides right against the bottom of the character, then the handwriting is drawn directly according to the path of the original handwriting, when the user strokes two characters from below the character, the program automatically enters the underline mode, and displays the linear underline effect from the starting point to the current pen position of the user, the user strokes to the end of the current line are in a certain range right of the last character or the last character of the current line, the user continues to slide downwards and vertically passes through the end of the next two lines, at this time, the range of the underline effect is from the pen-down position to the end of the first line, and the underline effect is displayed on the two lines which have passed vertically. When the user moves to the left in the fourth line below the pen down position, i.e., the end of the last line drawn vertically, the underlining effect of the last line goes from the head of the last line to the position of the pen drawn to the user, and the underlining range is adjusted following the movement of the user's pen. The user lifts the pen, and what has the underline effect finally is that the pen-down position starts to the tail of the line, and the user below the underline effect vertically strokes two lines from the tail of the line, and then the last line is from the head of the line to the pen-up position.
The method can be applied to various hardware or software such as electronic book readers and electronic book applications. The method can automatically match the corresponding marking line drawing rule according to the input characteristics of the handwriting input operation of the user, so that the marking line is drawn automatically without the need of pre-selection by the user.
In conclusion, by the method, when a book is read, direct underlining is drawn by selecting characters, or regular line segments are drawn according to the actual handwriting track or by selecting a line segment mode such as drawing straight lines in advance through a menu to mark the characters of the book. The method can assist the user to draw beautiful Mark pens or underlines and other effects quickly, and can draw line segments of each line of characters conveniently when different attached books are read through different settings. The mark pen or underline effect can be drawn quickly through the track, the starting position and the end position of the actual handwriting, the multi-line mark pen effect can be drawn quickly, and the end position of the last line can be adjusted conveniently during multi-line drawing.
EXAMPLE III
The embodiment of the application provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the electronic book-based mark line drawing method in any method embodiment.
The executable instructions may be specifically configured to cause the processor to:
acquiring operation attribute information corresponding to the monitored handwriting input operation;
when the acquired operation attribute information is determined to be matched with a preset marking line input rule, a marking line drawing rule corresponding to the preset marking line input rule is determined;
and drawing the marking line corresponding to the handwriting input operation according to the marking line drawing rule.
In an optional manner, the operation attribute information includes at least one of:
the electronic book information processing method comprises the steps of setting a pen-down position of a handwriting input operation, setting a pen-up position of the handwriting input operation, relative position information of the handwriting input operation relative to characters of the electronic book, and track direction information of the handwriting input operation.
In an alternative, the preset marking line input rule includes at least one of: an underline input rule corresponding to a marker line of an underline type and a marker pen input rule corresponding to a marker line of a marker type;
and a marker line drawing rule corresponding to the underline input rule is an underline drawing rule, and a marker line drawing rule corresponding to the marker pen input rule is a marker pen drawing rule;
wherein the underline input rule comprises: the pen-down position of the handwriting input operation is positioned at the bottom of the character, the relative position of the handwriting input operation relative to the characters of the electronic book is positioned at the bottom of the character, and the track direction of the handwriting input operation is matched with the character reading direction; the underline drawing rule includes: drawing an underline of a straight line type along a track direction of the handwriting input operation;
the marker input rule includes: the pen-down position of the handwriting input operation is positioned in the middle of the characters, the relative position of the handwriting input operation relative to the characters of the electronic book is positioned in the middle of the characters, and the track direction of the handwriting input operation is matched with the character reading direction; the marker drawing rule comprises: and drawing a mark line of a preset Mark pen type along the track direction of the handwriting input operation.
In an alternative, the executable instructions cause the processor to: and continuously acquiring operation attribute information corresponding to the currently executed handwriting input operation every time the handwriting input operation is monitored.
In an alternative, the executable instructions cause the processor to:
continuously acquiring operation attribute information corresponding to the currently executed handwriting input operation in the process of drawing the marking line corresponding to the handwriting input operation, and continuously judging whether the operation attribute information corresponding to the currently executed handwriting input operation is matched with the preset marking line input rule or not;
if not, correction processing is carried out according to a preset correction processing rule.
In an alternative, the executable instructions cause the processor to:
deleting the drawn marking line corresponding to the handwriting input operation; and/or determining a handwriting input rule matched with the operation attribute information corresponding to the currently executed handwriting input operation, and processing according to the handwriting input rule.
In an alternative, the executable instructions cause the processor to:
in the process of drawing a marking line corresponding to the handwriting input operation, if the operation attribute information of the currently executed handwriting input operation is detected to be matched with a preset multi-line drawing rule;
a plurality of character lines corresponding to the operation attribute information of the currently performed handwriting input operation are determined, and a marking line is drawn for the plurality of character lines.
In an alternative mode, the preset multi-line drawing rule includes:
an input position of a currently performed handwriting input operation is located at an end of a text line, and a trajectory direction of the handwriting input operation is changed to a preset direction corresponding to a plurality of text lines;
wherein the preset directions corresponding to the plurality of text lines include: a direction perpendicular to the direction of reading the text and/or the direction of the line of text.
In an alternative, the executable instructions cause the processor to:
and determining the starting position of the marking line according to the pen-falling position of the handwriting input operation, and determining the end position of the marking line according to the pen-lifting position corresponding to the pen-lifting operation when the pen-lifting operation corresponding to the handwriting input operation is monitored.
In an alternative mode, the marking line drawing rule is used for setting a mapping pattern, a line thickness, an offset, a color and/or a line type of a marking line;
wherein the line types include: straight line type, curved line type, solid line type, and dotted line type.
In an alternative, the executable instructions cause the processor to:
detecting whether a mark line corresponding to the handwriting input operation accords with a preset mark line correction rule or not;
if so, executing correction processing on the mark line corresponding to the handwriting input operation according to the preset mark line correction rule, and drawing the corrected mark line;
wherein the preset marking line modification rule comprises: rules for correcting the mark line to a straight line.
Example four
Fig. 3 is a schematic structural diagram of an electronic device according to another embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 3, the electronic device may include: a processor (processor)302, a communication Interface 304, a memory 306, and a communication bus 308.
Wherein: the processor 302, communication interface 304, and memory 306 communicate with each other via a communication bus 308. A communication interface 304 for communicating with network elements of other devices, such as clients or other servers. The processor 302 is configured to execute the program 310, and may specifically perform relevant steps in the above-described method for drawing a mark line based on an electronic book.
In particular, program 310 may include program code comprising computer operating instructions.
The processor 302 may be a central processing unit CPU, or an application specific Integrated circuit (asic), or one or more Integrated circuits configured to implement an embodiment of the present invention. The electronic device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 306 for storing a program 310. Memory 306 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 310 may specifically be configured to cause the processor 302 to perform the following operations:
acquiring operation attribute information corresponding to the monitored handwriting input operation;
when the acquired operation attribute information is determined to be matched with a preset marking line input rule, a marking line drawing rule corresponding to the preset marking line input rule is determined;
and drawing the marking line corresponding to the handwriting input operation according to the marking line drawing rule.
In an optional manner, the operation attribute information includes at least one of:
the electronic book information processing method comprises the steps of setting a pen-down position of a handwriting input operation, setting a pen-up position of the handwriting input operation, relative position information of the handwriting input operation relative to characters of the electronic book, and track direction information of the handwriting input operation.
In an alternative, the preset marking line input rule includes at least one of: an underline input rule corresponding to a marker line of an underline type and a marker pen input rule corresponding to a marker line of a marker type;
and a marker line drawing rule corresponding to the underline input rule is an underline drawing rule, and a marker line drawing rule corresponding to the marker pen input rule is a marker pen drawing rule;
wherein the underline input rule comprises: the pen-down position of the handwriting input operation is positioned at the bottom of the character, the relative position of the handwriting input operation relative to the characters of the electronic book is positioned at the bottom of the character, and the track direction of the handwriting input operation is matched with the character reading direction; the underline drawing rule includes: drawing an underline of a straight line type along a track direction of the handwriting input operation;
the marker input rule includes: the pen-down position of the handwriting input operation is positioned in the middle of the characters, the relative position of the handwriting input operation relative to the characters of the electronic book is positioned in the middle of the characters, and the track direction of the handwriting input operation is matched with the character reading direction; the marker drawing rule comprises: and drawing a mark line of a preset Mark pen type along the track direction of the handwriting input operation.
In an alternative, the program 310 causes the processor to: and continuously acquiring operation attribute information corresponding to the currently executed handwriting input operation every time the handwriting input operation is monitored.
In an alternative, the program 310 causes the processor to:
continuously acquiring operation attribute information corresponding to the currently executed handwriting input operation in the process of drawing the marking line corresponding to the handwriting input operation, and continuously judging whether the operation attribute information corresponding to the currently executed handwriting input operation is matched with the preset marking line input rule or not;
if not, correction processing is carried out according to a preset correction processing rule.
In an alternative, the program 310 causes the processor to: deleting the drawn marking line corresponding to the handwriting input operation; and/or determining a handwriting input rule matched with the operation attribute information corresponding to the currently executed handwriting input operation, and processing according to the handwriting input rule.
In an alternative, the program 310 causes the processor to: in the process of drawing a marking line corresponding to the handwriting input operation, if the operation attribute information of the currently executed handwriting input operation is detected to be matched with a preset multi-line drawing rule;
a plurality of character lines corresponding to the operation attribute information of the currently performed handwriting input operation are determined, and a marking line is drawn for the plurality of character lines.
In an alternative mode, the preset multi-line drawing rule includes:
an input position of a currently performed handwriting input operation is located at an end of a text line, and a trajectory direction of the handwriting input operation is changed to a preset direction corresponding to a plurality of text lines;
wherein the preset directions corresponding to the plurality of text lines include: a direction perpendicular to the direction of reading the text and/or the direction of the line of text.
In an alternative, the program 310 causes the processor to:
and determining the starting position of the marking line according to the pen-falling position of the handwriting input operation, and determining the end position of the marking line according to the pen-lifting position corresponding to the pen-lifting operation when the pen-lifting operation corresponding to the handwriting input operation is monitored.
In an alternative mode, the marking line drawing rule is used for setting a mapping pattern, a line thickness, an offset, a color and/or a line type of a marking line;
wherein the line types include: straight line type, curved line type, solid line type, and dotted line type.
In an alternative, the program 310 causes the processor to:
detecting whether a mark line corresponding to the handwriting input operation accords with a preset mark line correction rule or not;
if so, executing correction processing on the mark line corresponding to the handwriting input operation according to the preset mark line correction rule, and drawing the corrected mark line;
wherein the preset marking line modification rule comprises: rules for correcting the mark line to a straight line.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (30)

1. A method for drawing a mark line based on an electronic book comprises the following steps:
acquiring operation attribute information corresponding to the monitored handwriting input operation;
when the acquired operation attribute information is determined to be matched with a preset marking line input rule, a marking line drawing rule corresponding to the preset marking line input rule is determined;
drawing a marking line corresponding to the handwriting input operation according to the marking line drawing rule;
wherein the preset marking line input rule comprises at least one of: an underline input rule corresponding to a marker line of an underline type and a marker pen input rule corresponding to a marker line of a marker type;
and a marker line drawing rule corresponding to the underline input rule is an underline drawing rule, and a marker line drawing rule corresponding to the marker pen input rule is a marker pen drawing rule;
wherein the underline input rule comprises: the pen-down position of the handwriting input operation is positioned at the bottom of the character, the relative position of the handwriting input operation relative to the characters of the electronic book is positioned at the bottom of the character, and the track direction of the handwriting input operation is matched with the character reading direction; the underline drawing rule includes: drawing an underline of a straight line type along a track direction of the handwriting input operation;
the marker input rule includes: the pen-down position of the handwriting input operation is positioned in the middle of the characters, the relative position of the handwriting input operation relative to the characters of the electronic book is positioned in the middle of the characters, and the track direction of the handwriting input operation is matched with the character reading direction; the marker drawing rule comprises: and drawing a mark line of a preset Mark pen type along the track direction of the handwriting input operation.
2. The method of claim 1, wherein the operational attribute information comprises at least one of:
the electronic book information processing method comprises the steps of setting a pen-down position of a handwriting input operation, setting a pen-up position of the handwriting input operation, relative position information of the handwriting input operation relative to characters of the electronic book, and track direction information of the handwriting input operation.
3. The method according to claim 1, wherein the acquiring operation attribute information corresponding to the monitored handwriting input operation specifically comprises: and continuously acquiring operation attribute information corresponding to the currently executed handwriting input operation every time the handwriting input operation is monitored.
4. The method according to any one of claims 1 to 3, wherein the drawing the marking line corresponding to the handwriting input operation according to the marking line drawing rule specifically includes:
continuously acquiring operation attribute information corresponding to the currently executed handwriting input operation in the process of drawing the marking line corresponding to the handwriting input operation, and continuously judging whether the operation attribute information corresponding to the currently executed handwriting input operation is matched with the preset marking line input rule or not;
if not, correction processing is carried out according to a preset correction processing rule.
5. The method according to claim 4, wherein the performing modification processing according to the preset modification processing rule specifically includes:
deleting the drawn marking line corresponding to the handwriting input operation; and/or determining a handwriting input rule matched with the operation attribute information corresponding to the currently executed handwriting input operation, and processing according to the handwriting input rule.
6. The method according to any one of claims 1 to 3, wherein the drawing the marking line corresponding to the handwriting input operation according to the marking line drawing rule specifically includes:
in the process of drawing a marking line corresponding to the handwriting input operation, if the operation attribute information of the currently executed handwriting input operation is detected to be matched with a preset multi-line drawing rule;
a plurality of character lines corresponding to the operation attribute information of the currently performed handwriting input operation are determined, and a marking line is drawn for the plurality of character lines.
7. The method of claim 6, wherein the preset multiple rows of drawing rules comprise:
an input position of a currently performed handwriting input operation is located at an end of a text line, and a trajectory direction of the handwriting input operation is changed to a preset direction corresponding to a plurality of text lines;
wherein the preset directions corresponding to the plurality of text lines include: a direction perpendicular to the direction of reading the text and/or the direction of the line of text.
8. The method according to any one of claims 1 to 3, wherein the drawing the marking line corresponding to the handwriting input operation according to the marking line drawing rule specifically includes:
and determining the starting position of the marking line according to the pen-falling position of the handwriting input operation, and determining the end position of the marking line according to the pen-lifting position corresponding to the pen-lifting operation when the pen-lifting operation corresponding to the handwriting input operation is monitored.
9. The method according to any one of claims 1 to 3, wherein the marking line drawing rule is used to set a mapping pattern, a line thickness, an offset amount, a color, and/or a line type of a marking line;
wherein the line types include: straight line type, curved line type, solid line type, and dotted line type.
10. The method according to any one of claims 1 to 3, wherein said drawing a marker line corresponding to the handwriting input operation according to the marker line drawing rule includes:
detecting whether a mark line corresponding to the handwriting input operation accords with a preset mark line correction rule or not;
if so, executing correction processing on the mark line corresponding to the handwriting input operation according to the preset mark line correction rule, and drawing the corrected mark line;
wherein the preset marking line modification rule comprises: rules for correcting the mark line to a straight line.
11. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
acquiring operation attribute information corresponding to the monitored handwriting input operation;
when the acquired operation attribute information is determined to be matched with a preset marking line input rule, a marking line drawing rule corresponding to the preset marking line input rule is determined;
drawing a marking line corresponding to the handwriting input operation according to the marking line drawing rule;
wherein the preset marking line input rule comprises at least one of: an underline input rule corresponding to a marker line of an underline type and a marker pen input rule corresponding to a marker line of a marker type;
and a marker line drawing rule corresponding to the underline input rule is an underline drawing rule, and a marker line drawing rule corresponding to the marker pen input rule is a marker pen drawing rule;
wherein the underline input rule comprises: the pen-down position of the handwriting input operation is positioned at the bottom of the character, the relative position of the handwriting input operation relative to the characters of the electronic book is positioned at the bottom of the character, and the track direction of the handwriting input operation is matched with the character reading direction; the underline drawing rule includes: drawing an underline of a straight line type along a track direction of the handwriting input operation;
the marker input rule includes: the pen-down position of the handwriting input operation is positioned in the middle of the characters, the relative position of the handwriting input operation relative to the characters of the electronic book is positioned in the middle of the characters, and the track direction of the handwriting input operation is matched with the character reading direction; the marker drawing rule comprises: and drawing a mark line of a preset Mark pen type along the track direction of the handwriting input operation.
12. The electronic device of claim 11, wherein the operational attribute information includes at least one of:
the electronic book information processing method comprises the steps of setting a pen-down position of a handwriting input operation, setting a pen-up position of the handwriting input operation, relative position information of the handwriting input operation relative to characters of the electronic book, and track direction information of the handwriting input operation.
13. The electronic device of claim 11, wherein the executable instructions cause the processor to: and continuously acquiring operation attribute information corresponding to the currently executed handwriting input operation every time the handwriting input operation is monitored.
14. The electronic device of any of claims 11-13, wherein the executable instructions cause the processor to:
continuously acquiring operation attribute information corresponding to the currently executed handwriting input operation in the process of drawing the marking line corresponding to the handwriting input operation, and continuously judging whether the operation attribute information corresponding to the currently executed handwriting input operation is matched with the preset marking line input rule or not;
if not, correction processing is carried out according to a preset correction processing rule.
15. The electronic device of claim 14, wherein the executable instructions cause the processor to:
deleting the drawn marking line corresponding to the handwriting input operation; and/or determining a handwriting input rule matched with the operation attribute information corresponding to the currently executed handwriting input operation, and processing according to the handwriting input rule.
16. The electronic device of any of claims 11-13, wherein the executable instructions cause the processor to:
in the process of drawing a marking line corresponding to the handwriting input operation, if the operation attribute information of the currently executed handwriting input operation is detected to be matched with a preset multi-line drawing rule;
a plurality of character lines corresponding to the operation attribute information of the currently performed handwriting input operation are determined, and a marking line is drawn for the plurality of character lines.
17. The electronic device of claim 16, wherein the preset multiple rows of drawing rules comprise:
an input position of a currently performed handwriting input operation is located at an end of a text line, and a trajectory direction of the handwriting input operation is changed to a preset direction corresponding to a plurality of text lines;
wherein the preset directions corresponding to the plurality of text lines include: a direction perpendicular to the direction of reading the text and/or the direction of the line of text.
18. The electronic device of any of claims 11-13, wherein the executable instructions cause the processor to:
and determining the starting position of the marking line according to the pen-falling position of the handwriting input operation, and determining the end position of the marking line according to the pen-lifting position corresponding to the pen-lifting operation when the pen-lifting operation corresponding to the handwriting input operation is monitored.
19. The electronic device according to any one of claims 11-13, wherein the marking line drawing rule is used to set a mapping pattern, a line thickness, an offset, a color, and/or a line type of a marking line;
wherein the line types include: straight line type, curved line type, solid line type, and dotted line type.
20. The electronic device according to any one of claims 11-13, wherein said drawing a marker line corresponding to the handwriting input operation according to the marker line drawing rule includes:
detecting whether a mark line corresponding to the handwriting input operation accords with a preset mark line correction rule or not;
if so, executing correction processing on the mark line corresponding to the handwriting input operation according to the preset mark line correction rule, and drawing the corrected mark line;
wherein the preset marking line modification rule comprises: rules for correcting the mark line to a straight line.
21. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
acquiring operation attribute information corresponding to the monitored handwriting input operation;
when the acquired operation attribute information is determined to be matched with a preset marking line input rule, a marking line drawing rule corresponding to the preset marking line input rule is determined;
drawing a marking line corresponding to the handwriting input operation according to the marking line drawing rule;
wherein the preset marking line input rule comprises at least one of: an underline input rule corresponding to a marker line of an underline type and a marker pen input rule corresponding to a marker line of a marker type;
and a marker line drawing rule corresponding to the underline input rule is an underline drawing rule, and a marker line drawing rule corresponding to the marker pen input rule is a marker pen drawing rule;
wherein the underline input rule comprises: the pen-down position of the handwriting input operation is positioned at the bottom of the character, the relative position of the handwriting input operation relative to the characters of the electronic book is positioned at the bottom of the character, and the track direction of the handwriting input operation is matched with the character reading direction; the underline drawing rule includes: drawing an underline of a straight line type along a track direction of the handwriting input operation;
the marker input rule includes: the pen-down position of the handwriting input operation is positioned in the middle of the characters, the relative position of the handwriting input operation relative to the characters of the electronic book is positioned in the middle of the characters, and the track direction of the handwriting input operation is matched with the character reading direction; the marker drawing rule comprises: and drawing a mark line of a preset Mark pen type along the track direction of the handwriting input operation.
22. The computer storage medium of claim 21, wherein the operational attribute information comprises at least one of:
the electronic book information processing method comprises the steps of setting a pen-down position of a handwriting input operation, setting a pen-up position of the handwriting input operation, relative position information of the handwriting input operation relative to characters of the electronic book, and track direction information of the handwriting input operation.
23. The computer storage medium of claim 21, wherein the executable instructions cause the processor to: and continuously acquiring operation attribute information corresponding to the currently executed handwriting input operation every time the handwriting input operation is monitored.
24. The computer storage medium of any of claims 21-23, wherein the executable instructions cause the processor to:
continuously acquiring operation attribute information corresponding to the currently executed handwriting input operation in the process of drawing the marking line corresponding to the handwriting input operation, and continuously judging whether the operation attribute information corresponding to the currently executed handwriting input operation is matched with the preset marking line input rule or not;
if not, correction processing is carried out according to a preset correction processing rule.
25. The computer storage medium of claim 24, wherein the executable instructions cause the processor to:
deleting the drawn marking line corresponding to the handwriting input operation; and/or determining a handwriting input rule matched with the operation attribute information corresponding to the currently executed handwriting input operation, and processing according to the handwriting input rule.
26. The computer storage medium of any of claims 21-23, wherein the executable instructions cause the processor to:
in the process of drawing a marking line corresponding to the handwriting input operation, if the operation attribute information of the currently executed handwriting input operation is detected to be matched with a preset multi-line drawing rule;
a plurality of character lines corresponding to the operation attribute information of the currently performed handwriting input operation are determined, and a marking line is drawn for the plurality of character lines.
27. The computer storage medium of claim 26, wherein the preset multiple rows of drawing rules comprise:
an input position of a currently performed handwriting input operation is located at an end of a text line, and a trajectory direction of the handwriting input operation is changed to a preset direction corresponding to a plurality of text lines;
wherein the preset directions corresponding to the plurality of text lines include: a direction perpendicular to the direction of reading the text and/or the direction of the line of text.
28. The computer storage medium of any of claims 21-23, wherein the executable instructions cause the processor to:
and determining the starting position of the marking line according to the pen-falling position of the handwriting input operation, and determining the end position of the marking line according to the pen-lifting position corresponding to the pen-lifting operation when the pen-lifting operation corresponding to the handwriting input operation is monitored.
29. The computer storage medium of any of claims 21-23, wherein the marking line drawing rule is to set a mapping pattern, a line thickness, an offset, a color, and/or a line type of a marking line;
wherein the line types include: straight line type, curved line type, solid line type, and dotted line type.
30. The computer storage medium of any one of claims 21-23, wherein said drawing a marker line corresponding to the handwriting input operation according to the marker line drawing rule comprises:
detecting whether a mark line corresponding to the handwriting input operation accords with a preset mark line correction rule or not;
if so, executing correction processing on the mark line corresponding to the handwriting input operation according to the preset mark line correction rule, and drawing the corrected mark line;
wherein the preset marking line modification rule comprises: rules for correcting the mark line to a straight line.
CN201811523956.4A 2018-12-13 2018-12-13 Electronic book-based marking line drawing method and electronic equipment Active CN109582929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811523956.4A CN109582929B (en) 2018-12-13 2018-12-13 Electronic book-based marking line drawing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811523956.4A CN109582929B (en) 2018-12-13 2018-12-13 Electronic book-based marking line drawing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN109582929A CN109582929A (en) 2019-04-05
CN109582929B true CN109582929B (en) 2020-01-14

Family

ID=65929325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811523956.4A Active CN109582929B (en) 2018-12-13 2018-12-13 Electronic book-based marking line drawing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN109582929B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113610944A (en) * 2021-07-30 2021-11-05 新线科技有限公司 Line drawing method, device, equipment and storage medium
CN113918079B (en) * 2021-11-12 2022-04-08 掌阅科技股份有限公司 Interactive processing method of ink screen equipment, electronic equipment and storage medium
CN114546208A (en) * 2022-02-28 2022-05-27 掌阅科技股份有限公司 Method, device and medium for drawing mark line of electronic book
CN114840902B (en) * 2022-05-19 2023-03-24 三一筑工科技股份有限公司 Target object drawing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006039783A (en) * 2004-07-23 2006-02-09 Sharp Corp Information display device and electronic book device
CN1858786A (en) * 2006-06-09 2006-11-08 宋丽娟 Electronic file formatting annotate and comment system and method
CN102902661A (en) * 2012-10-24 2013-01-30 广东欧珀移动通信有限公司 Method for realizing hyperlinks of electronic books
CN103294650A (en) * 2012-02-29 2013-09-11 北大方正集团有限公司 Method and device for displaying electronic document

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7672512B2 (en) * 2005-03-18 2010-03-02 Searete Llc Forms for completion with an electronic writing device
JP5942835B2 (en) * 2012-12-20 2016-06-29 富士ゼロックス株式会社 Handwritten information processing apparatus and program
CN107391475B (en) * 2017-07-21 2018-09-04 掌阅科技股份有限公司 Label information management method based on e-book and electronic equipment
CN108959201B (en) * 2018-07-18 2019-07-30 掌阅科技股份有限公司 The method for drafting and E-book reader of E-book reader handwriting

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006039783A (en) * 2004-07-23 2006-02-09 Sharp Corp Information display device and electronic book device
CN1858786A (en) * 2006-06-09 2006-11-08 宋丽娟 Electronic file formatting annotate and comment system and method
CN103294650A (en) * 2012-02-29 2013-09-11 北大方正集团有限公司 Method and device for displaying electronic document
CN102902661A (en) * 2012-10-24 2013-01-30 广东欧珀移动通信有限公司 Method for realizing hyperlinks of electronic books

Also Published As

Publication number Publication date
CN109582929A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN109582929B (en) Electronic book-based marking line drawing method and electronic equipment
US9811193B2 (en) Text entry for electronic devices
CN110069767B (en) Typesetting method based on electronic book, electronic equipment and computer storage medium
US10373359B2 (en) Method and device for erasing a writing path on an infrared electronic white board, and a system for writing on an infrared electronic white board
US8423916B2 (en) Information processing apparatus, processing method thereof, and computer-readable storage medium
US8131080B2 (en) Handwriting determination apparatus and method and program
US10803339B2 (en) Data processing method and device for electronic book, and mobile terminal
AU2018339524B2 (en) Synchronizing data-entry fields with corresponding image regions
CN114365075B (en) Method for selecting a graphical object and corresponding device
US11080464B2 (en) Correction techniques of overlapping digital glyphs
JP6914260B2 (en) Systems and methods to beautify digital ink
CN107273032A (en) Information composition method, device, equipment and computer-readable storage medium
CN110321837B (en) Test question score identification method, device, terminal and storage medium
KR20180119646A (en) Methods and systems for inserting characters into strings
CN108062301A (en) Character translation method and its device
JPH06149466A (en) Information processor
JPWO2016170691A1 (en) Input processing program, input processing apparatus, input processing method, character specifying program, character specifying apparatus, and character specifying method
US20230343125A1 (en) Handwriting Recognition Method and Apparatus, Handwriting Recognition System and Interactive Display
CN106598934B (en) Display methods, device and the terminal device of electronic book data
US20180032244A1 (en) Input control device, input control method, character correction device, and character correction method
US20230054848A1 (en) Structural decomposition in handwriting
WO2022160330A1 (en) Handwriting recognition method and apparatus
KR100933707B1 (en) User handwriting combination system
CN111832270A (en) Method and device for displaying row number and column label of table and electronic equipment
CN111563511A (en) Method and device for intelligently framing questions, electronic equipment and storage medium

Legal Events

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