WO2026007110A1 - Writing method, interactive tablet and storage medium - Google Patents
Writing method, interactive tablet and storage mediumInfo
- Publication number
- WO2026007110A1 WO2026007110A1 PCT/CN2024/103916 CN2024103916W WO2026007110A1 WO 2026007110 A1 WO2026007110 A1 WO 2026007110A1 CN 2024103916 W CN2024103916 W CN 2024103916W WO 2026007110 A1 WO2026007110 A1 WO 2026007110A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- text
- writing
- movement operation
- text editing
- handwriting
- 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
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
Description
本申请涉及终端技术领域,并且更具体地,涉及一种书写方法、交互平板和存储介质。This application relates to the field of terminal technology, and more specifically, to a writing method, an interactive flat panel, and a storage medium.
目前,交互平板通常会支持手写输入模式,在手写输入模式下,用户可以通过手写笔快速地向交互平板输入文本内容,从而可以提高文本内容的输入效率。Currently, interactive whiteboards typically support handwriting input mode. In handwriting input mode, users can quickly input text content into the interactive whiteboard using a stylus, thereby improving the efficiency of text input.
手写输入模式虽然可以提高文本内容的输入效率,但是在对已输入的文本内容进行编辑的过程中,手写输入模式具有一定的局限性。例如,在向已输入的文本内容中插入空格字符的过程中,由于手写输入模式通常不支持空格字符的输入,因此需要调用软键盘向文本内容中插入空格字符。以及,在删除已输入的文本内容中的部分或全部字符的过程中,手写输入模式的通常做法是在待删除的字符上画线,该方式的可视化不足,不易被用户掌握,使得用户经常需要调用软键盘删除文本内容中的字符。简言之,手写输入模式虽然可以提高文本内容的输入效率,但是在对已输入的文本内容进行编辑时可能需要频繁切换输入模式,导致文本内容的输入的效率较低。While handwriting input can improve the efficiency of text input, it has certain limitations when editing already entered text. For example, when inserting a space character into the text, handwriting input usually does not support space characters, requiring the use of the on-screen keyboard. Furthermore, when deleting some or all characters from the text, the common practice in handwriting input is to draw an underline on the character to be deleted. This method lacks visual clarity and is not easily mastered by users, often requiring them to use the on-screen keyboard to delete characters. In short, while handwriting input can improve the efficiency of text input, it may require frequent switching between input modes when editing already entered text, resulting in lower overall input efficiency.
发明内容Summary of the Invention
本申请提供了一种书写方法、交互平板和存储介质,该方法能够文本内容的输入效率。This application provides a writing method, an interactive whiteboard, and a storage medium, which improves the efficiency of text content input.
第一方面,提供了一种书写方法,该方法包括:显示第一界面,所述第一界面中包括至少一个文本编辑框;接收发生在所述第一界面上的第一移动操作;确认所述第一移动操作由预设的第一触摸物所执行,在所述第一界面上叠加显示第一书写应用程序的第一书写层,并基于所述第一移动操作在所述第一书写层上添加并显示第一书写笔迹;当所述第一移动操作指向所述至少一个文本编辑框中的目标文本编辑框,在确认所述第一移动操作终止后,基于所述第一书写笔迹得到标准字体的文本内容;在所述目标文本编辑框中显示所述文本内容,以及在所述目标文本编辑框的预设位置显示工具栏,并关闭所述第一书写层;其中,所述工具栏中包括至少一个文本编辑控件;以及,在所述目标文本编辑框中显示所述文本内容之后,在接收到对所述至少一个文本编辑控件中的目标文本编辑控件的操作时,根据所述目标文本编辑控件对应的第一编辑方式对显示的所述文本内容进行编辑;在所述目标文本编辑框中显示编辑后的所述文本内容。In a first aspect, a writing method is provided, comprising: displaying a first interface, the first interface including at least one text editing box; receiving a first movement operation occurring on the first interface; confirming that the first movement operation is performed by a preset first touch object; overlaying and displaying a first writing layer of a first writing application on the first interface; adding and displaying a first handwriting based on the first movement operation on the first writing layer; when the first movement operation points to a target text editing box in the at least one text editing box, after confirming that the first movement operation has terminated, obtaining text content in a standard font based on the first handwriting; displaying the text content in the target text editing box; displaying a toolbar at a preset position in the target text editing box; and closing the first writing layer; wherein the toolbar includes at least one text editing control; and after displaying the text content in the target text editing box, upon receiving an operation on a target text editing control among the at least one text editing controls, editing the displayed text content according to a first editing method corresponding to the target text editing control; and displaying the edited text content in the target text editing box.
上述技术方案,接收发生在第一界面上的第一移动操作,确认第一移动操作由预设的第一触摸物所执行,在第一界面上叠加显示第一书写应用程序的第一书写层,并基于第一移动操作在第一书写层上添加并显示第一书写笔迹。当第一移动操作指向至少一个文本编辑框中的目标文本编辑框,则在确认第一移动操作终止后,基于第一书写笔迹得到标准字体的文本内容,在目标文本编辑框中显示文本内容,以及在目标文本编辑框的预设位置显示工具栏,并关闭第一书写层。在接收到对至少一个文本编辑控件中的目标文本编辑控件的操作时,根据目标文本编辑控件对应的第一编辑方式对显示的文本内容进行编辑,在目标文本编辑框中显示编辑后的文本内容。由于该方法在向文本编辑框输入文本内容的过程中,在文本编辑框的预设位置显示工具栏,工具栏中包括一个或多个文本编辑控件。针对已输入文本编辑框的文本内容,用户可以通过文本编辑框内的文本编辑控件对文本内容进行编辑,使得文本内容的编辑可以不用调用软键盘,不需要频繁切换输入模式,从而可以简化文本内容的编辑过程,进而可以提高文本内容的输入效率。The above technical solution receives a first movement operation occurring on a first interface, confirms that the first movement operation is performed by a preset first touch object, overlays and displays a first writing layer of a first writing application on the first interface, and adds and displays first handwriting based on the first movement operation on the first writing layer. When the first movement operation points to a target text editing box in at least one text editing box, after confirming that the first movement operation has terminated, text content in a standard font is obtained based on the first handwriting, the text content is displayed in the target text editing box, a toolbar is displayed at a preset position in the target text editing box, and the first writing layer is closed. When receiving an operation on a target text editing control in at least one text editing control, the displayed text content is edited according to the first editing method corresponding to the target text editing control, and the edited text content is displayed in the target text editing box. Because this method displays a toolbar at a preset position in the text editing box during the process of inputting text content into the text editing box, the toolbar includes one or more text editing controls. For text content that has already been entered into a text editing box, users can edit the text content using the text editing controls within the text editing box. This eliminates the need to call the soft keyboard and frequently switch input modes, thus simplifying the text editing process and improving text input efficiency.
第二方面,提供了一种书写方法,该方法包括:显示第一界面,所述第一界面中包括至少一个文本编辑框;接收发生在所述第一界面上的第一移动操作;确认所述第一移动操作由预设的第一触摸物所执行,在所述第一界面上叠加显示第一书写应用程序的第一书写层;当所述至少一个文本编辑框中存在获得输入焦点的目标文本编辑框,在所述目标文本编辑框的预设位置显示工具栏,并基于所述第一移动操作在所述第一书写层上添加并显示第一书写笔迹;其中,所述工具栏中包括至少一个文本编辑控件;在确认所述第一移动操作终止后,基于所述第一书写笔迹得到标准字体的文本内容;其中,所述输入焦点由发生在所述第一界面上的点击操作所触发;在所述目标文本编辑框中显示所述文本内容,并关闭所述第一书写层;以及,在所述目标文本编辑框中显示所述文本内容之后,在接收到对所述至少一个文本编辑控件中的目标文本编辑控件的操作时,根据所述目标文本编辑控件对应的第一编辑方式对显示的所述文本内容进行编辑;在所述目标文本编辑框中显示编辑后的所述文本内容。Secondly, a writing method is provided, comprising: displaying a first interface, the first interface including at least one text editing box; receiving a first movement operation occurring on the first interface; confirming that the first movement operation is performed by a preset first touch object, and overlaying a first writing layer of a first writing application on the first interface; when there is a target text editing box with input focus in the at least one text editing box, displaying a toolbar at a preset position of the target text editing box, and adding and displaying a first writing stroke on the first writing layer based on the first movement operation; wherein the toolbar includes at least one text editing control; after confirming that the first movement operation has terminated, obtaining text content in a standard font based on the first writing stroke; wherein the input focus is triggered by a click operation occurring on the first interface; displaying the text content in the target text editing box and closing the first writing layer; and, after displaying the text content in the target text editing box, upon receiving an operation on a target text editing control among the at least one text editing controls, editing the displayed text content according to a first editing method corresponding to the target text editing control; and displaying the edited text content in the target text editing box.
上述技术方案,接收发生在第一界面上的第一移动操作,确认第一移动操作由预设的第一触摸物所执行,在第一界面上叠加显示第一书写应用程序的第一书写层。当至少一个文本编辑框中存在获得输入焦点的目标文本编辑框时,在目标文本编辑框的预设位置显示工具栏,并基于第一移动操作在所述第一书写层上添加并显示第一书写笔迹;在确认第一移动操作终止后,基于第一书写笔迹得到标准字体的文 本内容;在目标文本编辑框中显示文本内容,并关闭第一书写层。在接收到对至少一个文本编辑控件中的目标文本编辑控件的操作时,根据目标文本编辑控件对应的第一编辑方式对显示的文本内容进行编辑,在目标文本编辑框中显示编辑后的文本内容。由于该方法在向文本编辑框输入文本内容的过程中,在文本编辑框的预设位置显示工具栏,工具栏中包括一个或多个文本编辑控件。针对已输入文本编辑框的文本内容,用户可以通过文本编辑框内的文本编辑控件对文本内容进行编辑,使得文本内容的编辑可以不用调用软键盘,不需要频繁切换输入模式,从而可以简化文本内容的编辑过程,进而可以提高文本内容的输入效率。The above technical solution receives a first movement operation occurring on a first interface, confirms that the first movement operation is performed by a preset first touch object, and overlays and displays a first writing layer of a first writing application on the first interface. When at least one text editing box contains a target text editing box that has received input focus, a toolbar is displayed at a preset position of the target text editing box, and a first writing stroke is added and displayed on the first writing layer based on the first movement operation; after confirming that the first movement operation has terminated, a standard font text is obtained based on the first writing stroke. This method displays text content in a target text editing box and closes the first writing layer. Upon receiving an operation on a target text editing control within at least one text editing control, the displayed text content is edited according to the first editing mode corresponding to the target text editing control, and the edited text content is displayed in the target text editing box. Because this method displays a toolbar at a preset position in the text editing box during the process of inputting text content, and the toolbar includes one or more text editing controls, users can edit the text content in the text editing box using the text editing controls within the text editing box. This eliminates the need to call the soft keyboard and frequently switch input modes, simplifying the text editing process and improving text input efficiency.
可选地,所述在所述第一界面上叠加显示第一书写应用程序的第一书写层,包括:在所述第一界面上叠加显示第一尺寸的所述第一书写层;其中,所述第一尺寸的所述第一书写层的面积大于所述目标文本编辑框的面积、且小于所述第一界面的面积;获取所述第一移动操作的持续时长;当所述持续时长大于预设时长时,显示第二尺寸的所述第一书写层;其中,所述第二尺寸大于所述第一尺寸。Optionally, the step of overlaying and displaying the first writing layer of the first writing application on the first interface includes: overlaying and displaying the first writing layer of a first size on the first interface; wherein the area of the first writing layer of the first size is larger than the area of the target text editing box and smaller than the area of the first interface; obtaining the duration of the first movement operation; and when the duration is greater than a preset duration, displaying the first writing layer of a second size; wherein the second size is larger than the first size.
可选地,所述至少一个文本编辑控件中包括用于输入空格字符的输入控件,以及用于删除字符的删除控件;所述根据所述目标文本编辑控件对应的第一编辑方式对显示的所述文本内容进行编辑,包括:从显示的所述文本内容中确定文本编辑位置;在所述目标文本编辑控件为所述输入控件的情况下,在所述文本编辑位置输入空格字符;或者,在所述目标文本编辑控件为所述删除控件的情况下,删除所述文本内容中位于所述文本编辑位置之前的字符。Optionally, the at least one text editing control includes an input control for inputting a space character and a delete control for deleting characters; the step of editing the displayed text content according to the first editing method corresponding to the target text editing control includes: determining the text editing position from the displayed text content; if the target text editing control is the input control, inputting a space character at the text editing position; or, if the target text editing control is the delete control, deleting characters in the text content that are located before the text editing position.
可选地,所述至少一个文本编辑控件中包括用于切换输入方式的切换控件,所述方法还包括:当接收到对所述切换控件的操作时,隐藏所述工具栏;在隐藏所述工具栏之后,显示软键盘,以通过所述软键盘对所述目标文本编辑框内的文本内容进行编辑。Optionally, the at least one text editing control includes a switching control for switching input methods, and the method further includes: hiding the toolbar when an operation on the switching control is received; and displaying a soft keyboard after hiding the toolbar, so as to edit the text content in the target text editing box through the soft keyboard.
可选地,所述在所述目标文本编辑框的预设位置显示工具栏,包括:隐藏与所述目标文本编辑框对应的软键盘;在隐藏所述软键盘之后,在所述预设位置显示所述工具栏。Optionally, displaying the toolbar at a preset position in the target text editing box includes: hiding the soft keyboard corresponding to the target text editing box; and displaying the toolbar at the preset position after hiding the soft keyboard.
可选地,所述基于所述第一书写笔迹得到标准字体的文本内容,包括:对所述第一书写笔迹进行光学字符识别,得到至少一个候选文本内容,以及每个所述候选文本内容的准确度;基于每个所述候选文本内容的准确度,从所述至少一个候选文本内容中确定所述文本内容。Optionally, obtaining the text content of the standard font based on the first handwriting includes: performing optical character recognition on the first handwriting to obtain at least one candidate text content and the accuracy of each candidate text content; and determining the text content from the at least one candidate text content based on the accuracy of each candidate text content.
可选地,所述方法还包括:监听所述目标文本编辑框是否失去所述输入焦点;当所述目标文本编辑框失去所述输入焦点时,隐藏所述工具栏。Optionally, the method further includes: listening to whether the target text editing box loses input focus; when the target text editing box loses input focus, hiding the toolbar.
可选地,当所述第一移动操作指向所述目标文本编辑框,所述第一书写层中显示的所述第一书写笔迹为第一颜色的书写笔迹;当所述第一移动操作未指向所述至少一个文本编辑框中的任意一个,所述第一书写层中显示的所述第一书写笔迹为第二颜色的书写笔迹;其中,所述第一颜色与所述第二颜色不同。Optionally, when the first movement operation points to the target text editing box, the first writing stroke displayed in the first writing layer is a writing stroke of a first color; when the first movement operation does not point to any of the at least one text editing box, the first writing stroke displayed in the first writing layer is a writing stroke of a second color; wherein, the first color is different from the second color.
可选地,当所述至少一个文本编辑框中存在所述目标文本编辑框,所述第一书写层中显示的所述第一书写笔迹为第一颜色的书写笔迹;当所述至少一个文本编辑框中未存在所述目标文本编辑框,所述第一书写层中显示的所述第一书写笔迹为第二颜色的书写笔迹;其中,所述第一颜色与所述第二颜色不同。Optionally, when the target text editing box exists in at least one text editing box, the first writing handwriting displayed in the first writing layer is a first color; when the target text editing box does not exist in at least one text editing box, the first writing handwriting displayed in the first writing layer is a second color; wherein the first color is different from the second color.
可选地,所述方法还包括:接收发生在所述第一书写层上的第二移动操作,所述第二移动操作穿过所述目标文本编辑框;确认所述第二移动操作由所述第一触摸物所执行,则根据所述第二移动操作,确定所述第二移动操作对应的第二编辑方式;根据所述第二编辑方式,对所述文本内容进行编辑;在所述目标文本编辑框中显示编辑后的所述文本内容。Optionally, the method further includes: receiving a second movement operation occurring on the first writing layer, the second movement operation passing through the target text editing box; confirming that the second movement operation was performed by the first touch object, then determining a second editing method corresponding to the second movement operation based on the second movement operation; editing the text content according to the second editing method; and displaying the edited text content in the target text editing box.
可选地,所述根据所述第二移动操作,确定所述第二移动操作对应的第二编辑方式,包括:基于所述第二移动操作在所述第一书写层上添加并显示第二书写笔迹;当确认所述第二移动操作穿过所述目标文本编辑框中显示的所述文本内容,且所述第二书写笔迹为第一预设书写笔迹,确定所述第二编辑方式为删除文本;当确认所述第二移动操作穿过所述目标文本编辑框中显示的所述文本内容,且所述第二书写笔迹为第二预设书写笔迹,确定所述第二编辑方式为选中文本;当确认所述第二书写笔迹为第三预设书写笔迹,确定所述第二编辑方式为拆分文本内容或者组合文本内容。Optionally, determining the second editing method corresponding to the second movement operation based on the second movement operation includes: adding and displaying a second handwriting on the first writing layer based on the second movement operation; when it is confirmed that the second movement operation passes through the text content displayed in the target text editing box, and the second handwriting is a first preset handwriting, determining the second editing method as deleting text; when it is confirmed that the second movement operation passes through the text content displayed in the target text editing box, and the second handwriting is a second preset handwriting, determining the second editing method as selecting text; when it is confirmed that the second handwriting is a third preset handwriting, determining the second editing method as splitting or combining text content.
可选地,当所述第一移动操作未指向文本编辑框,所述方法还包括:接收第三移动操作,所述第三移动操作与所述第一书写笔迹有重叠,且所述第三移动操作由预设的第二触摸物所执行;根据所述第三移动操作,对所述第一书写笔迹进行擦除。Optionally, when the first movement operation does not point to a text editing box, the method further includes: receiving a third movement operation, the third movement operation overlapping with the first handwriting, and the third movement operation being performed by a preset second touch object; and erasing the first handwriting according to the third movement operation.
可选地,当所述至少一个文本编辑框中未存在所述目标文本编辑框,所述方法还包括:接收第三移动操作,所述第三移动操作与所述第一书写笔迹有重叠,且所述第三移动操作由预设的第二触摸物所执行;根据所述第三移动操作,对所述第一书写笔迹进行擦除。Optionally, when the target text editing box does not exist in the at least one text editing box, the method further includes: receiving a third movement operation, the third movement operation overlapping with the first writing, and the third movement operation being performed by a preset second touch object; erasing the first writing according to the third movement operation.
可选地,所述根据所述第三移动操作,对所述第一书写笔迹进行擦除,包括:确认所述第三移动操作与所述第一书写笔迹的第一重叠区域;对所述第一书写笔迹中所述第一重叠区域中的书写笔迹进行所述擦除。 Optionally, erasing the first writing strokes according to the third movement operation includes: identifying a first overlapping area between the third movement operation and the first writing strokes; and erasing the writing strokes in the first overlapping area of the first writing strokes.
可选地,所述方法还包括:接收发生在所述第一界面上的第四移动操作;确认所述第四移动操作由预设的第三触摸物所执行,根据所述第四移动操作,对所述第一界面进行更新;显示更新后的所述第一界面。Optionally, the method further includes: receiving a fourth movement operation occurring on the first interface; confirming that the fourth movement operation is performed by a preset third touch object; updating the first interface according to the fourth movement operation; and displaying the updated first interface.
可选地,所述对所述第一界面进行更新,包括:对所述第一界面的滑动更新;或者,对所述第一界面的翻页。Optionally, updating the first interface includes: updating the first interface by sliding; or updating the first interface by turning pages.
第三方面,提供了一种书写装置,该装置包括:显示模块,用于显示第一界面,所述第一界面中包括至少一个文本编辑框;接收模块,用于接收发生在所述第一界面上的第一移动操作;所述显示模块还用于确认所述第一移动操作由预设的第一触摸物所执行,在所述第一界面上叠加显示第一书写应用程序的第一书写层,并基于所述第一移动操作在所述第一书写层上添加并显示第一书写笔迹;得到模块,用于当所述第一移动操作指向所述至少一个文本编辑框中的目标文本编辑框,则在确认所述第一移动操作终止后,基于所述第一书写笔迹得到标准字体的文本内容;所述显示模块还用于在所述目标文本编辑框中显示所述文本内容,以及在所述目标文本编辑框的预设位置显示工具栏,并关闭所述第一书写层;其中,所述工具栏中包括至少一个文本编辑控件;编辑模块,用于在所述目标文本编辑框中显示所述文本内容之后,在接收到对所述至少一个文本编辑控件中的目标文本编辑控件的操作时,根据所述目标文本编辑控件对应的第一编辑方式对显示的所述文本内容进行编辑;所述显示模块还用于在所述目标文本编辑框中显示编辑后的所述文本内容。Thirdly, a writing device is provided, comprising: a display module for displaying a first interface, the first interface including at least one text editing box; a receiving module for receiving a first movement operation occurring on the first interface; the display module is further configured to confirm that the first movement operation is performed by a preset first touch object, overlay a first writing layer of a first writing application on the first interface, and add and display first handwriting based on the first movement operation on the first writing layer; a obtaining module for obtaining text content in a standard font based on the first handwriting after confirming that the first movement operation has terminated when the first movement operation points to a target text editing box in the at least one text editing box; the display module is further configured to display the text content in the target text editing box, and display a toolbar at a preset position in the target text editing box, and close the first writing layer; wherein the toolbar includes at least one text editing control; an editing module for editing the displayed text content according to a first editing method corresponding to the target text editing control after the text content is displayed in the target text editing box, upon receiving an operation on the target text editing control in the at least one text editing control; the display module is further configured to display the edited text content in the target text editing box.
第四方面,提供了一种书写装置,该装置包括:显示模块,用于显示第一界面,所述第一界面中包括至少一个文本编辑框;接收模块,用于接收发生在所述第一界面上的第一移动操作;所述显示模块还用于确认所述第一移动操作由预设的第一触摸物所执行,在所述第一界面上叠加显示第一书写应用程序的第一书写层;所述显示模块还用于当所述至少一个文本编辑框中存在获得输入焦点的目标文本编辑框,在所述目标文本编辑框的预设位置显示工具栏,并基于所述第一移动操作在所述第一书写层上添加并显示第一书写笔迹;其中,所述工具栏中包括至少一个文本编辑控件;得到模块,用于在确认所述第一移动操作终止后,基于所述第一书写笔迹得到标准字体的文本内容;其中,所述输入焦点由发生在所述第一界面上的点击操作所触发;所述显示模块还用于在所述目标文本编辑框中显示所述文本内容,并关闭所述第一书写层;编辑模块,用于在所述目标文本编辑框中显示所述文本内容之后,在接收到对所述至少一个文本编辑控件中的目标文本编辑控件的操作时,根据所述目标文本编辑控件对应的第一编辑方式对显示的所述文本内容进行编辑;所述显示模块还用于在所述目标文本编辑框中显示编辑后的所述文本内容。Fourthly, a writing device is provided, comprising: a display module for displaying a first interface, the first interface including at least one text editing box; a receiving module for receiving a first movement operation occurring on the first interface; the display module is further configured to confirm that the first movement operation is performed by a preset first touch object, and to overlay and display a first writing layer of a first writing application on the first interface; the display module is further configured to, when there is a target text editing box with input focus in the at least one text editing box, display a toolbar at a preset position of the target text editing box, and add and display first handwriting on the first writing layer based on the first movement operation; wherein, the toolbar includes at least one text editing box. This editing control includes a module for obtaining text content in a standard font based on the first handwriting after confirming the termination of the first movement operation; wherein the input focus is triggered by a click operation occurring on the first interface; the display module is further configured to display the text content in the target text editing box and close the first writing layer; the editing module is configured to, after displaying the text content in the target text editing box, edit the displayed text content according to the first editing method corresponding to the target text editing control when receiving an operation on the target text editing control in the at least one text editing control; the display module is further configured to display the edited text content in the target text editing box.
第五方面,提供一种交互平板,包括存储器和处理器,存储器用于存储可执行程序代码;处理器用于从存储器中调用并运行可执行程序代码,使得交互平板执行上述第一方面或第一方面任意一种可能的实现方式中的书写方法。Fifthly, an interactive flat panel is provided, including a memory and a processor. The memory is used to store executable program code; the processor is used to call and run the executable program code from the memory, so that the interactive flat panel executes the writing method in the first aspect or any possible implementation of the first aspect.
第六方面,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序代码,当该计算机程序代码在计算机上运行时,使得该计算机执行上述第一方面或第二方面任意一种可能的实现方式中的书写方法。In a sixth aspect, a computer-readable storage medium is provided that stores computer program code, which, when run on a computer, causes the computer to perform the writing method in any possible implementation of the first or second aspect described above.
第七方面,提供了一种计算机程序产品,该计算机程序产品包括:计算机程序代码,当该计算机程序代码在计算机上运行时,使得该计算机执行上述第一方面或第二方面任意一种可能的实现方式中的书写方法。In a seventh aspect, a computer program product is provided, comprising: computer program code, which, when run on a computer, causes the computer to execute the writing method in any possible implementation of the first or second aspect described above.
图1是本申请实施例提供的一种交互平板的结构示意图;Figure 1 is a structural schematic diagram of an interactive flat panel provided in an embodiment of this application;
图2是本申请实施例提供的一种书写方法的场景示意图;Figure 2 is a schematic diagram of a writing method provided in an embodiment of this application;
图3是本申请实施例提供的一种书写方法的示意性流程图;Figure 3 is a schematic flowchart of a writing method provided in an embodiment of this application;
图4是本申请实施例提供的一种文本输入的场景示意图;Figure 4 is a schematic diagram of a text input scenario provided in an embodiment of this application;
图5是本申请实施例提供的另一种文本输入的场景示意图;Figure 5 is a schematic diagram of another text input scenario provided by an embodiment of this application;
图6是本申请实施例提供的另一种文本输入的场景示意图;Figure 6 is a schematic diagram of another text input scenario provided by an embodiment of this application;
图7是本申请实施例提供的另一种文本输入的场景示意图;Figure 7 is a schematic diagram of another text input scenario provided by an embodiment of this application;
图8是本申请实施例提供的另一种文本输入的场景示意图;Figure 8 is a schematic diagram of another text input scenario provided by an embodiment of this application;
图9是本申请实施例提供的一种文本删除的场景示意图;Figure 9 is a schematic diagram of a text deletion scenario provided in an embodiment of this application;
图10是本申请实施例提供的另一种文本删除的场景示意图;Figure 10 is a schematic diagram of another text deletion scenario provided by an embodiment of this application;
图11是本申请实施例提供的另一种书写方法的示意性流程图;Figure 11 is a schematic flowchart of another writing method provided in an embodiment of this application;
图12是本申请实施例提供的一种Windows系统的架构示意图;Figure 12 is a schematic diagram of the architecture of a Windows system provided in an embodiment of this application;
图13是本申请实施例提供的另一种书写方法的场景示意图; Figure 13 is a schematic diagram of another writing method provided in an embodiment of this application;
图14是本申请实施例提供的一种书写方法的示意性流程图;Figure 14 is a schematic flowchart of a writing method provided in an embodiment of this application;
图15是本申请实施例提供的另一种文本输入的场景示意图;Figure 15 is a schematic diagram of another text input scenario provided by an embodiment of this application;
图16是本申请实施例提供的一种界面的变化示意图;Figure 16 is a schematic diagram of an interface change provided in an embodiment of this application;
图17是本申请实施例提供的另一种书写方法的示意性流程图;Figure 17 is a schematic flowchart of another writing method provided in the embodiments of this application;
图18是本申请实施例提供的一种书写装置的结构示意图;Figure 18 is a schematic diagram of the structure of a writing device provided in an embodiment of this application;
图19是本申请实施例提供的一种书写装置的结构示意图;Figure 19 is a structural schematic diagram of a writing device provided in an embodiment of this application;
图20是本申请实施例提供的一种交互平板的结构示意图。Figure 20 is a schematic diagram of the structure of an interactive flat panel provided in an embodiment of this application.
下面将结合附图,对本申请中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B:文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者多个该特征。The technical solutions of this application will now be described clearly and in detail with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, "/" indicates "or," for example, A/B can mean A or B. "And/or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and/or B can represent: A alone, A and B simultaneously, and B alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more. Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include one or more of that feature.
本申请的书写方法可以应用于交互平板,交互平板是通过触控技术对显示在显示屏上的内容进行操控和实现人机交互操作的一体化设备,其集成了投影机、电子白板、幕布、音响、电视机以及视频会议终端等一种或多种功能。当然,交互平板并不包括对显示面的表面特征的限定,例如交互平板可以是平面、曲面或多个平面的拼接等。The writing method described in this application can be applied to interactive flat panels, which are integrated devices that use touch technology to control content displayed on a screen and achieve human-computer interaction. They integrate one or more functions such as a projector, electronic whiteboard, screen, audio system, television, and video conferencing terminal. Of course, interactive flat panels do not limit the surface features of the display surface; for example, an interactive flat panel can be a flat surface, a curved surface, or a combination of multiple flat surfaces.
图1是本申请实施例提供的一种交互平板的结构示意图。示例性地,如图1所示,交互平板100包括触敏显示屏110和控制主板120。触敏显示屏110用于检测触摸物的位置信息和触摸物的触摸物类型;控制主板120用于控制和协调交互平板100及外部设备,使得交互平板100中各种独立的硬件可以作为一个稳定的整体协调工作。示例性地,触敏显示屏110为一块具有触摸功能的显示屏;例如,红外显示屏、电容显示屏、电阻显示屏、电磁显示屏或压感显示屏等。在触敏显示屏110上,用户可以通过手指、书写笔或其它触控介质(下文中统称为触摸物)触控触敏显示屏110的方式实现书写操作或其它操作;相应的,交互平板100检测到手指或书写笔进行触控操作时的位置信息,并根据位置信息进行响应,以实现基于触控的人机交互功能。Figure 1 is a schematic diagram of an interactive flat panel provided in an embodiment of this application. Exemplarily, as shown in Figure 1, the interactive flat panel 100 includes a touch-sensitive display screen 110 and a control motherboard 120. The touch-sensitive display screen 110 is used to detect the position information and type of the touch object; the control motherboard 120 is used to control and coordinate the interactive flat panel 100 and external devices, enabling various independent hardware components in the interactive flat panel 100 to work together as a stable whole. Exemplarily, the touch-sensitive display screen 110 is a display screen with touch functionality; for example, an infrared display screen, a capacitive display screen, a resistive display screen, an electromagnetic display screen, or a pressure-sensitive display screen. On the touch-sensitive display screen 110, users can perform writing operations or other operations by touching the touch-sensitive display screen 110 with their fingers, a stylus, or other touch media (hereinafter collectively referred to as touch objects); correspondingly, the interactive flat panel 100 detects the position information when the finger or stylus performs a touch operation and responds according to the position information to realize touch-based human-computer interaction functions.
在本申请实施例中,触敏显示屏110能检测到的传感数据除了包括位置信息,还包括通过直接检测到的触控信号或者通过辅助的传感器检测触摸物的特定信号实现对触摸物类型的判断结果,具体例如根据触摸物与触敏显示屏110接触时的触点大小区分不同触摸物类型、根据触摸物与触敏显示屏110接触时产生的具有辨识度的物理信号(例如声音等)区分不同触摸物类型、根据触摸物与触敏显示屏110接触时产生的具有标识能力的无线信号区分不同触摸物类型等。也就是说,触敏显示屏110不仅可以把触摸的位置信息发送给控制主板120,还可以把触摸物的触摸物类型发送给控制主板120。In this embodiment, the sensing data that the touch-sensitive display screen 110 can detect includes not only position information, but also the result of judging the type of the touch object by directly detecting touch signals or by detecting specific signals of the touch object through auxiliary sensors. Specifically, for example, different touch object types can be distinguished based on the size of the touch point when the touch object contacts the touch-sensitive display screen 110, based on the distinguishable physical signals (such as sound) generated when the touch object contacts the touch-sensitive display screen 110, or based on the identifying wireless signals generated when the touch object contacts the touch-sensitive display screen 110. In other words, the touch-sensitive display screen 110 can not only send the touch position information to the control motherboard 120, but also send the touch object type to the control motherboard 120.
示例性地,控制主板120安装有至少一种操作系统;其中,操作系统包括但不限定于安卓系统、Linux系统、Windows系统和鸿蒙系统,其用于控制和协调交互平板100及外部设备,使得交互平板100中各种独立的硬件可以作为一个稳定的整体协调工作,操作系统所在的架构层级定义为系统层。在系统层的基础上,交互平板100中安装有为满足用户不同领域、不同问题而开发的应用程序,其对应所在的架构层级为应用层。For example, the control motherboard 120 is equipped with at least one operating system; wherein the operating system includes, but is not limited to, Android, Linux, Windows, and HarmonyOS, and is used to control and coordinate the interactive flat panel 100 and external devices, so that the various independent hardware components in the interactive flat panel 100 can work together as a stable whole. The architectural layer at which the operating system resides is defined as the system layer. Based on the system layer, the interactive flat panel 100 is equipped with applications developed to meet the needs of users in different fields and for different problems, and the corresponding architectural layer is the application layer.
在本方案的具体实施例描述中,交互平板100可以安装至少一个具有书写功能的书写应用程序,书写应用程序可以为操作系统自带的应用程序,也可以是从第三方设备或者服务器中下载的应用程序。可选的,书写应用程序除具备基于触控操作的书写功能外,还具有其他编辑功能,如删除功能、插入表格、插入图片、插入图形、绘制表格、绘制图形等功能,在此不做具体限定。In the specific embodiments described in this solution, the interactive flat panel 100 can install at least one writing application with writing functionality. This writing application can be a built-in application of the operating system or an application downloaded from a third-party device or server. Optionally, in addition to touch-based writing functionality, the writing application may also have other editing functions, such as deletion, table insertion, image insertion, graphic insertion, table drawing, and graphic drawing, etc., which are not specifically limited here.
相关技术中,在通过手写输入方式向交互平板输入文本内容的过程中,当需要向已输入的文本内容中插入空格字符时,由于手写输入模式不支持空格字符的输入,因此需要调用软键盘向文本内容中插入空格字符。以及,当需要删除已输入的文本内容中的部分或全部字符时,手写输入模式的通常做法是在待删除的字符上画线,该方式的可视化不足,不易被用户掌握,使得用户经常需要调用软键盘删除文本内容中的字符。简言之,手写输入模式虽然可以提高文本内容的输入效率,但是在对已输入的文本内容进行编辑时可能需要频繁切换输入模式,导致文本内容的输入的效率较低。In related technologies, when inputting text into an interactive whiteboard via handwriting input, inserting a space character into the already entered text is often necessary because handwriting input does not support space character input. Therefore, the soft keyboard must be used to insert the space character. Furthermore, when deleting some or all characters from the entered text, the common practice in handwriting input is to draw an underline on the character to be deleted. This method lacks visual clarity and is not easily mastered by users, leading to frequent reliance on the soft keyboard for deletion. In short, while handwriting input can improve text input efficiency, frequent switching between input modes may be required when editing already entered text, resulting in low overall input efficiency.
有鉴于此,本申请提出了一种书写方法、交互平板和存储介质,该方法通过预设的第一触摸物在第一界面上进行触摸移动操作时,可以直接生成书写笔迹并进行展示,实现下笔就显示书写笔迹的效果。而且如果存在获得输入焦点的文本编辑框或者移动操作指向某个文本编辑框,则可以直接将书写笔迹转 换成标准字体的文字内容并输入到文本编辑框中,同时可以在文本编辑框的预设位置显示包括一个或多个文本编辑控件的工具栏。当用户需要对文本编辑框内的文本内容进行编辑时,可以通过工具栏内的文本编辑控件对文本内容进行编辑,使得文本内容的编辑可以不用调用软键盘,不需要频繁切换输入模式,从而可以简化文本内容的编辑过程,进而可以提高文本内容的输入效率。而且,由于该方法能够实现通过预设的触摸物在第一界面的任意位置进行书写,从而直接输入文本内容,或者生成书写笔迹,无需依赖于反复打开关闭软键盘或者书写软件进行文字输入或者笔迹书写,能够提高交互平板书写的便利性,从而提高书写效率,提升了用户体验。In view of this, this application proposes a writing method, an interactive whiteboard, and a storage medium. This method, when a pre-set first touch object is used to perform a touch movement operation on a first interface, can directly generate and display handwriting, achieving the effect of displaying handwriting as soon as it is written. Furthermore, if a text editing box with input focus exists, or if the movement operation points to a text editing box, the handwriting can be directly converted into… The text content, converted to a standard font, is entered into the text editing box. Simultaneously, a toolbar containing one or more text editing controls is displayed at a preset position within the text editing box. When the user needs to edit the text content in the editing box, they can do so using the text editing controls in the toolbar. This eliminates the need to access the soft keyboard and frequently switch input modes, simplifying the text editing process and improving input efficiency. Furthermore, since this method allows writing on any position on the first interface using a preset touch object, directly inputting text or generating handwriting, it eliminates the need to repeatedly open and close the soft keyboard or writing software. This enhances the convenience of writing on the interactive whiteboard, thereby improving writing efficiency and enhancing the user experience.
图2是本申请实施例提供的一种书写方法的场景示意图。示例性地,图2中的(a)所示的为书写笔进行书写的场景示意图,图2中的(b)所示的为手指进行书写的场景示意图。示例性地,如图2中的(a)所示,在主线程检测到书写笔在交互平板的第一界面进行书写操作,在第一界面上叠加显示第一书写应用程序的第一书写层,并通过第一书写层接收第一书写笔迹,并持续检测第一书写笔的抬起时长,若抬起时长大于预设时长,则确定书写完成,将第一书写笔迹进行收集。Figure 2 is a schematic diagram of a writing method according to an embodiment of this application. Exemplarily, Figure 2(a) shows a scenario of writing with a pen, and Figure 2(b) shows a scenario of writing with a finger. Exemplarily, as shown in Figure 2(a), when the main thread detects that the pen is performing a writing operation on the first interface of the interactive tablet, a first writing layer of the first writing application is overlaid on the first interface, and the first writing strokes are received through the first writing layer. The duration of the pen being lifted is continuously detected; if the lifting duration exceeds a preset duration, writing is determined to be complete, and the first writing strokes are collected.
与此同时,另开线程自上而下遍历开启的各个窗口,得到各个窗口的位置,基于各个窗口的位置与落点位置(落点位置为书写操作的起始位置),确定目标窗口。具体地,检测落点位置所在的窗口,通过遍历第一界面的开启窗口,确定落点位置所在的开启窗口为目标窗口。在确定目标窗口之后,基于落点位置与目标窗口中各个编辑框的位置,确定书写操作的落点位置是否存在编辑框(以下称为第一编辑框)。例如,可以遍历各个编辑框,确定落点位置所在的第一编辑框的位置,并获取第一编辑框的属性信息,若属性信息满足编辑框预设条件,确定第一编辑框为目标文本编辑框。Meanwhile, a separate thread iterates through all open windows from top to bottom to obtain the position of each window. Based on the positions of each window and the landing point (the landing point is the starting position of the writing operation), the target window is determined. Specifically, the window where the landing point is located is detected by iterating through the open windows of the first interface to determine that the open window where the landing point is located is the target window. After determining the target window, based on the landing point and the positions of each edit box in the target window, it is determined whether an edit box (hereinafter referred to as the first edit box) exists at the landing point position of the writing operation. For example, it is possible to iterate through each edit box to determine the position of the first edit box where the landing point is located, and obtain the attribute information of the first edit box. If the attribute information meets the preset conditions of the edit box, the first edit box is determined to be the target text edit box.
进一步地,当书写操作的落点位置存在目标文本编辑框时,在确认书写操作终止后,根据第一书写笔迹得到标准字体的文本内容,在目标文本编辑框中显示文本内容,并关闭第一书写层。此外,当书写操作的落点位置不存在目标文本编辑框时,在确认书写操作终止后,将第一书写笔迹显示在第一书写层,以便用户进行查看。需要说明的是,书写笔为与交互平板进行匹配的笔。Furthermore, when the writing operation is executed at a target text editing box, after confirming the termination of the writing operation, the text content in standard font is obtained based on the first handwriting stroke and displayed in the target text editing box, and the first writing layer is closed. Conversely, when the writing operation is executed at a target text editing box, after confirming the termination of the writing operation, the first handwriting stroke is displayed on the first writing layer for the user to view. It should be noted that the writing pen is a pen designed for use with the interactive whiteboard.
可选地,第一书写层可以是透明书写层,也可以是半透明书写层,在此不做具体限定。可选地,编辑框预设条件包括但不限于:编辑框为支持文本编辑的编辑框、编辑框的位置位于交互平板的第一界面内、编辑框存在可以输入文本的输入框等等,在此不做具体限定。可选地,落点位置可以基于坐标数据进行表示;例如,以第一界面的左上角为原点,水平方向为x轴,垂直方向为y轴,基于坐标数据确定书写操作的落点位置。坐标系的建立位置可以根据实际情况进行确定,在此不做具体限定。可选地,预设时长可以为300ms、350ms、380ms等等,在此不做具体限定。Optionally, the first writing layer can be a transparent writing layer or a semi-transparent writing layer; no specific limitation is made here. Optionally, the preset conditions for the editing box include, but are not limited to: the editing box is an editing box that supports text editing, the editing box is located within the first interface of the interactive whiteboard, the editing box has an input box for entering text, etc.; no specific limitation is made here. Optionally, the landing point position can be represented based on coordinate data; for example, with the upper left corner of the first interface as the origin, the horizontal direction as the x-axis, and the vertical direction as the y-axis, the landing point position of the writing operation is determined based on the coordinate data. The location of the coordinate system can be determined according to the actual situation; no specific limitation is made here. Optionally, the preset duration can be 300ms, 350ms, 380ms, etc.; no specific limitation is made here.
示例性地,在书写笔的类型与预设类型匹配成功的情况下,检测到书写笔在交互平板的第一界面存在移动操作。可以理解的是,在确定书写笔在交互平板的第一界面存在移动操作时,确定移动操作的落点位置。可以理解的是,移动操作可以包括但不限于:书写操作、文本删除、文本选中等等,在此不做具体限定。示例性地,在主线程检测到手指在第一界面上的移动操作,并根据移动操作对第一界面进行更新,并显示更新后的第一界面。For example, when the pen type successfully matches a preset type, a movement operation of the pen on the first interface of the interactive tablet is detected. It is understood that upon determining that a movement operation of the pen is occurring on the first interface of the interactive tablet, the landing point of the movement operation is determined. It is understood that the movement operation can include, but is not limited to, writing operations, text deletion, text selection, etc., and is not specifically limited here. For example, the main thread detects a finger movement operation on the first interface, updates the first interface based on the movement operation, and displays the updated first interface.
图3是本申请实施例提供的一种书写方法的示意性流程图。如图3所示,该方法包括以下过程:Figure 3 is a schematic flowchart of a writing method provided in an embodiment of this application. As shown in Figure 3, the method includes the following steps:
S301,显示第一界面。S301, displaying the first interface.
示例性地,交互平板可以是Windows系统会议平板、安卓平板等等。第一界面可以是网页界面,也可以是应用程序的输入界面等,第一界面中包括至少一个文本编辑框。文本编辑框用于接收用户输入的标准字体的文本内容,这里标准字体是相对于手写字体而言的,例如汉字字体、英文字体等。可选的,标准字体还可以设定有具体的字体格式,例如汉字字体可以有仿宋体、黑体、微软雅黑等字体格式。For example, the interactive flat panel can be a Windows system conference flat panel, an Android tablet, etc. The first interface can be a web page interface or an application input interface, etc., and includes at least one text editing box. The text editing box is used to receive text content input by the user in a standard font, where standard font refers to a font as opposed to handwritten fonts, such as Chinese fonts, English fonts, etc. Optionally, the standard font can also be configured with a specific font format; for example, Chinese fonts can have formats such as SimSun, HeiTi, Microsoft YaHei, etc.
S302,接收发生在第一界面上的第一移动操作。S302, receive the first movement operation that occurs on the first interface.
可选地,第一移动操作可以是书写操作、文本选中、文本删除中任一者。示例性地,当第一移动操作为书写操作的情况下,接收发生在第一界面上的书写操作。可以理解的是,所示示例仅为实际应用中可能采用的一种情况,具体可以根据实际情况进行确定,在此不做限定。Optionally, the first movement operation can be any of the following: a writing operation, text selection, or text deletion. For example, when the first movement operation is a writing operation, the writing operation occurring on the first interface is received. It is understood that the example shown is only one possible scenario in practical applications, and the specific implementation can be determined according to actual circumstances; no limitation is made here.
S303,确认第一移动操作由预设的第一触摸物所执行,在第一界面上叠加显示第一书写应用程序的第一书写层,并基于第一移动操作在第一书写层上添加并显示第一书写笔迹。S303, confirm that the first movement operation is performed by a preset first touch object, overlay and display the first writing layer of the first writing application on the first interface, and add and display the first writing strokes on the first writing layer based on the first movement operation.
其中,第一触摸物为书写笔的笔头。可选地,第一书写应用程序可以是交互平板中操作系统自带的应用程序,也可以是从第三方设备或者服务器下载的应用程序,在此不做具体限定。可选的,本申请实施例中,第一书写应用程序是安装在交互平板操作系统中的批注应用程序。一种实现方式中,在检测第一移动操作是否由预设的触摸物所执行时,可以通过检测到触控信号或者通过辅助的传感器检测触摸物的特定信息实现对触摸物的类型的判断结果。例如,根据触摸物与第一界面接触时的触点大小区分不同触摸物类型;根据触摸物与第一界面接触时产生的具有辨识度的物理信号区分不同触摸物类型;根据触 摸物与第一界面接触时产生的具有标识能力的无线信号区分不同触摸物类型。触摸物的类型的判断方式可以根据实际情况进行确定,在此不做具体限定。另一种实现方式中,检测第一移动操作是否由预设的触摸物所执行时,可以通过接收触敏显示屏所发送的触摸物类型确定。例如,本申请实施例采用了高精度的触敏显示屏,不仅能识别到触摸物在触敏显示屏上触摸的位置信息,还能识别到触摸物的具体形状,从而对触摸物的具体类型进行区分。因此,本申请在软件构架或软件逻辑方面对第一书写应用程序的触摸数据接收进行重新设计,从而满足不同状态下的数据获取。The first touch object is the tip of a writing pen. Optionally, the first writing application can be an application that comes pre-installed in the operating system of the interactive flat panel, or an application downloaded from a third-party device or server; no specific limitation is made here. Optionally, in this embodiment, the first writing application is an annotation application installed in the interactive flat panel operating system. In one implementation, when detecting whether the first movement operation is performed by a preset touch object, the type of touch object can be determined by detecting a touch signal or by detecting specific information of the touch object through an auxiliary sensor. For example, different touch object types can be distinguished based on the size of the touch point when the touch object contacts the first interface; different touch object types can be distinguished based on the recognizable physical signal generated when the touch object contacts the first interface; and different touch object types can be distinguished based on the touch point size when the touch object contacts the first interface. When a touch object comes into contact with the first interface, a wireless signal with identification capabilities is generated to distinguish different types of touch objects. The method for determining the type of touch object can be determined according to the actual situation and is not specifically limited here. In another implementation, when detecting whether the first movement operation is performed by a preset touch object, it can be determined by receiving the touch object type sent by the touch-sensitive display screen. For example, the embodiments of this application use a high-precision touch-sensitive display screen, which can not only identify the position information of the touch object on the touch-sensitive display screen, but also identify the specific shape of the touch object, thereby distinguishing the specific type of touch object. Therefore, this application redesigns the touch data reception of the first writing application in terms of software architecture or software logic to meet the data acquisition needs under different states.
示例性地,当交互平板开机启动后,第一书写应用程序即启动在后台运行,此时第一书写应用程序的第一书写层并未展现在交互平板上。交互平板运行过程中,触摸物在交互平板的触敏显示屏上进行触摸操作时,交互平板的操作系统将会接收到触摸数据。第一书写应用程序会实时判断是否有其他书写应用程序在运行,如果有,则不与操作系统的驱动层(对应是驱动程序)建立连接,由操作系统进行数据分发响应。即第一书写应用程序开机启动并在后台运行;第一书写应用程序在确认第一界面不是书写应用的界面的情况下,建立与驱动程序的数据通道,在确认第一界面是书写应用的界面的情况下,断开与驱动程序的数据通道;数据通道用于传输触敏现实屏发送的触摸数据,该触摸数据至少包括触敏显示屏检测到的触摸位置数据和触摸物的具体类型。根据第一界面的类型设置第一书写应用程序和驱动程序之间数据通道的连接状态,能够在当前能支持书写的情况下,直接避免第一书写应用程序的第一书写层的不必要显示。For example, when the interactive flat panel is powered on, the first writing application starts running in the background. At this time, the first writing layer of the first writing application is not displayed on the interactive flat panel. During the operation of the interactive flat panel, when a touch object is touched on the touch-sensitive display screen, the operating system of the interactive flat panel will receive the touch data. The first writing application will determine in real time whether other writing applications are running. If so, it will not establish a connection with the operating system's driver layer (corresponding to the driver program), and the operating system will handle the data distribution response. That is, the first writing application starts up and runs in the background; if the first interface is not the interface of the writing application, the first writing application establishes a data channel with the driver program; if the first interface is the interface of the writing application, it disconnects the data channel with the driver program; the data channel is used to transmit touch data sent by the touch-sensitive display screen, which includes at least the touch position data detected by the touch-sensitive display screen and the specific type of the touch object. By setting the connection status of the data channel between the first writing application and the driver program according to the type of the first interface, unnecessary display of the first writing layer of the first writing application can be directly avoided when writing is currently supported.
如果没有其他书写应用程序在运行,则第一书写应用程序跟操作系统的驱动层建立连接,告知驱动层需要拦截的触摸数据的判断规则或者条件(例如拦截特定笔的触摸数据),驱动层根据接收到的触摸数据进行判断,如果判断触摸数据是由笔(对应的触摸物类型为预设的第一介质类型)产生的,则将触摸数据拦截后发送到第一书写应用程序进行响应。如果判断触摸数据不是笔产生的,则由操作系统进行触摸数据分发响应,从而结合本申请实施例的其它步骤,当用户使用特定的笔在交互平板上书写时,可以实现用户在交互平板上提笔即可以书写的书写操作,或者直接提笔在文本输入框中输入文本或者编辑文本,能够提高交互平板书写的便利性,从而提高书写效率,大大提升了用户体验。If no other writing application is running, the first writing application establishes a connection with the operating system's driver layer, informing the driver layer of the rules or conditions for judging the touch data to be intercepted (e.g., intercepting touch data from a specific pen). The driver layer judges the received touch data. If it determines that the touch data is generated by a pen (corresponding to a preset first medium type of touch object), it intercepts the touch data and sends it to the first writing application for response. If it determines that the touch data is not generated by a pen, the operating system distributes the touch data in response. Thus, combined with other steps in the embodiments of this application, when a user writes on the interactive tablet with a specific pen, the user can write as soon as they pick up the pen, or directly input or edit text in the text input box, improving the convenience of writing on the interactive tablet, thereby increasing writing efficiency and greatly enhancing the user experience.
如图4所示,图4是本申请实施例提供的一种文本输入的场景示意图。在确认第一移动操作由书写笔的笔头的执行时,可以在第一界面上显示第一书写层,第一书写层可以为透明书写层、半透明书写层或不透明书写层。同时,可以获取第一移动操作的移动轨迹,将移动轨迹转换为第一书写笔迹,并在第一书写层上显示第一书写笔迹。As shown in Figure 4, which is a schematic diagram of a text input scenario provided by an embodiment of this application, when it is confirmed that the first movement operation is executed by the pen tip, a first writing layer can be displayed on the first interface. The first writing layer can be a transparent writing layer, a semi-transparent writing layer, or an opaque writing layer. Simultaneously, the movement trajectory of the first movement operation can be obtained, converted into first handwriting, and displayed on the first writing layer.
S304,当第一移动操作指向至少一个文本编辑框中的目标文本编辑框,在确认第一移动操作终止后,基于第一书写笔迹得到标准字体的文本内容。S304, when the first move operation points to the target text editing box in at least one text editing box, after confirming that the first move operation has terminated, the text content in the standard font is obtained based on the first handwriting.
其中,第一移动操作指向的目标文本编辑框可以是位于第一移动操作的落点位置的文本编辑框。示例性地,可以检测第一移动操作的落点位置与第一界面中包括的各个文本编辑框的位置,确定第一移动操作的落点位置是否存在文本编辑框,若存在文本编辑框,则将落点位置的文本编辑框确定为目标文本编辑框。同时,在确认第一移动操作终止后,收集第一移动操作的移动轨迹得到第一书写笔迹,然后基于第一书写笔迹进行文本识别,得到至少一个候选文本,并从至少一个候选文本中确定一个候选文本为标准字体的文本内容。The target text editing box pointed to by the first movement operation can be a text editing box located at the landing position of the first movement operation. For example, the landing position of the first movement operation and the positions of various text editing boxes included in the first interface can be detected to determine whether a text editing box exists at the landing position of the first movement operation. If a text editing box exists, the text editing box at the landing position is identified as the target text editing box. Simultaneously, after confirming the termination of the first movement operation, the movement trajectory of the first movement operation is collected to obtain a first handwriting, and then text recognition is performed based on the first handwriting to obtain at least one candidate text. From the at least one candidate text, one candidate text is determined to be text content in a standard font.
可选地,落点位置可以是第一移动操作在第一界面上的起始位置。例如,落点位置可以通过坐标数据表示,坐标数据以第一界面的左上角为原点,水平方向为x轴,垂直方向为y轴,落点位置例如为(100,200),(100,200)表示落点位置在第一界面中的横坐标100,纵坐标200。在确定落点位置是否存在文本编辑框的过程中,可以确定落点位置所在的目标窗口,并获取目标窗口中至少一个文本编辑框的位置,若落点位置位于目标窗口中某个文本编辑框所在的位置范围内,则确定第一移动操作指向该文本编辑框,该文本编辑框为目标文本编辑框。如图4所示,第一书写笔迹的起点即第一移动操作的落点位置,落点位置位于文本编辑框的位置范围内,可以确定文本编辑框为目标文本编辑框。Optionally, the landing point can be the starting position of the first movement operation on the first interface. For example, the landing point can be represented by coordinate data, with the upper left corner of the first interface as the origin, the horizontal direction as the x-axis, and the vertical direction as the y-axis. The landing point position is, for example, (100, 200), where (100, 200) represents the horizontal coordinate of the landing point position as 100 and the vertical coordinate as 200 on the first interface. In determining whether a text editing box exists at the landing point position, the target window where the landing point position is located can be determined, and the position of at least one text editing box in the target window can be obtained. If the landing point position is within the position range of a certain text editing box in the target window, then it is determined that the first movement operation points to that text editing box, and that text editing box is the target text editing box. As shown in Figure 4, the starting point of the first writing stroke is the landing point of the first movement operation. Since the landing point position is within the position range of the text editing box, the text editing box can be determined to be the target text editing box.
其中,为了确定落点位置所在的目标窗口,可以遍历第一界面中开启的各个窗口,得到各个窗口的位置,并基于各个窗口的位置与落点位置,确定目标窗口。具体地,通过windows系统架构中系统架构层的User32.dll模块中GetTopWindow接口查找第一界面中的顶层的窗口,并通过User32.dll模块中GetWindowRect接口确定顶层的窗口的位置(窗口尺寸),并检测顶层的窗口的位置是否包含落点位置,若顶层的窗口的位置包含落点位置,确定顶层的窗口为目标窗口;若顶层的窗口的位置不包含落点位置,通过User32.dll模块中GetWindow接口逐个向下查找参考窗口,并通过User32.dll模块的GetWindowRect接口确定参考窗口的位置,并检测参考窗口的位置是否包括落点位置,若参考窗口的位置包含落点位置,确定参考窗口为目标窗口。 To determine the target window where the landing point is located, all open windows in the first interface can be traversed to obtain their positions. Based on the positions of these windows and the landing point, the target window is then determined. Specifically, the GetTopWindow interface in the User32.dll module of the system architecture layer in the Windows system architecture is used to find the top-level window in the first interface. The GetWindowRect interface in the User32.dll module is used to determine the position (window size) of the top-level window. It is then checked whether the position of the top-level window includes the landing point. If the position of the top-level window includes the landing point, it is determined as the target window. If the position of the top-level window does not include the landing point, the GetWindow interface in the User32.dll module is used to search downwards for reference windows. The GetWindowRect interface in the User32.dll module is used to determine the position of the reference windows, and it is checked whether the position of the reference windows includes the landing point. If the position of the reference windows includes the landing point, it is determined as the target window.
例如,通过GetTopWindow接口查找第一界面中的顶层的窗口,并通过GetWindowRect接口确定顶层的窗口的位置为(100,100,750,800),表示顶层的窗口左上角的位置坐标为(100,100),顶层的窗口右下角的位置坐标为(750,800),落点位置为(650,650),确定顶层的窗口位置包含落点位置,确定顶层的窗口为目标窗口。或者,通过GetTopWindow接口查找第一界面中的顶层的窗口,并通过GetWindowRect接口确定顶层的窗口的位置为(100,100,750,800),表示顶层的窗口左上角的位置坐标为(100,100),顶层的窗口右下角的位置坐标为(750,800),落点位置为(850,850),确定顶层的窗口位置不包含落点位置;通过GetWindow接口从顶层的窗口逐个向下查找参考窗口,并确定参考窗口的位置,并检测参考窗口的位置是否包括落点位置,在参考窗口的位置包含落点位置的情况下,确定参考窗口为目标窗口。可以理解的是,检测参考窗口的位置是否包含落点位置的方式,可以参照前述公开实施例中检测顶层的窗口的位置是否包含落点位置的方式,在此不再赘述。在确定落点位置所在的目标窗口之后,遍历目标窗口中的各个文本编辑框,确定落点位置所在的文本编辑框(以下称为)的位置,获取该文本编辑框的属性信息;若属性信息满足编辑框预设条件,则确定第一移动操作指向该文本编辑框。For example, the GetTopWindow interface is used to find the top-level window in the first interface, and the GetWindowRect interface is used to determine the position of the top-level window as (100, 100, 750, 800). This means that the position coordinates of the top-left corner of the top-level window are (100, 100), the position coordinates of the bottom-right corner of the top-level window are (750, 800), and the landing point position is (650, 650). Determining the position of the top-level window includes the landing point position, and thus the top-level window is determined to be the target window. Alternatively, the GetTopWindow interface can be used to locate the top-level window in the first interface, and the GetWindowRect interface can be used to determine the position of the top-level window as (100, 100, 750, 800), indicating that the coordinates of the top-left corner of the top-level window are (100, 100), the coordinates of the bottom-right corner are (750, 800), and the landing point is (850, 850). It is determined that the position of the top-level window does not include the landing point. The GetWindow interface is then used to search for reference windows one by one downwards from the top-level window, and the position of the reference window is determined. It is then checked whether the position of the reference window includes the landing point. If the position of the reference window includes the landing point, the reference window is determined as the target window. It is understood that the method for detecting whether the position of the reference window includes the landing point can refer to the method for detecting whether the position of the top-level window includes the landing point in the aforementioned disclosed embodiments, and will not be repeated here. After determining the target window where the landing point is located, iterate through each text editing box in the target window, determine the position of the text editing box where the landing point is located (hereinafter referred to as the text editing box), and obtain the attribute information of the text editing box; if the attribute information meets the preset conditions of the editing box, then determine that the first movement operation is directed to the text editing box.
可选地,编辑框预设条件包括文本编辑框为支持文本编辑的编辑框,且文本编辑框的位置位于第一界面内。编辑框预设条件可以根据实际情况进行确定,在此不做具体限定。示例性地,可以通过UIAComWrapper模块遍历各个文本编辑框,通过BoudingRectangle接口获取各个文本编辑框的位置,并确定落点位置所在的编辑框的位置;通过UIAComWrapper模块中FindAll接口获取落点位置所在编辑框的属性信息,若属性信息满足编辑框预设条件,确定第一移动操作指向落点位置所在的文本编辑框。例如,遍历各个文本编辑框,通过BoudingRectangle接口获取各个文本编辑框的位置,各个文本编辑框的位置通过坐标数据表示,如文本编辑框的位置为(100,100,200,300),表示文本编辑框的左上角的位置坐标为(100,100),文本编辑框的右下角的位置坐标为(200,300);在确定各个文本编辑框的位置之后,检测落点位置所在的编辑框的位置。通过FindAll接口获取编辑框的属性信息,若属性信息满足编辑框预设条件,确定第一移动操作指向文本编辑框。或者,遍历各个文本编辑框,通过BoudingRectangle接口获取各个文本编辑框的位置,若落点位置位于所有文本编辑框的位置之外,确定不存在目标文本编辑框,即确定第一移动操作未指向文本编辑框。或者,遍历各个文本编辑框,通过BoudingRectangle接口获取各个文本编辑框的位置,确定落点位置所在的文本编辑框的位置。通过FindAll接口获取落点位置所在文本编辑框的属性信息,若属性信息不满足编辑框预设条件,确定第一移动操作未指向文本编辑框。Optionally, the preset conditions for the edit box include that the text edit box is an edit box that supports text editing, and that the position of the text edit box is within the first interface. The preset conditions for the edit box can be determined according to the actual situation, and are not specifically limited here. For example, the UIAComWrapper module can be used to traverse each text edit box, obtain the position of each text edit box through the BoudingRectangle interface, and determine the position of the edit box where the landing point is located; the FindAll interface in the UIAComWrapper module can be used to obtain the attribute information of the edit box where the landing point is located. If the attribute information meets the preset conditions for the edit box, the first movement operation is determined to point to the text edit box where the landing point is located. For example, iterate through each text edit box and obtain its position using the BoudingRectangle interface. The position of each text edit box is represented by coordinate data; for example, a text edit box with the position (100, 100, 200, 300) indicates that the top-left corner is at coordinates (100, 100) and the bottom-right corner is at coordinates (200, 300). After determining the position of each text edit box, check the position of the edit box containing the landing point. Obtain the edit box's attribute information using the FindAll interface. If the attribute information meets the preset conditions of the edit box, determine that the first move operation points to that text edit box. Alternatively, iterate through each text edit box and obtain its position using the BoudingRectangle interface. If the landing point is outside the positions of all text edit boxes, it is determined that no target text edit box exists, meaning the first move operation did not point to a text edit box. Alternatively, iterate through each text edit box and obtain its position using the BoudingRectangle interface to determine the position of the text edit box containing the landing point. The FindAll interface is used to obtain the attribute information of the text editing box where the landing point is located. If the attribute information does not meet the preset conditions of the editing box, it is determined that the first move operation did not point to the text editing box.
上述方案,遍历各个文本编辑框,确定落点位置所在的编辑框的位置,获取落点位置所在编辑框的属性信息,若属性信息满足编辑框预设条件,确定第一移动操作指向落点位置所在的文本编辑框;由于确定第一移动操作指向文本编辑框的过程,首先是通过遍历各个文本编辑框,再通过编辑框预设条件筛选确定落点位置是否存在满足条件的文本编辑框,能够提高对第一移动操作是否指向文本编辑框的判断的准确性,从而提高书写准确性。The above solution iterates through each text editing box, determines the position of the editing box where the landing point is located, and obtains the attribute information of the editing box where the landing point is located. If the attribute information meets the preset conditions of the editing box, it determines that the first movement operation points to the text editing box where the landing point is located. Since the process of determining that the first movement operation points to the text editing box firstly involves iterating through each text editing box and then filtering by the preset conditions of the editing box to determine whether there is a text editing box that meets the conditions at the landing point, it can improve the accuracy of judging whether the first movement operation points to the text editing box, thereby improving the writing accuracy.
示例性地,在确认第一移动操作终止后,可以对收集到的第一书写笔迹进行光学字符识别(Optical Character Recognition,OCR)识别,以得到N个候选文本,然后响应于对N个候选文本的选择操作,确定文本内容。例如,N个候选文本包括{“每个”,“没个”,“每隔”},用户可以选择“每个”,则确定“每个”为文本内容。可选地,候选文本的数量可以预设设置;例如,对第一书写笔迹进行文本识别,得到5个候选文本。或者,候选文本的数量可以基于识别结果对应的置信度进行确定;例如,对第一书写笔迹进行文本识别,得到置信度大于80%的候选文本。或者,对第一书写笔迹进行文本识别,在识别结果对应的置信度均小于60%的情况下,确定置信度最高的识别文本为候选文本。For example, after confirming the termination of the first movement operation, optical character recognition (OCR) can be performed on the collected first handwriting to obtain N candidate texts. Then, in response to the selection operation of the N candidate texts, the text content is determined. For example, the N candidate texts include {"each", "every", "every other"}, and if the user selects "each", then "each" is determined as the text content. Optionally, the number of candidate texts can be preset; for example, performing text recognition on the first handwriting yields 5 candidate texts. Alternatively, the number of candidate texts can be determined based on the confidence level corresponding to the recognition result; for example, performing text recognition on the first handwriting yields candidate texts with a confidence level greater than 80%. Alternatively, performing text recognition on the first handwriting, if the confidence levels corresponding to all recognition results are less than 60%, the text with the highest confidence level is determined as the candidate text.
示例性地,当第一移动操作指向文本编辑框时,在对第一书写笔迹进行识别得到至少一个标准字体的候选文本之后,可以在候选弹窗中显示至少一个候选文本。此时,可以接收发生在候选弹窗的选择操作,基于选择操作从至少一个候选文本中确定文本内容。例如,可以在目标位置显示候选弹窗,目标位置与目标文本编辑框的位置之间的距离小于预设距离阈值。预设距离阈值例如3厘米、5厘米等等,在此不做具体限定。例如,候选弹窗设置在目标文本编辑框的位置下方;或者,候选弹窗设置在目标文本编辑框的位置右方。For example, when the first movement operation points to the text editing box, after recognizing the first handwriting to obtain at least one candidate text of a standard font, at least one candidate text can be displayed in a candidate pop-up window. At this time, a selection operation occurring in the candidate pop-up window can be received, and the text content can be determined from the at least one candidate text based on the selection operation. For example, the candidate pop-up window can be displayed at a target location, where the distance between the target location and the target text editing box is less than a preset distance threshold. The preset distance threshold is, for example, 3 cm, 5 cm, etc., and is not specifically limited here. For example, the candidate pop-up window can be positioned below the target text editing box; or, the candidate pop-up window can be positioned to the right of the target text editing box.
图5是本申请实施例提供的另一种文本输入的场景示意图。如图5所示,在确认第一移动操作终止后,对第一书写笔迹进行OCR文本识别,得到3个候选文本,3个候选文本在候选弹窗中显示,3候选文本包括{“Micro”、“Micy0”、“微软”}。此时,用户可以根据需求从3个候选文本中选择一个候选文本并点击(选择操作),在接收到用户的点击操作之后,可以将用户点击的候选文本确定为文本内容。可以理解的是,当候选文本为多个时,可以根据OCR文本识别得到的每个候选文本的置信度的 大小,在候选弹窗中顺序显示多个候选文本。如图5所示,候选文本“Micro”、“Micy0”和“微软”的置信度从高到低依次为“Micro”、“Micy0”和“微软”,可以在候选弹窗中依次显示:“Micro”、“Micy0”、“微软”。Figure 5 is a schematic diagram of another text input scenario provided by an embodiment of this application. As shown in Figure 5, after confirming the termination of the first movement operation, OCR text recognition is performed on the first handwriting to obtain three candidate texts, which are displayed in a candidate pop-up window. The three candidate texts include {“Micro”, “Micy0”, “微软”}. At this time, the user can select one candidate text from the three candidate texts according to their needs and click it (selection operation). After receiving the user's click operation, the clicked candidate text can be determined as the text content. It can be understood that when there are multiple candidate texts, the confidence level of each candidate text obtained by OCR text recognition can be used to determine the text content. The size of the candidate texts is determined by the order of the candidate texts displayed in the candidate pop-up window. As shown in Figure 5, the confidence levels of the candidate texts "Micro", "Micy0", and "微软" are from highest to lowest as "Micro", "Micy0", and "微软", respectively. These can be displayed in the candidate pop-up window in the following order: "Micro", "Micy0", and "微软".
可选地,基于第一书写笔迹得到标准字体的文本内容的步骤可以包括:对第一书写笔迹进行光学字符识别,得到至少一个候选文本内容,以及每个候选文本内容的准确度;基于每个候选文本内容的准确度,从至少一个候选文本内容中确定文本内容。Optionally, the step of obtaining text content in a standard font based on the first handwriting may include: performing optical character recognition on the first handwriting to obtain at least one candidate text content and the accuracy of each candidate text content; and determining the text content from the at least one candidate text content based on the accuracy of each candidate text content.
在一种实施方式中,在获取第一书写笔迹对应的文本内容的过程中,首先可以对第一书写笔迹进行OCR文本识别,得到一个或多个文本,同时得到每个文本的置信度(即准确度),得到的每个文本为候选文本。在得到至少一个候选文本之后,可以基于每个候选文本的准确度,直接从至少一个候选文本中确定准确度最高的一个候选文本为文本内容,将文本内容显示在目标文本编辑框内。如上所述,在得到至少一个候选文本之后,可以不通过候选弹窗确定文本内容,直接从至少一个候选文本中确定准确度最高的一个候选文本为文本内容。在上述方案中,在基于第一书写笔迹获取文本内容的过程中,根据识别到的每个候选文本的准确度,从至少一个候选文本中直接确定文本内容,可以简化文本输入操作,提高文本输入效率。In one implementation, during the process of acquiring the text content corresponding to the first handwriting, OCR text recognition can first be performed on the first handwriting to obtain one or more texts, and the confidence score (i.e., accuracy) of each text can be obtained. Each text obtained is a candidate text. After obtaining at least one candidate text, based on the accuracy of each candidate text, the candidate text with the highest accuracy can be directly determined as the text content, and the text content is displayed in the target text editing box. As described above, after obtaining at least one candidate text, the text content can be determined directly from at least one candidate text without going through a candidate pop-up window. In the above scheme, during the process of acquiring text content based on the first handwriting, the text content is directly determined from at least one candidate text according to the accuracy of each identified candidate text, which simplifies the text input operation and improves the text input efficiency.
S305,在目标文本编辑框中显示文本内容,以及在目标文本编辑框的预设位置显示工具栏,并关闭第一书写层。S305, display the text content in the target text editing box, display the toolbar at the preset position of the target text editing box, and close the first writing layer.
其中,工具栏中包括至少一个文本编辑控件。预设位置可以是位于目标文本编辑框的下方、上方、左侧或右侧,并且与目标文本编辑框之间的距离小于预设距离阈值的完位置。预设距离阈值可以设置为1厘米、2厘米等等,在此不做具体限定。本实施例中,在基于第一书写笔迹得到文本内容之后,可以将文本内容显示在目标文本编辑框中,并关闭第一书写层。同时,可以在目标文本编辑框的预设位置显示工具栏。如图6所示,图6是本申请实施例提供的另一种文本输入的场景示意图。在确定候选文本“Micro”为文本内容之后,可以在目标文本编辑框内显示文本内容“Micro”,并关闭第一书写层,同时可以在目标文本编辑框下方的预设位置显示工具栏。结合图5,当通过候选弹窗从至少一个候选文本中确定文本内容时,在从至少一个候选文本中确定文本内容之后,可以先关闭候选弹窗和第一书写层,然后显示工具栏。The toolbar includes at least one text editing control. The preset position can be below, above, to the left, or to the right of the target text editing box, and the distance between it and the target text editing box is less than a preset distance threshold. The preset distance threshold can be set to 1 cm, 2 cm, etc., and is not specifically limited here. In this embodiment, after obtaining the text content based on the first handwriting, the text content can be displayed in the target text editing box, and the first writing layer can be closed. Simultaneously, the toolbar can be displayed at a preset position in the target text editing box. As shown in Figure 6, Figure 6 is a schematic diagram of another text input scenario provided by this application embodiment. After determining the candidate text "Micro" as the text content, the text content "Micro" can be displayed in the target text editing box, and the first writing layer can be closed. Simultaneously, the toolbar can be displayed at a preset position below the target text editing box. Referring to Figure 5, when determining the text content from at least one candidate text through a candidate pop-up window, after determining the text content from at least one candidate text, the candidate pop-up window and the first writing layer can be closed first, and then the toolbar can be displayed.
如图6所示,工具栏中可以包括用于输入空格字符的输入控件和用于删除字符的删除控件等文本编辑控件,还可以包括用于关闭工具栏的关闭控件,以及用于切换文本输入模式的切换控件等其他控件。应当理解,文本编辑控件的种类和数量可以包括但不限于上述举例。As shown in Figure 6, the toolbar may include text editing controls such as an input control for entering space characters and a delete control for deleting characters, as well as other controls such as a close control for closing the toolbar and a toggle control for switching text input modes. It should be understood that the types and number of text editing controls may include, but are not limited to, the examples above.
可选地,在目标文本编辑框的预设位置显示工具栏,包括:隐藏与目标文本编辑框对应的软键盘;在隐藏软键盘之后,在预设位置显示工具栏。Optionally, displaying the toolbar at a preset position in the target text editing box includes: hiding the soft keyboard corresponding to the target text editing box; and displaying the toolbar at the preset position after hiding the soft keyboard.
实际应用中,在确定第一移动操作指向目标文本编辑框时,可以设置目标文本编辑框获得输入焦点,此时交互平板先启动并显示与目标文本编辑框对应的软键盘,并在目标文本编辑框的就近位置显示软键盘。为了避免软键盘对用户的手写输入造成干扰,以及避免软键盘干扰工具栏的正常显示,可以先隐藏软键盘,并在隐藏软键盘之后,在预设位置显示工具栏。In practical applications, when the first movement operation is directed at the target text editing box, the target text editing box can be set to receive input focus. At this time, the interactive whiteboard first starts and displays the soft keyboard corresponding to the target text editing box, and displays the soft keyboard in a position close to the target text editing box. To avoid the soft keyboard interfering with the user's handwriting input and to avoid the soft keyboard interfering with the normal display of the toolbar, the soft keyboard can be hidden first, and then the toolbar can be displayed in a preset position after the soft keyboard is hidden.
S306,在接收到对至少一个文本编辑控件中的目标文本编辑控件的操作时,根据目标文本编辑控件对应的第一编辑方式对显示的文本内容进行编辑。S306, when receiving an operation on a target text editing control in at least one text editing control, the displayed text content is edited according to the first editing method corresponding to the target text editing control.
S307,在目标文本编辑框中显示编辑后的文本内容。S307 Displays the edited text content in the target text editing box.
本实施例中,在显示工具栏之后,若接收到用户对工具栏中的某个文本编辑控件(即目标文本编辑控件)的操作,可以根据目标文本编辑控件对应的第一编辑方式对目标文本编辑框内显示的文本进行编辑,然后在目标文本编辑框中显示编辑后的文本内容。如图6所示,在目标文本编辑框内显示文本内容时,可以同时显示输入光标,输入光标用于指示文本编辑位置,可以默认文本编辑位置位于文本内容的尾部,使输入光标位于文本内容的尾部。用户对文本编辑控件的操作例如点击操作,每接收到用户对删除控件的一次点击操作,可以删除文本内容中位于输入光标之前的一个字符,以完成对文本内容的一次编辑,得到编辑后的文本内容,然后在目标文本编辑框内显示编辑后的文本内容。类似的,每接收到用户对输入控件的一次点击操作,可以在输入光标所在的位置插入一个空格字符,然后组合空格字符与文本内容得到编辑后的文本内容,并在目标文本编辑框内显示编辑后的文本内容。In this embodiment, after displaying the toolbar, if a user's operation on a text editing control (i.e., the target text editing control) in the toolbar is received, the text displayed in the target text editing box can be edited according to the first editing method corresponding to the target text editing control, and then the edited text content is displayed in the target text editing box. As shown in Figure 6, when displaying text content in the target text editing box, an input cursor can be displayed simultaneously. The input cursor is used to indicate the text editing position, and the default text editing position can be located at the end of the text content, so that the input cursor is located at the end of the text content. For example, a user's operation on the text editing control can be a click operation. Each time a user clicks on the delete control, a character before the input cursor in the text content can be deleted to complete one edit of the text content, resulting in the edited text content, which is then displayed in the target text editing box. Similarly, each time a user clicks on the input control, a space character can be inserted at the position of the input cursor, and then the space character is combined with the text content to obtain the edited text content, which is then displayed in the target text editing box.
在一种实施方式中,用户可以手动对文本编辑位置进行调整。如图7所示,图7是本申请实施例提供的另一种文本输入的场景示意图。在显示文本内容之后,用户若确定需要在字符“c”和字符“r”之间插入其他字符,或者删除文本内容中位于字符“r”之前的一个或多个字符,可以使用第二触摸物点击字符“c”和字符“r”之间的位置,第二触摸物为手写笔的笔尾。此时,可以确定用户的点击位置为 文本编辑位置,在该位置插入输入光标。以上仅为示例性举例,具体确定文本编辑位置的方法可以包括但不限于上述举例。In one implementation, the user can manually adjust the text editing position. As shown in Figure 7, which is a schematic diagram of another text input scenario provided in this embodiment, after displaying the text content, if the user determines that they need to insert other characters between the characters "c" and "r," or delete one or more characters before the character "r" in the text content, they can use a second touch object—the end of a stylus—to click the position between the characters "c" and "r." At this time, the user's click position can be determined as... The text editing location is where the input cursor is inserted. The above is merely an example; specific methods for determining the text editing location may include, but are not limited to, the examples above.
可选地,当文本编辑框中存在历史文本时,可以对历史文本和文本内容进行拼接,将拼接得到的文本内容显示在目标文本编辑框内。例如,在确定第一书写笔迹对应的文本内容之后,可以通过Current.Value接口获取文本编辑框中的历史文本,然后将文本内容与历史文本进行拼接,得到新的文本内容,再通过SetValue接口将历史文本替换为新的文本内容,从而实现在文本编辑框中显示文本内容的目的。Optionally, when historical text exists in the text edit box, the historical text and the current text can be concatenated, and the concatenated text can be displayed in the target text edit box. For example, after determining the text content corresponding to the first handwriting, the historical text in the text edit box can be obtained through the Current.Value interface, and then the current text can be concatenated with the historical text to obtain new text content. Then, the historical text can be replaced with the new text content through the SetValue interface, thereby achieving the purpose of displaying the text content in the text edit box.
可选地,至少一个文本编辑控件中包括用于输入空格字符的输入控件,以及用于删除字符的删除控件。根据目标文本编辑控件对应的第一编辑方式对显示的文本内容进行编辑的步骤可以包括:从显示的文本内容中确定文本编辑位置;在目标文本编辑控件为输入控件的情况下,在文本编辑位置输入空格字符;或者,在目标文本编辑控件为删除控件的情况下,删除文本内容中位于文本编辑位置之前的字符。如图6和图7所示,工具栏中包括输入控件和删除控件,在显示文本内容之后,用户可以根据需求通过第二触摸物确定文本编辑位置,文本编辑位置例如“c”和字符“r”之间的位置。在确定文本编辑位置的过程中,用户可以通过第二触摸物或第三触摸物点击文本编辑位置,将输入光标定位在文本编辑位置,通过输入光标指示文本编辑位置。此时,用户在需要删除输入光标之前的字符时,可以点击删除控件,交互平板可以每接收到一次点击操作,删除输入光标之前的一个字符,以得到编辑后的文本内容。用户若需要向输入光标所在位置插入空格字符,可以点击输入控件,交互平板可以每接收到一次点击操作,在输入光标所在的位置插入一个空格字符,得到由空格字符和其他字符组成的编辑后的文本内容。应当理解,确定文本编辑位置的方法,以及文本编辑控件的种类和数量,文本编辑控件的具体操作方法可以包括但不限于上述举例。Optionally, at least one text editing control includes an input control for inputting a space character and a delete control for deleting characters. The steps of editing the displayed text content according to the first editing method corresponding to the target text editing control may include: determining the text editing position from the displayed text content; if the target text editing control is an input control, inputting a space character at the text editing position; or, if the target text editing control is a delete control, deleting the character in the text content preceding the text editing position. As shown in Figures 6 and 7, the toolbar includes an input control and a delete control. After displaying the text content, the user can determine the text editing position as needed using a second touch object, such as the position between the character "c" and the character "r". During the process of determining the text editing position, the user can click the text editing position using a second or third touch object to position the input cursor at the text editing position, indicating the text editing position through the input cursor. When the user needs to delete a character before the input cursor, they can click the delete control. The interactive whiteboard can delete one character before the input cursor each time it receives a click operation to obtain the edited text content. If a user needs to insert a space character at the cursor position, they can click the input control. The interactive whiteboard will insert a space character at the cursor position with each click, resulting in edited text composed of the space character and other characters. It should be understood that the method for determining the text editing position, as well as the types and number of text editing controls, and the specific operation methods of the text editing controls, may include, but are not limited to, the examples above.
上述方案中,工具栏中包括删除控件或者用户输入空格字符的输入控件,可以通过删除控件和输入控件辅助手写笔快速删除文本内容中的字符或者在文本内容中添加空格字符,使用户在编辑文本内容时可以不用调用软键盘,从而可以提高文本编辑效率,进而可以提高文本输入效率。In the above solution, the toolbar includes a delete control or an input control for users to input space characters. The delete control and input control can assist the stylus in quickly deleting characters in the text content or adding space characters in the text content, so that users do not need to call the soft keyboard when editing text content, thereby improving text editing efficiency and thus improving text input efficiency.
可选地,至少一个文本编辑控件中包括用于切换输入方式的切换控件,该方法还可以包括:当接收到对切换控件的操作时,隐藏工具栏;在隐藏工具栏之后,显示软键盘,以通过软键盘对目标文本编辑框内的文本内容进行编辑。如图7所示,工具栏中包括切换控件。在显示工具栏之后,用户若需要将文本输入模式从手写输入模式切换为按键输入模式,可以点击切换控件,交互平板可以响应于用户的点击操作,关闭工具栏,并在关闭工具栏之后显示软键盘。如图8所示,图8是本申请实施例提供的另一种文本输入的场景示意图。在关闭工具栏之后,可以在目标文本编辑框的预设位置显示软键盘,此时用户可以通过软键盘对目标文本编辑框内的文本进行编辑。通过软键盘对目标文本编辑框内的文本进行编辑的方法可以根据需求设置,本实施对此不做限制。Optionally, at least one text editing control includes a switching control for switching input modes. The method may further include: hiding the toolbar when an operation on the switching control is received; and displaying a soft keyboard after hiding the toolbar, so that the text content in the target text editing box can be edited via the soft keyboard. As shown in Figure 7, the toolbar includes a switching control. After the toolbar is displayed, if the user needs to switch the text input mode from handwriting input mode to keypad input mode, they can click the switching control. The interactive whiteboard can respond to the user's click operation, close the toolbar, and display the soft keyboard after closing the toolbar. As shown in Figure 8, Figure 8 is a schematic diagram of another text input scenario provided by an embodiment of this application. After the toolbar is closed, the soft keyboard can be displayed at a preset position in the target text editing box, at which time the user can edit the text in the target text editing box via the soft keyboard. The method of editing the text in the target text editing box via the soft keyboard can be set according to requirements, and this embodiment does not limit it.
上述方案中,,工具栏中包括用于切换输入模式的切换控件,切换控制可以帮助用户快速切换输入方式,不仅可以提高用户的文本输入效率,而且可以使交互平板使用用户的不同需求,可以提高交互平板的用户体验。In the above solution, the toolbar includes a switching control for switching input modes. The switching control can help users quickly switch input methods, which can not only improve the user's text input efficiency, but also make the interactive whiteboard meet the different needs of users, thus improving the user experience of the interactive whiteboard.
可选地,在第一界面上叠加显示第一书写应用程序的第一书写层,包括:在第一界面上叠加显示第一尺寸的第一书写层;其中,第一尺寸的第一书写层的面积大于目标文本编辑框的面积、且小于第一界面的面积;获取第一移动操作的持续时长;当持续时长大于预设时长时,显示第二尺寸的第一书写层;其中,第二尺寸大于第一尺寸。Optionally, displaying a first writing layer of the first writing application overlaid on the first interface includes: displaying a first writing layer of a first size overlaid on the first interface; wherein the area of the first writing layer of the first size is larger than the area of the target text editing box and smaller than the area of the first interface; obtaining the duration of the first movement operation; and when the duration is greater than a preset duration, displaying a first writing layer of a second size; wherein the second size is larger than the first size.
在一种实施方式中,在确定第一移动操作由第一触摸物执行,并确定第一移动操作指向目标文本编辑框时,首先可以显示第一尺寸的第一书写层。如图5所示,图5所示的第一书写层为第一尺寸的第一书写层。第一尺寸的第一书写层的面积大于目标文本输入框的所在的区域面积,可以完全覆盖目标文本输入框。其中,交互平板可以在接收到第一移动操作时开始计时,计时时长为第一移动操作的持续时长,当计时时长大于或等于预设时长(预设时长例如为300毫秒)时,显示第二尺寸的第一书写层,第二尺寸例如为第一界面的尺寸,此时第一书写层覆盖整个第一界面。此时,用户可以通过第一触摸物在较大尺寸的第一书写层上书写。In one implementation, upon determining that the first movement operation is performed by the first touch object and that the first movement operation points to the target text editing box, a first writing layer of a first size can be displayed firstly. As shown in Figure 5, the first writing layer shown in Figure 5 is a first writing layer of a first size. The area of the first writing layer of the first size is larger than the area of the target text input box, and can completely cover the target text input box. The interactive tablet can start timing upon receiving the first movement operation, with the timing duration being the duration of the first movement operation. When the timing duration is greater than or equal to a preset duration (e.g., 300 milliseconds), a first writing layer of a second size is displayed, the second size being, for example, the size of the first interface. At this time, the first writing layer covers the entire first interface. The user can then write on the larger first writing layer using the first touch object.
上述方案中,在第一移动操作的持续时长大于预设时长时显示较大尺寸的第一书写层,可以使第一书写层覆盖第一界面中的较大范围,可以避免书写过程中误触碰第一界面中的其他控件导致书写中断,从而可以保证书写过程的流畅性。In the above scheme, when the duration of the first movement operation is longer than the preset duration, a larger first writing layer is displayed. This allows the first writing layer to cover a larger area of the first interface, which can prevent accidental touches on other controls in the first interface during the writing process, thus ensuring the smoothness of the writing process.
可选地,当第一移动操作指向目标文本编辑框,第一书写层中显示的第一书写笔迹为第一颜色的书写笔迹;当第一移动操作未指向至少一个文本编辑框的任意一个,第一书写层中显示的第一书写笔迹为第二颜色的书写笔迹;其中,第一颜色与第二颜色不同。 Optionally, when the first move operation points to the target text editing box, the first writing stroke displayed in the first writing layer is a writing stroke of a first color; when the first move operation does not point to any of the at least one text editing box, the first writing stroke displayed in the first writing layer is a writing stroke of a second color; wherein the first color and the second color are different.
本实施例中,当第一移动操作指向目标文本编辑框时,可以设置目标文本编辑框获得输入焦点,可以确定用户需要通过第一触摸物向目标文本编辑框输入文本内容。此时,在第一书写层显示第一书写笔迹时,可以显示第一颜色的第一书写笔迹,第一颜色例如为蓝色。相反的,当第一移动操作未指向至少一个文本编辑框中的任意一个文本编辑框时,可以确定无文本编辑框获得输入焦点,可以确定用户需要通过第一触摸物进行文本批注,此时在第一书写层上显示第一书写笔迹时,可以显示第二颜色的第一书写笔迹,第二颜色例如为红色。In this embodiment, when the first movement operation points to the target text editing box, the target text editing box can be set to receive input focus, indicating that the user needs to input text content into the target text editing box via the first touch object. At this time, when the first writing stroke is displayed on the first writing layer, the first writing stroke of the first color can be displayed, for example, blue. Conversely, when the first movement operation does not point to any of the at least one text editing box, it can be determined that no text editing box receives input focus, indicating that the user needs to annotate text via the first touch object. At this time, when the first writing stroke is displayed on the first writing layer, the first writing stroke of the second color can be displayed, for example, red.
上述方案中,当第一移动操作指向文本编辑框时显示第一颜色的书写笔迹,当第一移动操作未指向文本编辑框时显示第二颜色的书写笔迹,通过不同的颜色显示不同操作下的书写笔迹,可以便于用户区分不同操作下的书写笔迹。In the above scheme, when the first movement operation points to the text editing box, the writing handwriting of the first color is displayed, and when the first movement operation does not point to the text editing box, the writing handwriting of the second color is displayed. By displaying the writing handwriting under different operations with different colors, it is easy for users to distinguish the writing handwriting under different operations.
可选地,该方法还可以包括:接收发生在第一书写层上的第二移动操作,第二移动操作穿过目标文本编辑框;确认第二移动操作由第一触摸物所执行,则根据第二移动操作,确定第二移动操作对应的第二编辑方式;根据第二编辑方式,对文本内容进行编辑;在目标文本编辑框中显示编辑后的文本内容。其中,第二移动操作可以是文本选中、文本删除中任一者。Optionally, the method may further include: receiving a second movement operation occurring on the first writing layer, the second movement operation passing through the target text editing box; confirming that the second movement operation was performed by a first touch object, then determining a second editing method corresponding to the second movement operation based on the second movement operation; editing the text content according to the second editing method; and displaying the edited text content in the target text editing box. The second movement operation can be either text selection or text deletion.
可选地,根据第二移动操作,确定第二移动操作对应的第二编辑方式的步骤可以包括:基于第二移动操作在第一书写层上添加并显示第二书写笔迹;当确认第二移动操作穿过目标文本编辑框中显示的文本内容,且第二书写笔迹为第一预设书写笔迹,确定第二编辑方式为删除文本。例如,第二移动操作可以是在文本编辑框中显示的文本内容上划波浪线,即第一预设书写笔迹为波浪线。当确认第二移动操作穿过目标文本编辑框中显示的文本内容,且第二书写笔迹为第二预设书写笔迹,确定第二编辑方式为选中文本;例如,第二移动操作可以是在文本编辑框中显示的文本内容上划横线,即第二预设书写笔迹为横线。Optionally, the step of determining the second editing method corresponding to the second movement operation may include: adding and displaying a second handwriting on the first writing layer based on the second movement operation; when it is confirmed that the second movement operation passes through the text content displayed in the target text editing box, and the second handwriting is a first preset handwriting, determining the second editing method as deleting text. For example, the second movement operation may be drawing a wavy line on the text content displayed in the text editing box, i.e., the first preset handwriting is a wavy line. When it is confirmed that the second movement operation passes through the text content displayed in the target text editing box, and the second handwriting is a second preset handwriting, determining the second editing method as selecting text; for example, the second movement operation may be drawing a horizontal line on the text content displayed in the text editing box, i.e., the second preset handwriting is a horizontal line.
当确认第二书写笔迹为第三预设书写笔迹,确定第二移动操作对应的编辑方式为拆分文本内容或者组合文本内容;例如,第二移动操作可以是在文本编辑框中显示的文本内容之间划竖线,在拆分的文本内容之间划竖线可以组合文本内容,在组合的文本内容之间划竖线可以拆分文本内容,即第三预设书写笔迹为竖线。上述方案中,通过第二移动操作的书写笔迹,确定第二移动操作对应的编辑方式,能够快速确定第二移动操作对应的编辑方式,从而提高书写效率。Once the second handwriting is confirmed to be the third preset handwriting, the editing method corresponding to the second movement operation is determined to be either splitting or combining text content. For example, the second movement operation could be drawing a vertical line between the text content displayed in the text editing box. Drawing a vertical line between split text content can combine text content, and drawing a vertical line between combined text content can split text content; that is, the third preset handwriting is a vertical line. In the above solution, determining the editing method corresponding to the second movement operation through the handwriting of the second movement operation allows for quick identification of the editing method, thereby improving writing efficiency.
示例性的,当第二编辑方式为删除文本,根据第二编辑方式,对文本内容进行编辑,包括:确定第二书写笔迹在目标文本编辑框的第一外接矩形,以及文本内容的第二外接矩形;确定第一外接矩形与第二外接矩形的交集区域;确定交集区域覆盖的第一文本内容;对文本内容中的第一文本内容进行删除。具体地,通过编辑框的Text Pattern属性在文本编辑框内,获取第二书写笔迹的第一外接矩形与文本内容的第二外接矩形,并确定第一外接矩形与第二外接矩形的交集区域;再通过RangeFromPoint接口获取交集区域覆盖的第一文本内容。For example, when the second editing method is to delete text, the text content is edited according to the second editing method, including: determining the first bounding rectangle of the second handwriting in the target text editing box, and the second bounding rectangle of the text content; determining the intersection area of the first and second bounding rectangles; determining the first text content covered by the intersection area; and deleting the first text content. Specifically, the first bounding rectangle of the second handwriting and the second bounding rectangle of the text content are obtained within the text editing box through the Text Pattern property of the editing box, and the intersection area of the first and second bounding rectangles is determined; then the first text content covered by the intersection area is obtained through the RangeFromPoint interface.
示例性的,在确定交集区域覆盖的第一文本内容之后,对文本内容中的第一文本内容进行删除;或者,基于文本编辑框内的历史文本与第一文本内容,确定历史文本中第一文本内容之前的第一子文本与历史文本中第一文本内容之后第二子文本;对第一子文本与第二子文本进行拼接,得到更新文本;将更新文本显示于文本编辑框。具体地,可以通过Select接口选中第一文本内容,并模拟发送删除消息,从而删除历史文本中的第一文本内容。或者,对第一子文本与第二子文本进行拼接,得到更新文本,通过SetValue接口将更新文本替换历史文本。For example, after determining the first text content covered by the intersection area, the first text content is deleted; or, based on the historical text and the first text content within the text edit box, the first sub-text preceding the first text content in the historical text and the second sub-text following the first text content in the historical text are determined; the first sub-text and the second sub-text are concatenated to obtain the updated text; and the updated text is displayed in the text edit box. Specifically, the first text content can be selected using the Select interface, and a deletion message can be simulated to delete the first text content from the historical text. Alternatively, the first sub-text and the second sub-text can be concatenated to obtain the updated text, and the updated text can replace the historical text using the SetValue interface.
上述方案,当第二移动操作对应的编辑方式为删除文本,确定第一外接矩形与第二外接矩形的交集区域,并确定交集区域覆盖的第一文本内容,再对文本内容中的第一文本内容进行删除;由于第一文本内容是交集区域覆盖的文本内容,从而能够提高第一文本内容的精确性,进而提升用户的使用体验。In the above solution, when the editing method corresponding to the second movement operation is to delete text, the intersection area of the first bounding rectangle and the second bounding rectangle is determined, and the first text content covered by the intersection area is determined. Then, the first text content in the text content is deleted. Since the first text content is the text content covered by the intersection area, the accuracy of the first text content can be improved, thereby enhancing the user experience.
图9是本申请实施例提供的一种文本删除的场景示意图。如图9所示,当第二编辑方式为删除文本,在文本编辑框内获取第二书写笔迹的第一外接矩形与文本内容的第二外接矩形,确定第一外接矩形与第二外接矩形的交集区域覆盖的第一文本内容为“的sd”。进一步地,可以通过Select接口选中“的sd”,并模拟发送删除消息,对“的sd”进行删除;或者,确定第一文本内容为“的sd”,基于第一文本内容“的sd”与历史文本“A的sdokq吃”,确定第一子文本为“A”、第二子文本为“okq吃”,对第一子文本与第二子文本进行拼接,得到更新文本为“Aokq吃”,通过SetValue接口将“Aokq吃”更新至文本编辑框。Figure 9 is a schematic diagram of a text deletion scenario provided by an embodiment of this application. As shown in Figure 9, when the second editing method is to delete text, the first bounding rectangle of the second handwriting and the second bounding rectangle of the text content are obtained in the text editing box. The first text content covered by the intersection area of the first bounding rectangle and the second bounding rectangle is determined to be "的sd". Further, "的sd" can be selected through the Select interface, and a deletion message can be simulated to delete "的sd"; or, the first text content is determined to be "的sd", and based on the first text content "的sd" and the historical text "A的sdokq吃", the first sub-text is determined to be "A" and the second sub-text is "okq吃". The first sub-text and the second sub-text are concatenated to obtain the updated text "Aokq吃", and "Aokq吃" is updated to the text editing box through the SetValue interface.
示例性的,当第二编辑方式为选中文本,根据第二编辑方式,对文本内容进行编辑,包括:确定第二书写笔迹与文本内容的第二重叠区域;基于第二重叠区域,确定第二重叠区域中的第二文本内容;对文本内容中的第二文本内容进行选中。如图9所示,文本内容为“A的sdokq吃”,确定第二书写笔迹与文本内容的第二重叠区域中的第二文本内容为“的sd”,则对“的sd”进行选中。可以理解的是, 选中的文本内容可以通过高亮显示,或者通过不同于其他文本内容的显示方式进行显示,以提高用户查看的便利性。For example, when the second editing mode is selected text, the text content is edited according to the second editing mode, including: determining the second overlapping area between the second handwriting and the text content; determining the second text content within the second overlapping area based on the second overlapping area; and selecting the second text content within the text content. As shown in Figure 9, the text content is "A的sdokq吃", and the second text content within the second overlapping area between the second handwriting and the text content is determined to be "的sd", then "的sd" is selected. It is understandable that... Selected text can be highlighted or displayed in a different way than other text to improve user convenience.
上述方案,当第二编辑方式为选中文本,确定第二书写笔迹与文本内容的第二重叠区域中的第二文本内容,并对文本内容中的第二文本内容进行选中;由于第二文本内容是通过第二书写笔迹与文本内容的第二重叠区域进行确定,能够提高第二文本内容的准确性,从而提升用户使用便利性。In the above scheme, when the second editing method is to select text, the second text content in the second overlapping area between the second handwriting and the text content is determined, and the second text content in the text content is selected. Since the second text content is determined by the second overlapping area between the second handwriting and the text content, the accuracy of the second text content can be improved, thereby enhancing the user's convenience.
示例性的,当第二编辑方式为拆分文本内容或者组合文本内容,根据第二编辑方式,对文本内容进行编辑,包括:确定第二书写笔迹在文本编辑框中的目标位置;基于目标位置,确定文本编辑框中与目标位置相邻的第三文本内容;对文本内容中的第三文本内容进行拆分或者组合。例如,文本内容为“A的sdok q吃”,确定第二书写笔迹在文本编辑框中的目标位置为字符“s”与字符“d”之间的位置,确定文本编辑框中与目标位置相邻的第三文本内容为“A的s”和“dok q吃”,对文本内容中的第三文本内容进行拆分,得到拆分文本内容为“A的s dok q吃”。或者,文本内容为“A的sdok q吃”,确定第二书写笔迹在文本编辑框中的目标位置为字符“k”与字符“q”之间的位置,确定文本编辑框中与目标位置相邻的第三文本内容为“A的sdok”和“q吃”,对文本内容中的第三文本内容进行组合,得到组合文本内容为“A的sdokq吃”。For example, when the second editing method is to split or combine text content, the text content is edited according to the second editing method, including: determining the target position of the second handwriting in the text editing box; determining the third text content adjacent to the target position in the text editing box based on the target position; and splitting or combining the third text content in the text content. For example, if the text content is "A的sdok q吃", the target position of the second handwriting in the text editing box is determined to be the position between the characters "s" and "d", and the third text content adjacent to the target position in the text editing box is determined to be "A的s s" and "dok q吃". The third text content in the text content is then split to obtain the split text content "A的s dok q吃". Alternatively, if the text content is "A的sdok q吃", the target position of the second handwriting in the text editing box is determined to be the position between the characters "k" and "q". The third text content adjacent to the target position in the text editing box is determined to be "A的sdok" and "q吃". The third text content in the text content is combined to obtain the combined text content "A的sdokq吃".
上述方案,当第二编辑方式为拆分文本内容或者组合文本内容,确定文本编辑框中与目标位置相邻的第三文本内容,并对文本内容中的第三文本内容进行拆分或者组合;由于在对文本内容中的第三文本内容进行拆分或者组合过程中,仅需要用户执行简单的操作,从而提高用户进行文本书写的便利性。In the above scheme, when the second editing method is to split or combine text content, the third text content adjacent to the target position in the text editing box is determined, and the third text content in the text content is split or combined. Since the user only needs to perform simple operations in the process of splitting or combining the third text content in the text content, the convenience of the user in writing text is improved.
示例性的,在根据第二编辑方式,对文本内容进行编辑之后,在文本编辑框中显示编辑后的文本内容,以便用户查看。可选地,当第二编辑方式为删除文本,根据第二编辑方式,对文本内容进行编辑,包括:识别第二书写笔迹覆盖的文本内容中的目标字符;删除目标字符。For example, after editing the text content according to the second editing method, the edited text content is displayed in the text editing box for the user to view. Optionally, when the second editing method is to delete text, editing the text content according to the second editing method includes: identifying target characters in the text content covered by the second handwriting; and deleting the target characters.
在一种实现方式中,用户在执行文本删除的过程中,可以在目标文本编辑框的上方执行文本删除操作,这样第二书写笔迹可以覆盖文本内容中的部分或全部字符,第二书写笔迹覆盖的字符为目标字符。如图10所示,图10是本申请实施例提供的另一种文本删除的场景示意图。可以通过交互平板中的无障碍服务监测触摸事件,在监测到第二移动操作对应的触摸事件之后,可以保存触摸点,触摸点为第二书写笔迹上的笔迹点,然后基于第二书写笔迹的笔迹点构建第二书写笔迹。第二书写笔迹的笔迹点包括图10所示的笔迹点a、笔迹点b、笔迹点c、笔迹点d和笔迹点e。第二书写笔迹覆盖的目标字符为“想”、“听”和“歌”,在显示第二书写笔迹之后,可以直接删除第二书写笔迹覆盖的目标字符“想”、“听”和“歌”,以实现对文本内容的删除操作。In one implementation, during text deletion, the user can perform the deletion operation above the target text editing box. This allows the second handwriting to cover some or all characters in the text content, with the covered characters being the target characters. Figure 10 illustrates another text deletion scenario provided by this application embodiment. Touch events can be monitored through the accessibility service in the interactive whiteboard. After detecting a touch event corresponding to the second movement operation, the touch point can be saved as a stroke point on the second handwriting. Then, the second handwriting is constructed based on these stroke points. The stroke points of the second handwriting include stroke points a, b, c, d, and e as shown in Figure 10. The target characters covered by the second handwriting are "想" (think), "听" (listen), and "歌" (song). After displaying the second handwriting, the target characters "想", "听", and "歌" can be directly deleted to achieve the text content deletion operation.
可选地,识别第二书写笔迹覆盖的文本内容中的目标字符,包括:确定文本内容中每个字符所在的第三外接矩形;从所有第三外接矩形中,确定第二书写笔迹覆盖的目标外接矩形;确定目标外接矩内的字符为目标字符。Optionally, identifying the target character in the text content covered by the second handwriting includes: determining the third bounding rectangle where each character in the text content is located; determining the target bounding rectangle covered by the second handwriting from all the third bounding rectangles; and determining the character within the target bounding rectangle as the target character.
如图10所示,在接收到第二移动操作,并确定第二编辑方式为删除文本之后,可以通过无障碍服务获取第一移动操作对应的无障碍服务对象,从无障碍服务对象中获取文本内容中包括的每个字符的矩形边框,即第三外接矩形,分别为图10所示的rect1、rect2、rect3和rect4。之后,可以基于第二书写笔迹中的笔迹点a、b、c、d和e构建笔迹线,笔迹线可以为贝塞尔曲线,贝塞尔曲线覆盖的第三外接矩形(rect2、rect3和rect4)即第二书写笔迹覆盖的目标外接矩形。在确定目标外接矩形之后,确定目标外接矩形中的字符为目标字符,可以删除目标外接矩形中的字符“想”和“歌”。可选地,在确定目标外接矩形的过程中,可以确定贝塞尔曲线与第三外接矩形的交点,将交点与贝塞尔曲线上的笔迹点所在的第三外接矩形确定为目标外接矩形。如图10所示,贝塞尔曲线与第三外接矩形的交点包括c1、d1和e1,可以将点b、c1、d1和e1所在的第三外接矩形rect2、rect3和rect4确定为目标外接矩形。As shown in Figure 10, after receiving the second movement operation and determining that the second editing method is to delete text, the accessibility service object corresponding to the first movement operation can be obtained through the accessibility service. The rectangular border of each character in the text content, i.e., the third circumscribed rectangle, is obtained from the accessibility service object, specifically rect1, rect2, rect3, and rect4 shown in Figure 10. Then, a stroke line can be constructed based on the stroke points a, b, c, d, and e in the second handwriting. The stroke line can be a Bézier curve, and the third circumscribed rectangle (rect2, rect3, and rect4) covered by the Bézier curve is the target circumscribed rectangle covered by the second handwriting. After determining the target circumscribed rectangle, the characters within the target circumscribed rectangle are determined as the target characters, and the characters "想" and "歌" can be deleted from the target circumscribed rectangle. Optionally, during the determination of the target circumscribed rectangle, the intersection point of the Bézier curve and the third circumscribed rectangle can be determined, and the third circumscribed rectangle containing the intersection point and the stroke points on the Bézier curve is determined as the target circumscribed rectangle. As shown in Figure 10, the intersection points of the Bézier curve and the third bounding rectangle include c1, d1 and e1. The third bounding rectangles rect2, rect3 and rect4, where points b, c1, d1 and e1 are located, can be determined as the target bounding rectangle.
上述方案,当第二编辑方式为删除文本,确定文本内容中每个字符所在的第三外接矩形,从所有第三外接矩形中确定第二书写笔迹覆盖的目标外接矩形,删除目标外接矩形中的字符。这样,用户可以通过简单的书写形成第二书写笔迹,通过第二书写笔迹快速删除文本内容的特定字符,可以提高文本编辑的效率。The above solution, when the second editing mode is text deletion, determines the third bounding rectangle containing each character in the text content, identifies the target bounding rectangle covered by the second handwriting from all third bounding rectangles, and deletes the characters within the target bounding rectangle. In this way, users can easily create a second handwriting style and quickly delete specific characters from the text content using this style, thus improving text editing efficiency.
可选地,第一预设书写笔迹为连续笔迹、且第一预设书写笔迹在文本内容上的落笔点数大于或等于预设数量。在一种实现方式中,在确定第二移动操作终止之后,可以基于第二移动操作在第一书写层上添加并显示第二书写笔迹,并统计第二书写笔迹的笔迹数量。然后,判断第二书写笔迹的笔迹数量是否为1,若第二书写笔迹的笔迹数量等于1,则可以确定第二书写笔迹为连续笔迹,若第二书写笔迹的笔迹数量大于1,则可以确定第二书写笔迹不是连续笔迹。Optionally, the first preset handwriting is continuous handwriting, and the number of strokes of the first preset handwriting on the text content is greater than or equal to a preset number. In one implementation, after determining that the second movement operation has terminated, a second handwriting can be added and displayed on the first writing layer based on the second movement operation, and the number of strokes in the second handwriting can be counted. Then, it is determined whether the number of strokes in the second handwriting is 1. If the number of strokes in the second handwriting is equal to 1, it can be determined that the second handwriting is continuous handwriting; if the number of strokes in the second handwriting is greater than 1, it can be determined that the second handwriting is not continuous handwriting.
同时,可以统计第二书写笔迹的笔迹点落在文本内容上的数量得到落笔点数。之后,可以在第二书写笔迹为连续笔迹、并且落笔点数大于或等于预设数量的情况下,确定第二书写笔迹为第一预设书写笔 迹,进而可以确定第二移动操作对应的编辑方式为删除文本。其中,预设数量例如为5,预设数量可以根据实际情况具体设置,本实施例对此不做限制。Simultaneously, the number of strokes in the second handwriting that fall on the text content can be counted to obtain the stroke count. Then, if the second handwriting is a continuous handwriting and the stroke count is greater than or equal to a preset number, the second handwriting can be identified as the first preset handwriting. The traces can then be used to determine that the editing method corresponding to the second movement operation is text deletion. The preset quantity is, for example, 5, but this preset quantity can be set according to actual circumstances; this embodiment does not impose any limitations on it.
示例性的,当第二编辑方式为选中文本,确定第二书写笔迹与文本内容的第二重叠区域;基于第二重叠区域,确定第二重叠区域中的第二文本内容;对文本内容中的第二文本内容进行选中。例如,文本内容为“A的sdokq吃”,确定第二书写笔迹与文本内容的第二重叠区域中的第二文本内容为“的sd”,则对“的sd”进行选中。可以理解的是,选中的文本内容可以通过高亮显示,或者通过不同于其他文本内容的显示方式进行显示,以提高用户查看的便利性。For example, when the second editing mode is text selection, a second overlapping area between the second handwriting and the text content is determined; based on the second overlapping area, the second text content within the second overlapping area is determined; and the second text content within the text content is selected. For instance, if the text content is "A的sdokq吃", and the second text content within the second overlapping area between the second handwriting and the text content is determined to be "的sd", then "的sd" is selected. It is understood that the selected text content can be highlighted or displayed in a way different from other text content to improve user viewing convenience.
上述方案,当第二编辑方式为选中文本,确定第二书写笔迹与文本内容的第二重叠区域中的第二文本内容,并对文本内容中的第二文本内容进行选中;由于第二文本内容是通过第二书写笔迹与文本内容的第二重叠区域进行确定,能够提高第二文本内容的准确性,从而提升用户使用便利性。In the above scheme, when the second editing method is to select text, the second text content in the second overlapping area between the second handwriting and the text content is determined, and the second text content in the text content is selected. Since the second text content is determined by the second overlapping area between the second handwriting and the text content, the accuracy of the second text content can be improved, thereby enhancing the user's convenience.
示例性的,当第二编辑方式为拆分文本内容或者组合文本内容,确定第二书写笔迹在目标文本编辑框中的目标位置;基于目标位置,确定目标文本编辑框中与目标位置相邻的第三文本内容;对文本内容中的第三文本内容进行拆分或者组合。例如,文本内容为“A的sdok q吃”,确定第二书写笔迹在目标文本编辑框中的目标位置为字符“s”与字符“d”之间的位置,确定目标文本编辑框中与目标位置相邻的第三文本内容为“A的s”和“dok q吃”,对文本内容中的第三文本内容进行拆分,得到拆分文本内容为“A的s dok q吃”。或者,文本内容为“A的sdok q吃”,确定第二书写笔迹在目标文本编辑框中的目标位置为字符“k”与字符“q”之间的位置,确定目标文本编辑框中与目标位置相邻的第三文本内容为“A的sdok”和“q吃”,对文本内容中的第三文本内容进行组合,得到组合文本内容为“A的sdokq吃”。For example, when the second editing method is to split or combine text content, the target position of the second handwriting in the target text editing box is determined; based on the target position, the third text content adjacent to the target position in the target text editing box is determined; the third text content in the text content is then split or combined. For example, if the text content is "A的sdok q吃", the target position of the second handwriting in the target text editing box is determined to be between the characters "s" and "d", and the third text content adjacent to the target position in the target text editing box is determined to be "A的s" and "dok q吃". The third text content in the text content is then split to obtain the split text content "A的s dok q吃". Alternatively, if the text content is "A的sdok q吃", the target position of the second handwriting in the target text editing box is determined to be between the characters "k" and "q", and the third text content adjacent to the target position in the target text editing box is determined to be "A的sdok" and "q吃". The third text content in the text content is then combined to obtain the combined text content "A的sdokq吃".
上述方案,当第二编辑方式为拆分文本内容或者组合文本内容,确定目标文本编辑框中与目标位置相邻的第三文本内容,并对文本内容中的第三文本内容进行拆分或者组合;由于在对文本内容中的第三文本内容进行拆分或者组合过程中,仅需要用户执行简单的操作,从而提高用户进行文本书写的便利性。In the above scheme, when the second editing method is to split or combine text content, the third text content adjacent to the target position in the target text editing box is determined, and the third text content in the text content is split or combined. Since the user only needs to perform simple operations in the process of splitting or combining the third text content in the text content, the convenience of the user in writing text is improved.
可选地,该方法还可以包括:当第一移动操作未指向文本编辑框,接收第三移动操作,第三移动操作与第一书写笔迹有重叠,且第三移动操作由预设的第二触摸物所执行;根据第三移动操作,对第一书写笔迹进行擦除。示例性的,当第一移动操作未指向任意一个文本编辑框时,可以在第一书写层上显示第一书写笔迹,以使用户查看书写笔迹更加便利。之后,可以接收第三移动操作,第三移动操作与第一书写笔迹有重叠,且第三移动操作由第二触摸物所执行,可以根据第三移动操作对第一书写笔迹进行擦除。具体地,确认第三移动操作与第一书写笔迹的第一重叠区域,对第一书写笔迹中第一重叠区域中的书写笔迹进行擦除。需要说明的是,第三移动操作为对第一书写笔迹的擦除操作。此外,第二触摸物可以是书写笔的笔尾。Optionally, the method may further include: when the first movement operation does not point to a text editing box, receiving a third movement operation, the third movement operation overlapping with the first handwriting, and the third movement operation being performed by a preset second touch object; erasing the first handwriting according to the third movement operation. For example, when the first movement operation does not point to any text editing box, the first handwriting can be displayed on the first writing layer to make it more convenient for the user to view the handwriting. Then, a third movement operation can be received, the third movement operation overlapping with the first handwriting, and the third movement operation being performed by a second touch object, allowing the first handwriting to be erased according to the third movement operation. Specifically, a first overlapping area between the third movement operation and the first handwriting is identified, and the handwriting in the first overlapping area of the first handwriting is erased. It should be noted that the third movement operation is an erasing operation of the first handwriting. Furthermore, the second touch object can be the end of a writing pen.
可选地,对第一书写笔迹中的书写笔迹可以全部擦除,也可以部分擦除,具体可以根据实际情况进行确定,在此不做具体限定。上述方案,若第一移动操作未指向文本编辑框,接收第三移动操作,确认第三移动操作与第一书写笔迹的第一重叠区域,对第一书写笔迹中第一重叠区域中的书写笔迹进行擦除,由于擦除书写笔迹是根据第三移动操作与第一书写笔迹的第一重叠区域确定,能够确保待擦除的书写笔迹的准确性,从而提高用户使用的便利性。Optionally, the writing in the first handwriting can be completely erased or partially erased, depending on the actual situation, and is not specifically limited here. In the above scheme, if the first movement operation does not point to a text editing box, a third movement operation is received, the first overlapping area between the third movement operation and the first handwriting is confirmed, and the writing in the first overlapping area of the first handwriting is erased. Since the erasure of the writing is determined based on the first overlapping area between the third movement operation and the first handwriting, the accuracy of the writing to be erased can be ensured, thereby improving user convenience.
可选地,该方法还可以包括,接收发生在第一界面上的第四移动操作,确认第四移动操作由预设的第三触摸物所执行,根据第四移动操作,对第一界面进行更新,以及显示更新后的第一界面。其中,第三触摸物为用户的手指,确认第四移动操作是否由预设的第三触摸物所执行的方式,可以参照前述公开实施例中的方式,在此不再赘述。本实施例中,用户在确定需要对第一界面进行更新时,可以通过第三触摸物执行第四移动操作,第四移动例如通过第三触摸物在第一界面上滑动。在接收到对第四移动操作时,可以对第一界面进行滑动更新,也可以对第一界面进行翻页,以更新第一界面,然后显示更新后的第一界面。Optionally, the method may further include receiving a fourth movement operation occurring on the first interface, confirming that the fourth movement operation was performed by a preset third touch object, updating the first interface according to the fourth movement operation, and displaying the updated first interface. Here, the third touch object is the user's finger. The method for confirming whether the fourth movement operation was performed by the preset third touch object can refer to the method in the aforementioned disclosed embodiments, and will not be repeated here. In this embodiment, when the user determines that the first interface needs to be updated, they can perform a fourth movement operation through a third touch object, such as sliding the third touch object on the first interface. Upon receiving the fourth movement operation, the first interface can be updated by sliding or by flipping through pages to update the first interface, and then the updated first interface is displayed.
上述方案中,通过提供不同的更新方式,使用户可以选择不同的更新方式,提高用户使用体验。The above solution provides different update methods, allowing users to choose the appropriate method and improving the user experience.
上述技术方案,接收发生在第一界面上的第一移动操作,确认第一移动操作由预设的第一触摸物所执行,在第一界面上叠加显示第一书写应用程序的第一书写层,并基于第一移动操作在第一书写层上添加并显示第一书写笔迹。当第一移动操作指向至少一个文本编辑框中的目标文本编辑框,则在确认第一移动操作终止后,基于第一书写笔迹得到标准字体的文本内容,在目标文本编辑框中显示文本内容,以及在目标文本编辑框的预设位置显示工具栏,并关闭第一书写层。在接收到对至少一个文本编辑控件中的目标文本编辑控件的操作时,根据目标文本编辑控件对应的第一编辑方式对显示的文本内容进行编辑,在目标文本编辑框中显示编辑后的文本内容。由于该方法在向文本编辑框输入文本内容的过程中,在文本编辑框的预设位置显示工具栏,工具栏中包括一个或多个文本编辑控件。针对已输入文本编辑框 的文本内容,用户可以通过文本编辑框内的文本编辑控件对文本内容进行编辑,使得文本内容的编辑可以不用调用软键盘,不需要频繁切换输入模式,从而可以简化文本内容的编辑过程,进而可以提高文本内容的输入效率。同时,通过预设的触摸物在第一界面的任意位置进行书写,本方案通过同一个书写应用程序,能够实现通过预设的触摸物在第一界面的任意位置进行书写,从而直接输入文本内容,或者生成书写笔迹,无需依赖于反复打开关闭软键盘或者书写软件进行文字输入或者笔迹书写,能够提高交互平板书写的便利性,从而提高书写效率,提升了用户体验。The above technical solution receives a first movement operation occurring on a first interface, confirms that the first movement operation is performed by a preset first touch object, overlays and displays a first writing layer of a first writing application on the first interface, and adds and displays first handwriting based on the first movement operation on the first writing layer. When the first movement operation points to a target text editing box in at least one text editing box, after confirming the termination of the first movement operation, text content in a standard font is obtained based on the first handwriting, the text content is displayed in the target text editing box, a toolbar is displayed at a preset position in the target text editing box, and the first writing layer is closed. When receiving an operation on a target text editing control in at least one text editing control, the displayed text content is edited according to the first editing method corresponding to the target text editing control, and the edited text content is displayed in the target text editing box. Because this method displays a toolbar at a preset position in the text editing box during the process of inputting text content into the text editing box, the toolbar includes one or more text editing controls. For text editing boxes that have already been input... The text content can be edited by users through the text editing controls within the text editing box, eliminating the need to access the soft keyboard and frequently switch input modes. This simplifies the text editing process and improves input efficiency. Furthermore, the system allows users to write on any location on the first interface using a preset touch object. This solution, through the same writing application, enables direct text input or handwriting generation without relying on repeatedly opening and closing the soft keyboard or writing software. This enhances the convenience and efficiency of writing on the interactive whiteboard, thus improving the user experience.
图11是本申请实施例提供的另一种书写方法的示意性流程图。如图11所示,该方法包括:Figure 11 is a schematic flowchart of another writing method provided in an embodiment of this application. As shown in Figure 11, the method includes:
S1101,接收发生在第一界面上的第一移动操作,确定第一移动操作在第一界面上的落点位置。S1101, Receive a first movement operation that occurs on the first interface, and determine the landing point of the first movement operation on the first interface.
示例性的,当第一移动操作为书写操作的情况下,接收发生在第一界面上的书写操作,并确定第一移动操作在第一界面上的落点位置。第一落点位置可以通过直接检测到触控信号或者通过辅助的传感器检测触摸物的特定信息实现对触摸物的类型以及落点位置的判断。示例性的,落点位置可以基于坐标数据进行表示;例如,以第一界面的左上角为原点,水平方向为x轴,垂直方向为y轴,从而基于坐标数据确定移动操作的落点位置,如落点位置为(100,200)。坐标系的建立位置可以根据实际情况进行确定,在此不做具体限定。For example, when the first movement operation is a writing operation, the writing operation occurring on the first interface is received, and the landing position of the first movement operation on the first interface is determined. The first landing position can be determined by directly detecting the touch signal or by detecting specific information of the touched object through an auxiliary sensor to determine the type of the touched object and the landing position. For example, the landing position can be represented based on coordinate data; for example, with the upper left corner of the first interface as the origin, the horizontal direction as the x-axis, and the vertical direction as the y-axis, the landing position of the movement operation can be determined based on the coordinate data, such as the landing position being (100, 200). The location of the coordinate system can be determined according to the actual situation and is not specifically limited here.
S1102,在第一界面上叠加显示第一书写层并接收第一书写笔迹。S1102, display the first writing layer on the first interface and receive the first writing stroke.
S1103,确定第一移动操作终止后将第一书写笔迹进行收集。S1103, after determining that the first movement operation has ended, the first handwriting is collected.
示例性的,若确认第一移动操作由预设的第一触摸物所执行,则在第一界面上叠加显示第一书写应用程序的第一书写层,并通过第一书写层收集第一书写笔迹。可以理解的是,用户在书写过程中,并非不间断地进行书写,在书写过程中,可能存在短暂地停顿时长;例如,若输入设备为书写笔,用户在使用书写笔书写过程中,可能存在书写笔的抬起时长,因此可以通过书写笔的抬起时长,确定用户是否写入结束。示例性的,实时监测书写过程中书写笔的抬起时长,若书写笔的抬起时长大于预设时长,确定用户书写完成,则确定第一移动操作终止;若书写笔的抬起时长小于或者等于预设时长,则确定第一移动操作未终止。例如,预设时长为300ms,实时检测书写笔的抬起时长,若书写笔的抬起时长为500ms,则确定第一移动操作终止,即将第一书写笔迹进行收集。可选地,预设时长可以设置为300ms、350ms、380ms等等,在此不做具体限定。For example, if it is confirmed that the first movement operation is performed by a preset first touch object, a first writing layer of the first writing application is overlaid on the first interface, and the first handwriting is collected through the first writing layer. It is understood that the user does not write continuously during the writing process; there may be brief pauses. For example, if the input device is a writing pen, the user may lift the pen during writing. Therefore, the lifting time of the writing pen can be used to determine whether the user has finished writing. For example, the lifting time of the writing pen is monitored in real time. If the lifting time is longer than a preset time, it is determined that the user has finished writing, and the first movement operation is terminated. If the lifting time is less than or equal to the preset time, it is determined that the first movement operation has not terminated. For example, if the preset time is 300ms, the lifting time of the writing pen is monitored in real time. If the lifting time is 500ms, the first movement operation is determined to have terminated, and the first handwriting is collected. Optionally, the preset duration can be set to 300ms, 350ms, 380ms, etc., without any specific limitation.
S1104,确定第一移动操作是否指向文本编辑框;若否,则执行S1105;若是,则执行S1106。S1104, determine whether the first move operation is directed to the text editing box; if not, execute S1105; if yes, execute S1106.
示例性的,可以确定落点位置所在的目标窗口,基于落点位置与目标窗口中至少一个文本编辑框的位置,确定第一移动操作是否指向文本编辑框。例如,确定落点位置所在的目标窗口,并获取目标窗口中至少一个文本编辑框的位置,检测落点位置是否位于目标窗口中某个文本编辑框的位置,若落点位置位于目标窗口中某个文本编辑框的位置,确定第一移动操作指向文本编辑框,第一移动操作指向的文本编辑框即目标文本编辑框。可选地,检测第一移动操作是否指向文本编辑框的方式,可以参照前述公开实施例中的方式,在此不再赘述。For example, the target window where the landing point is located can be determined. Based on the landing point location and the position of at least one text editing box in the target window, it can be determined whether the first movement operation is directed to a text editing box. For instance, the target window where the landing point is located can be determined, and the position of at least one text editing box in the target window can be obtained. It can be detected whether the landing point location is located at the position of a text editing box in the target window. If the landing point location is located at the position of a text editing box in the target window, it can be determined that the first movement operation is directed to a text editing box, and the text editing box directed to by the first movement operation is the target text editing box. Optionally, the method for detecting whether the first movement operation is directed to a text editing box can refer to the method in the aforementioned disclosed embodiments, and will not be repeated here.
S1105,将第一书写笔迹显示于第一书写层。S1105, Display the first handwriting on the first writing layer.
S1106,对第一书写笔迹进行识别,得到候选文本。S1106, Identify the first handwriting to obtain candidate text.
S1107,从至少一个候选文本中确定文本内容。S1107, determine the text content from at least one candidate text.
示例性的,当第一移动操作未指向文本编辑框时,将第一书写笔迹显示于第一书写层。当第一移动操作指向文本编辑框时,对第一书写笔迹进行OCR文本识别,得到至少一个候选文本。示例性地,可以通过候选弹窗从至少一个候选文本中确定文本内容,也可以直接根据每个候选文本的准确度,从至少一个候选文本中确定文本内容。For example, when the first movement operation is not directed at a text editing box, the first handwriting is displayed on the first writing layer. When the first movement operation is directed at a text editing box, OCR text recognition is performed on the first handwriting to obtain at least one candidate text. For example, the text content can be determined from at least one candidate text through a candidate pop-up window, or the text content can be determined directly from at least one candidate text based on the accuracy of each candidate text.
S1108,在目标文本编辑框中显示文本内容,在目标文本编辑框的预设位置显示工具栏,并关闭第一书写层。S1108, display the text content in the target text editing box, display the toolbar at the preset position of the target text editing box, and close the first writing layer.
S1109,在接收到对至少一个文本编辑控件中的目标文本编辑控件的操作时,根据目标文本编辑控件对应的第一编辑方式对显示的文本内容进行编辑。S1109, when receiving an operation on a target text editing control in at least one text editing control, the displayed text content is edited according to the first editing method corresponding to the target text editing control.
S1110,在目标文本编辑框中显示编辑后的文本内容。其中,对步骤1106至步骤1110的理解可参考前述举例,本实施例在此不做赘述。S1110, the edited text content is displayed in the target text editing box. For an understanding of steps 1106 to 1110, please refer to the aforementioned examples; this embodiment will not repeat them here.
图12是本申请实施例提供的一种Windows系统的架构示意图。Figure 12 is a schematic diagram of the architecture of a Windows system provided in an embodiment of this application.
示例性的,如图12所示,Windows系统包括UI架构层、系统架构层等等,其中,UI架构层包括WPF架构层,WPF架构层中包括UIAComWrapper模块;系统架构层包括User32.dll模块。For example, as shown in Figure 12, the Windows system includes a UI architecture layer, a system architecture layer, etc. The UI architecture layer includes a WPF architecture layer, which includes the UIAComWrapper module; the system architecture layer includes the User32.dll module.
本实施例中,可以通过User32.dll模块的GetTopWindow接口查找第一界面中开启的顶层的窗口,通过User32.dll模块的GetWindowRect接口确定顶层的窗口的位置(窗口尺寸),并确定落点位置是否在顶层的窗口的位置,若落点位置在顶层的窗口的位置,确定顶层的窗口为目标窗口;若落点位置不在 顶层的窗口的位置,通过User32.dll模块的GetWindow接口逐个向下查找窗口,并通过User32.dll模块的GetWindowRect接口确定窗口的位置,若落点位置在窗口的位置,确定当前窗口为目标窗口。在确定目标窗口之后,通过UIAComWrapper模块获取目标窗口中各个文本编辑框,通过BoudingRectangle接口获取各个文本编辑框的位置(编辑框尺寸),并确定落点位置所在的第一编辑框的位置;通过UIAComWrapper模块中FindAll接口获取第一编辑框的属性信息,若属性信息满足编辑框预设条件,确定第一移动操作指向的文本编辑框为目标文本编辑框。In this embodiment, the GetTopWindow interface of the User32.dll module can be used to find the top-level window opened in the first interface, and the position (window size) of the top-level window can be determined by the GetWindowRect interface of the User32.dll module. It can also be determined whether the landing point is within the position of the top-level window. If the landing point is within the position of the top-level window, the top-level window is determined as the target window; otherwise, the landing point is determined as the target window. The position of the top-level window is determined by searching downwards through the GetWindow interface of the User32.dll module, and then using the GetWindowRect interface of the User32.dll module to determine the window's position. If the landing point is within the window's current position, the current window is identified as the target window. After identifying the target window, the UIAComWrapper module retrieves each text editing box within the target window, and the BoudingRectangle interface obtains the position (size) of each text editing box, determining the position of the first editing box where the landing point is located. The FindAll interface in the UIAComWrapper module retrieves the attribute information of the first editing box. If the attribute information meets the preset conditions of the editing box, the text editing box pointed to by the first move operation is identified as the target text editing box.
进一步地,当第一移动操作指向文本编辑框,则在确认第一移动操作终止后,基于第一书写笔迹得到标准字体的文本内容。具体地,通过Current.Value接口获取文本编辑框的历史文本,将标准字体的文本内容与历史文本进行拼接,得到拼接文本,再通过SetValue接口将拼接文本替换历史文本。此外,还可以接收第二移动操作,确认第二移动操作由预设的第一触摸物所执行,则根据第二移动操作,确定第二移动操作对应的第二编辑方式;若第二编辑方式为删除文本,对文本内容进行编辑,并在文本编辑框中显示编辑后的文本内容。Furthermore, when the first movement operation points to the text editing box, after confirming the termination of the first movement operation, the text content in standard font is obtained based on the first handwriting. Specifically, the historical text of the text editing box is obtained through the Current.Value interface, the text content in standard font is concatenated with the historical text to obtain the concatenated text, and then the concatenated text replaces the historical text through the SetValue interface. In addition, a second movement operation can be received. If it is confirmed that the second movement operation is performed by a preset first touch object, then the second editing method corresponding to the second movement operation is determined according to the second movement operation; if the second editing method is to delete text, the text content is edited, and the edited text content is displayed in the text editing box.
具体地,基于第二移动操作在第一书写层上添加并显示第二书写笔迹,通过编辑框的Text Pattern属性在文本编辑框内,确定第二书写笔迹在文本编辑框的第一外接矩形,以及文本内容的第二外接矩形,基于第一外接矩形与第二外接矩形,确定第一外接矩形与第二外接矩形的交集区域;再通过RangeFromPoint接口交集区域覆盖的第一文本内容,对文本内容中的第一文本内容进行删除。Specifically, based on the second movement operation, a second handwriting is added and displayed on the first writing layer. The first bounding rectangle of the second handwriting and the second bounding rectangle of the text content are determined within the text editing box using the Text Pattern property of the editing box. Based on the first and second bounding rectangles, the intersection area of the first and second bounding rectangles is determined. Then, the first text content covered by the intersection area is deleted using the RangeFromPoint interface.
上述技术方案,接收发生在第一界面上的第一移动操作,确认第一移动操作由预设的第一触摸物所执行,在第一界面上叠加显示第一书写应用程序的第一书写层。当至少一个文本编辑框中存在获得输入焦点的目标文本编辑框时,在目标文本编辑框的预设位置显示工具栏,并基于第一移动操作在所述第一书写层上添加并显示第一书写笔迹;在确认第一移动操作终止后,基于第一书写笔迹得到标准字体的文本内容;在目标文本编辑框中显示文本内容,并关闭第一书写层。在接收到对至少一个文本编辑控件中的目标文本编辑控件的操作时,根据目标文本编辑控件对应的第一编辑方式对显示的文本内容进行编辑,在目标文本编辑框中显示编辑后的文本内容。由于该方法在向文本编辑框输入文本内容的过程中,在文本编辑框的预设位置显示工具栏,工具栏中包括一个或多个文本编辑控件。针对已输入文本编辑框的文本内容,用户可以通过文本编辑框内的文本编辑控件对文本内容进行编辑,使得文本内容的编辑可以不用调用软键盘,不需要频繁切换输入模式,从而可以简化文本内容的编辑过程,进而可以提高文本内容的输入效率。The above technical solution receives a first movement operation occurring on a first interface, confirms that the first movement operation is performed by a preset first touch object, and overlays a first writing layer of a first writing application on the first interface. When at least one text editing box contains a target text editing box that has received input focus, a toolbar is displayed at a preset position of the target text editing box, and a first writing stroke is added and displayed on the first writing layer based on the first movement operation; after confirming that the first movement operation has terminated, text content in standard font is obtained based on the first writing stroke; the text content is displayed in the target text editing box, and the first writing layer is closed. When an operation is received on a target text editing control in at least one text editing control, the displayed text content is edited according to the first editing method corresponding to the target text editing control, and the edited text content is displayed in the target text editing box. Because this method displays a toolbar at a preset position of the text editing box during the process of inputting text content into the text editing box, the toolbar includes one or more text editing controls. For text content that has already been entered into a text editing box, users can edit the text content using the text editing controls within the text editing box. This eliminates the need to call the soft keyboard and frequently switch input modes, thus simplifying the text editing process and improving text input efficiency.
图13是本申请实施例提供的另一种书写方法的场景示意图。示例性地,图13中的(a)所示的为文本编辑框获得输入焦点的场景示意图,图13中的(b)所示的为书写笔进行书写的场景示意图,图13中的(c)所示的为手指进行书写的场景示意图。示例性地,如图13中的(a)所示,主线程在检测到手指在交互平板的第一界面上的点击操作时,确定点击操作在第一界面上的落点位置,若落点位置位于其中某个文本编辑框所在的区域内,则确定该文本编辑框为获得输入焦点的目标文本编辑框。如图13中的(b)所示,主线程在检测到书写笔在交互平板的第一界面进行书写操作,在第一界面上叠加显示第一书写应用程序的第一书写层。此时,若确定存在获得输入焦点的目标文本编辑框,则在目标文本编辑框的预设位置显示工具栏。在显示第一书写层之后,通过第一书写层接收书写笔迹,并持续检测书写笔的抬起时长,若抬起时长大于预设时长,则确定确认书写操作终止,书写完成,将书写笔迹进行收集。进一步地,在确认书写操作终止后,根据书写笔迹得到标准字体的文本内容,在目标文本编辑框中显示文本内容,并关闭第一书写层。之后,在接收到对至少一个文本编辑控件中的目标文本编辑控件的操作时,根据目标文本编辑控件对应的第一编辑方式对显示的文本内容进行编辑,在目标文本编辑框中显示编辑后的文本内容。此外,若确定不存在获得输入焦点的目标文本编辑框,则在确认书写操作终止后,将书写笔迹显示在第一书写层,以便用户进行查看。Figure 13 is a schematic diagram of another writing method provided in this application embodiment. Exemplarily, Figure 13(a) shows a scenario where a text editing box receives input focus, Figure 13(b) shows a scenario where a writing pen performs writing, and Figure 13(c) shows a scenario where a finger performs writing. Exemplarily, as shown in Figure 13(a), when the main thread detects a finger click operation on the first interface of the interactive tablet, it determines the landing point of the click operation on the first interface. If the landing point is located within the area of a text editing box, then that text editing box is determined to be the target text editing box receiving input focus. As shown in Figure 13(b), when the main thread detects a writing pen performing a writing operation on the first interface of the interactive tablet, it overlays and displays the first writing layer of the first writing application on the first interface. At this time, if it is determined that there is a target text editing box receiving input focus, a toolbar is displayed at a preset position of the target text editing box. After displaying the first writing layer, the system receives the handwriting and continuously monitors the duration of pen lift-off. If the lift-off duration exceeds a preset duration, the writing operation is confirmed to have terminated, the writing is complete, and the handwriting is collected. Further, after confirming the termination of the writing operation, the system obtains text content in standard font based on the handwriting, displays the text content in the target text editing box, and closes the first writing layer. Subsequently, upon receiving an operation on at least one target text editing control, the system edits the displayed text content according to the first editing method corresponding to the target text editing control, and displays the edited text content in the target text editing box. Furthermore, if it is determined that there is no target text editing box with input focus, the handwriting is displayed on the first writing layer after confirming the termination of the writing operation for the user to view.
图14是本申请实施例提供的一种书写方法的示意性流程图。如图14所示,该方法包括以下过程:Figure 14 is a schematic flowchart of a writing method provided in an embodiment of this application. As shown in Figure 14, the method includes the following steps:
S1401,显示第一界面。S1401, displaying the first interface.
S1402,接收发生在第一界面上的第一移动操作。S1402, Receive the first movement operation that occurs on the first interface.
S1403,确认第一移动操作由预设的第一触摸物所执行,在第一界面上叠加显示第一书写应用程序的第一书写层。S1403, confirm that the first movement operation was performed by a preset first touch object, and overlay a first writing layer of the first writing application on the first interface.
可选地,在第一界面上叠加显示第一书写应用程序的第一书写层,包括:在第一界面上叠加显示第一尺寸的第一书写层;获取第一移动操作的持续时长;当持续时长大于预设时长时,显示第二尺寸的所述第一书写层。其中,对步骤1401至步骤1403的理解可参考图3所示实施例,本实施在此不做赘述。Optionally, displaying a first writing layer of the first writing application overlaid on the first interface includes: displaying a first writing layer of a first size overlaid on the first interface; obtaining the duration of the first movement operation; and displaying the first writing layer of a second size when the duration exceeds a preset duration. For an understanding of steps 1401 to 1403, please refer to the embodiment shown in Figure 3; this embodiment will not be elaborated upon here.
S1404,当至少一个文本编辑框中存在获得输入焦点的目标文本编辑框,在目标文本编辑框的预设位置显示工具栏,并基于第一移动操作在第一书写层上添加并显示第一书写笔迹。 S1404, when at least one text editing box contains a target text editing box that has received input focus, a toolbar is displayed at a preset position of the target text editing box, and a first writing stroke is added and displayed on the first writing layer based on the first movement operation.
其中,工具栏中包括至少一个文本编辑控件。本实施例中,在接收到由第一触摸物执行的第一移动操作之后,首先确定第一界面中的至少一个文本编辑框中是否存在获取输入焦点的目标文本编辑框。结合图13所示,用户在需要向某个文本编辑框输入文本内容时,首先可以对该文本编辑框执行点击操作,使该文本编辑框获得输入焦点,然后用户可以通过第一触摸物执行第一移动操作。对应的,交互平板在接收到用户对某个文本编辑框的点击操作之后,确定文本编辑框获得输入焦点。在确定文本编辑框获得输入焦点之后,若在接收到第一移动操作,并确认第一移动操作由第一触摸物所执行,可以在第一界面上叠加显示第一书写应用程序的第一书写层,同时可以确定存在获得输入焦点的目标文本编辑框。此时,可以在目标文本编辑框的预设位置显示工具栏,并基于第一移动操作在第一书写层上添加并显示第一书写笔迹。如图15所示,图15是本申请实施例提供的另一种文本输入的场景示意图。在确定存在获取输入焦点的目标文本编辑框之后,可以在第一书写层上显示第一书写笔迹,并在目标文本编辑框的预设位置显示工具栏。The toolbar includes at least one text editing control. In this embodiment, after receiving a first movement operation performed by a first touch object, it is first determined whether there is a target text editing box with input focus in at least one text editing box on the first interface. As shown in Figure 13, when a user needs to input text content into a text editing box, they can first perform a click operation on the text editing box to make it gain input focus, and then the user can perform a first movement operation through the first touch object. Correspondingly, after receiving a click operation from the user on a text editing box, the interactive tablet determines that the text editing box has gained input focus. After determining that the text editing box has gained input focus, if a first movement operation is received and it is confirmed that the first movement operation was performed by the first touch object, a first writing layer of the first writing application can be overlaid on the first interface, and it can be determined that there is a target text editing box with input focus. At this time, the toolbar can be displayed at a preset position of the target text editing box, and a first writing stroke can be added and displayed on the first writing layer based on the first movement operation. As shown in Figure 15, Figure 15 is a schematic diagram of another text input scenario provided by an embodiment of this application. After confirming the existence of a target text editing box that has input focus, the first writing stroke can be displayed on the first writing layer, and the toolbar can be displayed at a preset position in the target text editing box.
可选地,在目标文本编辑框的预设位置显示工具栏,包括:隐藏与目标文本编辑框对应的软键盘;在隐藏软键盘之后,在预设位置显示工具栏。Optionally, displaying the toolbar at a preset position in the target text editing box includes: hiding the soft keyboard corresponding to the target text editing box; and displaying the toolbar at the preset position after hiding the soft keyboard.
可选地,该方法还可以包括:监听目标文本编辑框是否失去输入焦点;当目标文本编辑框失去输入焦点时,隐藏工具栏。本实施例中,在确定存在获得输入焦点的目标文本编辑框之后,可以监听目标文本编辑框是否失去输入焦点,在目标文本编辑框失去输入焦点之后,可以隐藏工具栏。上述方案中,在文本编辑框失去输入焦点后,及时隐藏对应的工具栏,可以避免工具栏对其他获得输入焦点的控件产生影响。Optionally, the method may further include: monitoring whether the target text editing box loses input focus; and hiding the toolbar when the target text editing box loses input focus. In this embodiment, after determining that a target text editing box has gained input focus, it is possible to monitor whether the target text editing box loses input focus, and hide the toolbar after the target text editing box loses input focus. In the above solution, hiding the corresponding toolbar in a timely manner after the text editing box loses input focus can prevent the toolbar from affecting other controls that have gained input focus.
S1405,在确认第一移动操作终止后,基于第一书写笔迹得到标准字体的文本内容。S1405, after confirming that the first movement operation has ended, obtain the text content in the standard font based on the first handwriting.
可选地,基于第一书写笔迹得到标准字体的文本内容,包括:对第一书写笔迹进行光学字符识别,得到至少一个候选文本内容,以及每个候选文本内容的准确度;基于每个候选文本内容的准确度,从至少一个候选文本内容中确定文本内容。其中,输入焦点由发生在第一界面上的点击操作所触发。Optionally, obtaining text content in a standard font based on the first handwriting includes: performing optical character recognition on the first handwriting to obtain at least one candidate text content and the accuracy of each candidate text content; and determining the text content from the at least one candidate text content based on the accuracy of each candidate text content. The input focus is triggered by a click operation occurring on the first interface.
S1406,在目标文本编辑框中显示文本内容,并关闭第一书写层。S1406, Display the text content in the target text editing box and close the first writing layer.
本实施例中,在显示第一书写笔迹和工具栏之后,可以监测第一移动操作是否终止,在第一移动操作终止之后,可以关闭第一书写层,收集第一移动操作在第一书写层上产生的第一书写笔迹,然后基于第一书写笔迹确定文本内容,并在目标文本编辑框中显示文本内容。在目标文本编辑框中显示文本内容的方法如图7所示,本实施例在此不做赘述。如图16所示,图16是本申请实施例提供的一种界面的变化示意图。用户在向文本编辑框输入文本内容的过程中,首先可以从第一界面中包括的至少一个文本编辑框中确定目标文本编辑框,然后使用手指在第一界面中点击目标文本编辑框,使目标文本编辑框获得输入焦点。在点击目标文本编辑框之后,用户执行第一移动操作。交互平板在接收到第一移动操作之后,确定存在获得输入焦点的目标文本编辑框,在第一界面上叠加显示第一书写层,并在第一书写层上叠加显示悬浮层,悬浮层为透明图层,然后在悬浮层显示工具栏,工具栏位于目标文本编辑框的预设位置。In this embodiment, after displaying the first handwriting and toolbar, it is possible to monitor whether the first movement operation has terminated. After the first movement operation terminates, the first writing layer can be closed, the first handwriting generated by the first movement operation on the first writing layer can be collected, and then the text content can be determined based on the first handwriting, and the text content can be displayed in the target text editing box. The method for displaying the text content in the target text editing box is shown in Figure 7, which will not be described in detail here. As shown in Figure 16, Figure 16 is a schematic diagram of an interface change provided by an embodiment of this application. When a user inputs text content into a text editing box, they can first determine the target text editing box from at least one text editing box included in the first interface, and then use their finger to click the target text editing box in the first interface to make the target text editing box gain input focus. After clicking the target text editing box, the user performs the first movement operation. After receiving the first movement operation, the interactive tablet determines that there is a target text editing box that has gained input focus, overlays the first writing layer on the first interface, and overlays a floating layer on the first writing layer. The floating layer is a transparent layer, and then displays the toolbar on the floating layer. The toolbar is located at a preset position of the target text editing box.
在第一移动操作的执行过程中,由第一书写层收集第一移动操作的移动轨迹得到第一书写笔迹,在第一书写层上显示第一书写笔迹。在第一移动操作结束终止之后,关闭第一书写层,并基于第一书写笔迹得到文本内容,在目标文本编辑框显示文本内容,同时在悬浮层显示工具栏。During the execution of the first movement operation, the first writing layer collects the movement trajectory of the first movement operation to obtain the first writing handwriting, which is then displayed on the first writing layer. After the first movement operation ends, the first writing layer is closed, and the text content is obtained based on the first writing handwriting. The text content is then displayed in the target text editing box, and a toolbar is displayed in the floating layer.
S1407,在接收到对至少一个文本编辑控件中的目标文本编辑控件的操作时,根据目标文本编辑控件对应的第一编辑方式对显示的文本内容进行编辑。S1407, when receiving an operation on a target text editing control in at least one text editing control, the displayed text content is edited according to the first editing method corresponding to the target text editing control.
S1408,在目标文本编辑框中显示编辑后的文本内容。S1408, Display the edited text content in the target text editing box.
本实施例中,在目标文本编辑框中显示文本内容之后,可以接收用户对至少一个文本编辑控件中的目标文本编辑控件的操作,根据目标文本编辑控件对应的第一编辑方式对显示的文本内容进行编辑,然后在目标文本编辑框中显示编辑后的文本内容。对比步骤1407和步骤1408的理解可参考图3所示实施例,本实施例在此不做赘述。In this embodiment, after the text content is displayed in the target text editing box, the user's operation on the target text editing control in at least one text editing control can be received. The displayed text content is edited according to the first editing method corresponding to the target text editing control, and then the edited text content is displayed in the target text editing box. For a comparison of the understanding of steps 1407 and 1408, please refer to the embodiment shown in Figure 3. This embodiment will not be described in detail here.
可选地,至少一个文本编辑控件中包括用于输入空格字符的输入控件,以及用于删除字符的删除控件;根据目标文本编辑控件对应的第一编辑方式对显示的文本内容进行编辑,包括:从显示的文本内容中确定文本编辑位置;在目标文本编辑控件为所述输入控件的情况下,在文本编辑位置输入空格字符;或者,在目标文本编辑控件为删除控件的情况下,删除文本内容中位于文本编辑位置之前的字符。Optionally, at least one text editing control includes an input control for inputting a space character and a delete control for deleting a character; editing the displayed text content according to a first editing method corresponding to the target text editing control includes: determining the text editing position from the displayed text content; if the target text editing control is the input control, inputting a space character at the text editing position; or, if the target text editing control is a delete control, deleting characters in the text content preceding the text editing position.
可选地,至少一个文本编辑控件中包括用于切换输入方式的切换控件,该方法还可以包括:当接收到对切换控件的操作时,隐藏工具栏;在隐藏工具栏之后,显示软键盘,以通过软键盘对目标文本编辑框内的文本内容进行编辑。可选地,当至少一个文本编辑框中存在目标文本编辑框,第一书写层中显示的第一书写笔迹为第一颜色的书写笔迹;当至少一个文本编辑框中未存在目标文本编辑框,第一书写层中显示的第一书写笔迹为第二颜色的书写笔迹;其中,第一颜色与第二颜色不同。 Optionally, at least one text editing control includes a switching control for switching input methods. The method may further include: hiding the toolbar when an operation on the switching control is received; and displaying a soft keyboard after hiding the toolbar, so as to edit the text content in the target text editing box via the soft keyboard. Optionally, when a target text editing box exists in at least one text editing box, the first writing style displayed in the first writing layer is a first color; when no target text editing box exists in at least one text editing box, the first writing style displayed in the first writing layer is a second color; wherein the first color and the second color are different.
本实施例中,当至少一个文本编辑框中存在获得输入焦点的目标文本编辑框时,可以确定用户需要通过第一触摸物进行手写输入,此时在第一书写层显示第一书写笔迹时,可以显示第一颜色的第一书写笔迹,第一颜色例如为蓝色。相反的,当至少一个文本编辑框中未存在获得输入焦点的目标文本编辑框时,可以确定用户需要通过第一触摸物进行文本批注,此时在第一书写层显示第一书写笔迹时,可以显示第二颜色的第一书写笔迹,第二颜色例如为红色。In this embodiment, when at least one text editing box contains a target text editing box that has received input focus, it can be determined that the user needs to perform handwriting input via the first touch object. In this case, when the first handwriting is displayed on the first writing layer, the first handwriting in a first color can be displayed, for example, blue. Conversely, when no target text editing box contains a target text editing box that has received input focus, it can be determined that the user needs to annotate text via the first touch object. In this case, when the first handwriting is displayed on the first writing layer, the first handwriting in a second color can be displayed, for example, red.
上述方案中,当存在获得输入焦点的目标文本编辑框时显示第一颜色的书写笔迹,当未存在获得输入焦点的目标文本编辑框时显示第二颜色的书写笔迹,通过不同的颜色显示不同操作下的书写笔迹,可以便于用户区分不同操作下的书写笔迹。In the above scheme, when there is a target text editing box that has received input focus, the writing handwriting of the first color is displayed, and when there is no target text editing box that has received input focus, the writing handwriting of the second color is displayed. By displaying the writing handwriting under different operations with different colors, it is easy for users to distinguish the writing handwriting under different operations.
可选地,该方法还可以包括:接收发生在第一书写层上的第二移动操作,第二移动操作穿过目标文本编辑框;确认第二移动操作由第一触摸物所执行,则根据第二移动操作,确定第二移动操作对应的第二编辑方式;根据第二编辑方式,对文本内容进行编辑;在目标文本编辑框中显示编辑后的文本内容。Optionally, the method may further include: receiving a second movement operation occurring on the first writing layer, the second movement operation passing through the target text editing box; confirming that the second movement operation was performed by a first touch object, then determining a second editing method corresponding to the second movement operation based on the second movement operation; editing the text content according to the second editing method; and displaying the edited text content in the target text editing box.
可选地,根据第二移动操作,确定第二移动操作对应的第二编辑方式,包括:基于第二移动操作在第一书写层上添加并显示第二书写笔迹;当确认第二移动操作穿过目标文本编辑框中显示的文本内容,且第二书写笔迹为第一预设书写笔迹,确定第二编辑方式为删除文本;例如,第二移动操作可以是在文本编辑框中显示的文本内容上划波浪线。当确认第二移动操作穿过目标文本编辑框中显示的文本内容,且第二书写笔迹为第二预设书写笔迹,确定第二编辑方式为选中文本;例如,第二移动操作可以是在文本编辑框中显示的文本内容上划横线。当确认第二书写笔迹为第三预设书写笔迹,确定第二移动操作对应的编辑方式为拆分文本内容或者组合文本内容;例如,第二移动操作可以是在文本编辑框中显示的文本内容之间划竖线,在拆分的文本内容之间划竖线可以组合文本内容,在组合的文本内容之间划竖线可以拆分文本内容。Optionally, based on the second movement operation, determining the second editing method corresponding to the second movement operation includes: adding and displaying a second handwriting stroke on the first writing layer based on the second movement operation; when it is confirmed that the second movement operation passes through the text content displayed in the target text editing box, and the second handwriting stroke is a first preset handwriting stroke, determining the second editing method as deleting text; for example, the second movement operation could be drawing a wavy line on the text content displayed in the text editing box. When it is confirmed that the second movement operation passes through the text content displayed in the target text editing box, and the second handwriting stroke is a second preset handwriting stroke, determining the second editing method as selecting text; for example, the second movement operation could be drawing a horizontal line on the text content displayed in the text editing box. When it is confirmed that the second handwriting stroke is a third preset handwriting stroke, determining the editing method corresponding to the second movement operation as splitting or combining text content; for example, the second movement operation could be drawing a vertical line between the text content displayed in the text editing box, drawing a vertical line between split text content can combine text content, and drawing a vertical line between combined text content can split text content.
可选地,当至少一个文本编辑框中未存在目标文本编辑框,该方法还可以包括:接收第三移动操作,第三移动操作与第一书写笔迹有重叠,且第三移动操作由预设的第二触摸物所执行;根据第三移动操作,对第一书写笔迹进行擦除。Optionally, when at least one text editing box does not contain a target text editing box, the method may further include: receiving a third movement operation, the third movement operation overlapping with the first handwriting, and the third movement operation being performed by a preset second touch object; erasing the first handwriting according to the third movement operation.
本实施例中,当至少一个文本编辑框中未存在获得输入焦点的目标文本编辑框时,可以接收第三移动操作,第三移动操作与第一书写笔迹有重叠,且第三移动操作由预设的第二触摸物所执行,再根据第三移动操作,对第一书写笔迹进行擦除。具体地,可以确认第三移动操作与第一书写笔迹的第一重叠区域,对第一书写笔迹中第一重叠区域中的书写笔迹进行擦除。需要说明的是,第三移动操作为对第一书写笔迹的擦除操作。此外,第二触摸物可以是书写笔的笔尾。In this embodiment, when at least one text editing box does not contain a target text editing box with input focus, a third movement operation can be received. This third movement operation overlaps with the first handwriting and is performed by a preset second touch object. Based on the third movement operation, the first handwriting is then erased. Specifically, the first overlapping area between the third movement operation and the first handwriting can be identified, and the handwriting within this first overlapping area is erased. It should be noted that the third movement operation is an erasure operation of the first handwriting. Furthermore, the second touch object can be the end of a writing pen.
可选地,对第一书写笔迹中的书写笔迹可以全部擦除,也可以部分擦除,具体可以根据实际情况进行确定,在此不做具体限定。上述方案,若至少一个文本编辑框中未存在获得输入焦点的目标文本编辑框,接收第三移动操作,确认第三移动操作与第一书写笔迹的第一重叠区域,对第一书写笔迹中第一重叠区域中的书写笔迹进行擦除,由于擦除书写笔迹是根据第三移动操作与第一书写笔迹的第一重叠区域确定,能够确保待擦除的书写笔迹的准确性,从而提高用户使用的便利性。Optionally, the writing in the first handwriting can be completely erased or partially erased, depending on the actual situation, and is not specifically limited here. In the above scheme, if at least one text editing box does not have a target text editing box with input focus, a third movement operation is received. The first overlapping area between the third movement operation and the first handwriting is confirmed, and the writing in the first overlapping area of the first handwriting is erased. Since the erasure of the writing is determined based on the first overlapping area between the third movement operation and the first handwriting, the accuracy of the writing to be erased can be ensured, thereby improving user convenience.
可选地,该方法还可以包括,接收发生在第一界面上的第四移动操作,确认第四移动操作由预设的第三触摸物所执行,根据第四移动操作,对第一界面进行更新,以及显示更新后的第一界面。可选地,第四移动操作可以是书写操作、文本选中、文本删除中任一者。此外,在对第一界面进行更新时,可以是对第一界面的滑动更新,也可以是对第一界面的翻页。通过提供不同的更新方式,使用户可以选择不同的更新方式,提高用户使用体验。Optionally, the method may further include receiving a fourth movement operation occurring on the first interface, confirming that the fourth movement operation is performed by a preset third touch object, updating the first interface according to the fourth movement operation, and displaying the updated first interface. Optionally, the fourth movement operation may be any one of writing, text selection, or text deletion. Furthermore, updating the first interface may be a swipe update or a page flip. By providing different update methods, users can choose different update methods, thus improving the user experience.
图17是本申请实施例提供的另一种书写方法的示意性流程图。如图17所示,该方法包括:Figure 17 is a schematic flowchart of another writing method provided in an embodiment of this application. As shown in Figure 17, the method includes:
S1701,接收发生在第一界面上的第一移动操作。S1701, Receive the first movement operation that occurs on the first interface.
示例性的,当第一移动操作为书写操作的情况下,接收发生在第一界面上的书写操作,并确定第一移动操作在第一界面上的落点位置。For example, when the first movement operation is a writing operation, the writing operation occurring on the first interface is received, and the landing position of the first movement operation on the first interface is determined.
可选地,第一落点位置可以通过直接检测到触控信号或者通过辅助的传感器检测触摸物的特定信息实现对触摸物的类型以及落点位置的判断。Optionally, the first landing point location can be determined by directly detecting the touch signal or by detecting specific information of the touched object through an auxiliary sensor to determine the type of the touched object and the landing point location.
示例性的,落点位置可以基于坐标数据进行表示;例如,以第一界面的左上角为原点,水平方向为x轴,垂直方向为y轴,从而基于坐标数据确定移动操作的落点位置,如落点位置为(100,200)。坐标系的建立位置可以根据实际情况进行确定,在此不做具体限定。For example, the landing point can be represented based on coordinate data; for instance, with the top left corner of the first interface as the origin, the horizontal direction as the x-axis, and the vertical direction as the y-axis, the landing point of the movement operation can be determined based on the coordinate data, such as the landing point being (100, 200). The location of the coordinate system can be determined according to the actual situation, and no specific limitation is made here.
S1702,在第一界面上叠加显示第一书写层并接收第一书写笔迹。S1702, display the first writing layer on the first interface and receive the first writing stroke.
示例性的,确认第一移动操作由预设的第一触摸物所执行,则在第一界面上叠加显示第一书写应用程序的第一书写层,并通过第一书写层收集第一移动操作的移动轨迹得到第一书写笔迹。 For example, if it is confirmed that the first movement operation is performed by a preset first touch object, then the first writing layer of the first writing application is superimposed on the first interface, and the movement trajectory of the first movement operation is collected through the first writing layer to obtain the first writing handwriting.
S1703,确定至少一个文本编辑框中是否存在获得输入焦点的目标文本编辑框;若是,则执行S1705;若否,则执行S1704。S1703, determine whether there is a target text editing box that has received input focus in at least one text editing box; if yes, then execute S1705; if no, then execute S1704.
S1704,将第一书写笔迹显示于第一书写层。S1704, Display the first handwriting on the first writing layer.
S1706,在目标文本编辑框的预设位置显示工具栏,在第一书写层上添加并显示第一书写笔迹。S1706, Display the toolbar at the preset position of the target text editing box, and add and display the first writing stroke on the first writing layer.
S1706,对第一书写笔迹进行识别,得到候选文本。S1706, Identify the first handwriting to obtain candidate text.
S1707,从至少一个候选文本中确定文本内容。S1707, determine the text content from at least one candidate text.
示例性的,可以通过候选弹窗从至少一个候选文本中确定文本内容,也可以直接根据每个候选文本的准确度,从至少一个候选文本中确定文本内容。For example, text content can be determined from at least one candidate text through a candidate pop-up, or text content can be determined directly from at least one candidate text based on the accuracy of each candidate text.
S1708,在目标文本编辑框中显示文本内容,并关闭第一书写层。S1708, Display the text content in the target text editing box and close the first writing layer.
S1709,在接收到对至少一个文本编辑控件中的目标文本编辑控件的操作时,根据目标文本编辑控件对应的第一编辑方式对显示的文本内容进行编辑S1709, upon receiving an operation on a target text editing control in at least one text editing control, the displayed text content is edited according to the first editing mode corresponding to the target text editing control.
S1710,若接收到对目标文本编辑框的第二点击操作,根据第二点击操作,在第一界面上叠加显示第一书写层。其中,对步骤1706至步骤1710的理解可参考前述举例,本实施例在此不做赘述。S1710, if a second click operation on the target text editing box is received, a first writing layer is overlaid and displayed on the first interface according to the second click operation. The understanding of steps 1706 to 1710 can be found in the aforementioned examples, and will not be repeated here.
图18是本申请实施例提供的一种书写装置的结构示意图。如图8所示,该书写装置1800包括:显示模块1801,用于显示第一界面,所述第一界面中包括至少一个文本编辑框;接收模块1802,用于接收发生在所述第一界面上的第一移动操作;所述显示模块1801还用于确认所述第一移动操作由预设的第一触摸物所执行,在所述第一界面上叠加显示第一书写应用程序的第一书写层,并基于所述第一移动操作在所述第一书写层上添加并显示第一书写笔迹;得到模块1803,用于当所述第一移动操作指向所述至少一个文本编辑框中的目标文本编辑框,则在确认所述第一移动操作终止后,基于所述第一书写笔迹得到标准字体的文本内容;所述显示模块1801还用于在所述目标文本编辑框中显示所述文本内容,以及在所述目标文本编辑框的预设位置显示工具栏,并关闭所述第一书写层;其中,所述工具栏中包括至少一个文本编辑控件;编辑模块1804,用于在所述目标文本编辑框中显示所述文本内容之后,在接收到对所述至少一个文本编辑控件中的目标文本编辑控件的操作时,根据所述目标文本编辑控件对应的第一编辑方式对显示的所述文本内容进行编辑;所述显示模块1801还用于在所述目标文本编辑框中显示编辑后的所述文本内容。Figure 18 is a structural schematic diagram of a writing device provided in an embodiment of this application. As shown in Figure 18, the writing device 1800 includes: a display module 1801 for displaying a first interface, the first interface including at least one text editing box; a receiving module 1802 for receiving a first movement operation occurring on the first interface; the display module 1801 is further configured to confirm that the first movement operation is performed by a preset first touch object, overlay and display a first writing layer of a first writing application on the first interface, and add and display first writing strokes on the first writing layer based on the first movement operation; and a obtaining module 1803 for, when the first movement operation points to a target text editing box in the at least one text editing box, after confirming that the first movement operation has terminated, based on the... The first handwriting produces text content in a standard font; the display module 1801 is further configured to display the text content in the target text editing box, and to display a toolbar at a preset position in the target text editing box, and to close the first handwriting layer; wherein, the toolbar includes at least one text editing control; the editing module 1804 is configured to, after displaying the text content in the target text editing box, edit the displayed text content according to the first editing method corresponding to the target text editing control when receiving an operation on the target text editing control among the at least one text editing controls; the display module 1801 is further configured to display the edited text content in the target text editing box.
图19是本申请实施例提供的一种书写装置的结构示意图。如图19所示,该书写装置1900包括:显示模块1901,用于显示第一界面,所述第一界面中包括至少一个文本编辑框;接收模块1902,用于接收发生在所述第一界面上的第一移动操作;所述显示模块1901还用于确认所述第一移动操作由预设的第一触摸物所执行,在所述第一界面上叠加显示第一书写应用程序的第一书写层;所述显示模块1901还用于当所述至少一个文本编辑框中存在获得输入焦点的目标文本编辑框,在所述目标文本编辑框的预设位置显示工具栏,并基于所述第一移动操作在所述第一书写层上添加并显示第一书写笔迹;其中,所述工具栏中包括至少一个文本编辑控件;得到模块1903,用于在确认所述第一移动操作终止后,基于所述第一书写笔迹得到标准字体的文本内容;其中,所述输入焦点由发生在所述第一界面上的点击操作所触发;所述显示模块1901还用于在所述目标文本编辑框中显示所述文本内容,并关闭所述第一书写层;编辑模块1904,用于在所述目标文本编辑框中显示所述文本内容之后,在接收到对所述至少一个文本编辑控件中的目标文本编辑控件的操作时,根据所述目标文本编辑控件对应的第一编辑方式对显示的所述文本内容进行编辑;所述显示模块1901还用于在所述目标文本编辑框中显示编辑后的所述文本内容。Figure 19 is a schematic diagram of a writing device provided in an embodiment of this application. As shown in Figure 19, the writing device 1900 includes: a display module 1901 for displaying a first interface, the first interface including at least one text editing box; a receiving module 1902 for receiving a first movement operation occurring on the first interface; the display module 1901 is further configured to confirm that the first movement operation is performed by a preset first touch object, and to overlay and display a first writing layer of a first writing application on the first interface; the display module 1901 is further configured to, when there is a target text editing box with input focus in the at least one text editing box, display a toolbar at a preset position of the target text editing box, and add and display first writing strokes on the first writing layer based on the first movement operation; wherein, the toolbar includes at least one text editing box. An editing control; a module 1903, configured to obtain text content in a standard font based on the first handwriting after confirming the termination of the first movement operation; wherein the input focus is triggered by a click operation occurring on the first interface; the display module 1901 is further configured to display the text content in the target text editing box and close the first writing layer; an editing module 1904, configured to, after displaying the text content in the target text editing box, edit the displayed text content according to the first editing method corresponding to the target text editing control when receiving an operation on the target text editing control in at least one text editing control; the display module 1901 is further configured to display the edited text content in the target text editing box.
图20是本申请实施例提供的一种交互平板的结构示意图。示例性地,如图20所示,该交互平板2000包括:存储器2010和处理器2020,其中,存储器2010中存储有可执行程序代码2030,处理器2020用于调用并执行该可执行程序代码2030执行一种书写方法。示例性地,存储器2010可以用于存储本申请实施例中提供的书写方法的相关程序;处理器2020可以调用存储器2010中存储的书写方法的相关程序,执行本申请实施例的书写方法。本实施例可以根据上述方法示例对该装置进行功能模块的划分,例如,可以对应各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中,上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。应理解,本实施例提供的装置用于执行上述一种书写方法,因此可以达到与上述实现方法相同的效果。Figure 20 is a schematic diagram of the structure of an interactive flat panel provided in an embodiment of this application. Exemplarily, as shown in Figure 20, the interactive flat panel 2000 includes a memory 2010 and a processor 2020. The memory 2010 stores executable program code 2030, and the processor 2020 is used to call and execute the executable program code 2030 to perform a writing method. Exemplarily, the memory 2010 can be used to store related programs of the writing method provided in this embodiment; the processor 2020 can call the related programs of the writing method stored in the memory 2010 to execute the writing method of this embodiment. This embodiment can divide the device into functional modules according to the above method example. For example, it can correspond to various functional modules, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents a logical functional division; in actual implementation, there may be other division methods. It should be understood that the device provided in this embodiment is used to execute the above-described writing method, and therefore can achieve the same effect as the above-described implementation method.
本申请还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序代码,当该计算机程序代码在计算机上运行时,使得计算机执行上述相关方法步骤实现上述实施例提供的一种书写方法。其中,计算机可读存储介质可以包括但不限于任何类型的盘,包括软盘、光盘、数字通用光盘(Digital Video Disc,DVD)、紧凑型光盘只读储存器(Compact Disc Read-Only Memory,CD-ROM)、微型驱 动器以及磁光盘、只读储存器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)、带电可擦可编程只读存储器(Electrically Erasable Programmable read only memory,EEPROM)、动态随机存取存储器(Dynamic Random Access Memory,DRAM)、影像随机接达记忆器(Video Random Access Memory,VRAM)、闪速存储器设备、磁卡或光卡、纳米系统(包括分子存储器IC),或适合于存储指令和/或数据的任何类型的媒介或设备。This application also provides a computer-readable storage medium storing computer program code. When the computer program code is executed on a computer, it causes the computer to perform the aforementioned method steps to implement the writing method provided in the above embodiments. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, Digital Video Discs (DVDs), Compact Disc Read-Only Memory (CD-ROMs), and microdrives. The actuator, as well as magneto-optical disks, read-only memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), dynamic random access memory (DRAM), video random access memory (VRAM), flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
本申请还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例提供的一种书写方法。This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement a writing method provided in the above embodiments.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。 The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims (19)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2024/103916 WO2026007110A1 (en) | 2024-07-05 | 2024-07-05 | Writing method, interactive tablet and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2024/103916 WO2026007110A1 (en) | 2024-07-05 | 2024-07-05 | Writing method, interactive tablet and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2026007110A1 true WO2026007110A1 (en) | 2026-01-08 |
Family
ID=98317416
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/103916 Pending WO2026007110A1 (en) | 2024-07-05 | 2024-07-05 | Writing method, interactive tablet and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2026007110A1 (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20180011826A1 (en) * | 2016-07-11 | 2018-01-11 | Samsung Electronics Co., Ltd. | Electronic device and control method thereof |
| WO2021218203A1 (en) * | 2020-04-27 | 2021-11-04 | 广州视源电子科技股份有限公司 | Page editing method and apparatus for intelligent interactive tablet computer, device, and storage medium |
| CN115016722A (en) * | 2021-11-08 | 2022-09-06 | 荣耀终端有限公司 | Text editing method and related equipment |
| CN115185443A (en) * | 2022-06-24 | 2022-10-14 | 青岛海信移动通信技术股份有限公司 | Handwriting input method, handwriting input device, terminal equipment and computer readable storage medium |
-
2024
- 2024-07-05 WO PCT/CN2024/103916 patent/WO2026007110A1/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20180011826A1 (en) * | 2016-07-11 | 2018-01-11 | Samsung Electronics Co., Ltd. | Electronic device and control method thereof |
| WO2021218203A1 (en) * | 2020-04-27 | 2021-11-04 | 广州视源电子科技股份有限公司 | Page editing method and apparatus for intelligent interactive tablet computer, device, and storage medium |
| CN115016722A (en) * | 2021-11-08 | 2022-09-06 | 荣耀终端有限公司 | Text editing method and related equipment |
| CN115185443A (en) * | 2022-06-24 | 2022-10-14 | 青岛海信移动通信技术股份有限公司 | Handwriting input method, handwriting input device, terminal equipment and computer readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11429274B2 (en) | Handwriting entry on an electronic device | |
| JP5661279B2 (en) | User interface system and method for text editing and menu selection | |
| US7542029B2 (en) | System and method for a user interface for text editing and menu selection | |
| EP1145101B1 (en) | Pen based edit correction interface method | |
| US7441202B2 (en) | Spatial multiplexing to mediate direct-touch input on large displays | |
| WO2021218203A1 (en) | Page editing method and apparatus for intelligent interactive tablet computer, device, and storage medium | |
| US20030210270A1 (en) | Method and apparatus for managing input focus and z-order | |
| CN103226445A (en) | Handwriting input method, system and terminal | |
| CN103218146B (en) | The method and its mancarried device of the different keypads configuration for data input is presented | |
| WO2023231268A1 (en) | Quick annotation method and apparatus, and interactive tablet and storage medium | |
| WO2020211369A1 (en) | Writing track adjustment method and apparatus, terminal device and storage medium | |
| CN107977155A (en) | Handwriting recognition method, device, equipment and storage medium | |
| CN108762657B (en) | Operation method, device and intelligent interactive tablet for intelligent interactive tablet | |
| JP2999335B2 (en) | Gesture processing device and gesture processing method | |
| JP3075882B2 (en) | Document creation and editing device | |
| CN114610188B (en) | Interface handwriting writing method and system, control device and storage medium | |
| WO2026007110A1 (en) | Writing method, interactive tablet and storage medium | |
| JP2000099223A (en) | Data processing device having handwritten character input interface and recording medium | |
| JPH05189149A (en) | Information processing equipment | |
| CN120872223A (en) | Writing method, writing device, interactive tablet and storage medium | |
| CN120872224A (en) | Writing method, interactive tablet and storage medium | |
| JP7357534B2 (en) | Information processing system, information processing method, and information processing program | |
| JPH11345071A (en) | Gesture processing device and gesture processing method | |
| CN121171214A (en) | Methods for completing handwritten content using voice information, display devices, and storage media | |
| CN121311862A (en) | Display device and touch track editing method for display device |