CN109582929A - Mark line method for drafting and electronic equipment based on e-book - Google Patents
Mark line method for drafting and electronic equipment based on e-book Download PDFInfo
- Publication number
- CN109582929A CN109582929A CN201811523956.4A CN201811523956A CN109582929A CN 109582929 A CN109582929 A CN 109582929A CN 201811523956 A CN201811523956 A CN 201811523956A CN 109582929 A CN109582929 A CN 109582929A
- Authority
- CN
- China
- Prior art keywords
- mark line
- rule
- handwriting input
- line
- input operation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/117—Tagging; Marking up; Designating a block; Setting of attributes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/02—Digital 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/025—Digital 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/0291—Digital 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)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computing Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of mark line method for drafting and electronic equipment based on e-book, this method comprises: obtaining operational attribute information corresponding with the handwriting input operation monitored;When determining that the operational attribute information that has obtained is matched with preset mark line input rule, mark line drawing rule corresponding with the preset mark line input rule is determined;Mark line corresponding with handwriting input operation is drawn according to the mark line drawing rule.It can be seen that, which passes through the mapping relations between preset mark line input rule and mark line drawing rule, can automatic identification and the handwriting input of user operate the type of corresponding mark line and draw mode, it is manually selected without user, operation complexity and the waiting time for reducing user have been obviously improved the drafting efficiency of mark line.
Description
Technical field
The present invention relates to computer fields, and in particular to a kind of mark line method for drafting and electronics based on e-book is set
It is standby.
Background technique
Currently, the number of users of e-book is more and more with the raising of reading consciousness.It was being read for the ease of user
Label is added in journey, many e-book applications both provide mark line and draw function.In traditional mark line drafting mode, use
Family needs to click lines corresponding with mark line type manually and draws entrance, so as to selected marker before drawing mark line
The type of line.After user chooses the type of mark line, the paintbrush to match with the type will occur on screen, user passes through
Manipulating the paintbrush can be realized the mark line drafting operation of respective type.
But in the implementation of the present invention, it is following to have found that above scheme in the prior art at least exists by inventor
Defect: user needs to click lines corresponding with mark line type manually and draws entrance before drawing mark line, also,
It needs to wait on screen and occurs and corresponding mark line can be drawn after the paintbrush that the type matches.It can be seen that the party
Formula needs user to execute cumbersome manual operation and needs to wait the long period, significantly reduces the drafting efficiency of mark line.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State the mark line method for drafting and electronic equipment based on e-book of problem.
According to an aspect of the invention, there is provided a kind of mark line method for drafting based on e-book, comprising:
Obtain operational attribute information corresponding with the handwriting input operation monitored;
It is determining to be preset with described when determining that the operational attribute information obtained is matched with preset mark line input rule
The corresponding mark line drawing rule of mark line input rule;
Mark line corresponding with handwriting input operation is drawn according to the mark line drawing rule.
According to another aspect of the present invention, provide a kind of electronic equipment, comprising: processor, memory, communication interface and
Communication bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is following that the executable instruction executes the processor
Operation:
Obtain operational attribute information corresponding with the handwriting input operation monitored;
It is determining to be preset with described when determining that the operational attribute information obtained is matched with preset mark line input rule
The corresponding mark line drawing rule of mark line input rule;
Mark line corresponding with handwriting input operation is drawn according to the mark line drawing rule.
According to another aspect of the invention, provide a kind of computer storage medium, be stored in the storage medium to
A few executable instruction, the executable instruction make the processor execute following operation:
Obtain operational attribute information corresponding with the handwriting input operation monitored;
It is determining to be preset with described when determining that the operational attribute information obtained is matched with preset mark line input rule
The corresponding mark line drawing rule of mark line input rule;
Mark line corresponding with handwriting input operation is drawn according to the mark line drawing rule.
In the mark line method for drafting and electronic equipment provided by the invention based on e-book, it can obtain and monitor
Handwriting input operate corresponding operational attribute information, and automatically by the operational attribute information obtained and preset mark line
Input rule is matched, and then determines mark line drawing rule corresponding with matched mark line input rule, and according to
The mark line drawing rule draws mark line corresponding with handwriting input operation.It can be seen that in this approach, on the one hand,
The type for the mark line that can be drawn according to the operational attribute information automatic identification user of mark line input rule and user;Separately
On the one hand, corresponding mark line can be drawn automatically according to mark line drawing rule corresponding with the type.Which passes through
Mapping relations between preset mark line input rule and mark line drawing rule are capable of the hand-written defeated of automatic identification and user
Enter the type for operating corresponding mark line and draw mode, is manually selected without user, reduce the operation complexity of user
And the waiting time, it has been obviously improved the drafting efficiency of mark line.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of the mark line method for drafting provided by one embodiment of the present invention based on e-book;
Fig. 2 shows the flow charts for the mark line method for drafting based on e-book that another embodiment of the present invention provides;
Fig. 3 shows the structural schematic diagram of a kind of electronic equipment in accordance with another embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Embodiment one
Fig. 1 shows the flow chart of the mark line method for drafting provided by one embodiment of the present invention based on e-book.Such as
Shown in Fig. 1, method includes the following steps:
Step S110: operational attribute information corresponding with the handwriting input operation monitored is obtained.
In the present embodiment, it automatic draw mark line in order to realize and is needed without the effect of user's selected marker line type
It is automatic to obtain operational attribute information corresponding with the handwriting input operation monitored when monitoring handwriting input operation.
Wherein, the handwriting input operation in the present embodiment refers to all kinds of operations executed by handwriting input mode, comprising:
For drawing each generic operations such as the operation of mark line, the operation for inputting text, the operation for drawing a design.
For the ease of determining whether handwriting input operation is operation for drawing mark line in the next steps, need
Obtain operational attribute information corresponding with handwriting input operation.Wherein, operational attribute information is for describing this handwriting input
The features such as mode of operation, the action type of operation, it is all to can be used in retouching the operating characteristics that this handwriting input operates
The information stated can be used as operational attribute information, and the present invention does not limit the specific intension of operational attribute information.
Step S120: it when determining that the operational attribute information obtained is matched with preset mark line input rule, determines
Mark line drawing rule corresponding with preset mark line input rule.
Specifically, in the present embodiment, mark line input rule is pre-set.The mark line input rule is used for basis
Operational attribute information determines whether the handwriting input operation of user is operation for drawing mark line, also, the mark line is defeated
Enter rule to be further used for determining the handwriting input operation of user particularly for the operation for drawing what type of mark line.This
The unlimited specific intension for determining mark line input rule is invented, those skilled in the art can be according to preset rules and/or user setting
Flexibly setting mark line input rule.
In addition, being further provided with the corresponding pass between mark line input rule and mark line drawing rule in the present embodiment
System, each mark line input rule both correspond at least one mark line drawing rule, to realize drawing automatically for mark line
System.Wherein, mark line drawing rule be used to be arranged the textures pattern of corresponding mark line, line weight, offset, color and/
Or line style of type etc. draws information.Invention technician can flexible setting mark line drawing rule, the present invention do not limit this
It is fixed.
Step S130: mark line corresponding with handwriting input operation is drawn according to mark line drawing rule.
Specifically, due to being provided with the design parameter information for drawing mark line in mark line drawing rule, correspondingly,
Mark line corresponding with handwriting input operation can be drawn automatically according to the mark line drawing rule, to realize label automatically
The Fast Drawing of line.
It can be seen that in this approach, on the one hand, can be believed according to mark line input rule and the operational attribute of user
Cease the type for the mark line that automatic identification user draws;On the other hand, it can be drawn according to mark line corresponding with the type
Rule draws corresponding mark line automatically.Which passes through between preset mark line input rule and mark line drawing rule
Mapping relations, can automatic identification and the handwriting input of user operate the type of corresponding mark line and draw mode, be not necessarily to
User manually selects, and reduces operation complexity and the waiting time of user, has been obviously improved the drafting efficiency of mark line.
Embodiment two
Fig. 2 shows the flow charts for the mark line method for drafting based on e-book that another embodiment of the present invention provides.
As shown in Fig. 2, method includes the following steps:
Step S210: whenever monitoring handwriting input operation, lasting obtain operates phase with currently performed handwriting input
Corresponding operational attribute information.
In the present embodiment, all kinds of handwriting inputs operation for needing to monitor user's triggering automatically, for example, can be believed according to pressure sensitivity
Breath operates to monitor handwriting input.Since the handwriting input operation for drawing mark line would generally continue a Duan Shichang,
Whenever monitoring handwriting input operation, need to continue to obtain operational attribute corresponding with currently performed handwriting input operation
Information, so as to the type of this handwriting input of accurate judgement operation.
In the present embodiment, corresponding operational attribute information is operated with currently performed handwriting input includes in following
At least one: the pen-down position of handwriting input operation, the pen-up position of handwriting input operation, handwriting input are operated relative to electronics
The course bearing information of relative position information and handwriting input operation between book text.Wherein, what handwriting input operated falls
Position refers to: user triggers the position of this handwriting input operation, for example, it may be the position that user's finger initially touches.
The pen-up position of handwriting input operation refers to: user terminates the position of this handwriting input operation, for example, it may be user's finger
The position finally lifted.Handwriting input operation is relative to the relative position information between e-book text for describing handwriting input
Operate e-book text between relative positional relationship, for example, handwriting input operation be likely located at e-book text middle part,
Top or bottom etc..The course bearing information of handwriting input operation is used to describe the lasting direction of handwriting input operation, for example, working as
When line operation is marked in user, course bearing is usually matched with word read direction, which can be text
The orientation of row from left to right, is also possible to the orientation of character string from top to bottom, is specifically dependent upon text composition direction,
The present invention does not limit being specifically directed towards for word read direction.
Step S220: determine whether the operational attribute information obtained matches with preset mark line input rule.
Wherein, preset mark line input rule can be one or more, be specifically dependent upon e-book application and supported
Mark line type.In the present embodiment, preset mark line input rule include it is multiple correspond respectively to it is different types of
The rule of mark line.For example, preset mark line input rule includes at least: under corresponding with the mark line of underscore type
Scribing line input rule and marker input rule corresponding with the mark line of mark's pen type.
Wherein, underscore input rule draws the handwriting input operation of underscore for identification, to realize under automatic draw
The effect of scribing line.The particular content of the underscore input rule depends on the system setting or user configuration of e-book application.?
In the present embodiment, which is specifically included: the pen-down position of handwriting input operation is located at text bottom, hand-written defeated
Enter operation relative to the relative position between e-book text be course bearing that positioned at text bottom and handwriting input operates with
The matching of word read direction.For example, if the pen-down position of user is located between two literal lines (i.e. two row texts are in the ranks),
And the motion profile of handwriting input operation close to the lower section of text from left to right pass through the first default number of words (such as two words and with
On), it is determined as user and wishes to draw underline effect.The first default number of words can be adjusted flexibly according to the actual situation, and first
Default number of words is arranged more, and judging result is more accurate;First default number of words is arranged fewer, and response speed is faster.In this reality
It applies in example, in order to balance accuracy and response speed, sets two for the first default number of words, as long as the fortune of handwriting input operation
Dynamic rail mark is to be determined as meeting underscore input rule by two words close to text bottom;Also, in subsequent steps into
One step combination correcting process rule is modified processing, to prevent because of the less error in judgement of number of words.
Marker input rule draws the handwriting input operation of marker for identification, to realize automatic drafting marker
Effect.The particular content of the marker input rule depends on the system setting or user configuration of e-book application.In this implementation
In example, which includes: that the pen-down position of handwriting input operation is located in the middle part of text, handwriting input operates relatively
Relative position between e-book text is positioned at text middle part, the course bearing of handwriting input operation and word read direction
Matching.For example, if the pen-down position of user is located in the middle part of literal line and (passes through among text), and handwriting input operation
Motion profile from left to right passes through the second default number of words (such as two words or more) along the middle part of text, is determined as user
Wish to draw marker effect.It can be seen that as long as the first two word passed through after starting to write is direction from left to right, and from word
Centre passes through, and is determined as user and wishes to draw marker effect.The second default number of words and the first default number of words can it is identical or
Difference can specifically be adjusted flexibly according to the actual situation, and the second default number of words is arranged more, and judging result is more accurate;Second is pre-
If number of words is arranged fewer, response speed is faster.In the present embodiment, accuracy and response speed in order to balance, by second
Default number of words is set as two, as long as the motion profile of handwriting input operation is determined as meeting along in the middle part of text by two words
Marker input rule;Also, be modified processing further combined with correcting process rule in subsequent steps, with prevent because
The less error in judgement of number of words.
It can be seen that can determine the operational attribute information obtained and preset mark line input rule by this step
Whether match, it is specific when determining, it can (such as underscore be defeated by the operational attribute information obtained and each mark line input rule
Enter rule and marker input rule) it matches one by one, and the determining mark line input to match with the operational attribute information is advised
Concrete type then.
Step S230: if so, determining mark line drawing rule corresponding with preset mark line input rule.
Wherein, the preset mark line input rule mentioned in this step refers to the mark to match with the operational attribute information
Remember line input rule.For example, it is assumed that determine that operational attribute information is matched with underscore input rule in the previous step, then this step
The preset mark line input rule mentioned in rapid is then underscore input rule;For another example, it is assumed that determine behaviour in the previous step
Make attribute information to match with marker input rule, then the preset mark line input rule mentioned in this step is then marker
Input rule.
Correspondingly, the corresponding pass between mark line input rule and mark line drawing rule is pre-set in the present embodiment
System, each mark line input rule both correspond at least one mark line drawing rule, to realize drawing automatically for mark line
System.For example, mark line drawing rule corresponding with underscore input rule is underscore drawing rule, and underscore draws rule
It then include: the underscore that line-type is drawn along the course bearing of handwriting input operation.It certainly, can be in addition to line-type
The underscore for drawing wave or dotted line type is specifically dependent upon system setting or user configuration.For another example, it inputs and advises with marker
Then corresponding mark line drawing rule is marker drawing rule, and marker drawing rule includes: to operate along handwriting input
Course bearing draw the mark line of preset mark's pen type.Wherein, the concrete form of the mark line of mark's pen type can be by
Those skilled in the art's flexible setting.
Step S240: mark line corresponding with handwriting input operation is drawn according to mark line drawing rule.
Specifically, due to being provided with the design parameter information for drawing mark line in mark line drawing rule, for example, mark
Remember textures pattern, line weight, offset, color, and/or the line style of type of line.Correspondingly, according to the mark line drawing rule
Mark line corresponding with handwriting input operation can be drawn automatically, to realize the Fast Drawing of mark line automatically.For example, false
If the mark line drawing rule corresponding with preset mark line input rule determined in previous step is that underscore draws rule
Then, then mark line is drawn according to underscore drawing rule;For another example, it is assumed that is determined in previous step inputs with preset mark line
The corresponding mark line drawing rule of rule is marker drawing rule, then draws mark line according to marker drawing rule.By
The mark line of this feature Auto-matching corresponding types that can be operated according to handwriting input, eliminates the pre-selected behaviour of user
Make, has saved period of reservation of number, improved drafting efficiency.
In addition, the above-mentioned line style of type includes: line-type, curve type, solid line type and dotted line type.Accordingly
Ground fast and convenient can draw various types of regular line segments by mark line drawing rule.Still optionally further, according to
During mark line drawing rule draws mark line corresponding with handwriting input operation, firstly, detection is grasped with handwriting input
Make whether corresponding mark line meets preset mark line modification rule;If so, according to preset mark line modification rule pair
Mark line corresponding with handwriting input operation executes correcting process, and draws the mark line after correcting process.Wherein, this is default
Mark line modification rule include: rule for mark line to be modified to straight line.Inventor is in the implementation of the present invention
It was found that: most users all can not Freehandhand-drawing rule completely straight line, to there is more or less bending in the straight line drawn existing mostly
As in order to help the straight line of user's drawing rule beauty, in the present embodiment, it is possible to which detection is opposite with handwriting input operation automatically
Whether the mark line answered meets preset mark line modification rule, for example, the seat of multiple location points in available mark line
Mark, detects whether the mark line is the line segment for being similar to straight line according to the coordinate value of each location point.For example, working as each location point
Horizontal coordinate value between difference be less than preset difference value threshold value when, illustrate that the mark line is similar to straight line, user wishes to draw
Should be straight line;In addition, the straight line for illustrating that user draws not enough is marked when the horizontal coordinate value of each location point is not completely equivalent
Standard needs to be modified, and correspondingly, automatically generates straight line by mark line modification rule, the generation position root of the straight line
The coordinate for the multiple location points in mark line drawn according to user determines, replaces the not straight enough of user's drafting by the straight line
Mark line keeps the mark line drawn more beautiful to realize the effect for helping user to correct mark line automatically.
In addition, optional, the error in judgement in step S220 in order to prevent, or prevent to change input side because of user midway
Mistake is drawn caused by formula, in this step, further executes following operation:
Draw operate corresponding mark line with handwriting input during, lasting acquisition with it is currently performed hand-written defeated
Enter to operate corresponding operational attribute information, and continues judgement operational attribute corresponding with currently performed handwriting input operation
Whether information matches with preset mark line input rule;If it is not, being modified processing according to preset correcting process rule.Tool
Body, since the process of Freehandhand-drawing mark line would generally continue for some time, the process persistently carried out is operated in handwriting input
In, it is lasting to obtain operational attribute information corresponding with currently performed handwriting input operation, and continue judgement and executed with current
Handwriting input operate whether corresponding operational attribute information matches with preset mark line input rule.It is subsequent when judging
Handwriting input operation operational attribute information and mark line input rule when mismatching, then according to preset correcting process rule
It is modified processing.Wherein, which may include a variety of, and which is not limited by the present invention.
In a kind of optional embodiment, which is specifically included: deleting drawn and handwriting input
Operate corresponding mark line;And/or determine operational attribute information phase corresponding with currently performed handwriting input operation
The handwriting input rule matched, is handled according to handwriting input rule.Wherein, corresponding with currently performed handwriting input operation
The handwriting input rule that matches of operational attribute information be specifically dependent upon the feature of currently performed handwriting input operation.Accordingly
Ground, the handwriting input rule either in addition to mark line drawing rule other kinds of handwriting input rule, such as text
Word input rule, pattern input rule etc.;The handwriting input rule is also possible to other kinds of mark line drawing rule, than
Such as, it determines to need to be drawn according to underscore drawing rule originally, still, in drawing process, the input position of user
It is changed into and is passed through among text, then the handwriting input rule is marker drawing rule.It can be seen that the handwriting input is regular
Including each rule-like such as mark line drawing rule and non-marked line drawing rule, the present invention is specific to handwriting input rule
Intension is without limitation.For example, in the mistake for judging to be drawn by marker drawing rule or underscore drawing rule
Cheng Zhong persistently judges whether to need to correct: such as user does not streak the person's handwriting close to straight line in the follow-up process, but carries out
It draws a circle or writes etc. and be obviously not belonging to draw the operation for selecting behavior, then cancelling the drafting of marker or underscore, (deletion has been drawn
Mark line), then draw the path of practical person's handwriting.
In addition, still optionally further, in order to promote the efficiency that user draws mark line, being previously provided in the present embodiment
Multirow drawing rule, in order to user's Fast Drawing lines of markings line.The specific intension of the multirow drawing rule can be set by system
It sets or user configuration, which is not limited by the present invention.Correspondingly, the mistake that corresponding mark line is operated with handwriting input is being drawn
Cheng Zhong, if detecting, the operational attribute information of currently performed handwriting input operation is matched with preset multirow drawing rule;Then
Multiple literal lines corresponding with the operational attribute information that currently performed handwriting input operates are determined, for multiple literal line
Draw mark line.
In the present embodiment, preset multirow drawing rule includes: the input position of currently performed handwriting input operation
Course bearing positioned at the end of literal line, and handwriting input operation is changed to correspond to the preset direction of multiple literal lines.Text
The end of word row is primarily referred to as: the starting ends (i.e. left end) of literal line or ending end (i.e. right end), specifically, the tool of end
Body range can be accustomed to flexible setting according to required precision and user by those skilled in the art, for example, can be by the range of end
It is set as the position where a text of literal line right end, for another example, can also set the range of end to including literal line
The partial blank region of position and right side where at least two texts of right end.It can be seen that when detecting handwriting input
When the input position of operation is located at the end of literal line, if the course bearing of handwriting input operation is changed to correspond to multiple texts
Capable preset direction then determines that it meets multirow drawing rule.Wherein, the preset direction corresponding to multiple literal lines refers to: can
The direction of multiple literal lines is covered simultaneously.For example, in the present embodiment, the preset direction corresponding to multiple literal lines include: with
Word read direction and/or the perpendicular direction of text line direction.Wherein, text line direction is usually horizontal direction, and text is read
Reading direction is usually horizontal direction from left to right, it may be assumed that word read direction is identical as text line direction in most cases, is
Horizontal direction, but being also not precluded within text reading direction in some books by column arrangement is vertical direction from top to bottom.Always
It can be convenient for for the multiple texts of rapid Cover by the way that preset direction to be set perpendicularly to the direction in word read direction
Row.Wherein, the course bearing of handwriting input operation and word read direction and/or the perpendicular substantially one kind of text line direction
Ideal implementation, but in actual conditions, it is contemplated that the deviation of user's operation is difficult to accomplish exact vertical, and therefore, this is vertical
It is not limited to the vertical relation of proper 90 degree of angles, also includes the case where near normal.In other words, as long as handwriting input
Angle between the course bearing and word read direction and/or text line direction of operation belongs to preset vertical range, should
Preset vertical range may include all angles within 60 degree of -120 degree, and specific range size can be flexible by those skilled in the art
Setting.
In addition, needing basis when drawing according to mark line drawing rule with the handwriting input corresponding mark line of operation
The pen-down position of handwriting input operation determines the start position of mark line, and is monitoring mention corresponding with handwriting input operation
When pen operation (i.e. user terminates the position that this handwriting input operates), being started writing according to this, it is determining to operate corresponding pen-up position
The final position of mark line.
For example, when user draws the mark line of underscore or mark's pen type, if user draw marker or
Under person's underscore mode and when pen (or hand) is located at the last character at literal line end or a certain range on the right side of it, the use is detected
Whether family carries out vertical drafting downwards (or upwards), if then entering the mode that full line draws marker or underscore, at this
Every a line that user streaks downwards (or upwards) is integrally added into marker or underline effect under mode, to promote drafting effect
Rate.Also, for the ease of accurately determining end position, user can be adjusted by moving left and right on last line text
The marker of current line or the end position of underline effect.For example, user is when being vertically plotted to the third line, finger is mobile
Some position among to the third line can then make marker or underline effect end at some position among the third line
It sets, then need not terminate the end with full line, to improve precision when multirow is drawn.
In addition, the present embodiment can adjust the drafting effect of underscore or marker by parameter, for example, can be person's handwriting
Original appearance is optimized for various modes, and specific adjustable content is thick containing color, wave and various default textures patterns, lines
Carefully (high by 80% with row Gao Xiangguan, such as row), downward shift amount.Wherein, underscore adjustable parameter includes: chain-dotted line, point are horizontal
The common underscore type such as line.Above-mentioned parameter can be arranged by system default, can also be pre-configured with by user.
In order to make it easy to understand, the mode in the present invention is introduced with a specific example below: current in system to be set as
Marker mode setting is wave, and underscore mode setting is straight line, and user can be arranged in advance in setting menu.For example,
If user starts to write starting point a text middle and continue slide to the right, directly draw person's handwriting according to original path at this time,
When user penetrates two words among text, program is worked as from initial position to user automatically into marker drawing mode, display
The wave marker effect of preceding position, if user starts writing a position, finally obtained is from initial position to starting writing
The marker effect of the wave line style of position.For another example, if user starts to write, starting point is in the lower section of a text, and close to text bottom
It slides to the right, directly draws person's handwriting according to the path of original person's handwriting at this time, when user streaks two words, journey from below text
Sequence shows the linear type underline effect from initial position to user's current pen location, user's pen automatically into underscore mode
It draws to current every trade end i.e. in the last character of current line or right a certain range of the last character, user continues downwards
It slides and is passed perpendicularly through from the row end of following two row, the range at this moment drawing underline effect is from pen-down position to the first every trade
End, two rows passed perpendicularly through also all show underline effect.When user below pen-down position fourth line i.e. vertical
The last line end drawn is moved to the left, and the underline effect of last line is from last every trade head to the pen for being plotted to user
Position, and follow the mobile adjustment underscore range of user's pen.User starts writing, and finally having underline effect is pen-down position
Start to its end of line, and two rows that user vertically streaks from end of line below, along with last line is first to position of starting writing from row
It sets.
Which can be applied in the various types of hardware such as E-book reader, e-book application or software.Which can be certainly
The dynamic input feature vector operated according to the handwriting input of user matches corresponding mark line drawing rule, to draw label automatically
Line is pre-selected without user.
In summary, by this way, it is realized when books are read by selected text and directly draws underscore, or pressed
According to the facts person's handwriting track in border carries out setting-out or in advance the drawing rule line in such a way that menu selection draws the line segments modes such as straight line
Section marks books text.Marker or the underscore and other effects that can assist user's Fast Drawing beauty, pass through setting
Difference can easily draw the line segment of every row text when different fitting books are read.By the track of practical person's handwriting and rise
Beginning position, final position Fast Drawing marker or underline effect, and can with Fast Drawing multirow marker effect,
The end position of last line adjusts in which can be convenient when multirow is drawn.
Embodiment three
The embodiment of the present application provides a kind of nonvolatile computer storage media, and the computer storage medium is stored with
The mark based on e-book in above-mentioned any means embodiment can be performed in an at least executable instruction, the computer executable instructions
Remember line method for drafting.
Executable instruction specifically can be used for so that processor executes following operation:
Obtain operational attribute information corresponding with the handwriting input operation monitored;
It is determining to be preset with described when determining that the operational attribute information obtained is matched with preset mark line input rule
The corresponding mark line drawing rule of mark line input rule;
Mark line corresponding with handwriting input operation is drawn according to the mark line drawing rule.
In a kind of optional mode, the operational attribute information includes at least one of the following:
The pen-down position of handwriting input operation, the pen-up position of handwriting input operation, handwriting input are operated relative to electronics
The course bearing information of relative position information and handwriting input operation between book text.
In a kind of optional mode, the preset mark line input rule includes at least one of the following: under
The corresponding underscore input rule of mark line and marker corresponding with the mark line of mark's pen type for type of crossing
Input rule;
Also, mark line drawing rule corresponding with the underscore input rule is underscore drawing rule, with institute
Stating the corresponding mark line drawing rule of marker input rule is marker drawing rule;
Wherein, the underscore input rule includes: that the pen-down position of handwriting input operation is located at text bottom, hand-written defeated
Entering operation relative to the relative position between e-book text is the course bearing and text operated positioned at text bottom, handwriting input
The matching of word reading direction;The underscore drawing rule includes: the course bearing drafting line-type along handwriting input operation
Underscore;
The marker input rule includes: that the pen-down position of handwriting input operation is located in the middle part of text, handwriting input is grasped
Make to be to read positioned at text middle part, the course bearing of handwriting input operation and text relative to the relative position between e-book text
Read direction matching;The marker drawing rule includes: the preset marker class of course bearing drafting along handwriting input operation
The mark line of type.
In a kind of optional mode, the executable instruction makes the processor execute following operation: whenever monitoring
It is lasting to obtain operational attribute information corresponding with currently performed handwriting input operation when handwriting input operates.
In a kind of optional mode, the executable instruction makes the processor execute following operation:
It is lasting to obtain and currently performed hand during drawing with handwriting input operation corresponding mark line
It writes input and operates corresponding operational attribute information, and it is described corresponding with currently performed handwriting input operation to continue judgement
Whether operational attribute information matches with the preset mark line input rule;
If it is not, being modified processing according to preset correcting process rule.
In a kind of optional mode, the executable instruction makes the processor execute following operation:
Delete the mark line corresponding with handwriting input operation drawn;And/or the determining and current execution
Handwriting input operate the handwriting input rule that corresponding operational attribute information matches, according to the handwriting input rule into
Row processing.
In a kind of optional mode, the executable instruction makes the processor execute following operation:
During drawing with handwriting input operation corresponding mark line, if detecting currently performed hand-written
The operational attribute information of input operation is matched with preset multirow drawing rule;
Then determine multiple literal lines corresponding with the operational attribute information of the currently performed handwriting input operation, needle
Mark line is drawn to the multiple literal line.
In a kind of optional mode, the preset multirow drawing rule includes:
The input position of currently performed handwriting input operation is located at the end of literal line, and the track of handwriting input operation
Direction is changed to correspond to the preset direction of multiple literal lines;
Wherein, the preset direction corresponding to multiple literal lines includes: and word read direction and/or text line direction
Perpendicular direction.
In a kind of optional mode, the executable instruction makes the processor execute following operation:
The start position of the mark line is determined according to the pen-down position that the handwriting input operates, and is being monitored and institute
It states that handwriting input operation is corresponding to start writing when operating, operates corresponding pen-up position according to described start writing and determine the label
The final position of line.
In a kind of optional mode, textures pattern, lines of the mark line drawing rule for setting flag line are thick
Carefully, offset, color, and/or the line style of type;
Wherein, the line style of type includes: line-type, curve type, solid line type and dotted line type.
In a kind of optional mode, the executable instruction makes the processor execute following operation:
Detect whether mark line corresponding with handwriting input operation meets preset mark line modification rule;
If so, according to the preset mark line modification rule to the label corresponding with handwriting input operation
Line executes correcting process, and draws the mark line after correcting process;
Wherein, the preset mark line modification rule includes: the rule for mark line to be modified to straight line.
Example IV
Fig. 3 shows the structural schematic diagram of a kind of electronic equipment in accordance with another embodiment of the present invention, and the present invention is specific
Embodiment does not limit the specific implementation of electronic equipment.
As shown in figure 3, the electronic equipment may include: processor (processor) 302, communication interface
(Communications Interface) 304, memory (memory) 306 and communication bus 308.
Wherein: processor 302, communication interface 304 and memory 306 complete mutual lead to by communication bus 308
Letter.Communication interface 304, for being communicated with the network element of other equipment such as client or other servers etc..Processor 302 is used
In executing program 310, the correlation step in the above-mentioned mark line method for drafting embodiment based on e-book can be specifically executed.
Specifically, program 310 may include program code, which includes computer operation instruction.
Processor 302 may be central processor CPU or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention
Road.The one or more processors that electronic equipment includes can be same type of processor, such as one or more CPU;It can also
To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 306, for storing program 310.Memory 306 may include high speed RAM memory, it is also possible to further include
Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 310 specifically can be used for so that processor 302 executes following operation:
Obtain operational attribute information corresponding with the handwriting input operation monitored;
It is determining to be preset with described when determining that the operational attribute information obtained is matched with preset mark line input rule
The corresponding mark line drawing rule of mark line input rule;
Mark line corresponding with handwriting input operation is drawn according to the mark line drawing rule.
In a kind of optional mode, the operational attribute information includes at least one of the following:
The pen-down position of handwriting input operation, the pen-up position of handwriting input operation, handwriting input are operated relative to electronics
The course bearing information of relative position information and handwriting input operation between book text.
In a kind of optional mode, the preset mark line input rule includes at least one of the following: under
The corresponding underscore input rule of mark line and marker corresponding with the mark line of mark's pen type for type of crossing
Input rule;
Also, mark line drawing rule corresponding with the underscore input rule is underscore drawing rule, with institute
Stating the corresponding mark line drawing rule of marker input rule is marker drawing rule;
Wherein, the underscore input rule includes: that the pen-down position of handwriting input operation is located at text bottom, hand-written defeated
Entering operation relative to the relative position between e-book text is the course bearing and text operated positioned at text bottom, handwriting input
The matching of word reading direction;The underscore drawing rule includes: the course bearing drafting line-type along handwriting input operation
Underscore;
The marker input rule includes: that the pen-down position of handwriting input operation is located in the middle part of text, handwriting input is grasped
Make to be to read positioned at text middle part, the course bearing of handwriting input operation and text relative to the relative position between e-book text
Read direction matching;The marker drawing rule includes: the preset marker class of course bearing drafting along handwriting input operation
The mark line of type.
In a kind of optional mode, described program 310 makes the processor execute following operation: hand-written whenever monitoring
It is lasting to obtain operational attribute information corresponding with currently performed handwriting input operation when input operation.
In a kind of optional mode, described program 310 makes the processor execute following operation:
It is lasting to obtain and currently performed hand during drawing with handwriting input operation corresponding mark line
It writes input and operates corresponding operational attribute information, and it is described corresponding with currently performed handwriting input operation to continue judgement
Whether operational attribute information matches with the preset mark line input rule;
If it is not, being modified processing according to preset correcting process rule.
In a kind of optional mode, described program 310 makes the processor execute following operation: delete drawn with
The handwriting input operates corresponding mark line;And/or determination is corresponding with the currently performed handwriting input operation
The handwriting input rule that operational attribute information matches, is handled according to the handwriting input rule.
In a kind of optional mode, described program 310 makes the processor execute following operation: drawing and the hand
During writing the corresponding mark line of input operation, if detecting the operational attribute information of currently performed handwriting input operation
It is matched with preset multirow drawing rule;
Then determine multiple literal lines corresponding with the operational attribute information of the currently performed handwriting input operation, needle
Mark line is drawn to the multiple literal line.
In a kind of optional mode, the preset multirow drawing rule includes:
The input position of currently performed handwriting input operation is located at the end of literal line, and the track of handwriting input operation
Direction is changed to correspond to the preset direction of multiple literal lines;
Wherein, the preset direction corresponding to multiple literal lines includes: and word read direction and/or text line direction
Perpendicular direction.
In a kind of optional mode, described program 310 makes the processor execute following operation:
The start position of the mark line is determined according to the pen-down position that the handwriting input operates, and is being monitored and institute
It states that handwriting input operation is corresponding to start writing when operating, operates corresponding pen-up position according to described start writing and determine the label
The final position of line.
In a kind of optional mode, textures pattern, lines of the mark line drawing rule for setting flag line are thick
Carefully, offset, color, and/or the line style of type;
Wherein, the line style of type includes: line-type, curve type, solid line type and dotted line type.
In a kind of optional mode, described program 310 makes the processor execute following operation:
Detect whether mark line corresponding with handwriting input operation meets preset mark line modification rule;
If so, according to the preset mark line modification rule to the label corresponding with handwriting input operation
Line executes correcting process, and draws the mark line after correcting process;
Wherein, the preset mark line modification rule includes: the rule for mark line to be modified to straight line.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects spy
Sign, in the above description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into individually sometimes
In embodiment, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: being wanted
Ask protection the present invention claims features more more than feature expressly recited in each claim.More precisely, such as
As following claims reflect, inventive aspect is all features less than single embodiment disclosed above.
Therefore, it then follows thus claims of specific embodiment are expressly incorporated in the specific embodiment, wherein each right is wanted
Ask itself all as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments
Including certain features rather than other feature, but the combination of the feature of different embodiment means in the scope of the present invention
Within and form different embodiments.For example, in the following claims, embodiment claimed it is any it
One can in any combination mode come using.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
The invention also discloses a kind of mark line method for drafting based on e-book of A1., comprising:
Obtain operational attribute information corresponding with the handwriting input operation monitored;
It is determining to be preset with described when determining that the operational attribute information obtained is matched with preset mark line input rule
The corresponding mark line drawing rule of mark line input rule;
Mark line corresponding with handwriting input operation is drawn according to the mark line drawing rule.
A2. the method according to claim A1, wherein the operational attribute information includes at least one in following
It is a:
The pen-down position of handwriting input operation, the pen-up position of handwriting input operation, handwriting input are operated relative to electronics
The course bearing information of relative position information and handwriting input operation between book text.
A3. the method according to claim A1 or 2, wherein the preset mark line input rule includes following
At least one of: underscore input rule corresponding with the mark line of underscore type and the mark with mark's pen type
Remember the corresponding marker input rule of line;
Also, mark line drawing rule corresponding with the underscore input rule is underscore drawing rule, with institute
Stating the corresponding mark line drawing rule of marker input rule is marker drawing rule;
Wherein, the underscore input rule includes: that the pen-down position of handwriting input operation is located at text bottom, hand-written defeated
Entering operation relative to the relative position between e-book text is the course bearing and text operated positioned at text bottom, handwriting input
The matching of word reading direction;The underscore drawing rule includes: the course bearing drafting line-type along handwriting input operation
Underscore;
The marker input rule includes: that the pen-down position of handwriting input operation is located in the middle part of text, handwriting input is grasped
Make to be to read positioned at text middle part, the course bearing of handwriting input operation and text relative to the relative position between e-book text
Read direction matching;The marker drawing rule includes: the preset marker class of course bearing drafting along handwriting input operation
The mark line of type.
A4. according to any method of claim A1-3, wherein the acquisition is operated with the handwriting input monitored
Corresponding operational attribute information specifically includes: lasting to obtain and currently performed hand whenever monitoring handwriting input operation
It writes input and operates corresponding operational attribute information.
A5. according to any method of claim A1-4, wherein described to be drawn according to the mark line drawing rule
Mark line corresponding with handwriting input operation specifically includes:
It is lasting to obtain and currently performed hand during drawing with handwriting input operation corresponding mark line
It writes input and operates corresponding operational attribute information, and it is described corresponding with currently performed handwriting input operation to continue judgement
Whether operational attribute information matches with the preset mark line input rule;
If it is not, being modified processing according to preset correcting process rule.
A6. the method according to claim A5, wherein described to be modified place according to preset correcting process rule
Reason specifically includes:
Delete the mark line corresponding with handwriting input operation drawn;And/or the determining and current execution
Handwriting input operate the handwriting input rule that corresponding operational attribute information matches, according to the handwriting input rule into
Row processing.
A7. according to any method of claim A1-6, wherein described to be drawn according to the mark line drawing rule
Mark line corresponding with handwriting input operation specifically includes:
During drawing with handwriting input operation corresponding mark line, if detecting currently performed hand-written
The operational attribute information of input operation is matched with preset multirow drawing rule;
Then determine multiple literal lines corresponding with the operational attribute information of the currently performed handwriting input operation, needle
Mark line is drawn to the multiple literal line.
A8. the method according to claim A7, wherein the preset multirow drawing rule includes:
The input position of currently performed handwriting input operation is located at the end of literal line, and the track of handwriting input operation
Direction is changed to correspond to the preset direction of multiple literal lines;
Wherein, the preset direction corresponding to multiple literal lines includes: and word read direction and/or text line direction
Perpendicular direction.
A9. according to any method of claim A1-8, wherein described to be drawn according to the mark line drawing rule
Mark line corresponding with handwriting input operation specifically includes:
The start position of the mark line is determined according to the pen-down position that the handwriting input operates, and is being monitored and institute
It states that handwriting input operation is corresponding to start writing when operating, operates corresponding pen-up position according to described start writing and determine the label
The final position of line.
A10. according to any method of claim A1-9, wherein the mark line drawing rule is for being arranged mark
Remember textures pattern, line weight, offset, color, and/or the line style of type of line;
Wherein, the line style of type includes: line-type, curve type, solid line type and dotted line type.
A11. according to any method of claim A1-10, wherein described to be drawn according to the mark line drawing rule
Making mark line corresponding with handwriting input operation includes:
Detect whether mark line corresponding with handwriting input operation meets preset mark line modification rule;
If so, according to the preset mark line modification rule to the label corresponding with handwriting input operation
Line executes correcting process, and draws the mark line after correcting process;
Wherein, the preset mark line modification rule includes: the rule for mark line to be modified to straight line.
B12. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus, the processor, institute
It states memory and the communication interface completes mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is following that the executable instruction executes the processor
Operation:
Obtain operational attribute information corresponding with the handwriting input operation monitored;
It is determining to be preset with described when determining that the operational attribute information obtained is matched with preset mark line input rule
The corresponding mark line drawing rule of mark line input rule;
Mark line corresponding with handwriting input operation is drawn according to the mark line drawing rule.
B13. the electronic equipment according to claim B12, wherein the operational attribute information include in following extremely
It is one few:
The pen-down position of handwriting input operation, the pen-up position of handwriting input operation, handwriting input are operated relative to electronics
The course bearing information of relative position information and handwriting input operation between book text.
B14. the electronic equipment according to claim B12 or 13, wherein the preset mark line input rule packet
Include at least one of the following: underscore input rule corresponding with the mark line of underscore type and with marker class
The corresponding marker input rule of the mark line of type;
Also, mark line drawing rule corresponding with the underscore input rule is underscore drawing rule, with institute
Stating the corresponding mark line drawing rule of marker input rule is marker drawing rule;
Wherein, the underscore input rule includes: that the pen-down position of handwriting input operation is located at text bottom, hand-written defeated
Entering operation relative to the relative position between e-book text is the course bearing and text operated positioned at text bottom, handwriting input
The matching of word reading direction;The underscore drawing rule includes: the course bearing drafting line-type along handwriting input operation
Underscore;
The marker input rule includes: that the pen-down position of handwriting input operation is located in the middle part of text, handwriting input is grasped
Make to be to read positioned at text middle part, the course bearing of handwriting input operation and text relative to the relative position between e-book text
Read direction matching;The marker drawing rule includes: the preset marker class of course bearing drafting along handwriting input operation
The mark line of type.
B15. according to any electronic equipment of claim B12-14, wherein the executable instruction makes the place
Reason device executes following operation: whenever monitoring handwriting input operation, lasting obtain operates phase with currently performed handwriting input
Corresponding operational attribute information.
B16. according to any electronic equipment of claim B12-15, wherein the executable instruction makes the place
It manages device and executes following operation:
It is lasting to obtain and currently performed hand during drawing with handwriting input operation corresponding mark line
It writes input and operates corresponding operational attribute information, and it is described corresponding with currently performed handwriting input operation to continue judgement
Whether operational attribute information matches with the preset mark line input rule;
If it is not, being modified processing according to preset correcting process rule.
B17. according to any electronic equipment of claim B16, wherein the executable instruction makes the processor
Execute following operation:
Delete the mark line corresponding with handwriting input operation drawn;And/or the determining and current execution
Handwriting input operate the handwriting input rule that corresponding operational attribute information matches, according to the handwriting input rule into
Row processing.
B18. according to any electronic equipment of claim B12-17, wherein the executable instruction makes the place
It manages device and executes following operation:
During drawing with handwriting input operation corresponding mark line, if detecting currently performed hand-written
The operational attribute information of input operation is matched with preset multirow drawing rule;
Then determine multiple literal lines corresponding with the operational attribute information of the currently performed handwriting input operation, needle
Mark line is drawn to the multiple literal line.
B19. the electronic equipment according to claim B18, wherein the preset multirow drawing rule includes:
The input position of currently performed handwriting input operation is located at the end of literal line, and the track of handwriting input operation
Direction is changed to correspond to the preset direction of multiple literal lines;
Wherein, the preset direction corresponding to multiple literal lines includes: and word read direction and/or text line direction
Perpendicular direction.
B20. according to any electronic equipment of claim B12-19, wherein the executable instruction makes the place
It manages device and executes following operation:
The start position of the mark line is determined according to the pen-down position that the handwriting input operates, and is being monitored and institute
It states that handwriting input operation is corresponding to start writing when operating, operates corresponding pen-up position according to described start writing and determine the label
The final position of line.
B21. according to any electronic equipment of claim B12-20, wherein the mark line drawing rule is used for
Textures pattern, line weight, offset, color, and/or the line style of type of setting flag line;
Wherein, the line style of type includes: line-type, curve type, solid line type and dotted line type.
B22. according to any electronic equipment of claim B12-21, wherein described to be drawn according to the mark line
Rule draws mark line corresponding with handwriting input operation
Detect whether mark line corresponding with handwriting input operation meets preset mark line modification rule;
If so, according to the preset mark line modification rule to the label corresponding with handwriting input operation
Line executes correcting process, and draws the mark line after correcting process;
Wherein, the preset mark line modification rule includes: the rule for mark line to be modified to straight line.
C23. a kind of computer storage medium is stored with an at least executable instruction in the storage medium, described to hold
Row instruction makes processor execute following operation:
Obtain operational attribute information corresponding with the handwriting input operation monitored;
It is determining to be preset with described when determining that the operational attribute information obtained is matched with preset mark line input rule
The corresponding mark line drawing rule of mark line input rule;
Mark line corresponding with handwriting input operation is drawn according to the mark line drawing rule.
C24. the computer storage medium according to claim C23, wherein the operational attribute information includes following
At least one of:
The pen-down position of handwriting input operation, the pen-up position of handwriting input operation, handwriting input are operated relative to electronics
The course bearing information of relative position information and handwriting input operation between book text.
C25. the computer storage medium according to claim C23 or 24, wherein the preset mark line input
Rule includes at least one of the following: underscore input rule corresponding with the mark line of underscore type and and horse
The corresponding marker input rule of mark line of gram pen type;
Also, mark line drawing rule corresponding with the underscore input rule is underscore drawing rule, with institute
Stating the corresponding mark line drawing rule of marker input rule is marker drawing rule;
Wherein, the underscore input rule includes: that the pen-down position of handwriting input operation is located at text bottom, hand-written defeated
Entering operation relative to the relative position between e-book text is the course bearing and text operated positioned at text bottom, handwriting input
The matching of word reading direction;The underscore drawing rule includes: the course bearing drafting line-type along handwriting input operation
Underscore;
The marker input rule includes: that the pen-down position of handwriting input operation is located in the middle part of text, handwriting input is grasped
Make to be to read positioned at text middle part, the course bearing of handwriting input operation and text relative to the relative position between e-book text
Read direction matching;The marker drawing rule includes: the preset marker class of course bearing drafting along handwriting input operation
The mark line of type.
C26. according to any computer storage medium of claim C23-25, wherein the executable instruction makes
The processor executes following operation: lasting to obtain and currently performed handwriting input whenever monitoring handwriting input operation
Operate corresponding operational attribute information.
C27. according to any computer storage medium of claim C23-26, wherein the executable instruction makes
The processor executes following operation:
It is lasting to obtain and currently performed hand during drawing with handwriting input operation corresponding mark line
It writes input and operates corresponding operational attribute information, and it is described corresponding with currently performed handwriting input operation to continue judgement
Whether operational attribute information matches with the preset mark line input rule;
If it is not, being modified processing according to preset correcting process rule.
C28. the computer storage medium according to claim C27, wherein the executable instruction makes the processing
Device executes following operation:
Delete the mark line corresponding with handwriting input operation drawn;And/or the determining and current execution
Handwriting input operate the handwriting input rule that corresponding operational attribute information matches, according to the handwriting input rule into
Row processing.
C29. according to any computer storage medium of claim C23-28, wherein the executable instruction makes
The processor executes following operation:
During drawing with handwriting input operation corresponding mark line, if detecting currently performed hand-written
The operational attribute information of input operation is matched with preset multirow drawing rule;
Then determine multiple literal lines corresponding with the operational attribute information of the currently performed handwriting input operation, needle
Mark line is drawn to the multiple literal line.
C30. the computer storage medium according to claim C29, wherein the preset multirow drawing rule packet
It includes:
The input position of currently performed handwriting input operation is located at the end of literal line, and the track of handwriting input operation
Direction is changed to correspond to the preset direction of multiple literal lines;
Wherein, the preset direction corresponding to multiple literal lines includes: and word read direction and/or text line direction
Perpendicular direction.
C31. according to any computer storage medium of claim C23-30, wherein the executable instruction makes
The processor executes following operation:
The start position of the mark line is determined according to the pen-down position that the handwriting input operates, and is being monitored and institute
It states that handwriting input operation is corresponding to start writing when operating, operates corresponding pen-up position according to described start writing and determine the label
The final position of line.
C32. according to any computer storage medium of claim C23-31, wherein the mark line draws rule
Then it is used for textures pattern, line weight, offset, color, and/or the line style of type of setting flag line;
Wherein, the line style of type includes: line-type, curve type, solid line type and dotted line type.
C33. according to any computer storage medium of claim C23-32, wherein described according to the label
Line drawing rule draws mark line corresponding with handwriting input operation
Detect whether mark line corresponding with handwriting input operation meets preset mark line modification rule;
If so, according to the preset mark line modification rule to the label corresponding with handwriting input operation
Line executes correcting process, and draws the mark line after correcting process;
Wherein, the preset mark line modification rule includes: the rule for mark line to be modified to straight line.
Claims (10)
1. a kind of mark line method for drafting based on e-book, comprising:
Obtain operational attribute information corresponding with the handwriting input operation monitored;
When determining that the operational attribute information obtained is matched with preset mark line input rule, the determining and preset mark
Remember the corresponding mark line drawing rule of line input rule;
Mark line corresponding with handwriting input operation is drawn according to the mark line drawing rule.
2. according to the method described in claim 1, wherein, the operational attribute information includes at least one of the following:
The pen-down position of handwriting input operation, the pen-up position of handwriting input operation, handwriting input operation are relative to e-book text
The course bearing information of relative position information and handwriting input operation between word.
3. method according to claim 1 or 2, wherein the preset mark line input rule include in following extremely
It is one few: underscore input rule corresponding with the mark line of underscore type and the mark line phase with mark's pen type
Corresponding marker input rule;
Also, mark line drawing rule corresponding with the underscore input rule is underscore drawing rule, with the horse
Gram corresponding mark line drawing rule of input rule is marker drawing rule;
Wherein, the underscore input rule includes: that the pen-down position of handwriting input operation is located at text bottom, handwriting input behaviour
Make to be that the course bearing operated positioned at text bottom, handwriting input and text are read relative to the relative position between e-book text
Read direction matching;The underscore drawing rule includes: lower stroke of the course bearing drafting line-type along handwriting input operation
Line;
The marker input rule includes: that the pen-down position of handwriting input operation is located in the middle part of text, handwriting input operates phase
It is positioned at text middle part, the course bearing of handwriting input operation and word read side for the relative position between e-book text
To matching;The marker drawing rule includes: to draw preset mark's pen type along the course bearing that handwriting input operates
Mark line.
4. method according to claim 1 to 3, wherein the acquisition is corresponding with the handwriting input operation monitored
Operational attribute information specifically include: it is lasting to obtain and currently performed handwriting input whenever monitoring handwriting input operation
Operate corresponding operational attribute information.
5. method according to claim 1 to 4, wherein it is described according to the mark line drawing rule draw with it is described
Handwriting input operates corresponding mark line and specifically includes:
Draw operate corresponding mark line with the handwriting input during, lasting acquisition with it is currently performed hand-written defeated
Enter to operate corresponding operational attribute information, and continues to judge the operation corresponding with currently performed handwriting input operation
Whether attribute information matches with the preset mark line input rule;
If it is not, being modified processing according to preset correcting process rule.
6. according to the method described in claim 5, wherein, described be modified according to preset correcting process rule is handled specifically
Include:
Delete the mark line corresponding with handwriting input operation drawn;And/or the determining and currently performed hand
It writes input and operates the handwriting input rule that corresponding operational attribute information matches, at the handwriting input rule
Reason.
7. -6 any method according to claim 1, wherein it is described according to the mark line drawing rule draw with it is described
Handwriting input operates corresponding mark line and specifically includes:
During drawing with handwriting input operation corresponding mark line, if detecting currently performed handwriting input
The operational attribute information of operation is matched with preset multirow drawing rule;
Multiple literal lines corresponding with the operational attribute information of the currently performed handwriting input operation are then determined, for institute
It states multiple literal lines and draws mark line.
8. according to the method described in claim 7, wherein, the preset multirow drawing rule includes:
The input position of currently performed handwriting input operation is located at the end of literal line, and the course bearing of handwriting input operation
It is changed to correspond to the preset direction of multiple literal lines;
Wherein, the preset direction corresponding to multiple literal lines includes: mutually to hang down with word read direction and/or text line direction
Straight direction.
9. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage
Device and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute following behaviour for storing an at least executable instruction, the executable instruction
Make:
Obtain operational attribute information corresponding with the handwriting input operation monitored;
When determining that the operational attribute information obtained is matched with preset mark line input rule, the determining and preset mark
Remember the corresponding mark line drawing rule of line input rule;
Mark line corresponding with handwriting input operation is drawn according to the mark line drawing rule.
10. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium
Processor is set to execute following operation:
Obtain operational attribute information corresponding with the handwriting input operation monitored;
When determining that the operational attribute information obtained is matched with preset mark line input rule, the determining and preset mark
Remember the corresponding mark line drawing rule of line input rule;
Mark line corresponding with handwriting input operation is drawn according to the mark line drawing rule.
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 true CN109582929A (en) | 2019-04-05 |
CN109582929B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113610944A (en) * | 2021-07-30 | 2021-11-05 | 新线科技有限公司 | Line drawing method, device, equipment and storage medium |
CN113918079A (en) * | 2021-11-12 | 2022-01-11 | 掌阅科技股份有限公司 | 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 |
CN114840902A (en) * | 2022-05-19 | 2022-08-02 | 三一筑工科技股份有限公司 | Target object drawing method, device, equipment and storage medium |
Citations (8)
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 |
US20060209043A1 (en) * | 2005-03-18 | 2006-09-21 | Searete Llc, A Limited Liability Corporation Of The State Of Delaware | Machine-differentiatable identifiers having a commonly accepted meaning |
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 |
CN103886278A (en) * | 2012-12-20 | 2014-06-25 | 富士施乐株式会社 | Handwritten-Information Processing Apparatus And Handwritten-Information Processing Method |
CN107391475A (en) * | 2017-07-21 | 2017-11-24 | 掌阅科技股份有限公司 | Label information management method and electronic equipment based on e-book |
CN108959201A (en) * | 2018-07-18 | 2018-12-07 | 掌阅科技股份有限公司 | The method for drafting and E-book reader of E-book reader handwriting |
-
2018
- 2018-12-13 CN CN201811523956.4A patent/CN109582929B/en active Active
Patent Citations (8)
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 |
US20060209043A1 (en) * | 2005-03-18 | 2006-09-21 | Searete Llc, A Limited Liability Corporation Of The State Of Delaware | Machine-differentiatable identifiers having a commonly accepted meaning |
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 |
CN103886278A (en) * | 2012-12-20 | 2014-06-25 | 富士施乐株式会社 | Handwritten-Information Processing Apparatus And Handwritten-Information Processing Method |
CN107391475A (en) * | 2017-07-21 | 2017-11-24 | 掌阅科技股份有限公司 | Label information management method and electronic equipment based on e-book |
CN108959201A (en) * | 2018-07-18 | 2018-12-07 | 掌阅科技股份有限公司 | The method for drafting and E-book reader of E-book reader handwriting |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113610944A (en) * | 2021-07-30 | 2021-11-05 | 新线科技有限公司 | Line drawing method, device, equipment and storage medium |
WO2023005139A1 (en) * | 2021-07-30 | 2023-02-02 | 新线科技有限公司 | Line drawing method and apparatus, electronic device and computer-readable storage medium |
CN113918079A (en) * | 2021-11-12 | 2022-01-11 | 掌阅科技股份有限公司 | 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 |
CN114840902A (en) * | 2022-05-19 | 2022-08-02 | 三一筑工科技股份有限公司 | Target object drawing method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109582929B (en) | 2020-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109582929A (en) | Mark line method for drafting and electronic equipment based on e-book | |
JP6847127B2 (en) | Touch screen track recognition method and device | |
CN109284059B (en) | Handwriting drawing method and device, interactive intelligent panel and storage medium | |
CN105830011B (en) | For overlapping the user interface of handwritten text input | |
EP3384372B1 (en) | Apparatus and method for note taking with gestures | |
US8131080B2 (en) | Handwriting determination apparatus and method and program | |
KR20180097519A (en) | System and method of handwriting recognition in schematics | |
CN109032495B (en) | Content input method, electronic equipment and computer storage medium | |
CN114365075B (en) | Method for selecting a graphical object and corresponding device | |
CN104238768A (en) | Handwriting input apparatus and control method | |
CN107273032A (en) | Information typesetting method, device and equipment and computer storage medium | |
CN108700994A (en) | System and method for digital ink interactivity | |
CN109062490B (en) | Take down notes delet method, electronic equipment and computer storage medium | |
KR20120095852A (en) | Method and apparatus for drawing and erasing calligraphic ink objects on a display surface | |
CN109739372A (en) | Pattern drawing method and hand-written arrangement for reading for handwriting input device | |
CN109002201B (en) | Rejection of extraneous touch input in an electronic presentation system | |
US7170502B2 (en) | Method for implementing a partial ink layer for a pen-based computing device | |
CN107943365A (en) | Line handwriting presenting method and device, electronic equipment and storage medium | |
CN109074223A (en) | For carrying out the method and system of character insertion in character string | |
CN108369637A (en) | System and method for beautifying digital ink | |
CN108959201A (en) | The method for drafting and E-book reader of E-book reader handwriting | |
CN109086336A (en) | Paper date storage method, device and electronic equipment | |
US11380028B2 (en) | Electronic drawing with handwriting recognition | |
CN110888549A (en) | Calligraphy practicing method, system and device based on touch device and storage medium | |
CN112639696A (en) | Handwriting board, handwriting board device and writing control method |
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 |