CN111459378A - Handwriting processing method and device - Google Patents

Handwriting processing method and device Download PDF

Info

Publication number
CN111459378A
CN111459378A CN202010208460.9A CN202010208460A CN111459378A CN 111459378 A CN111459378 A CN 111459378A CN 202010208460 A CN202010208460 A CN 202010208460A CN 111459378 A CN111459378 A CN 111459378A
Authority
CN
China
Prior art keywords
writing
script
handwriting
objects
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010208460.9A
Other languages
Chinese (zh)
Inventor
邓贺文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202010208460.9A priority Critical patent/CN111459378A/en
Publication of CN111459378A publication Critical patent/CN111459378A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

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

Abstract

The application discloses a handwriting processing method and device. Wherein, the method comprises the following steps: receiving a first writing operation generated on a writing interface; displaying a first writing script according to a first writing operation, wherein the first writing script comprises a plurality of writing objects; receiving an insertion operation generated between any two writing objects of the first writing script; moving the writing object of the first writing script, and forming a region to be inserted between any two writing objects; receiving a second writing operation generated in the area to be inserted; and displaying a second writing script between any two writing objects according to the second writing operation. The method and the device solve the technical problem that in the prior art, when the characters are inserted into the handwriting, the effect is not good.

Description

Handwriting processing method and device
Technical Field
The application relates to the field of intelligent terminals, in particular to a handwriting processing method and device.
Background
Currently, many electronic devices can provide a function of writing on an interface so as to display a user's handwriting on a display interface of the electronic device. When a user writes, missed writing often occurs, so that missed characters need to be inserted into the correct positions. Fig. 1 is a schematic diagram of inserting characters with missing writing in the prior art, as shown in fig. 1, a user writes down a poetry sentence "low thinking and hometown", and the user misses writing a "head" character, at this time, the user manually writes an insertion mark, and the "head" character is complemented in the insertion mark, so that the writing of the whole poetry sentence is completed, although the insertion mode can make the reading user clearly write the content expressed by the user, the whole display effect of the display interface is greatly influenced, and the height of the line character is increased due to the complemented character, so that the writing amount which can be accommodated by the writing interface is reduced.
Aiming at the problem of poor effect when characters are inserted into handwriting in the prior art, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the application provides a handwriting processing method and device, and the method and device are used for at least solving the technical problem that in the prior art, when characters are inserted into handwriting, the effect is poor.
According to an aspect of the embodiments of the present application, there is provided a method for processing handwriting, including: receiving a first writing operation generated on a writing interface; displaying a first writing script according to a first writing operation, wherein the first writing script comprises a plurality of writing objects; receiving an insertion operation generated between any two writing objects of the first writing script; moving the writing object of the first writing script, and forming a region to be inserted between any two writing objects; receiving a second writing operation generated in the area to be inserted; and displaying a second writing script between any two writing objects according to the second writing operation.
Further, after the second writing script is displayed between any two writing objects according to the second writing operation, determining that the area to be inserted does not receive a new writing operation within the preset time, and moving the writing object of the first writing script to enable the first writing script to be close to the second writing script.
Further, moving the writing object of the first writing trace to make the first writing trace close to the second writing trace, includes: moving the second writing handwriting to enable the center of the second writing handwriting to be overlapped with the insertion point; wherein, the insertion point is the initial position of the insertion operation; and drawing the writing object of the first writing to the second writing.
Further, the center of the second writing trace refers to the center of the smallest circumscribed circle of the second writing trace.
Further, after the second writing script is displayed between any two writing objects according to the second writing operation, the size of the second writing script is adjusted according to the first writing script.
Further, the inserting operation is any one of: double-click operation, long-press operation, sliding operation of a designated track and multi-point touch operation.
Further, moving the writing object of the first writing script to form an area to be inserted between any two writing objects, comprising: moving the writing objects of the first writing handwriting to two sides by taking the insertion point as a center, and forming a circular area to be inserted between any two writing objects; wherein the insertion point is the starting position of the insertion operation.
Further, with the insertion point as a center, moving the writing objects of the first writing script to both sides, and forming a circular region to be inserted between any two writing objects, includes: and diffusing the writing object of the first writing handwriting around the specified radius by taking the insertion point as the center to form an area to be inserted.
Further, the specified radius is determined according to the resolution of the display device.
According to an aspect of the embodiments of the present application, there is provided a handwriting processing apparatus, including: the first receiving module is used for receiving a first writing operation generated on the writing interface; the first display module is used for displaying first writing handwriting according to first writing operation, wherein the first writing handwriting comprises a plurality of writing objects; the second receiving module is used for receiving an inserting operation generated between any two writing objects of the first writing handwriting; the moving module is used for moving the writing objects of the first writing handwriting and forming an area to be inserted between any two writing objects; the third receiving module is used for receiving a second writing operation generated in the area to be inserted; and the second display module is used for displaying the second writing handwriting between any two writing objects according to the second writing operation.
According to an aspect of embodiments of the present application, there is provided a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to carry out the above-mentioned method steps.
According to an aspect of an embodiment of the present application, there is provided an electronic device including: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
In the embodiment of the application, a first writing operation generated on a writing interface is received; displaying a first writing script according to a first writing operation, wherein the first writing script comprises a plurality of writing objects; receiving an insertion operation generated between any two writing objects of the first writing script; moving the writing object of the first writing script, and forming a region to be inserted between any two writing objects; receiving a second writing operation generated in the area to be inserted; and displaying a second writing script between any two writing objects according to the second writing operation. According to the scheme, the inserted handwriting is triggered to move by adding an inserted interactive behavior in the writing process, a certain area is expanded to insert the content to be inserted, so that the inserted content and the original characters are integrated, the inserted mark influencing the display effect cannot be displayed on a writing interface, and the technical problem of poor effect in the prior art when the characters are inserted in the writing process is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a diagram illustrating the insertion of a missed-write word in the prior art;
FIG. 2 is a flow chart of a method for processing handwriting according to an embodiment of the application;
FIG. 3 is a schematic diagram of a first handwriting expanded out of an area to be inserted according to an embodiment of the application;
FIG. 4 is a schematic diagram of an area to be inserted according to an embodiment of the present application;
FIG. 5 is a flow chart of yet another process for handwriting according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an area to be inserted and a minimum circumscribed circle of second writing script in accordance with an embodiment of the present application;
FIG. 7 is a schematic diagram of writing a second writing script on the area to be inserted according to an embodiment of the present application;
FIG. 8 is a diagram of a second handwriting movement according to an embodiment of the application;
FIG. 9 is a schematic illustration of a first writing script retracted, in accordance with embodiments of the present application;
FIG. 10 is a flow chart of an alternative method of handwriting processing according to embodiments of the present application; and
FIG. 11 is a schematic diagram of another apparatus for processing handwriting according to an embodiment of the application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not necessarily used to describe a particular order or sequence, nor are they to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Example 1
According to an embodiment of the present application, there is provided an embodiment of a method for handwriting processing, it should be noted that the steps shown in the flowchart of the figure may be executed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that here.
FIG. 2 is a flow chart of a handwriting processing method according to an embodiment of the present application, as shown in FIG. 2, the method includes the following steps:
in step S202, a first writing operation generated on the writing interface is received.
Specifically, the writing interface may be an interface generated after the electronic device starts writing software, and a user may write on a touch screen of the electronic device through a finger or a touch pen to generate a writing trace.
When a user performs a first writing operation in the writing interface, the device receives the first writing operation, and the first writing operation may be sent out by a device such as a finger or an electromagnetic pen.
And S204, displaying the first writing script according to the first writing operation, wherein the first writing script comprises a plurality of writing objects.
In the above steps, the device generates a first writing script according to the first writing operation.
Step S206, receiving an insertion operation generated between any two writing objects of the first writing script.
The writing object refers to a single writing structure in the first writing trace, for example, a character can be regarded as a writing object, a letter can be regarded as a writing object, and a punctuation mark can also be regarded as a writing object. Any two writing objects can be two adjacent writing objects at left and right, and can also be two adjacent writing objects at upper and lower parts. The insert operation generates a blank location between any two written objects that does not overlie the first written trace.
For example, in the example of fig. 1, if the user needs to insert the word "head" between "low" and "thinking", the insertion operation may be performed at a blank position between "low" and "thinking".
And S208, moving the writing object of the first writing script, and forming an area to be inserted between any two writing objects.
In the scheme, the position for receiving the insertion operation divides the first writing script into two parts, if the position is between two adjacent writing objects at left and right, the first writing script is divided into a left part and a right part, the left and right parts of the first writing script can move away from each other in the horizontal direction, namely the left first writing script moves leftwards, and the right first writing script moves rightwards, so that an area to be inserted between the two writing objects is formed; if the position is between two adjacent writing objects, the first writing handwriting is divided into an upper part and a lower part, the first writing handwriting of the upper part and the lower part can move away from each other in the vertical direction, namely the first writing handwriting above moves upwards, and the first writing handwriting below moves downwards, so that the region to be inserted is expanded. The specific movement distance may be a specified preset distance.
In an alternative embodiment, the point at which the insertion operation is generated may be taken as the insertion point, and the first writing script is diffused around the insertion point, thereby forming the area to be inserted.
Fig. 3 is a schematic diagram of a first handwriting according to an embodiment of the present application, where an insertion operation is generated between characters "low" and "thinking" in conjunction with fig. 3, and in order to extend the to-be-inserted area between "low" and "thinking," low "moves to the left, and" thinking home "moves to the right. Fig. 4 is a schematic view of an area to be inserted according to an embodiment of the present application, and in conjunction with fig. 4, after "low" moves to the left and "cizu" moves to the right, a circular area formed between "low" and "cizu" is the area to be inserted.
It should be noted that, in the writing interface, a mark (for example, a circle in fig. 4) for indicating the region to be inserted may be displayed in various preset manners (a dotted line, a solid line, etc.), or the mark of the region to be inserted may not be displayed, and the region to be inserted may be displayed for the user to write.
Step S2010, receiving a second writing operation generated in the region to be inserted.
And after the area to be inserted is generated, the user can write in the area to be inserted so as to insert contents between the two expanded writing objects in the area to be inserted. Still referring to fig. 4, the user may write the content to be inserted in the generated circular area to be inserted.
Step S2012, a second writing script is displayed between any two writing objects according to the second writing operation.
And after receiving the second writing, displaying according to the received second writing, so that the content to be inserted is inserted between the writing objects needing to be inserted.
In view of the above, the above-described embodiments of the present application receive a first writing operation generated on a writing interface; displaying a first writing script according to a first writing operation, wherein the first writing script comprises a plurality of writing objects; receiving an insertion operation generated between any two writing objects of the first writing script; moving the writing object of the first writing script, and forming a region to be inserted between any two writing objects; receiving a second writing operation generated in the area to be inserted; and displaying a second writing script between any two writing objects according to the second writing operation. According to the scheme, the inserted handwriting around the insertion point is triggered to move by increasing the inserted interactive behavior in the writing process, and a certain area is expanded to insert the content to be inserted, so that the inserted content and the original characters are integrated, the insertion mark influencing the display effect cannot be displayed on a writing interface, and the technical problem of poor effect in the process of inserting the characters in the writing handwriting in the prior art is solved.
Example 2
According to an embodiment of the present application, there is further provided a method for processing handwriting, and fig. 5 is a flowchart of processing of still another handwriting according to an embodiment of the present application, as shown in fig. 5, the method includes the following steps:
step S502, receiving a first writing operation generated on a writing interface;
step S504, displaying a first writing script according to the first writing operation, wherein the first writing script comprises a plurality of writing objects;
step S506, receiving an insertion operation generated between any two writing objects of the first writing trace;
step S508, moving the writing objects of the first writing handwriting, and forming an area to be inserted between any two writing objects;
step S5010 of receiving a second writing operation generated in the area to be inserted;
step S5012 displays a second writing trace between any two writing objects according to the second writing operation.
Steps S502 to S5012 in this embodiment are the same as steps S202 to S2012 in embodiment 1, and are not described again here.
Step S5014, determining that the area to be inserted does not receive new writing operation within the preset time, and moving the writing object of the first writing trace to enable the first writing trace to be close to the second writing trace.
And if the area to be inserted does not generate new handwriting within the preset time, the writing of the second handwriting is finished. The timing may be started from an "up" event of the touch operation occurring in the area to be inserted each time, and if no new "down" event occurs when the timing time reaches the preset time, it is determined that the area to be inserted does not receive a new writing operation within the preset time, that is, the writing of the second writing trace is completed.
The first writing handwriting is close to the second writing handwriting for representing that the first writing handwriting moves towards the second writing handwriting.
Because the writing software is difficult to determine the amount of the content inserted by the user, when the second writing script inserted by the user is less and does not occupy the area to be inserted, the distance between the inserted second writing script and the first writing script expanded out of the area to be inserted is far, and the optimal display effect is difficult to achieve.
In an alternative embodiment, as shown in fig. 4, after the character "head" is input in the region to be inserted, because the content of the inserted second handwriting is less, the distance between the second handwriting and the "low" and the "thinking" is far, and the optimal display effect after the insertion cannot be achieved, the "low" and the "thinking home" are moved closer to the "head" to reduce the distance between the second handwriting and the "head" to achieve the optimal display effect.
In view of the above, the above-described embodiments of the present application receive a first writing operation generated on a writing interface; displaying a first writing script according to a first writing operation, wherein the first writing script comprises a plurality of writing objects; receiving an insertion operation generated between any two writing objects of the first writing script; moving the writing object of the first writing script, and forming a region to be inserted between any two writing objects; receiving a second writing operation generated in the area to be inserted; and displaying the second writing handwriting between any two writing objects according to the second writing operation, determining that the area to be inserted does not receive new writing operation within preset time after the second writing handwriting is displayed, and moving the writing object of the first writing handwriting so that the first writing handwriting is close to the second writing handwriting. According to the scheme, the inserted interactive behavior is added in the writing process to trigger the handwriting around the insertion point to move, a certain area is expanded to insert the content to be inserted, and after the input content is finished, the expanded content is controlled to be drawn close to the inserted content, so that the inserted content and the original text are integrated, the insertion mark influencing the display effect cannot be displayed on a writing interface, and the technical problem that the effect is poor when the text is inserted in the writing handwriting in the prior art is solved.
As an alternative embodiment, moving the writing object of the first writing trace so that the first writing trace is close to the second writing trace includes: moving the second writing handwriting to enable the center of the second writing handwriting to be overlapped with the insertion point; wherein, the insertion point is the initial position of the insertion operation; and drawing the writing object of the first writing to the second writing.
As an alternative embodiment, the center of the second writing script refers to the center of the smallest circumscribed circle of the second writing script. Fig. 6 is a schematic diagram of an area to be inserted and a minimum circumscribed circle of the second writing, and in conjunction with fig. 6, a circle o1 is used to represent the area to be inserted, a circle o2 is used to represent the minimum circumscribed circle of the second writing, and the circle o2 includes the second writing (not shown in the figure). The second writing is moved, and the minimum circumcircle o2 of the second writing is also moved until o2 and o1 coincide.
Fig. 7 is a schematic diagram of writing a second writing script on the area to be inserted according to an embodiment of the present application, and is shown in fig. 7, where two circles in the diagram respectively represent the minimum circumscribed circles of the area to be inserted and the second writing script. Fig. 8 is a schematic diagram of a second writing script moving according to an embodiment of the present application, and in conjunction with fig. 8, in order to make the center of the second writing script coincide with the circle of the area to be inserted, the "head" of the second writing script is translated to the right, so as to obtain the display effect shown in fig. 8.
After the second writing trace moves, the second writing trace is located in the center of the area to be inserted, so that when the first writing trace is drawn close to the second writing trace, the first writing traces on two sides can be retracted by the same distance, and the distance can be the difference value obtained by subtracting the sum of the radius of the minimum circumscribed circle of the second writing trace and the preset word spacing from the specified radius of the area to be inserted.
As an optional embodiment, when the first writing trace is drawn close to the second writing trace, the distance that the first writing trace moves may be a difference value obtained by subtracting a sum of a radius of a minimum circumscribed circle of the second writing trace and a preset word pitch from a specified radius of the area to be inserted.
In the scheme, the sum of the radius of the second writing handwriting and the preset character spacing is obtained, and then the difference between the specified radius of the area to be inserted and the sum is used as the retraction distance to be closed, so that after the first writing handwriting is closed to the second writing handwriting, the distance between the first writing handwriting and the second writing handwriting can be kept to be the preset character spacing, and the display effect after the characters are inserted is further adjusted.
Fig. 9 is a schematic diagram of a first writing trace approaching to a second writing trace according to an embodiment of the application, and with reference to fig. 9, after the first writing trace approaches to the second writing trace, the inserted best display effect can be displayed.
As an alternative embodiment, after displaying the second writing script between any two writing objects according to the second writing operation, the method further comprises: and adjusting the size of the second writing according to the first writing.
In the scheme, the size of the second writing handwriting can be adjusted to enable the size of the second writing handwriting to be matched with the size of the first writing handwriting, and after the size of the second writing handwriting is adjusted, the step of retracting the first writing handwriting to the insertion point is carried out, so that the display effect of the writing interface is further adjusted.
In an alternative embodiment, the average height of the characters in the first writing script and the average height of the characters in the second writing script may be detected, and if the difference between the two average heights is greater than a preset height value, the second writing script is enlarged or reduced so that the average height of the second writing script is the same as the average height of the first writing script.
As an alternative embodiment, the insertion operation is any one of the following: double-click operation, long-press operation, sliding operation of a designated track and multi-point touch operation.
Specifically, the sliding operation of the specified trajectory refers to an operation of generating a specified identifier, and may be, for example, an operation of generating an insertion identifier as shown in fig. 1. Any of the above-described operations may be set as an inserting operation.
In the prior art, the effect of inserting characters in writing is not good as an optional embodiment, and the writing object of the first writing is moved to form an area to be inserted between any two writing objects, including:
moving the writing objects of the first writing handwriting to two sides by taking the insertion point as a center, and forming a circular area to be inserted between any two writing objects; wherein the insertion point is the starting position of the insertion operation.
In the above scheme, the starting position of the insertion operation is used as the insertion point, and the writing object of the first writing trace is moved to both sides, which means that the first writing trace is farther and farther from the insertion point in the moving process.
The insertion point divides the first writing script into two parts, if the insertion point is between two adjacent writing objects at left and right, the first writing script is divided into a left part and a right part, the left and right parts of the first writing script can move away from the insertion point in the horizontal direction, namely the first writing script at the left side of the insertion point moves to the left, and the first writing script at the right side of the insertion point moves to the right; if the insertion point is between two adjacent writing objects, the first writing script is divided into an upper part and a lower part, the first writing script of the upper part and the lower part can move away from the insertion point in the vertical direction, the first writing script above the insertion point also moves upwards, and the first writing script below the insertion point moves downwards to be farther away from the insertion point, so that the area to be inserted is expanded. The specific movement distance may be a specified preset distance.
Fig. 3 is a schematic diagram of a first handwriting according to an embodiment of the present application, where an insertion operation is generated between characters "low" and "thinking" in conjunction with fig. 3, and in order to extend the to-be-inserted area between "low" and "thinking," low "moves to the left, and" thinking home "moves to the right. Fig. 4 is a schematic view of an area to be inserted according to an embodiment of the present application, and in conjunction with fig. 4, after "low" moves to the left and "cizu" moves to the right, a circular area formed between "low" and "cizu" is the area to be inserted.
It should be noted that, in the writing interface, a mark (for example, a circle in fig. 4) for indicating the region to be inserted may be displayed in various preset manners (a dotted line, a solid line, etc.), or the mark of the region to be inserted may not be displayed, and the region to be inserted may be displayed for the user to write.
As an alternative embodiment, moving the writing objects of the first writing script to both sides with the insertion point as the center, and forming a circular region to be inserted between any two writing objects, includes: and diffusing the writing object of the first writing handwriting around the specified radius by taking the insertion point as the center to form an area to be inserted.
In the scheme, the insertion point is taken as the circle of the circular area to be inserted, and the circular area to be inserted is formed according to the specified radius. In an alternative embodiment, as shown in fig. 6, the circle o1 represents the region to be inserted, and the insertion point o1 is the first circle center.
As an alternative embodiment, the specified radius is determined according to the resolution of the display device.
The area to be inserted must be smaller than the writing interface of the electronic device before the display can be performed on the writing interface of the electronic device. In an alternative embodiment, the radius r ═ Min (width, height)/4 is specified, for example, for a display device with a resolution of 1920 × 1080, the radius r ═ Min (1920,1080)/4 ═ 270 is specified.
Fig. 10 is a flowchart of an alternative handwriting processing method according to an embodiment of the present application, and the method for processing handwriting described above in the present application is described below with reference to fig. 10, and includes the following steps:
s101, receiving a click event generated in a blank area of a character element.
Specifically, the click event is an insertion operation, the text element is the existing first handwriting, and the click event is generated in a blank area of the text element, namely between any two text objects.
And S102, diffusing the preset writing area by the surrounding handwriting with the click point as the center of a circle.
The click point is an insertion point, and the predetermined writing area is an area to be inserted. And the handwriting around the insertion point is diffused by taking the insertion point as the center of a circle to obtain a circular writing area.
S103, calculating a content area according to the writing content.
The content area is the minimum circumscribed circle of the second handwriting.
And S104, calculating the retraction distance according to the difference of the radiuses of the writing area and the content area.
Specifically, the retraction distance is used to represent a distance that the second writing trace needs to move when approaching the first writing trace, and may be a value obtained by subtracting the radius of the content area from the radius of the writing area and then subtracting a preset word pitch.
And S105, adaptively typesetting the written content after the touch event is cancelled for a period of time.
After the touch event disappears for a period of time, it indicates that the writing of the inserted content is completed. The self-adaptive typesetting and writing content can be realized by controlling the inserted content to move so that the center of the content area coincides with the center of the writing area and then controlling the text elements to retract according to the calculated retraction distance.
Example 4
According to the embodiment of the application, a device for processing handwriting is also provided, fig. 11 is a schematic diagram of another device for processing handwriting according to the embodiment of the application, and as shown in fig. 11, the device comprises
The first receiving module 110 is configured to receive a first writing operation generated on the writing interface.
The first display module 112 is configured to display a first writing script according to a first writing operation, where the first writing script includes a plurality of writing objects.
A second receiving module 114, configured to receive an insertion operation generated between any two writing objects of the first writing script.
And the moving module 116 is used for moving the writing objects of the first writing script and forming an area to be inserted between any two writing objects.
And a third receiving module 118, configured to receive a second writing operation generated in the area to be inserted.
And a second display module 1110, configured to display a second writing trace between any two writing objects according to a second writing operation.
As an alternative embodiment, the apparatus further comprises: and the second moving module is used for determining that the area to be inserted does not receive new writing operation within the preset time after the second writing script is displayed between any two writing objects according to the second writing operation, and moving the writing object of the first writing script so that the first writing script is close to the second writing script.
As an alternative embodiment, the second moving module includes: the first moving submodule is used for moving the second writing handwriting to enable the center of the second writing handwriting to be overlapped with the insertion point; wherein, the insertion point is the initial position of the insertion operation; and the second moving submodule is used for approaching the writing object of the first writing script to the second writing script.
As an alternative embodiment, the center of the second writing script refers to the center of the smallest circumscribed circle of the second writing script.
As an alternative embodiment, the apparatus further comprises: and the adjusting module is used for adjusting the size of the second writing handwriting according to the first writing handwriting after the second writing handwriting is displayed between any two writing objects according to the second writing operation.
As an alternative embodiment, the insertion operation is any one of the following: long press operation, sliding operation of a designated track and multi-point touch operation.
As an alternative embodiment, the moving module comprises: the third moving submodule is used for moving the writing objects of the first writing handwriting to two sides by taking the insertion point as the center, and forming a circular area to be inserted between any two writing objects; wherein the insertion point is the starting position of the insertion operation.
As an alternative embodiment, the third moving submodule includes: and the diffusion unit is used for diffusing the writing object of the first writing handwriting to the periphery by taking the insertion point as a center and a specified radius to form an area to be inserted.
As an alternative embodiment, the specified radius is determined according to the resolution of the display device.
Example 4
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the method steps in the embodiments shown in fig. 1 to 9, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 1 to 9, which are not described herein again.
The device on which the storage medium is located may be a smart interactive tablet.
Example 5
According to an embodiment of the present application, there is also provided an electronic device, including: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of embodiment 1 and embodiment 2.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (12)

1. A handwriting processing method is characterized by comprising the following steps:
receiving a first writing operation generated on a writing interface;
displaying a first writing script according to the first writing operation, wherein the first writing script comprises a plurality of writing objects;
receiving an insertion operation generated between any two writing objects of the first writing script;
moving the writing objects of the first writing handwriting, and forming an area to be inserted between any two writing objects;
receiving a second writing operation generated in the region to be inserted;
and displaying a second writing script between any two writing objects according to the second writing operation.
2. The method of claim 1, wherein after displaying the second writing script between the any two writing objects according to the second writing operation, the method further comprises:
and determining that the area to be inserted does not receive new writing operation within preset time, and moving the writing object of the first writing script to enable the first writing script to be close to the second writing script.
3. A method as recited in claim 1, wherein said moving the writing object of the first writing script so that the first writing script is drawn closer to the second writing script comprises:
moving the second writing handwriting to enable the center of the second writing handwriting to coincide with the insertion point; wherein the insertion point is a starting position of the insertion operation;
and drawing the writing object of the first writing script close to the second writing script.
4. The method according to claim 1, wherein the center of the second writing script refers to a center of a smallest circumscribed circle of the second writing script.
5. The method of claim 1, wherein after displaying the second writing script between the any two writing objects according to the second writing operation, the method further comprises:
and adjusting the size of the second handwriting according to the first handwriting.
6. The method of claim 1, wherein the insertion operation is any one of: double-click operation, long-press operation, sliding operation of a designated track and multi-point touch operation.
7. The method according to claim 1, wherein the moving the writing object of the first writing script forms an area to be inserted between any two writing objects, comprising:
moving the writing objects of the first writing handwriting to two sides by taking the insertion point as a center, and forming a circular area to be inserted between any two writing objects;
wherein the insertion point is a starting position of the insertion operation.
8. The method according to claim 7, wherein the moving the writing objects of the first writing script to both sides with the insertion point as the center, forming a circular region to be inserted between any two writing objects, comprises:
and diffusing the writing object of the first writing handwriting to the periphery by taking the insertion point as a center and a specified radius to form the area to be inserted.
9. The method of claim 8, wherein the specified radius is determined according to a resolution of the display device.
10. An apparatus for processing handwriting, comprising:
the first receiving module is used for receiving a first writing operation generated on the writing interface;
the first display module is used for displaying first writing handwriting according to the first writing operation, wherein the first writing handwriting comprises a plurality of writing objects;
the second receiving module is used for receiving an inserting operation generated between any two writing objects of the first writing handwriting;
the moving module is used for moving the writing objects of the first writing handwriting and forming an area to be inserted between any two writing objects;
the third receiving module is used for receiving a second writing operation generated in the region to be inserted;
and the second display module is used for displaying a second writing script between any two writing objects according to the second writing operation.
11. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps of any of claims 1 to 9.
12. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 9.
CN202010208460.9A 2020-03-23 2020-03-23 Handwriting processing method and device Pending CN111459378A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010208460.9A CN111459378A (en) 2020-03-23 2020-03-23 Handwriting processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010208460.9A CN111459378A (en) 2020-03-23 2020-03-23 Handwriting processing method and device

Publications (1)

Publication Number Publication Date
CN111459378A true CN111459378A (en) 2020-07-28

Family

ID=71685703

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010208460.9A Pending CN111459378A (en) 2020-03-23 2020-03-23 Handwriting processing method and device

Country Status (1)

Country Link
CN (1) CN111459378A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2843531A2 (en) * 2013-08-30 2015-03-04 Samsung Electronics Co., Ltd Electronic device and method for providing content according to field attribute
CN105378753A (en) * 2013-04-24 2016-03-02 麦斯杰公司 Permanent synchronisation system for handwriting input
CN109074223A (en) * 2016-02-29 2018-12-21 麦斯杰公司 For carrying out the method and system of character insertion in character string
CN109074224A (en) * 2016-02-29 2018-12-21 麦斯杰公司 For the method for insertion character and corresponding digital device in character string

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105378753A (en) * 2013-04-24 2016-03-02 麦斯杰公司 Permanent synchronisation system for handwriting input
EP2843531A2 (en) * 2013-08-30 2015-03-04 Samsung Electronics Co., Ltd Electronic device and method for providing content according to field attribute
CN109074223A (en) * 2016-02-29 2018-12-21 麦斯杰公司 For carrying out the method and system of character insertion in character string
CN109074224A (en) * 2016-02-29 2018-12-21 麦斯杰公司 For the method for insertion character and corresponding digital device in character string

Similar Documents

Publication Publication Date Title
US9811193B2 (en) Text entry for electronic devices
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
CN108334229B (en) Method, device and equipment for adjusting writing track and readable storage medium
AU2019457052B2 (en) Table processing method and apparatus, and intelligent interactive tablet and storage medium
CN107977342B (en) Document comparison method and device
CN112596661A (en) Writing track processing method and device and interactive panel
CN111782114A (en) Element display method, device, equipment and medium in manuscript editing application
CN111428455B (en) Form management method, device, equipment and storage medium
CN110795015A (en) Operation prompting method, device, equipment and storage medium
CN111459378A (en) Handwriting processing method and device
CN111459593B (en) Drawing method, device and equipment
KR102509976B1 (en) Method for panning image
CN111709418A (en) Prompting method, device and equipment in code scanning process
CN107544743B (en) Method and device for adjusting characters and electronic equipment
CN110018863B (en) Mobile terminal text display method, storage medium, equipment and system
CN108628528B (en) Method, system and device for optimizing reading application cross-page text mark
US10739961B2 (en) Display apparatus for gradual expansion and contraction of selected text, and display method
CN110058751B (en) Method and device for selecting electronic document content
CN103986594A (en) Method and device for generating network topological diagram
CN103870039A (en) Input method and electronic device
CN112394859A (en) Form dynamic adjustment method and terminal equipment
CN111273826A (en) Desktop icon management method, device, equipment and storage medium
CN112861042A (en) Information display method, device, equipment and readable medium
CN115563932B (en) Table paging method, device, equipment and storage medium
CN115202553A (en) Control method and device for whiteboard application and electronic equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200728