










技术领域technical field
本申请涉及智能终端领域,具体而言,涉及一种笔迹的处理方法和装置。The present application relates to the field of intelligent terminals, and in particular, to a method and device for processing handwriting.
背景技术Background technique
目前,很多电子设备能够提供在界面上进行书写的功能,以将用户的书写笔迹展示在电子设备的显示界面上。当用户在书写的过程中,常常会出现漏写的情况,从而需要将漏掉的文字插入到正确的位置。图1是现有技术中插入漏写文字的示意图,如图1所示,用户写下诗句“低思故乡”,漏写了“头”字,此时,用户手动书写一个插入标识,并在插入标识中补如“头”字,从而完成了整个诗句的书写、虽然上述插入方式能够使阅读用户清楚书写用户所表达的内容,但对于显示界面整体的显示效果影响很大,并且由于补入的一个字使该行文字的高度增高,减少了书写界面所能够容纳的书写量。At present, many electronic devices can provide the function of writing on the interface, so as to display the user's handwriting on the display interface of the electronic device. When a user is writing, there is often a situation of missing writing, so it is necessary to insert the missing text into the correct position. Fig. 1 is the schematic diagram of inserting missing written characters in the prior art, as shown in Fig. 1, the user writes down the verse "Thinking Hometown", and the word "head" is omitted. At this moment, the user manually writes an insertion mark, and in The word "head" is inserted into the logo, thus completing the writing of the entire verse. Although the above-mentioned insertion method can enable the reading user to clearly write the content expressed by the user, it has a great influence on the overall display effect of the display interface, and due to the filling in A word in the line increases the height of the line of text, reducing the amount of writing that the writing interface can accommodate.
针对现有技术中在书写笔迹中插入文字时的效果不佳的问题,目前尚未提出有效的解决方案。Aiming at the problem that the effect of inserting characters into writing handwriting in the prior art is not good, an effective solution has not yet been proposed.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种笔迹的处理方法和装置,以至少解决现有技术中在书写笔迹中插入文字时的效果不佳的技术问题。The embodiments of the present application provide a method and device for processing handwriting, so as to at least solve the technical problem in the prior art that the effect of inserting characters into writing handwriting is not good.
根据本申请实施例的一个方面,提供了一种笔迹的处理方法,包括:接收生成在书写界面上的第一书写操作;根据第一书写操作,显示第一书写笔迹,其中,第一书写笔迹包括多个书写对象;接收生成在第一书写笔迹的任意两个书写对象之间的插入操作;移动第一书写笔迹的书写对象,在任意两个书写对象之间形成待插入区域;接收生成在待插入区域的第二书写操作;根据第二书写操作,在任意两个书写对象之间显示第二书写笔迹。According to an aspect of the embodiments of the present application, a method for processing handwriting is provided, including: receiving a first writing operation generated on a writing interface; and displaying a first writing handwriting according to the first writing operation, wherein the first writing handwriting including a plurality of writing objects; receiving an insertion operation generated between any two writing objects of the first writing handwriting; moving the writing object of the first writing handwriting to form an area to be inserted between any two writing objects; The second writing operation of the area to be inserted; according to the second writing operation, the second writing handwriting is displayed between any two writing objects.
进一步地,在根据第二书写操作,在任意两个书写对象之间显示第二书写笔迹之后,确定待插入区域在预设时间内未接收到新的书写操作,移动第一书写笔迹的书写对象,使得第一书写笔迹向第二书写笔迹靠拢。Further, after the second writing handwriting is displayed between any two writing objects according to the second writing operation, it is determined that the area to be inserted has not received a new writing operation within the preset time, and the writing object of the first writing handwriting is moved. , so that the first writing handwriting is closer to the second writing handwriting.
进一步地,移动第一书写笔迹的书写对象,使得第一书写笔迹向第二书写笔迹靠拢,包括:移动第二书写笔迹,使第二书写笔迹的中心与插入点重合;其中,插入点为插入操作的起始位置;将第一书写笔迹的书写对象向第二书写笔迹靠拢。Further, moving the writing object of the first writing handwriting to make the first writing handwriting move closer to the second writing handwriting includes: moving the second writing handwriting so that the center of the second writing handwriting coincides with the insertion point; wherein the insertion point is the insertion point The starting position of the operation; move the writing object of the first writing handwriting to the second writing handwriting.
进一步地,第二书写笔迹的中心指第二书写笔迹的最小外接圆的圆心。Further, the center of the second writing handwriting refers to the center of the smallest circumscribed circle of the second writing handwriting.
进一步地,在根据第二书写操作,在任意两个书写对象之间显示第二书写笔迹之后,根据第一书写笔迹调整第二书写笔迹的大小。Further, after the second writing handwriting is displayed between any two writing objects according to the second writing operation, the size of the second writing handwriting is adjusted according to the first writing handwriting.
进一步地,插入操作为如下任意一种:双击操作、长按操作、指定轨迹的滑动操作和多点触控操作。Further, the insertion operation is any one of the following: a double-click operation, a long-press operation, a sliding operation of a specified track, and a multi-touch operation.
进一步地,移动第一书写笔迹的书写对象,在任意两个书写对象之间形成待插入区域,包括:以插入点为中心,向两侧移动第一书写笔迹的书写对象,在任意两个书写对象之间形成圆形的待插入区域;其中,插入点为插入操作的起始位置。Further, moving the writing object of the first writing handwriting to form an area to be inserted between any two writing objects, including: taking the insertion point as the center, moving the writing object of the first writing handwriting to both sides, writing on any two A circular area to be inserted is formed between the objects; the insertion point is the starting position of the insertion operation.
进一步地,以插入点为中心,向两侧移动第一书写笔迹的书写对象,在任意两个书写对象之间形成圆形的待插入区域,包括:以插入点为中心,以指定半径向四周扩散第一书写笔迹的书写对象,形成待插入区域。Further, take the insertion point as the center, move the writing object of the first writing handwriting to both sides, and form a circular area to be inserted between any two writing objects, including: taking the insertion point as the center, moving to the surrounding area with a specified radius. The writing object of the first writing handwriting is diffused to form a to-be-inserted area.
进一步地,指定半径根据显示设备的分辨率确定。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 device, including: a first receiving module for receiving a first writing operation generated on a writing interface; a first display module for receiving according to the first writing operation operation, displaying the first writing handwriting, wherein the first writing handwriting includes a plurality of writing objects; the second receiving module is used for receiving the insertion operation generated between any two writing objects of the first writing handwriting; the moving module, using For moving the writing object of the first writing handwriting, an area to be inserted is formed between any two writing objects; the third receiving module is used to receive the second writing operation generated in the area to be inserted; the second display module is used to In the second writing operation, the second writing handwriting is displayed between any two writing objects.
根据本申请实施例的一个方面,提供了一种计算机存储介质,计算机存储介质存储有多条指令,指令适于由处理器加载并执行上述的方法步骤。According to an aspect of the embodiments of the present application, a computer storage medium is provided. The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above method steps.
根据本申请实施例的一个方面,提供了一种电子设备,包括:处理器和存储器;其中,存储器存储有计算机程序,计算机程序适于由处理器加载并执行上述的方法步骤。According to an aspect of the embodiments of the present application, an electronic device is provided, including: a processor and a memory; wherein, the memory stores a computer program, and the computer program is adapted to be loaded by the processor and execute the above method steps.
在本申请实施例中,接收生成在书写界面上的第一书写操作;根据第一书写操作,显示第一书写笔迹,其中,第一书写笔迹包括多个书写对象;接收生成在第一书写笔迹的任意两个书写对象之间的插入操作;移动第一书写笔迹的书写对象,在任意两个书写对象之间形成待插入区域;接收生成在待插入区域的第二书写操作;根据第二书写操作,在任意两个书写对象之间显示第二书写笔迹。上述方案通过在书写过程中增加一种插入的交互行为来触发插入点周边笔迹进行移动,扩展出一定的区域来插入待插入的内容,从而使插入的内容与原本存在的文字融为一体,不会在书写界面上显示出影响显示效果的插入标识,解决了现有技术中在书写笔迹中插入文字时的效果不佳的技术问题。In the embodiment of the present application, the first writing operation generated on the writing interface is received; the first writing handwriting is displayed according to the first writing operation, wherein the first writing handwriting includes a plurality of writing objects; the first writing handwriting generated on the first writing handwriting is received insert operation between any two writing objects; move the writing object of the first writing handwriting to form an area to be inserted between any two writing objects; receive the second writing operation generated in the area to be inserted; according to the second writing operation to display the second writing handwriting between any two writing objects. The above solution triggers the movement of the handwriting around the insertion point by adding an inserted interactive behavior during the writing process, and expands a certain area to insert the content to be inserted, so that the inserted content is integrated with the original text, not The insertion mark that affects the display effect will be displayed on the writing interface, which solves the technical problem of poor effect when inserting characters into writing handwriting in the prior art.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation of the present application. In the attached image:
图1是现有技术中插入漏写文字的示意图;Fig. 1 is the schematic diagram of inserting missing writing characters in the prior art;
图2是根据本申请实施例的一种笔迹的处理方法的流程图;2 is a flowchart of a method for processing handwriting according to an embodiment of the present application;
图3是根据本申请实施例的一种第一书写笔迹扩展出待插入区域的示意图;3 is a schematic diagram of a first writing handwriting extending out of a to-be-inserted area according to an embodiment of the present application;
图4是根据本申请实施例的一种待插入区域的示意图;4 is a schematic diagram of a region to be inserted according to an embodiment of the present application;
图5是根据本申请实施例的又一种笔迹的处理的流程图;5 is a flowchart of another handwriting processing according to an embodiment of the present application;
图6是根据本申请实施例的一种待插入区域和第二书写笔迹的最小外接圆的示意图;6 is a schematic diagram of a minimum circumscribed circle of an area to be inserted and a second writing handwriting according to an embodiment of the present application;
图7是根据本申请实施例的一种在待插入区域书写第二书写笔迹的示意图;7 is a schematic diagram of writing a second handwriting in a to-be-inserted area according to an embodiment of the present application;
图8是根据本申请实施例的一种第二书写笔迹移动的示意图;8 is a schematic diagram of a second handwriting movement according to an embodiment of the present application;
图9是根据本申请实施例的一种第一书写笔迹回缩后的示意图;9 is a schematic diagram of a first writing handwriting retracted according to an embodiment of the present application;
图10是根据本申请实施例的一种可选的笔迹的处理方法的流程图;以及FIG. 10 is a flowchart of an optional handwriting processing method according to an embodiment of the present application; and
图11是根据本申请实施例的又一种笔迹的处理装置的示意图。FIG. 11 is a schematic diagram of still another handwriting processing apparatus according to an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。It should be clear that the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application, as recited in the appended claims.
在本申请的描述中,需要理解的是,术语“第一”、“第二”、“第三”等仅用于区别类似的对象,而不必用于描述特定的顺序或先后次序,也不能理解为指示或暗示相对重要性。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。此外,在本申请的描述中,除非另有说明,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。In the description of this application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence, nor can understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific situations. Also, in the description of the present application, unless otherwise specified, "a plurality" means two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship.
实施例1Example 1
根据本申请实施例,提供了一种笔迹的处理方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present application, an embodiment of a method for processing handwriting is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings may be executed in a computer system such as a set of computer-executable instructions, and, Although a logical order is shown in the flowcharts, in some cases steps shown or described may be performed in an order different from that herein.
图2是根据本申请实施例的一种笔迹的处理方法的流程图,如图2所示,该方法包括如下步骤:FIG. 2 is a flowchart of a method for processing handwriting according to an embodiment of the present application. As shown in FIG. 2 , the method includes the following steps:
步骤S202,接收生成在书写界面上的第一书写操作。Step S202, receiving a first writing operation generated on the writing interface.
具体的,上述书写界面可以是电子设备启动书写软件后生成的界面,用户可以通过手指或触摸笔在电子设备的触摸屏上进行书写,生成书写笔迹。Specifically, the above-mentioned writing interface may be an interface generated after the electronic device starts the writing software, and the user can write on the touch screen of the electronic device through a finger or a touch pen to generate writing handwriting.
当用户在书写界面中进行第一书写操作时,设备接收到该第一书写操作,该第一书写操作可以是通过手指或电磁笔等设备发出。When the user performs the first writing operation in the writing interface, the device receives the first writing operation, and the first writing operation may be issued by a device such as a finger or an electromagnetic pen.
步骤S204,根据第一书写操作,显示第一书写笔迹,其中,第一书写笔迹包括多个书写对象。Step S204, displaying the first writing handwriting according to the first writing operation, wherein the first writing handwriting includes a plurality of writing objects.
在上述步骤中,设备根据第一书写操作生成第一书写笔迹。In the above steps, the device generates the first writing handwriting according to the first writing operation.
步骤S206,接收生成在第一书写笔迹的任意两个书写对象之间的插入操作。Step S206, receiving an insertion operation generated between any two writing objects of the first writing handwriting.
上述书写对象指的是第一书写笔迹中单独的书写结构,例如,可以认为一个文字为一个书写对象,一个字母为一个书写对象,一个标点符号也可以作为一个书写对象。任意两个书写对象可以是左右相邻的两个书写对象,也可以是上下相邻的两个书写对象。该插入操作生成在任意两个书写对象之间的空白位置,不覆盖在第一书写笔迹之上。The above-mentioned writing object refers to a separate writing structure in the first written handwriting. For example, a character can be considered as a writing object, a letter is a writing object, and a punctuation mark can also be a writing object. Any two writing objects may be two writing objects adjacent to the left and right, or two writing objects adjacent to the upper and lower sides. The insertion operation is generated in the blank position between any two writing objects, and does not cover the first writing handwriting.
例如,在图1的例子中,如果用户需要向“低”和“思”之间插入文字“头”,则可以在“低”和“思”之间的空白位置进行插入操作。For example, in the example of FIG. 1 , if the user needs to insert the word "head" between "Low" and "Si", the insertion operation can be performed in the blank position between "Low" and "Si".
步骤S208,移动第一书写笔迹的书写对象,在任意两个书写对象之间形成待插入区域。Step S208, moving the writing object of the first writing handwriting to form a to-be-inserted area between any two writing objects.
在上述方案中,接收插入操作的位置将第一书写笔迹分为两部分,如果该位置在左右相邻的两个书写对象之间,将第一书写笔迹分为左右两部分,则左右两部分第一书写笔迹可以在水平方向上相互背离对方移动,即左侧的第一书写笔迹向左移动,右侧的第一书写笔迹向右侧移动,从而形成两个书写对象之间的待插入区域;如果该位置在上下相邻的两个书写对象之间,将第一书写笔迹分为上下两部分,则上下两部分第一书写笔迹可以在竖直方向上相互背离对方移动,即上方的第一书写笔迹向上移动,下方的第一书写笔迹向下移动,从而扩展出待插入区域。具体的移动距离可以是指定的预设距离。In the above solution, the first written handwriting is divided into two parts at the position where the insertion operation is received. If the position is between two adjacent writing objects on the left and right, the first written handwriting is divided into left and right parts, then the left and right parts are divided into two parts. The first writing handwriting can move away from each other in the horizontal direction, that is, the first writing handwriting on the left moves to the left, and the first writing handwriting on the right moves to the right, thereby forming an area to be inserted between the two writing objects. ; If the position is between two adjacent writing objects, the first writing handwriting is divided into upper and lower parts, then the first writing handwriting of the upper and lower parts can move away from each other in the vertical direction, that is, the upper and lower part of the first writing handwriting can move away from each other in the vertical direction. A writing handwriting moves upward, and the first writing handwriting below moves downward, thereby extending the area to be inserted. The specific moving distance may be a specified preset distance.
在一种可选的实施例中,可以将生成插入操作的点作为插入点,第一书写笔迹以插入点为中心扩散,从而形成待插入区域。In an optional embodiment, the point where the insertion operation is generated may be used as the insertion point, and the first writing handwriting spreads around the insertion point, thereby forming the area to be inserted.
图3是根据本申请实施例的一种第一书写笔迹扩展出待插入区域的示意图,结合图3所示,插入操作生成在文字“低”和“思”之间,为了在“低”和“思”之间扩展出待插入区域,“低”向左侧移动,“思故乡”向右移动。图4是根据本申请实施例的一种待插入区域的示意图,结合图4所示,在“低”向左侧移动,“思故乡”向右移动后,在“低”和“思”之间形成的圆形区域即为待插入区域。Fig. 3 is a schematic diagram of a first writing handwriting extending out of an area to be inserted according to an embodiment of the present application. With reference to Fig. 3, an insert operation is generated between the characters "Low" and "Thinking", in order to be between "Low" and "Thinking". The area to be inserted extends between "Thinking", "Low" moves to the left, and "Thinking of Hometown" moves to the right. Fig. 4 is a schematic diagram of a to-be-inserted area according to an embodiment of the present application. With reference to Fig. 4, after "Low" moves to the left and "Thinking of Hometown" moves to the right, between "Low" and "Thinking" The circular area formed between them is the area to be inserted.
需要说明的是,书写界面中可以以各种预设的方式(虚线、实线等)显示用于指示待插入区域的标识(例如图4中的圆形),也可以不显示待插入区域的标识,展示出待插入区域供用户书写即可。It should be noted that, in the writing interface, various preset modes (dotted line, solid line, etc.) may be used to display the mark (for example, the circle in FIG. It is enough to display the area to be inserted for the user to write.
步骤S2010,接收生成在待插入区域的第二书写操作。Step S2010, receiving the second writing operation generated in the area to be inserted.
上述第二书写笔迹即为需要插入的笔迹,在生成待插入区域后,用户可以在待插入区域进行书写,以在扩展出的待插入区域的两个书写对象之间插入内容。仍结合图4所示,用户可以在生成的圆形待插入区域内书写需要插入的内容。The above-mentioned second writing handwriting is the handwriting to be inserted. After generating the to-be-inserted area, the user can write in the to-be-inserted area to insert content between two writing objects in the extended to-be-inserted area. Still referring to FIG. 4 , the user can write the content to be inserted in the generated circular to-be-inserted area.
步骤S2012,根据第二书写操作,在任意两个书写对象之间显示第二书写笔迹。Step S2012, according to the second writing operation, display the second writing handwriting between any two writing objects.
在接收到第二书写笔迹后,根据接收的第二书写笔迹进行显示,从而将待插入的内容插入在需要插入的书写对象之间。After receiving the second writing handwriting, display is performed according to the received second writing handwriting, so that the content to be inserted is inserted between the writing objects to be inserted.
由上可知,本申请上述实施例接收生成在书写界面上的第一书写操作;根据第一书写操作,显示第一书写笔迹,其中,第一书写笔迹包括多个书写对象;接收生成在第一书写笔迹的任意两个书写对象之间的插入操作;移动第一书写笔迹的书写对象,在任意两个书写对象之间形成待插入区域;接收生成在待插入区域的第二书写操作;根据第二书写操作,在任意两个书写对象之间显示第二书写笔迹。上述方案通过在书写过程中增加插入的交互行为来触发插入点周边的笔迹进行移动,扩展出一定的区域来插入待插入的内容,从而使插入的内容与原本存在的文字融为一体,不会在书写界面上显示出影响显示效果的插入标识,解决了现有技术中在书写笔迹中插入文字时的效果不佳的技术问题。As can be seen from the above, the above-mentioned embodiments of the present application receive the first writing operation generated on the writing interface; according to the first writing operation, display the first writing handwriting, wherein the first writing handwriting includes a plurality of writing objects; Insertion operation between any two writing objects of writing handwriting; moving the writing object of the first writing handwriting to form an area to be inserted between any two writing objects; receiving a second writing operation generated in the area to be inserted; The second writing operation is to display the second writing handwriting between any two writing objects. The above solution triggers the movement of the handwriting around the insertion point by adding the interactive behavior of insertion during the writing process, and expands a certain area to insert the content to be inserted, so that the inserted content is integrated with the original text, and will not be inserted. Displaying an insertion mark that affects the display effect on the writing interface solves the technical problem of poor effect when inserting characters into writing handwriting in the prior art.
实施例2Example 2
根据本申请实施例,还提供了一种笔迹的处理方法,图5是根据本申请实施例的又一种笔迹的处理的流程图,如图5所示,该方法包括如下步骤:According to an embodiment of the present application, a method for processing handwriting is also provided. FIG. 5 is a flowchart of another handwriting processing according to an embodiment of the present application. As shown in FIG. 5 , the method includes the following steps:
步骤S502,接收生成在书写界面上的第一书写操作;Step S502, receiving the first writing operation generated on the writing interface;
步骤S504,根据第一书写操作,显示第一书写笔迹,其中,第一书写笔迹包括多个书写对象;Step S504, displaying the first writing handwriting according to the first writing operation, wherein the first writing handwriting includes a plurality of writing objects;
步骤S506,接收生成在第一书写笔迹的任意两个书写对象之间的插入操作;Step S506, receiving an insert operation generated between any two writing objects of the first writing handwriting;
步骤S508,移动第一书写笔迹的书写对象,在任意两个书写对象之间形成待插入区域;Step S508, moving the writing object of the first writing handwriting to form an area to be inserted between any two writing objects;
步骤S5010,接收生成在待插入区域的第二书写操作;Step S5010, receiving the second writing operation generated in the area to be inserted;
步骤S5012,根据第二书写操作,在任意两个书写对象之间显示第二书写笔迹。Step S5012, according to the second writing operation, display the second writing handwriting between any two writing objects.
该实施例中的步骤S502至步骤S5012与实施例1中的步骤S202至步骤S2012相同,此处不再赘述。Steps S502 to S5012 in this embodiment are the same as steps S202 to S2012 in Embodiment 1, and are not repeated here.
步骤S5014,确定待插入区域在预设时间内未接收到新的书写操作,移动第一书写笔迹的书写对象,使得第一书写笔迹向第二书写笔迹靠拢。Step S5014, it is determined that the area to be inserted has not received a new writing operation within the preset time, and the writing object of the first writing handwriting is moved so that the first writing handwriting is closer to the second writing handwriting.
如果待插入区域在预设时间内未生成新的书写笔迹,则说明第二书写笔迹的书写已经完成。可以从每次发生在待插入区域的触摸操作的“up”事件开始计时,如果计时时间达到预设时间时仍没有新的“down”事件发生,则确定待插入区域在预设时间内未接收到新的书写操作,也即第二书写笔迹的书写已经完成。If no new writing handwriting is generated in the area to be inserted within the preset time, it means that the writing of the second writing handwriting has been completed. You can start timing from the "up" event of each touch operation that occurs in the area to be inserted. If there is no new "down" event when the timing reaches the preset time, it is determined that the area to be inserted has not received within the preset time. Until the new writing operation, that is, the writing of the second writing handwriting has been completed.
上述第一书写笔迹向第二书写笔迹靠拢用于表示第一书写笔迹朝向第二书写笔迹的方向移动。The aforesaid first writing handwriting approaching the second writing handwriting is used to indicate that the first writing handwriting moves towards the direction of the second writing handwriting.
由于书写软件难以确定用户插入内容的多少,因此当用户插入的第二书写笔迹较少,未占满待插入区域的情况下,插入的第二书写笔迹与扩展出待插入区域的第一书写笔迹之间的距离较远,难以达到最佳的显示效果,因此在上述步骤中,在显示第二书写笔迹之后,还将扩展开的第一书写笔迹进行回缩移动,以使第一书写笔迹向第二书写笔迹靠拢,从而使插入的第二书写笔迹与原有的第一书写笔迹之间能够保持适当的间距,进一步提升显示效果。Since it is difficult for the writing software to determine the amount of content inserted by the user, when the second writing handwriting inserted by the user is less and does not occupy the area to be inserted, the second writing handwriting inserted and the first writing handwriting extending out of the to-be-inserted area The distance between them is long, and it is difficult to achieve the best display effect. Therefore, in the above steps, after the second writing handwriting is displayed, the expanded first writing handwriting is also retracted and moved, so that the first writing handwriting will move towards the display. The second writing handwriting is close to each other, so that a proper distance can be maintained between the inserted second writing handwriting and the original first writing handwriting, and the display effect is further improved.
在一种可选的实施例中,结合图4所示,当在待插入区域内输入文字“头”之后,由于插入的第二书写笔迹内容较少,因此与“低”和“思”之间的距离较远,不能达到插入后的最佳显示效果,因此将“低”和“思故乡”向“头”进行靠拢,以缩小与“头”之间的距离,达到最优的显示效果。In an optional embodiment, as shown in FIG. 4 , after the character "head" is input in the area to be inserted, since the content of the second handwriting to be inserted is less, the difference between "low" and "thinking" is relatively small. The distance between them is too far to achieve the best display effect after insertion. Therefore, move "Low" and "Hometown Thinking" closer to the "Head" to reduce the distance between the "Head" and the "Head" to achieve the best display effect. .
由上可知,本申请上述实施例接收生成在书写界面上的第一书写操作;根据第一书写操作,显示第一书写笔迹,其中,第一书写笔迹包括多个书写对象;接收生成在第一书写笔迹的任意两个书写对象之间的插入操作;移动第一书写笔迹的书写对象,在任意两个书写对象之间形成待插入区域;接收生成在待插入区域的第二书写操作;根据第二书写操作,在任意两个书写对象之间显示第二书写笔迹,并在显示第二书写笔迹之后,确定待插入区域在预设时间内未接收到新的书写操作,移动第一书写笔迹的书写对象,使得第一书写笔迹向第二书写笔迹靠拢。上述方案通过在书写过程中增加一种插入的交互行为来触发插入点周边笔迹进行移动,扩展出一定的区域来插入待插入的内容,并在输入内容完成后,控制扩展的内容向插入的内容靠拢,从而使插入的内容与原本存在的文字融为一体,不会在书写界面上显示出影响显示效果的插入标识,解决了现有技术中在书写笔迹中插入文字时的效果不佳的技术问题。As can be seen from the above, the above-mentioned embodiments of the present application receive the first writing operation generated on the writing interface; according to the first writing operation, display the first writing handwriting, wherein the first writing handwriting includes a plurality of writing objects; Insertion operation between any two writing objects of writing handwriting; moving the writing object of the first writing handwriting to form an area to be inserted between any two writing objects; receiving a second writing operation generated in the area to be inserted; Second writing operation, display the second writing handwriting between any two writing objects, and after displaying the second writing handwriting, determine that the area to be inserted has not received a new writing operation within the preset time, move the first writing handwriting The writing object makes the first writing handwriting approach the second writing handwriting. The above scheme triggers the movement of handwriting around the insertion point by adding an inserted interactive behavior during the writing process, extends a certain area to insert the content to be inserted, and controls the expanded content to the inserted content after the input content is completed. Move closer, so that the inserted content is integrated with the original text, and the insertion mark that affects the display effect will not be displayed on the writing interface, which solves the technology in the prior art that the effect of inserting text into writing handwriting is not good. question.
作为一种可选的实施例,移动第一书写笔迹的书写对象,使得第一书写笔迹向第二书写笔迹靠拢,包括:移动第二书写笔迹,使第二书写笔迹的中心与插入点重合;其中,插入点为插入操作的起始位置;将第一书写笔迹的书写对象向第二书写笔迹靠拢。As an optional embodiment, moving the writing object of the first writing handwriting so that the first writing handwriting moves closer to the second writing handwriting includes: moving the second writing handwriting so that the center of the second writing handwriting coincides with the insertion point; Wherein, the insertion point is the starting position of the insertion operation; the writing object of the first writing handwriting is moved closer to the second writing handwriting.
作为一种可选的实施例,第二书写笔迹的中心指第二书写笔迹的最小外接圆的圆心。图6是根据本申请实施例的一种待插入区域和第二书写笔迹的最小外接圆的示意图,结合图6所示,圆o1用于表示待插入区域,圆o2用于表示第二书写笔迹的最小外接圆,圆o2内包括第二书写笔迹(图中未示出)。将第二书写笔迹移动,第二书写笔迹的最小外接圆o2也随之移动,直至o2与o1重合。As an optional embodiment, the center of the second writing handwriting refers to the center of the smallest circumscribed circle of the second writing handwriting. FIG. 6 is a schematic diagram of a minimum circumscribed circle of an area to be inserted and a second writing handwriting according to an embodiment of the present application. With reference to FIG. 6 , a circle o1 is used to represent the area to be inserted, and a circle o2 is used to represent the second writing handwriting The smallest circumscribed circle of o2 includes the second handwriting (not shown in the figure). When the second writing handwriting is moved, the smallest circumscribed circle o2 of the second writing handwriting is also moved until o2 coincides with o1.
图7是根据本申请实施例的一种在待插入区域书写第二书写笔迹的示意图,结合图7所示,该图中的两个圆形分别表示待插入区域和第二书写笔迹的最小外接圆。图8是根据本申请实施例的一种第二书写笔迹移动的示意图,结合图8所示,为了使第二书写笔迹的中心与待插入区域的圆形重合,第二书写笔迹“头”向右平移,得到如图8的显示效果。7 is a schematic diagram of writing a second writing handwriting in an area to be inserted according to an embodiment of the present application. With reference to FIG. 7 , two circles in the figure represent the minimum circumscribed area of the area to be inserted and the second writing handwriting, respectively. round. Fig. 8 is a schematic diagram of the movement of a second writing handwriting according to an embodiment of the present application. With reference to Fig. 8, in order to make the center of the second writing handwriting coincide with the circle of the area to be inserted, the "head" of the second writing handwriting is directed toward Pan right to get the display effect as shown in Figure 8.
在第二书写笔迹移动之后,第二书写笔迹处于待插入区域的中心,因此在将第一书写笔迹向第二书写笔迹进行靠拢时,可以将两边的第一书写笔迹回缩相同的距离,该距离可以是待插入区域的指定半径减去第二书写笔迹的最小外接圆的半径与预设的字间距之和的差值。After the second writing handwriting moves, the second writing handwriting is in the center of the area to be inserted, so when the first writing handwriting is moved closer to the second writing handwriting, the first writing handwriting on both sides can be retracted by the same distance, the The distance may be the specified radius of the area to be inserted minus the difference between the radius of the minimum circumscribed circle of the second writing handwriting and the sum of the preset word spacing.
作为一种可选的实施例,在将第一书写笔迹向第二书写笔迹进行靠拢时,可以第一书写笔迹移动的距离为待插入区域的指定半径减去第二书写笔迹的最小外接圆的半径与预设的字间距之和的差值。As an optional embodiment, when the first writing handwriting is moved closer to the second writing handwriting, the distance that the first writing handwriting moves may be the specified radius of the area to be inserted minus the minimum circumscribed circle of the second writing handwriting The difference between the radius and the sum of the preset word spacing.
在上述方案中,先获取第二书写笔迹的半径与预设的字间距之和,再将待插入区域的指定半径与上述和值之差作为回缩距离进行靠拢,从而使得在第一书写笔迹向第二书写笔迹靠拢后,能够使第一书写笔迹与第二书写笔迹之间的距离保持为预设的字间距,进而进一步调整插入文字后的显示效果。In the above solution, the sum of the radius of the second writing handwriting and the preset word spacing is obtained first, and then the difference between the specified radius of the area to be inserted and the above sum value is used as the retraction distance, so that the first writing handwriting is in the first handwriting. After moving closer to the second writing handwriting, the distance between the first writing handwriting and the second writing handwriting can be kept as a preset word spacing, and the display effect after the inserted text can be further adjusted.
图9是根据本申请实施例的一种第一书写笔迹向第二书写笔迹靠拢的示意图,结合图9所示,第一书写笔迹向第二书写笔迹靠拢后,能够显示插入后的最佳显示效果。FIG. 9 is a schematic diagram of a first writing handwriting approaching a second writing handwriting according to an embodiment of the present application. With reference to FIG. 9 , after the first writing handwriting approaching the second writing handwriting, the best display after insertion can be displayed. Effect.
作为一种可选的实施例,在根据第二书写操作,在任意两个书写对象之间显示第二书写笔迹后,上述方法还包括:根据第一书写笔迹调整第二书写笔迹的大小。As an optional embodiment, after displaying the second writing handwriting between any two writing objects according to the second writing operation, the above method further includes: adjusting the size of the second writing handwriting according to the first writing handwriting.
在上述方案中,还会调整第二书写笔迹的大小,以使得第二书写笔迹的大小与第一书写笔迹的大小相匹配,在调整了第二书写笔迹的大小后,再进入第一书写笔迹向插入点回缩的步骤,从而进一步调整了书写界面的显示效果。In the above solution, the size of the second writing handwriting is also adjusted so that the size of the second writing handwriting matches the size of the first writing handwriting. After adjusting the size of the second writing handwriting, the first writing handwriting is entered again. The step of retracting to the insertion point further adjusts the display effect of the writing interface.
在一种可选的实施例中,可以检测第一书写笔迹中文字的平均高度和第二书写笔迹中文字的平均高度,如果两个平均高度的差值大于预设高度值,则放大或缩小第二书写笔迹,以使第二书写笔迹的平均高度与第一书写笔迹的平均高度相同。In an optional embodiment, the average height of the characters in the first writing handwriting and the average height of the characters in the second writing handwriting can be detected, and if the difference between the two average heights is greater than the preset height value, then zoom in or zoom out The second writing handwriting is made so that the average height of the second writing handwriting is the same as the average height of the first writing handwriting.
作为一种可选的实施例,插入操作为如下任意一种:双击操作、长按操作、指定轨迹的滑动操作和多点触控操作。As an optional embodiment, the insertion operation is any one of the following: a double-click operation, a long-press operation, a sliding operation of a specified track, and a multi-touch operation.
具体的,上述指定轨迹的滑动操作指的是生成指定标识的操作,例如,可以是生成如图1中所示的插入标识的操作。可以设置上述任意一种操作为插入操作。Specifically, the above-mentioned sliding operation of the designated track refers to an operation of generating a designated mark, for example, an operation of generating an insertion mark as shown in FIG. 1 . Any of the above operations can be set as an insert operation.
现有技术中在书写笔迹中插入文字时的效果不佳作为一种可选的实施例,移动第一书写笔迹的书写对象,在任意两个书写对象之间形成待插入区域,包括:In the prior art, the effect of inserting characters in writing handwriting is not good. As an optional embodiment, the writing object of the first writing handwriting is moved to form a to-be-inserted area between any two writing objects, including:
以插入点为中心,向两侧移动第一书写笔迹的书写对象,在任意两个书写对象之间形成圆形的待插入区域;其中,插入点为插入操作的起始位置。Taking the insertion point as the center, the writing object of the first writing handwriting is moved to both sides to form 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 solution, the starting position of the insertion operation is used as the insertion point, and the writing object of the first writing handwriting is moved to both sides, which means that the first writing handwriting is getting farther and farther from the insertion point during the moving process.
插入点将第一书写笔迹分为两部分,如果插入点在左右相邻的两个书写对象之间,将第一书写笔迹分为左右两部分,则左右两部分第一书写笔迹可以在水平方向上背离插入点移动,即插入点左侧的第一书写笔迹向左移动,插入点右侧的第一书写笔迹向右侧移动;如果插入点在上下相邻的两个书写对象之间,将第一书写笔迹分为上下两部分,则上下两部分第一书写笔迹可以在竖直方向上背离插入点移动,也插入点上方的第一书写笔迹向上移动,插入点下方的第一书写笔迹向下移动,以距离插入点越来越远,从而扩展出待插入区域。具体的移动距离可以是指定的预设距离。The insertion point divides the first writing handwriting into two parts. If the insertion point is between two adjacent writing objects on the left and right, the first writing handwriting is divided into two parts, the left and right parts of the first writing handwriting can be in the horizontal direction. Move upward away from the insertion point, that is, the first writing handwriting on the left side of the insertion point moves to the left, and the first writing handwriting on the right side of the insertion point moves to the right; if the insertion point is between two adjacent writing objects, the The first writing handwriting is divided into upper and lower parts, then the first writing handwriting of the upper and lower parts can move away from the insertion point in the vertical direction, and the first writing handwriting above the insertion point can also move upward, and the first writing handwriting below the insertion point is towards the insertion point. Move down to get farther and farther from the insertion point, thereby extending the area to be inserted. The specific moving distance may be a specified preset distance.
图3是根据本申请实施例的一种第一书写笔迹扩展出待插入区域的示意图,结合图3所示,插入操作生成在文字“低”和“思”之间,为了在“低”和“思”之间扩展出待插入区域,“低”向左侧移动,“思故乡”向右移动。图4是根据本申请实施例的一种待插入区域的示意图,结合图4所示,在“低”向左侧移动,“思故乡”向右移动后,在“低”和“思”之间形成的圆形区域即为待插入区域。Fig. 3 is a schematic diagram of a first writing handwriting extending out of an area to be inserted according to an embodiment of the present application. With reference to Fig. 3, an insert operation is generated between the characters "Low" and "Thinking", in order to be between "Low" and "Thinking". The area to be inserted extends between "Thinking", "Low" moves to the left, and "Thinking of Hometown" moves to the right. Fig. 4 is a schematic diagram of a to-be-inserted area according to an embodiment of the present application. With reference to Fig. 4, after "Low" moves to the left and "Thinking of Hometown" moves to the right, between "Low" and "Thinking" The circular area formed between them is the area to be inserted.
需要说明的是,书写界面中可以以各种预设的方式(虚线、实线等)显示用于指示待插入区域的标识(例如图4中的圆形),也可以不显示待插入区域的标识,展示出待插入区域供用户书写即可。It should be noted that, in the writing interface, various preset modes (dotted line, solid line, etc.) may be used to display the mark (for example, the circle in FIG. It is enough to display the area to be inserted for the user to write.
作为一种可选的实施例,以插入点为中心,向两侧移动第一书写笔迹的书写对象,在任意两个书写对象之间形成圆形的待插入区域,包括:以插入点为中心,以指定半径向四周扩散第一书写笔迹的书写对象,形成待插入区域。As an optional embodiment, taking the insertion point as the center, moving the writing object of the first handwriting to both sides to form a circular area to be inserted between any two writing objects, including: taking the insertion point as the center , spreads the writing object of the first writing handwriting around with the specified radius to form the area to be inserted.
在上述方案中,以插入点为圆形待插入区域的圆形,并根据指定半径构成圆形待插入区域。结合图6所示,在一种可选的实施例中,圆o1表示待插入区域,插入点o1即为第一圆心。In the above solution, the insertion point is a circle of the circular to-be-inserted area, and the circular to-be-inserted area is formed according to the specified radius. With reference to FIG. 6 , in an optional embodiment, the circle o1 represents the area to be inserted, and the insertion point o1 is the first center of the circle.
作为一种可选的实施例,指定半径根据显示设备的分辨率确定。As an optional embodiment, the specified radius is determined according to the resolution of the display device.
待插入区域必须小于电子设备的书写界面,才能够才电子设备的书写界面上进行显示。在一种可选的实施例中,上述指定半径r=Min(宽,高)/4,例如,对于分辨率为1920*1080的显示设备,指定半径r=Min(1920,1080)/4=270。The to-be-inserted area must be smaller than the writing interface of the electronic device so that it can be displayed on the writing interface of the electronic device. In an optional embodiment, the above specified radius r=Min(width, height)/4, for example, for a display device with a resolution of 1920*1080, the specified radius r=Min(1920,1080)/4= 270.
图10是根据本申请实施例的一种可选的笔迹的处理方法的流程图,下面再结合图10所示,对本申请上述的笔迹的处理方法进行说明,该方法包括如下步骤:FIG. 10 is a flowchart of an optional handwriting processing method according to an embodiment of the present application. The above-mentioned handwriting processing method of the present application is described below with reference to FIG. 10 , and the method includes the following steps:
S101,接收生成在文字元素的空白区域的点击事件。S101. Receive a click event generated in a blank area of a text element.
具体的,上述点击事件即为插入操作,文字元素即为已存在的第一书写笔迹,该点击事件生成在文字元素的空白区域,即任意两个文字对象之间。Specifically, the above click event is an insert operation, the text element is the existing first handwriting, and the click event is generated in the blank area of the text element, that is, between any two text objects.
S102,周围笔迹以点击点为圆心扩散出预定的书写区域。S102, the surrounding handwriting spreads out to a predetermined writing area with the click point as the center.
上述点击点即为插入点,预定的书写区域即为待插入区域。插入点周围的笔迹以插入点为圆心扩散,得到圆形的书写区域。The above-mentioned click point is the insertion point, and the predetermined writing area is the area to be inserted. The handwriting around the insertion point spreads around the insertion point, resulting in a circular writing area.
S103,根据书写内容计算出内容区域。S103: Calculate a content area according to the writing content.
上述内容区域即为第二书写笔迹的最小外接圆。The above content area is the smallest circumscribed circle of the second handwriting.
S104,根据书写区域和内容区域半径的差计算回缩距离。S104, calculating the retraction distance according to the difference between the radius of the writing area and the content area.
具体的,上述回缩距离用于表示第二书写笔迹向第一书写笔迹靠拢时需要移动的距离,可以为书写区域的半径减去内容区域半径,再减去预设的字间距所得到的值。Specifically, the above-mentioned retraction distance is used to indicate the distance that the second writing handwriting needs to move when it approaches the first writing handwriting, and can be the value obtained by subtracting the radius of the content area from the radius of the writing area, and then subtracting the preset word spacing. .
S105,触摸事件取消一段时间后自适应排版书写内容。S105, adaptively typesetting the written content after the touch event is canceled for a period of time.
触摸事件消失一段时间后,表示插入内容的书写完成。自适应排版书写内容可以是控制插入的内容进行移动,以使内容区域的圆心与书写区域的圆心重合,再控制文字元素按照计算的回缩距离进行回缩即可。After the touch event disappears for a period of time, the writing of the inserted content is completed. The writing content of adaptive typesetting can be controlled to move the inserted content so that the center of the content area coincides with the center of the writing area, and then control the text element to retract according to the calculated retraction distance.
实施例4Example 4
根据本申请实施例,还提供了一种笔迹的处理装置,图11是根据本申请实施例的又一种笔迹的处理装置的示意图,如图11所示,该装置包括According to an embodiment of the present application, a handwriting processing device is also provided. FIG. 11 is a schematic diagram of another handwriting processing device according to an embodiment of the present application. As shown in FIG. 11 , the device includes
第一接收模块110,用于接收生成在书写界面上的第一书写操作。The first receiving module 110 is configured to receive the first writing operation generated on the writing interface.
第一显示模块112,用于根据第一书写操作,显示第一书写笔迹,其中,第一书写笔迹包括多个书写对象。The first display module 112 is configured to display the first writing handwriting according to the first writing operation, wherein the first writing handwriting includes a plurality of writing objects.
第二接收模块114,用于接收生成在第一书写笔迹的任意两个书写对象之间的插入操作。The second receiving module 114 is configured to receive an insertion operation generated between any two writing objects of the first writing handwriting.
移动模块116,用于移动第一书写笔迹的书写对象,在任意两个书写对象之间形成待插入区域。The moving module 116 is used to move the writing object of the first writing handwriting, and form a to-be-inserted area between any two writing objects.
第三接收模块118,用于接收生成在待插入区域的第二书写操作。The third receiving module 118 is configured to receive the second writing operation generated in the area to be inserted.
第二显示模块1110,用于根据第二书写操作,在任意两个书写对象之间显示第二书写笔迹。The second display module 1110 is configured to display the second writing handwriting between any two writing objects according to the second writing operation.
作为一种可选的实施例,上述装置还包括:第二移动模块,用于在根据第二书写操作,在任意两个书写对象之间显示第二书写笔迹之后,确定待插入区域在预设时间内未接收到新的书写操作,移动第一书写笔迹的书写对象,使得第一书写笔迹向第二书写笔迹靠拢。As an optional embodiment, the above-mentioned device further includes: a second moving module, configured to determine that the area to be inserted is within the preset range after displaying the second writing handwriting between any two writing objects according to the second writing operation. If no new writing operation is received within the time, the writing object of the first writing handwriting is moved so that the first writing handwriting is closer to the second writing handwriting.
作为一种可选的实施例,第二移动模块包括:第一移动子模块,用于移动第二书写笔迹,使第二书写笔迹的中心与插入点重合;其中,插入点为插入操作的起始位置;第二移动子模块,用于将第一书写笔迹的书写对象向第二书写笔迹靠拢。As an optional embodiment, the second moving module includes: a first moving sub-module for moving the second writing handwriting so that the center of the second writing handwriting coincides with the insertion point; wherein the insertion point is the start of the insertion operation The second moving sub-module is used to move the writing object of the first writing handwriting closer to the second writing handwriting.
作为一种可选的实施例,第二书写笔迹的中心指第二书写笔迹的最小外接圆的圆心。As an optional embodiment, the center of the second writing handwriting refers to the center of the smallest circumscribed circle of the second writing handwriting.
作为一种可选的实施例,上述装置还包括:调整模块,用于在根据第二书写操作,在任意两个书写对象之间显示第二书写笔迹之后,根据第一书写笔迹调整第二书写笔迹的大小。As an optional embodiment, the above device further includes: an adjustment module, configured to adjust the second writing according to the first writing after displaying the second writing between any two writing objects according to the second writing operation The size of the handwriting.
作为一种可选的实施例,插入操作为如下任意一种:长按操作、指定轨迹的滑动操作和多点触控操作。As an optional embodiment, the insertion operation is any one of the following: a long-press operation, a sliding operation of a specified track, and a multi-touch operation.
作为一种可选的实施例,移动模块包括:第三移动子模块,用于以插入点为中心,向两侧移动第一书写笔迹的书写对象,在任意两个书写对象之间形成圆形的待插入区域;其中,插入点为插入操作的起始位置。As an optional embodiment, the moving module includes: a third moving sub-module for moving the writing object of the first writing handwriting to both sides with the insertion point as the center to form a circle between any two writing objects where the insertion point is the starting position of the insertion operation.
作为一种可选的实施例,第三移动子模块包括:扩散单元,用于以插入点为中心,以指定半径向四周扩散第一书写笔迹的书写对象,形成待插入区域。As an optional embodiment, the third moving sub-module includes: a diffusing unit, configured to take the insertion point as the center, and diffuse the writing object of the first writing handwriting around with a specified radius to form a to-be-inserted area.
作为一种可选的实施例,指定半径根据显示设备的分辨率确定。As an optional embodiment, the specified radius is determined according to the resolution of the display device.
实施例4Example 4
本申请实施例还提供了一种计算机存储介质,所述计算机存储介质可以存储有多条指令,所述指令适于由处理器加载并执行如上述图1-图9所示实施例的方法步骤,具体执行过程可以参见图1-图9所示实施例的具体说明,在此不进行赘述。Embodiments of the present application further provide a computer storage medium, where the computer storage medium can store multiple instructions, and the instructions are suitable for being loaded by a processor and executing the method steps of the embodiments shown in FIG. 1 to FIG. 9 above. , and the specific execution process may refer to the specific description of the embodiments shown in FIG. 1 to FIG. 9 , which will not be repeated here.
存储介质所在设备可以是智能交互平板。The device where the storage medium is located may be an intelligent interactive tablet.
实施例5Example 5
根据本申请实施例,还提供了一种电子设备,包括:处理器和存储器;其中,所述存储器存储有计算机程序,所述计算机程序适于由所述处理器加载并执行实施例1和实施例2中的方法步骤。According to an embodiment of the present application, an electronic device is also provided, including: a processor and a memory; wherein, the memory stores a computer program, and the computer program is adapted to be loaded by the processor and execute Embodiment 1 and implementation Method steps in Example 2.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a 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, etc.) 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 present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。Memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory in the form of, for example, read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, 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 Disc (DVD) or other optical storage, Magnetic tape 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, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also Other elements not expressly listed, or which are inherent to such a process, method, article of manufacture, or apparatus are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article of manufacture or apparatus that includes the element.
以上仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above are merely examples of the present application, and are not intended to limit the present application. Various modifications and variations of this application are possible for those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the scope of the claims of this application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010208460.9ACN111459378A (en) | 2020-03-23 | 2020-03-23 | Handwriting processing method and device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010208460.9ACN111459378A (en) | 2020-03-23 | 2020-03-23 | Handwriting processing method and device |
| Publication Number | Publication Date |
|---|---|
| CN111459378Atrue CN111459378A (en) | 2020-07-28 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010208460.9APendingCN111459378A (en) | 2020-03-23 | 2020-03-23 | Handwriting processing method and device |
| Country | Link |
|---|---|
| CN (1) | CN111459378A (en) |
| 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 |
| CN109074224A (en)* | 2016-02-29 | 2018-12-21 | 麦斯杰公司 | For the method for insertion character and corresponding digital device in character string |
| CN109074223A (en)* | 2016-02-29 | 2018-12-21 | 麦斯杰公司 | For carrying out the method and system of character insertion in character string |
| 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 |
| CN109074224A (en)* | 2016-02-29 | 2018-12-21 | 麦斯杰公司 | For the method for insertion character and corresponding digital device in character string |
| CN109074223A (en)* | 2016-02-29 | 2018-12-21 | 麦斯杰公司 | For carrying out the method and system of character insertion in character string |
| Publication | Publication Date | Title |
|---|---|---|
| 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 | |
| US11372540B2 (en) | Table processing method, device, interactive white board and storage medium | |
| CN108334229B (en) | Method, device and device for adjusting writing trajectory, and readable storage medium | |
| CN110716680A (en) | Control method and device of intelligent interactive panel | |
| CN107273032A (en) | Information typesetting method, device and equipment and computer storage medium | |
| CN111428455B (en) | Form management method, device, equipment and storage medium | |
| CN107977342B (en) | Document comparison method and device | |
| WO2017177931A1 (en) | Text information display method and apparatus, and mobile device | |
| US20160070437A1 (en) | Electronic device and method for displaying desktop icons | |
| CN109240495B (en) | Method and equipment for controlling automatic page turning | |
| CN112596661A (en) | Writing track processing method and device and interactive panel | |
| CN103257735A (en) | Stroke presentation method for handwriting input and electronic device | |
| CN106155524A (en) | Page control method and device | |
| WO2023020047A1 (en) | Electronic handwriting writing and erasing method, storage medium, and device | |
| CN112394859A (en) | Form dynamic adjustment method and terminal equipment | |
| CN111273826A (en) | Desktop icon management method, device, equipment and storage medium | |
| CN110795015A (en) | Operation prompting method, device, equipment and storage medium | |
| CN111339742B (en) | Note region dividing method, terminal and computer storage medium | |
| CN111459378A (en) | Handwriting processing method and device | |
| CN115202553B (en) | Whiteboard application control method and device and electronic equipment | |
| CN107544743B (en) | A method, device and electronic device for adjusting text | |
| CN111580713A (en) | Display interaction system | |
| KR102509976B1 (en) | Method for panning image | |
| CN112861042B (en) | An information display method, device, equipment and readable medium | |
| TWI653574B (en) | Method for page division and electronic display device |
| 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 | Application publication date:20200728 | |
| RJ01 | Rejection of invention patent application after publication |