Writing method, interactive tablet and storage medium
By displaying a cursor on the interactive whiteboard and adding a writing layer for handwriting input, the problem of complex writing operations on interactive whiteboards is solved, resulting in more efficient text input and a better user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
- Filing Date
- 2024-12-25
- Publication Date
- 2026-06-26
Smart Images

Figure CN122284894A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and more specifically, to a writing method, interactive flat panel, and storage medium in the field of terminal technology. Background Technology
[0002] With the continuous development of terminal devices, computers, interactive whiteboards and other devices are gradually being integrated into people's lives and work to improve work efficiency and learning efficiency.
[0003] However, existing interactive whiteboards all require text writing via a soft keyboard. This is especially problematic for interactive whiteboards with larger screens, where the writing process is complex and inefficient. Therefore, improving the convenience of text writing on interactive whiteboards to increase writing efficiency is an urgent issue to be addressed. Summary of the Invention
[0004] This application provides a writing method, an interactive flat panel, and a storage medium. The writing method can improve the convenience of writing on the interactive flat panel, thereby increasing writing efficiency.
[0005] Firstly, a writing method is provided, characterized in that the writing method includes:
[0006] Display a first interface, which includes at least one text editing box;
[0007] Receive a first click operation occurring on the first interface; the first click operation points to a target text edit box in at least one text edit box.
[0008] The cursor is displayed at the location corresponding to the first click operation, and the target area in the first interface is determined based on the cursor position. An editing toolbar is displayed near the target area. The editing toolbar is used to trigger the editing of the text content in the target text editing box.
[0009] Receive the first movement operation that occurs on the first interface;
[0010] If it is confirmed that the first movement operation is performed by a preset first touch object and the starting point of the first movement operation is located in the target area, then the first writing layer of the first writing application is superimposed on the first interface, and the first writing handwriting is added and displayed on the first writing layer based on the first movement operation.
[0011] After confirming the termination of the first movement operation, the first text content in standard font is obtained based on the first handwriting;
[0012] Display the first text content in the target text editing box.
[0013] In the above technical solution, based on the first click operation occurring on the first interface, a cursor is displayed at the position corresponding to the first click operation; and the target area on the first interface is determined based on the cursor's display position, and an editing toolbar for text editing is displayed near the target area; when it is confirmed that the first movement operation is performed by a preset first touch object, and the starting point of the first movement operation is located in the target area, a first writing layer of the first writing application is overlaid on the first interface, 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; this solution can also realize the use of preset touch objects. The user can write on any position on the first interface by touching an object, thus directly inputting text or generating handwriting. This eliminates the need to repeatedly open and close the soft keyboard or writing software for text input or handwriting, improving the convenience of writing on the interactive tablet. Furthermore, this solution determines the cursor position based on the user's first click, thereby identifying the corresponding target area. When a movement triggered by a preset touch object is detected within the target area, a writing layer is added to receive the user's handwriting, improving the accuracy of handwriting input detection. In summary, this solution improves the accuracy of handwriting input detection while enabling global handwriting input, thereby increasing writing efficiency and enhancing the user experience.
[0014] In conjunction with the first aspect, some possible implementations, while displaying text content in the target text editing box, also include:
[0015] Close the first writing layer.
[0016] In the above technical solution, the first writing layer is automatically closed while the first text content is displayed. At this time, the user can still perform text operations through the editing toolbar. Without the need for manual operation, the user can perform click operations, page turning operations, etc. on the first interface, improving the convenience of handwriting input and other interface operations.
[0017] Combining the first aspect and the above implementation methods, some possible implementation methods also include:
[0018] Receives a second movement operation occurring on the first interface; the second movement operation is not directed at a target area.
[0019] The first interface is updated based on the second movement operation;
[0020] The updated first screen is displayed.
[0021] In the above technical solution, when a second movement operation not directed to a target area is received, the currently displayed first interface is updated according to the second movement operation to display the updated first interface. Controlling interface updates through movement operations outside the target area improves user convenience during the writing process, thereby enhancing the user experience.
[0022] Combining the first aspect and the above implementation methods, in some possible implementation methods, the first interface is updated, including:
[0023] The first screen can be updated by sliding; or the first screen can be turned by flipping through pages.
[0024] In the above technical solution, updating the first interface can include swiping to update and page turning; by providing different update methods, users can choose different update methods, thereby improving the user experience.
[0025] Combining the first aspect and the above implementation methods, in some possible implementation methods, the color of the first handwriting is a first preset color, and the method also includes:
[0026] After confirming that no operation targeting the target area has been received within the preset time, close the editing toolbar;
[0027] Receive a third movement operation occurring on the first interface; the third movement operation is performed by a preset first touch object;
[0028] Based on the third movement operation, the second handwriting is displayed; the color of the second handwriting is the second preset color.
[0029] In the above technical solution, if no movement operation is received within a preset time, the editing toolbar is automatically closed; and the second handwriting corresponding to the received third movement operation is displayed, realizing the input and display of handwriting; on this basis, the interactive tablet can realize both handwriting to standard text conversion and handwriting input and display, improving the flexibility and diversity of handwriting input.
[0030] Combining the first aspect and the above implementation methods, some possible implementation methods also include:
[0031] Receives a fourth movement operation on the first interface, the fourth movement operation is not directed to the target area;
[0032] Based on the fourth movement operation, a third writing stroke is added and displayed on the first writing layer;
[0033] After confirming the termination of the fourth movement operation, the second text content in the standard font is obtained based on the third handwriting and displayed in the target text editing box.
[0034] In the above technical solution, after adding a writing layer on the first interface, the user can write at any position on the first writing layer, that is, the fourth movement operation does not point to the target area; after the fourth movement operation ends, the corresponding third writing handwriting is converted into the second text content in standard font and displayed, which enables writing at any position on the first interface, thereby directly inputting text content and improving the flexibility of handwriting input.
[0035] In combination with the first aspect and the above implementation methods, in some possible implementation methods, after the step of displaying the second text content in the target text editing box, the method further includes:
[0036] Receives a close operation on the editing toolbar, closes the editing toolbar and closes the first writing layer.
[0037] In the above technical solution, by monitoring the user's operation on the editing toolbar, it is determined whether to close the editing toolbar and the first writing layer, so that disabling the handwriting input function can meet the user's own needs and improve the convenience and autonomy of handwriting input.
[0038] Combining the first aspect and the above implementation methods, in some possible implementation methods, the cursor is displayed at the position corresponding to the first click operation, including:
[0039] When the first click is received, the input method is invoked, and the input method instructs the target text editing box to obtain the click position of the first click.
[0040] Based on the click location and the text information in the target text editing box, determine the position corresponding to the first click operation; and display the cursor at the position corresponding to the first click operation.
[0041] In the above technical solution, after receiving the first click operation, the input method is invoked; the target text editing box is instructed by the input method to obtain the click position of the first click operation; and the position corresponding to the first click operation is determined according to the click position and the text information in the target text editing box; and the cursor is displayed at that position; this can improve the accuracy of the click position, thereby improving the accuracy of the cursor display position, making it easier for users to view the text input position; and can improve the recognition accuracy during the recognition of movement operations.
[0042] Combining the first aspect and the above implementation methods, in some possible implementation methods, the position corresponding to the first click operation is determined based on the click position and the text information in the target text editing box, including:
[0043] When there is text information in the target text editing box, the click location will be determined as the location corresponding to the first click operation;
[0044] If there is no text information in the target text editing box, the preset position in the target text editing box will be set as the position corresponding to the first click operation.
[0045] In the above technical solution, during the process of determining the cursor's display position, if there is text information in the target text editing box, the clicked position is determined as the cursor's display position; if there is no text information in the target text editing box, a preset position is determined as the cursor's display position. By determining whether there is text information in the target text editing box, the corresponding cursor display position is determined, improving the accuracy of cursor position determination. This ensures that the cursor position accurately reflects the user's intention to add text, thus improving the convenience of text input.
[0046] Combining the first aspect and the above implementation methods, in some possible implementation methods, determining the target area in the first interface based on the cursor position includes:
[0047] Define the preset area where the cursor is located as the target area.
[0048] In the above technical solution, a preset area is set. After determining the display position of the cursor, the preset area where the cursor is located in the first interface is determined as the target area, so as to realize the recognition of the user's movement operation, improve the accuracy of detecting movement operation, and thus improve the accuracy of handwriting and text input.
[0049] Combining the first aspect and the above implementation methods, some possible implementation methods, after displaying the first text content in the target text editing box, also include:
[0050] Receive the fifth move operation, which passes through the target text editing box;
[0051] If it is confirmed that the fifth movement operation is performed by the preset first touch object, then the editing method corresponding to the fifth movement operation is determined according to the fifth movement operation;
[0052] Edit the content of the first text according to the editing method;
[0053] Display the edited first text content in the target text editing box.
[0054] In the above technical solution, after the first text content is displayed in the target text editing box, if it is determined that the fifth movement operation is performed by a preset second touch object, the corresponding editing method can be determined according to the fifth movement operation; the existing first text content can be edited; the edited first text content can be obtained; by detecting the touch object, the user's editing intention can be determined, avoiding recognition errors caused by the first touch object, and improving the accuracy of modifying and editing the first text content; the user can perform the fifth movement operation through the second touch object, which can further improve the convenience of editing the first text content.
[0055] Combining the first aspect and the above implementation methods, in some possible implementation methods, the editing method corresponding to the fifth move operation is determined based on the fifth move operation, including:
[0056] The fourth writing stroke is added and displayed on the first writing layer based on the fifth movement operation;
[0057] When it is confirmed that the fifth movement operation passes through the first text content displayed in the target text editing box, and the fourth handwriting is the first preset handwriting, the editing method corresponding to the fifth movement operation is determined to be deleting text;
[0058] When it is confirmed that the fifth movement operation passes through the first text content displayed in the target text editing box, and the fourth handwriting is the second preset handwriting, the editing method corresponding to the fifth movement operation is determined to be selected text;
[0059] Once it is confirmed that the fourth handwriting is the third preset handwriting, the editing method corresponding to the fifth movement operation is determined to be either splitting or combining text.
[0060] In the above technical solution, different preset handwriting styles correspond to different editing methods. By determining the handwriting style of the fifth movement operation, the editing method corresponding to the fifth movement operation can be determined quickly, thereby improving writing efficiency.
[0061] Combining the first aspect and the above implementation methods, in some possible implementation methods, when the editing method corresponding to the fifth move operation is to delete text; the content of the first text is edited according to the editing method, including:
[0062] Determine the first overlapping area between the fourth handwriting and the first text content;
[0063] Based on the first overlapping region, determine the third text content in the first overlapping region;
[0064] Delete the third text content.
[0065] In the above technical solution, when the editing method corresponding to the fifth movement operation is to delete text, the first overlapping area between the fourth handwriting and the first text content is determined; the third text content is determined from the target text editing box based on the first overlapping area, and then the third text content in the first text content is deleted; since the third text content is the text content covered by the first overlapping area, the accuracy of the third text content can be improved, thereby enhancing the user experience.
[0066] Combining the first aspect and the above implementation methods, in some possible implementation methods, when the editing method corresponding to the fifth move operation is to delete text; the content of the first text is edited according to the editing method, including:
[0067] Determine the first bounding rectangle of the fourth handwriting within the target text editing box, and the second bounding rectangle of the first text content;
[0068] Based on the first bounding rectangle and the second bounding rectangle, determine the intersection area of the first bounding rectangle and the second bounding rectangle;
[0069] Determine the fourth text content covered by the intersection region;
[0070] Delete the fourth text content within the first text content.
[0071] In the above technical solution, when the editing method corresponding to the fifth movement operation is to delete text, the intersection area of the first bounding rectangle and the second bounding rectangle is determined, and the fourth text content covered by the intersection area is determined. Then, the fourth text content in the first text content is deleted. Since the fourth text content is the text content covered by the intersection area, the accuracy of the fourth text content can be improved, thereby enhancing the user experience.
[0072] Combining the first aspect and the above implementation methods, in some possible implementation methods, when the editing mode corresponding to the fifth movement operation is selected text; the content of the first text is edited according to the editing mode, including:
[0073] Determine the second overlapping area between the fourth handwriting and the first text content;
[0074] Based on the second overlapping region, determine the fifth text content within the second overlapping region;
[0075] Select the fifth text content within the first text content.
[0076] In the above technical solution, when the editing mode corresponding to the fifth movement operation is selected text, the fifth text content in the second overlapping area of the fourth handwriting and the first text content is determined, and the fifth text content in the first text content is selected; since the fifth text content is determined by the second overlapping area of the fourth handwriting and the first text content, the accuracy of the fifth text content can be improved, thereby improving the user's convenience.
[0077] Combining the first aspect and the above implementation methods, in some possible implementation methods, when the editing method corresponding to the fifth move operation is splitting or combining text; the content of the first text is edited according to the editing method, including:
[0078] Determine the target position of the fourth handwriting within the target text editing box;
[0079] Based on the target location, determine the sixth text content adjacent to the target location in the target text editing box;
[0080] Split or combine the sixth text content within the first text content.
[0081] In the above technical solution, when the editing method corresponding to the fifth movement operation is to split or combine text, the sixth text content adjacent to the target position in the text editing box is determined, and the sixth text content in the first text content is split or combined; since only simple operations are required from the user in the process of splitting or combining the sixth text content in the first text content, the convenience of the user in writing text is improved.
[0082] Combining the first aspect and the above implementation methods, in some possible implementation methods, the first interface is updated, including:
[0083] The first screen can be updated by sliding; or the first screen can be turned by flipping through pages.
[0084] In the above technical solution, updating the first interface can include swiping to update and page turning; by providing different update methods, users can choose different update methods, thereby improving the user experience.
[0085] Combining the first aspect and the above implementation methods, in some possible implementation methods, obtaining the first text content of the standard font based on the first handwriting includes:
[0086] Text recognition is performed on the first handwriting to obtain candidate text in at least one standard font;
[0087] Display at least one candidate text in the candidate pop-up window;
[0088] The selection operation occurs in the candidate pop-up window;
[0089] Based on the selection operation and at least one candidate text, determine the content of the first text.
[0090] In the above technical solution, after converting the user's first handwriting into a standard font, at least one relevant candidate text is provided for the user to select; and the text content is determined according to the user's selection, thereby improving the efficiency of handwriting input and the accuracy of the input text content.
[0091] Secondly, a writing device is provided, the writing device comprising:
[0092] A first display module is used to display a first interface, which includes at least one text editing box.
[0093] The first receiving module is used to receive a first click operation occurring on the first interface; the first click operation points to at least one target text editing box in a text editing box.
[0094] The first determination module is used to display the cursor at the position corresponding to the first click operation, determine the target area in the first interface based on the position of the cursor, and display the editing toolbar near the target area; the editing toolbar is used to trigger the editing of the text content in the target text editing box;
[0095] The second receiving module is used to receive the first movement operation that occurs on the first interface;
[0096] The first confirmation module is used to confirm that the first movement operation is performed by a preset first touch object and that the starting point of the first movement operation is located in the target area. Then, the first writing layer of the first writing application is superimposed on the first interface, and the first writing handwriting is added and displayed on the first writing layer based on the first movement operation.
[0097] The second confirmation module is used to obtain the first text content in standard font based on the first handwriting after confirming that the first movement operation has ended.
[0098] The second display module is used to display the first text content in the target text editing box.
[0099] Thirdly, an interactive flat panel is provided, comprising a memory and a processor. The memory stores executable program code, and the processor retrieves and runs the executable program code from the memory, causing the interactive flat panel to execute the methods described in the first aspect or any possible implementation thereof.
[0100] Fourthly, a computer program product is provided, comprising: computer program code, which, when run on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof.
[0101] Fifthly, a computer-readable storage medium is provided, which stores computer program code that, when executed on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof. Attached Figure Description
[0102] Figure 1 This is a schematic diagram of the structure of an interactive flat panel provided in an embodiment of this application;
[0103] Figure 2 This is a schematic diagram illustrating a writing method provided in an embodiment of this application;
[0104] Figure 3 This is a schematic flowchart illustrating a writing method provided in an embodiment of this application;
[0105] Figure 4 This is a schematic diagram of a scenario for determining the cursor position provided in an embodiment of this application;
[0106] Figure 5 This is a schematic diagram of a target area provided in an embodiment of this application;
[0107] Figure 6 This is a schematic diagram of a text deletion scenario provided in an embodiment of this application;
[0108] Figure 7 This is a schematic diagram of another text deletion scenario provided in an embodiment of this application;
[0109] Figure 8 This is a schematic flowchart illustrating another writing method provided in the embodiments of this application;
[0110] Figure 9 This is a schematic diagram of the structure of a writing device provided in an embodiment of this application;
[0111] Figure 10 This is a schematic diagram of another interactive flat panel provided in an embodiment of this application. Detailed Implementation
[0112] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "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 existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0113] 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 technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
[0114] 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 device; for example, an interactive flat panel can be flat, curved, or a combination of multiple flat surfaces.
[0115] Figure 1 This is a schematic diagram of the structure of an interactive flat panel provided in an embodiment of this application.
[0116] For example, such as Figure 1 As shown, 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 touched object; the control motherboard 120 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.
[0117] For example, a touch-sensitive display is a display screen with touch functionality; such as an infrared display screen, a capacitive display screen, a resistive display screen, an electromagnetic display screen, or a pressure-sensitive display screen.
[0118] On a touch-sensitive display, users can perform writing or other operations by touching the display with their fingers, a stylus, or other touch media (hereinafter collectively referred to as touch objects). Correspondingly, the interactive flat panel detects the position information of the finger or stylus during the touch operation and responds accordingly to achieve touch-based human-computer interaction. In this solution, the stylus refers to a device that... Figure 1 The interactive flat panel shown is compatible with a writing pen that supports... Figure 1 The writing pen shown is used for writing on the interactive flat panel.
[0119] In this embodiment, the sensing data that the touch-sensitive display can detect includes not only location information, but also the result of judging the type of touch object by directly detecting touch signals or by detecting specific signals of the touch object through auxiliary sensors. Specifically, for example, different types of touch objects can be distinguished based on the size of the touch point when the touch object contacts the touch-sensitive display, different types of touch objects can be distinguished based on the distinguishable physical signals (such as sound) generated when the touch object contacts the touch-sensitive display, and different types of touch objects can be distinguished based on the identification-capable wireless signals generated when the touch object contacts the touch-sensitive display.
[0120] In other words, a touch-sensitive display screen can not only send the location information of the touch to the control board, but also the type of the object being touched.
[0121] For example, the control motherboard is equipped with at least one operating system; wherein the operating system includes, but is not limited to, Android, Linux, Windows, and Huawei HarmonyOS, and is used to control and coordinate the interactive flat panel and external devices, enabling the various independent hardware components in the interactive flat panel to 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 is equipped with applications developed to meet the needs of users in different fields and for different problems; the corresponding architectural layer is the application layer.
[0122] In the specific embodiments described in this solution, the interactive flat panel can install at least one application with writing functionality. This application can be a built-in application of the operating system, or it can be 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.
[0123] In related technologies, when interactive whiteboards require text input in text editing boxes such as webpage input fields or application login boxes, text is written using a soft keyboard. This involves clicking on the text editing box, waiting for the cursor to appear, then clicking the soft keyboard to bring it up, and finally clicking on the soft keyboard to input the text. Once the text is finished, the soft keyboard is closed. When editing the text in the editing box is needed, the above steps are repeated: the soft keyboard is brought up, and the text is deleted using the delete key. This method of writing using a soft keyboard is not only cumbersome but also inefficient.
[0124] In view of this, this application proposes a writing method, an interactive flat panel, and a storage medium. The method determines the corresponding cursor display position based on the user's first click operation; and determines the target area based on the cursor display position. If it is further detected that the user's first movement operation is performed by a preset touch object and the first movement operation is located within the target area, a writing layer is added; and handwriting is generated and displayed based on the movement operation, achieving the effect of displaying handwriting immediately upon starting to write. The writing layer is added only when the first movement operation is determined to be within the target area, which can accurately recognize the user's handwriting intention and improve the accuracy of recognizing handwriting input operations. Using this writing method, there is no need to rely on repeatedly opening and closing the soft keyboard or writing software for text input or handwriting writing, which improves the convenience of writing on the interactive flat panel, thereby improving writing efficiency and enhancing the user experience.
[0125] Figure 2 This is a schematic diagram of a writing method provided in an embodiment of this application.
[0126] For example, Figure 2 Image (a) shows a scenario where a text editing box gains input focus. Figure 2 (b) shows a schematic diagram of a writing pen being used for writing. Figure 2 (c) in the diagram shows a scenario of writing with a finger.
[0127] For example, such as Figure 2 As shown in (a), when the main thread detects a finger tap on the first interface of the interactive tablet, it determines the location of the tap on the first interface. If the location is within the area of a text editing box, then the text editing box is determined to be the target text editing box that receives input focus.
[0128] like Figure 2 As shown in (b), when the main thread detects that the writing pen is 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, receives the writing handwriting through the first writing layer, and continuously detects the lifting time of the writing pen. If the lifting time is longer than the preset time, it confirms that the writing operation has terminated, the writing is completed, and the writing handwriting is collected.
[0129] Furthermore, after confirming the termination of the writing operation, the text content in standard font is obtained based on the handwriting. At this point, if a target text editing box with input focus is identified, the text content is displayed in the target text editing box, and the first writing layer is closed. Specifically, text recognition is performed on the handwriting to obtain at least one candidate text; based on at least one candidate text, the input text is determined and input into the target text editing box.
[0130] In addition, if it is determined that there is no target text editing box that has received input focus, the handwriting will be displayed on the first writing layer after the writing operation is confirmed to have ended, so that the user can view it.
[0131] Optionally, the first writing layer can be a transparent writing layer or a semi-transparent writing layer; no specific limitation is made here.
[0132] Optionally, the landing point can be represented based on coordinate data; for example, 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 click operation can be determined based on the coordinate data. The location of the coordinate system can be determined according to the actual situation, and no specific limitation is made here.
[0133] Optionally, the preset duration can be 300ms, 350ms, 380ms, etc., without specific limitations.
[0134] For example, if the pen type matches the preset type, a movement operation of the pen is detected on the first interface of the interactive whiteboard. 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.
[0135] For example, such as Figure 2 As shown in (c), the main thread detects the finger movement operation on the first interface, updates the first interface according to the movement operation, and displays the updated first interface.
[0136] Optionally, the activities on the first screen can be updated; or, page turning on the first screen can be adjusted, without specific limitations.
[0137] The following is combined Figures 3 to 8 The writing method provided in the embodiments of this application will be described in detail.
[0138] Figure 3 This is a schematic flowchart illustrating a writing method provided in an embodiment of this application.
[0139] For example, such as Figure 3 As shown, the writing method 300 includes:
[0140] S301, Display a first interface, the first interface including at least one text editing box.
[0141] It should be noted that the first interface refers to the primary interface of the interactive flat panel; for example, the interactive flat panel could be a Windows-based conference flat panel, an Android tablet, etc. The first interface can be a webpage or an application's input interface, etc. It includes at least one text editing box, used to receive text input by the user in a standard font. Here, "standard font" refers to a font as opposed to handwritten fonts, such as Chinese characters or English characters. Optionally, the standard font can also be configured with a specific font format; for example, for Chinese characters, it could be formatted as SimSun, Heiti, or Microsoft YaHei.
[0142] S302, receive a first click operation occurring on the first interface; the first click operation points to a target text editing box in at least one text editing box.
[0143] For example, when a user needs to input text, they can click on the corresponding location on the first interface to perform the text input operation. The interactive whiteboard can detect and receive the user's first click on the first interface in real time. After receiving the first click, the text editing box pointed to by the first click can be identified as the target text editing box.
[0144] S303, display the cursor at the position corresponding to the first click operation, determine the target area in the first interface based on the cursor position, and display the editing toolbar near the target area; the editing toolbar is used to trigger the editing of the text content in the target text editing box.
[0145] For example, after receiving the first click operation, the position corresponding to the first click operation is determined based on the first click operation; a cursor is displayed at the position corresponding to the first click operation; and then the corresponding target area is determined in the first interface based on the position of the cursor.
[0146] After the target area is identified, the first writing application enters a waiting input state. An editing toolbox can pop up near the cursor position, informing the user that handwriting input is possible, and simultaneously begins listening for screen movement. The editing toolbox may include mode switching, deletion, and line break functions. The mode switching function is used to switch between handwriting input mode and soft keyboard input mode; the deletion and line break functions are used to edit the text content in the text editing box.
[0147] It should be understood that displaying the editing toolbox near the target area indicates that the editing toolbox will be displayed at a preset position within a preset range of the target area. For example, displaying the editing toolbox at the lower right corner of the target area and 3cm away from the target area.
[0148] In one implementation, the cursor is displayed at the position corresponding to the first click operation, including:
[0149] When the first click is received, the input method is invoked, and the input method instructs the target text editing box to obtain the click position of the first click.
[0150] Based on the click location and the text information in the target text editing box, determine the position corresponding to the first click operation; and display the cursor at the position corresponding to the first click operation.
[0151] For example, a system implementing this method may include an input method and a target text editing box; when the interactive whiteboard receives the user's first click operation, the target text editing box requests the system to call the input method, and the input method instructs the target text editing box to obtain the click position corresponding to the first click operation; then, based on the click position and whether there is text information in the target text editing box, the position corresponding to the first click operation is determined.
[0152] The above solution, upon receiving the first click operation, invokes the input method; uses the input method to instruct the target text editing box to obtain the click position of the first click operation; and determines the position corresponding to the first click operation based on the click position and the text information in the target text editing box; and displays the cursor at that position; this can improve the accuracy of the click position, thereby improving the accuracy of the cursor display position, making it easier for users to view the text input position; and can improve the recognition accuracy during the recognition of movement operations.
[0153] In one implementation, the location corresponding to the first click operation is determined based on the click location and the text information in the target text editing box, including:
[0154] When there is text information in the target text editing box, the click location will be determined as the location corresponding to the first click operation;
[0155] If there is no text information in the target text editing box, the preset position in the target text editing box will be set as the position corresponding to the first click operation.
[0156] The preset position can indicate the position of the first paragraph of the target text editing box.
[0157] For example, such as Figure 4 As shown, based on the user's first click, the target text editing box is determined as editing box 400 on the interactive whiteboard 100; when the editing box 400 contains text information, such as "Project Results -> Team Members", ... Figure 4 As shown in (a), if the click position of the first click operation is position 401, then position 401 is determined as the position corresponding to the first click operation; further, as... Figure 4As shown in (b), cursor 403 can be displayed at position 401; when there is no text information in the edit box 400, as... Figure 4 As shown in (c), the starting position of the edit box, i.e., position 402, is determined as the position corresponding to the first click operation; further, as... Figure 4 As shown in (d), cursor 403 can be displayed at position 402.
[0158] The above solution determines the cursor's display position based on the following criteria: if the target text editing box contains text, the clicked location is set as the cursor's display position; otherwise, a preset location is used. By determining the presence of text in the target text editing box, the accuracy of cursor position determination is improved, ensuring that the cursor's display position accurately reflects the user's intention to add text and enhancing the convenience of text input.
[0159] In one implementation, determining the target area in the first interface based on the cursor position includes:
[0160] Define the preset area where the cursor is located as the target area.
[0161] For example, a preset area of fixed size can be pre-defined; after the cursor position is determined according to the first click operation, the preset area where the cursor is displayed is determined as the target area. For example, the size of the preset area can be 50 pixels above and below the cursor's display position and 200 pixels to the left and right, that is, an area with an area of 100×400 pixels; this embodiment of the application does not specifically limit the size.
[0162] Figure 5 This is a schematic diagram of a target area provided in an embodiment of this application. For example... Figure 5 As shown, if the cursor position determined in the text editing box 500 is position 501, then cursor 502 can be displayed at cursor position 501; the target area can be determined as area 503 based on cursor position 501.
[0163] It should be noted that after the target area is determined, its outline will not be displayed on the first screen. Figure 5 This is only intended as a schematic diagram for identifying the target area.
[0164] The above scheme sets a preset area. After determining the cursor position, the preset area where the cursor position is located in the first interface is determined as the target area, so as to realize the recognition of the user's movement operation, improve the accuracy of movement operation detection, and thus improve the accuracy of handwriting and text input.
[0165] S304, receive the first movement operation that occurs on the first interface.
[0166] Optionally, the first movement operation can be any of the following: writing operation, text selection, or text deletion.
[0167] For example, when the first movement operation is a writing operation, the writing operation occurring on the first interface is received.
[0168] It is understood that the example shown is only one possible scenario in actual application, and the specific situation can be determined according to the actual circumstances, without any limitation here.
[0169] S305, if it is confirmed that the first movement operation is performed by a preset first touch object and the starting point of the first movement operation is located in the target area, then the first writing layer of the first writing application is superimposed on the first interface, and the first writing handwriting is added and displayed on the first writing layer based on the first movement operation.
[0170] The determination that the first movement operation is located in the target area may include situations where all operation trajectories corresponding to the first movement operation are located in the target area; or, where part of the trajectory in the first movement operation is located in the target area. The size of the first writing layer is consistent with the display screen size of the interactive flat panel.
[0171] For example, if it is confirmed that the first movement operation is performed by a preset first touch object and the first movement operation is in the target area, then the first writing application activates the handwriting input state and displays the first writing layer of the first writing application on the first interface, and then adds and displays the first writing strokes on the first writing layer according to the first movement operation.
[0172] It should be noted that determining whether the first movement operation is within the target area is used to determine whether the user's intention is handwriting input. When the first stroke of the first movement operation is detected, or when part of the first movement operation enters the target area, it can be determined that the user has a need for handwriting input. At this time, a first writing layer is added and displayed on the first interface. After that, the user can perform subsequent writing operations at any position in the first writing layer.
[0173] In one implementation, the color of the first handwriting corresponding to the first movement operation is a first preset color, and the method further includes:
[0174] After confirming that no operation targeting the target area has been received within the preset time, close the editing toolbar;
[0175] Receive a third movement operation occurring on the first interface; the third movement operation is performed by a preset first touch object;
[0176] Based on the third movement operation, the second handwriting is displayed; the color of the second handwriting is the second preset color.
[0177] For example, during the first movement operation, the first handwriting generated by the first movement operation can be handwriting of a first preset color (e.g., red); if no operation pointing to the target area is received within a preset time (e.g., 1 second), the editing toolbar is closed; at this time, if a third movement operation is received by a preset first touch object, a second handwriting of a second preset color (e.g., black) is displayed on the first writing layer.
[0178] In this solution, if no movement operation is received within a preset time, the editing toolbar is automatically closed; and the second handwriting corresponding to the received third movement operation is displayed, realizing the input and display of handwriting; on this basis, the interactive whiteboard can both convert handwriting to standard text and input and display handwriting, improving the flexibility and diversity of handwriting input.
[0179] Alternatively, the first writing application may also be called a global handwriting input application.
[0180] Optionally, the first touch object can be the tip of a writing pen, and the first writing application can be an application that comes pre-installed on the operating system of the interactive flat panel; alternatively, it can be an application downloaded from a third-party device or server, without specific limitations. Optionally, in this embodiment, the first writing application is an annotation application installed on the interactive flat panel's operating system.
[0181] For example, detecting whether the first movement operation is performed by a preset touch object can be achieved by directly detecting the touch signal or by detecting specific information of the touch object through an auxiliary sensor to determine the type of touch object.
[0182] For example, different types of touch objects can be distinguished based on the size of the contact point when the touch object comes into contact with the first interface; different types of touch objects can be distinguished based on the identifiable physical signals generated when the touch object comes into contact with the first interface; and different types of touch objects can be distinguished based on the identifying wireless signals generated when the touch object comes into contact with the first interface. The method for determining the type of touch object can be determined according to the actual situation, and no specific limitation is made here.
[0183] In another implementation, detecting whether the first movement operation is performed by a preset touch object is specifically determined by receiving the touch object type sent by the touch-sensitive display screen. Specifically, this application embodiment uses 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 the 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.
[0184] Specifically, when the interactive flat panel is powered on and the operating system is running, the first writing application starts and runs 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 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 supported.
[0185] 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 (the corresponding touch object type is a preset first medium type), 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 perform a writing operation by simply lifting the pen on the interactive tablet, or directly input or edit text in the text input box.
[0186] S306, after confirming that the first movement operation has ended, the first text content in the standard font is obtained based on the first handwriting.
[0187] For example, after confirming the termination of the first movement operation, the first handwriting is collected, and text recognition is performed on the first handwriting to obtain candidate text of at least one standard font; at least one candidate text is displayed in the candidate pop-up window; a selection operation occurs in the candidate pop-up window; and the content of the first text is determined based on the selection operation and at least one candidate text.
[0188] For example, after confirming the termination of the first movement operation, OCR text recognition is performed on the first handwriting, and N candidate texts are determined based on the recognition results; in response to the selection operation of the N candidate texts, the text content is determined. For example, if the three candidate texts include {"each", "each", "every other"}, and the user selects "each", then "each" is determined as the text content.
[0189] Optionally, a duration threshold is set; when the duration during which no movement operation is received reaches the preset duration, the first movement operation is determined to terminate, and then the text content in the corresponding standard font is obtained based on the first handwriting.
[0190] For example, the time threshold can be 300ms. If the user does not continue the first movement operation within 300ms, it indicates that the user has completed writing the current content, and OCR can then be performed on the first handwriting.
[0191] Optionally, the number of candidate texts can be preset; for example, performing text recognition on the first handwriting might yield 5 candidate texts. Alternatively, the number of candidate texts can be determined based on the confidence level corresponding to the recognition results; for example, performing text recognition on the first handwriting might yield candidate texts with a confidence level greater than 80%. Alternatively, performing text recognition on the first handwriting might, if all recognition results have a confidence level less than 60%, determine the text with the highest confidence level as the candidate text. The number of candidate texts can be determined according to actual circumstances and is not specifically limited here.
[0192] For example, when there is a target text editing box that has received input focus, text recognition can be performed on the first handwriting to obtain at least one candidate text, and at least one candidate text can be displayed in a candidate pop-up window. Based on at least one candidate text, the content of the first text can be determined.
[0193] Optionally, a candidate pop-up window is displayed at the target location, provided that the distance between the target location and the target text editing box is less than a preset distance threshold. The preset distance threshold can be set to 3 cm, 5 cm, etc., and is not specifically limited here.
[0194] For example, the candidate pop-up can be placed below the target text editing box; or, the candidate pop-up can be placed to the right of the target text editing box.
[0195] For example, after confirming the termination of the first movement operation, if it is determined that there is a target text editing box that has obtained input focus, then OCR text recognition is performed on the first handwriting to obtain two candidate texts, which are displayed in a candidate pop-up window; based on the candidate texts in the candidate pop-up window, the text content is selected; if there is no historical text in the target text editing box, the text content is input into the target text editing box; if there is historical text in the target text editing box, the text content in the standard font is concatenated into the historical text.
[0196] Candidate text can be displayed based on the confidence level of the OCR text recognition results.
[0197] The above solution, after converting the user's initial handwriting to a standard font, provides the user with at least one relevant candidate text for selection; and determines the text content based on the user's selection, thereby improving the efficiency and accuracy of the input text.
[0198] For example, when there is no target text editing box with input focus in at least one 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.
[0199] For example, 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. The first handwriting is then erased based on the third movement operation. Specifically, the third overlapping area between the third movement operation and the first handwriting is identified, and the handwriting within this third overlapping area is erased.
[0200] It should be noted that the third movement operation is an erasing operation of the first written strokes. Furthermore, the second object touched can be the end of the writing pen.
[0201] Optionally, the writing in the first handwriting can be completely erased or partially erased, depending on the actual situation, and no specific limitation is made here.
[0202] In the above scheme, if there is no target text editing box with input focus in at least one text editing box, a third movement operation is received, the third overlapping area between the third movement operation and the first writing is confirmed, and the writing in the third overlapping area of the first writing is erased; since the erasure of the writing is determined based on the third overlapping area between the third movement operation and the first writing, the accuracy of the writing to be erased can be ensured, thereby improving the convenience of user use.
[0203] For example, after displaying the first interface, the interactive whiteboard can activate accessibility services to monitor click events (also known as touch events) on the first interface. Each time a click operation performed by the user through a touch object is detected (hereinafter referred to as the first click operation), the click position on the first interface is determined. The first click operation can be a single click, double click, etc., but is not limited to these. Here, the click operation can be performed by the first touch object or a third touch object. The click position, also known as the landing point position, can be determined after detecting a click event, indicating the area where each control on the first interface is located. The area where each control is located can be represented by coordinate data, such as (100, 100, 200, 300), indicating that the upper left corner of the control's area is (100, 100) and the lower right corner is (200, 300). After determining the area where each control is located, if the landing point of the first click operation is determined to be within the area of a certain control, then that control is determined to be the control that has received input focus.
[0204] Simultaneously, after detecting a click event, an accessibility service object can be generated. This object records the control information corresponding to the control that received input focus, and also records that the control is in a focused state. After confirming the termination of the first movement operation, it first checks if an accessibility service object exists. If it does, it determines whether the focused control is a text edit box based on the control information within the accessibility service object. If so, it confirms the existence of a target text edit box that receives input focus, and uses the text edit box recorded in the accessibility service object as the target text edit box for receiving input focus.
[0205] Optionally, when a text editing box is detected to have input focus, one or more second writing layers of the first writing application can be created after a preset waiting time. Each second writing layer corresponds to a text editing control in the first interface. The size of the second writing layer is greater than or equal to the size of the corresponding text editing box, and the second writing layer covers the corresponding text editing box. The second writing layer is used to obscure the covered text editing box to prevent accidental user operations on the covered text editing box, and to receive the first movement operation occurring on the first interface through the second writing layer.
[0206] The preset waiting time is, for example, 96ms, but it can also be 97ms or 95ms, etc. This embodiment does not limit it.
[0207] S307, Display the first text content in the target text editing box.
[0208] For example, if there is historical text in the target text editing box, the cursor position is at the corresponding click position of the first click operation, and the first text content in standard font is displayed at the indicated position of the cursor position in the target text editing box according to the first movement operation; if there is no historical text in the target text editing box, the cursor position is at the first text content in standard font displayed in the text editing box.
[0209] Specifically, after determining the first text content in the standard font corresponding to the first handwriting, the historical text in the target text editing box can be obtained. According to the user's needs, the text content and the historical text are concatenated to obtain the concatenated text. Then, the concatenated text replaces the historical text, thereby displaying the first text content in the target text editing box.
[0210] In one implementation, the first text content is displayed in the target text editing box while the first writing layer of the first application is automatically closed.
[0211] For example, if the aforementioned steps determine that the user's first movement operation is for entering text content in the text editing box, then after converting the first movement operation into the corresponding text content and entering it into the text editing box, the first writing layer is closed.
[0212] In this solution, the first writing layer is automatically closed while the first text content is displayed. At this time, the user can still perform text operations through the editing toolbar. Without the user's manual operation, they can perform click operations, page turning operations, etc. on the first interface, improving the convenience of handwriting input and other interface operations.
[0213] In another implementation, a fourth movement operation is received on the first interface, and the fourth movement operation is not directed to the target area;
[0214] Based on the fourth movement operation, a third writing stroke is added and displayed on the first writing layer;
[0215] After confirming the termination of the fourth movement operation, the second text content in the standard font is obtained based on the third handwriting and displayed in the target text editing box.
[0216] For example, if it is detected that the user's movement operation on the first interface does not point to the target area, then according to the user's fourth movement operation, a third handwriting is added and displayed on the first writing layer; after confirming that the fourth movement operation has ended, the third handwriting is converted into second text content in a standard font; and the second text content is displayed in the target text editing box.
[0217] In this solution, after adding a writing layer to the first interface, the user can write at any position on the first writing layer, that is, the fourth movement operation does not point to the target area; after the fourth movement operation ends, the corresponding third writing handwriting is converted into the second text content in standard font and displayed, which enables writing at any position on the first interface, thereby directly inputting text content and improving the flexibility of handwriting input.
[0218] Furthermore, after the step of displaying the second text content in the target text editing box, a close operation is received on the editing toolbar, closing the editing toolbar and closing the first writing layer.
[0219] For example, an editing toolbar is displayed near the target area, and a close control is provided on the editing toolbar. When the device detects a close operation on the editing toolbar, indicating that the user may have finished writing input, it controls the editing toolbar to close with the first writing layer. After the editing toolbar is closed with the first writing layer, the user can perform other operations on the first interface, such as page turning, swiping, and selection.
[0220] In this solution, by monitoring the user's operation on the editing toolbar, it is determined whether to close the editing toolbar and the first writing layer, so that disabling the handwriting input function can meet the user's own needs and improve the convenience and autonomy of handwriting input.
[0221] In one implementation, after the first text content is displayed in the target text editing box, a fifth movement operation can be received, which passes through the text editing box; if it is confirmed that the fifth movement operation is performed by a preset first touch object, then the editing method corresponding to the fifth movement operation is determined according to the fifth movement operation; the first text content is edited according to the editing method; and the edited first text content is displayed in the target text editing box.
[0222] Optionally, the fifth movement operation can be either text selection or text deletion.
[0223] For example, after displaying the first writing layer overlaid on the first interface, a fifth movement operation occurring on the first writing layer is received; and it is determined whether the fifth movement operation is performed by a preset touch object; if so, the corresponding editing method is determined according to the fifth movement operation; and then the text content is edited to display the edited text content. For example, when the fifth movement operation is text deletion, a text deletion operation occurring on the first writing layer is received.
[0224] For example, detecting whether the fifth movement operation is performed by a preset touch object can be achieved by directly detecting the touch signal or by detecting specific information of the touch object through an auxiliary sensor to determine the type of the touch object. The specific detection method can refer to the detection method in the aforementioned disclosed embodiments, and will not be repeated here.
[0225] In the above scheme, once the text content is displayed in the target text editing box, if it is determined that the fifth movement operation is performed by a preset second touch object, the corresponding editing method can be determined based on the fifth movement operation; the existing text content can be edited; and the edited text content can be obtained. By detecting the touch object, the user's editing intention can be determined, avoiding recognition errors caused by the first touch object, and improving the accuracy of modifying and editing the text content. The user can perform the fifth movement operation through the second touch object, which further improves the convenience of editing text content.
[0226] When it is confirmed that the fifth movement operation is performed by the preset first touch object, the editing method corresponding to the fifth movement operation is determined according to the fifth movement operation.
[0227] In one implementation, the editing method corresponding to the fifth move operation is determined based on the fifth move operation, including:
[0228] The fourth writing stroke is added and displayed on the first writing layer based on the fifth movement operation;
[0229] When it is confirmed that the fifth movement operation passes through the text content displayed in the target text editing box, and the fourth handwriting is the first preset handwriting, the editing method corresponding to the fifth movement operation is determined to be deleting text;
[0230] For example, the fifth movement operation could be drawing a horizontal line on the text displayed in a text editing box.
[0231] When it is confirmed that the fifth movement operation passes through the text content displayed in the target text editing box, and the fourth handwriting is the second preset handwriting, the editing method corresponding to the fifth movement operation is determined to be selected text;
[0232] For example, the fifth movement operation could be to draw a wavy line on the text displayed in the text editing box.
[0233] Once it is confirmed that the fourth handwriting is the third preset handwriting, the editing method corresponding to the fifth movement operation is determined to be either splitting or combining text.
[0234] For example, the fifth movement operation could be drawing vertical lines between the text content displayed in the target text editing box, drawing vertical lines between the split text content can group the text, and drawing vertical lines between the grouped text content can split the text.
[0235] The above scheme allows for different preset handwriting styles to correspond to different editing methods. By determining the handwriting style of the fifth movement operation, the editing method corresponding to the fifth movement operation can be determined quickly, thereby improving writing efficiency.
[0236] In one implementation, when the editing mode corresponding to the fifth move operation is "delete text", the content of the first text is edited according to the editing mode, including:
[0237] Determine the first overlapping area between the fourth handwriting and the first text content;
[0238] Based on the first overlapping region, determine the third text content in the first overlapping region;
[0239] Delete the third text content.
[0240] For example, during the editing process, a first overlapping area is determined to be where the user's fourth handwriting overlaps with the first text content in the text editing box; and a third text content in the first overlapping area is determined based on the first overlapping area; and the third text content is deleted.
[0241] Figure 6 This is a schematic diagram illustrating a text deletion scenario provided in an embodiment of this application. For example... Figure 6 As shown, upon receiving the fifth movement operation and determining that the fourth handwriting is a horizontal line 601, the horizontal line can be considered equivalent to a long press operation by the user. At this time, the code simulates the user's long press event to determine the coordinates of the first and last segments of the fourth handwriting. An ACTION_DOWN event is sent at the first segment coordinates, and then ACTION_MOVE events are continuously simulated and sent towards the last segment coordinates. When the last segment coordinates are reached, an ACTION_UP event is sent. At this time, the first overlapping area can be determined. The first text content in the first overlapping area can be determined as the third text content, namely the text "project results" covered by the horizontal line 601. Afterwards, the "project results" in the text editing box 600 is deleted by sending a DELETE event.
[0242] In the above scheme, when the editing mode corresponding to the fifth movement operation is to delete text, the first overlapping area between the fourth handwriting and the first text content is determined; the third text content is determined from the target text editing box based on the first overlapping area, and then the third text content in the first text content is deleted; since the third text content is the text content covered by the first overlapping area, the accuracy of the third text content can be improved, thereby enhancing the user experience.
[0243] Exemplarily, when the editing method corresponding to the fifth moving operation is to delete text, according to the editing method, editing the first text content includes: determining the first circumscribed rectangle of the fourth writing stroke in the target text editing box and the second circumscribed rectangle of the first text content; determining the intersection area between the first circumscribed rectangle and the second circumscribed rectangle; determining the fourth text content covered by the intersection area; and deleting the fourth text content in the first text content.
[0244] Specifically, in the target text editing box, obtain the first circumscribed rectangle of the fourth writing stroke and the second circumscribed rectangle of the first text content through the Text Pattern attribute of the target text editing box, and determine the intersection area between the first circumscribed rectangle and the second circumscribed rectangle; then obtain the fourth text content covered by the intersection area through the RangeFromPoint interface.
[0245] Exemplarily, after determining the fourth text content covered by the intersection area, delete the fourth text content in the first text content; or, based on the historical text and the fourth text content in the target text editing box, determine the first sub-text before the fourth text content and the second sub-text after the fourth text content in the historical text; splice the first sub-text and the second sub-text to obtain an updated text; and display the updated text in the target text editing box.
[0246] Specifically, the fourth text content can be selected through the Select interface and a delete message can be simulated to delete the fourth text content in the historical text. Or, splice the first sub-text and the second sub-text to obtain an updated text, and replace the historical text with the updated text through the SetValue interface.
[0247] In the above solution, when the editing method corresponding to the fifth moving operation is to delete text, determine the intersection area between the first circumscribed rectangle and the second circumscribed rectangle, and determine the fourth text content covered by the intersection area, and then delete the fourth text content in the first text content; since the fourth text content is the text content covered by the intersection area, the accuracy of the fourth text content can be improved, thereby enhancing the user experience.
[0248] Figure 7 It is a schematic diagram of another text deletion scenario provided by an embodiment of the present application.
[0249] Exemplarily, as Figure 7 shown, when the editing method corresponding to the fifth moving operation is to delete text, in the target text editing box 700, obtain the first circumscribed rectangle of the fourth writing stroke and the second circumscribed rectangle of the first text content, and determine that the fourth text content covered by the intersection area between the first circumscribed rectangle and the second circumscribed rectangle is "of sd".
[0250] Furthermore, the "Results" can be selected through the Select interface, and a deletion message can be simulated to delete the "Results"; or, the fourth text content 701 can be determined to be "Results", and based on the fourth text content 701 "Results" and the historical text 702 "Project Results -> Team Members", the first subtext can be determined to be "Project" and the second subtext to be "-> Team Members". The first subtext and the second subtext can be concatenated to obtain the updated text "Project -> Team Members", and the "Project -> Team Members" can be updated to the target text edit box through the SetValue interface.
[0251] In one implementation, when the editing mode corresponding to the fifth movement operation is selected text, the content of the first text is edited according to the editing mode, including:
[0252] Determine the second overlapping area between the fourth handwriting and the text content;
[0253] Based on the second overlapping region, determine the fifth text content within the second overlapping region;
[0254] Select the fifth text content within the first text content.
[0255] For example, if the text content is "Project Results -> Team Members", and the fifth text content within the second overlapping area of the fourth handwriting and the text content is identified as "Team Members", then "Team Members" will be selected. Understandably, the selected text content can be highlighted or displayed in a different way than other text content to improve user viewing convenience.
[0256] In the above scheme, when the editing mode corresponding to the fifth movement operation is selected text, the fifth text content in the second overlapping area of the fourth handwriting and the first text content is determined, and the fifth text content in the first text content is selected. Since the fifth text content is determined by the second overlapping area of the fourth handwriting and the first text content, the accuracy of the fifth text content can be improved, thereby enhancing the user's convenience.
[0257] In one implementation, when the editing mode corresponding to the fifth move operation is splitting or combining text, the content of the first text is edited according to the editing mode, including:
[0258] Determine the target position of the fourth handwriting within the target text editing box;
[0259] Based on the target location, determine the sixth text content adjacent to the target location in the target text editing box;
[0260] Split or combine the sixth text content within the first text content.
[0261] For example, the first text content is "Project Results -> Team Members". Determine that the target position of the fourth writing stroke in the target text editing box is the position between the character "Pr" and the character "oj". Determine that the sixth text content adjacent to the target position in the target text editing box is "Project" and "Results -> Team Members". Split the sixth text content in the first text content to obtain the split text as "Project Results -> Team Members".
[0262] Alternatively, the first text content is "Project Results -> Team Members". Determine that the target position of the fourth writing stroke in the target text editing box is the position between the character "Pr" and the character "oj". Determine that the sixth text content adjacent to the target position in the target text editing box is "Project" and "Results -> Team Members". Combine the sixth text content in the first text content to obtain the combined text as "Project Results -> Team Members".
[0263] In the above solution, when the editing method corresponding to the fifth moving operation is splitting text or combining text, determine the sixth text content adjacent to the target position in the target text editing box, and split or combine the sixth text content in the text content. Since only simple operations need to be performed by the user during the process of splitting or combining the sixth text content in the text content, the convenience of the user for text writing is improved.
[0264] In one implementation, receive a second moving operation occurring on the first interface; the second moving operation does not point to the target area;
[0265] Update the first interface according to the second moving operation;
[0266] Display the updated first interface. Receive a second moving operation occurring on the first interface; the second moving operation does not point to the target area;
[0267] Update the first interface according to the second moving operation;
[0268] Display the updated first interface.
[0269] Optionally, the second moving operation can be any one of a writing operation, text selection, and text deletion.
[0270] In the above solution, when it is determined that the second moving operation is performed by a second touch object, update the currently displayed first interface according to the second moving operation to display the updated first interface. By performing the moving operation through different preset touch objects, the convenience of the user during the writing process can be improved, thereby improving the user experience.
[0271] Furthermore, updating the primary interface can be done through either a swipe or a page-turning mechanism. Providing different update methods allows users to choose the appropriate option, thus improving the user experience.
[0272] The above solution can update the first interface by swiping to update and turning pages; by providing different update methods, users can choose different update methods, thereby improving the user experience.
[0273] The above technical solution, based on the first click operation occurring on the first interface, displays a cursor at the position corresponding to the first click operation; and determines the target area on the first interface based on the cursor's display position, displaying an editing toolbar for text editing near the target area; when it is confirmed that the first movement operation is performed by a preset first touch object and the starting point of the first movement operation is located in the target area, a first writing layer of the first writing application is overlaid on the first interface, 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; this solution can also realize the text content in standard font based on a preset touch object. The user can write anywhere on the first interface to directly input text or generate handwriting, eliminating the need to repeatedly open and close the soft keyboard or writing software, thus improving the convenience of writing on the interactive tablet. Furthermore, this solution determines the cursor position based on the user's first click, thereby identifying the corresponding target area. When a movement triggered by a preset touch object is detected within the target area, a writing layer is added to receive the user's handwriting, improving the accuracy of handwriting input detection. In summary, this solution improves the accuracy of handwriting input detection while enabling global handwriting input, thereby increasing writing efficiency and enhancing the user experience.
[0274] Figure 8 This is a schematic flowchart illustrating another writing method provided in the embodiments of this application.
[0275] For example, such as Figure 8 As shown, the method includes the following procedures:
[0276] S801 receives the first click operation that occurs on the first interface.
[0277] For example, the first interface of the interactive flat panel includes at least one text editing box; the user performs a first click operation on the first interface of the interactive flat panel, and the system receives the user's first click operation; based on the user's first click operation, the target text editing box can be determined from multiple text editing boxes.
[0278] S802, upon receiving the first click operation, sends a call command to the input method through the target text editing box.
[0279] For example, after the interactive whiteboard receives the first click operation, it determines the text editing box corresponding to the first click operation as the target text editing box; and sends a call command to the input method through the target text editing box.
[0280] S803, in response to the call command, displays the input method window via the input method; and sends a cursor position acquisition command to the target text editing box.
[0281] For example, after receiving the call instruction, the input method displays the input method window, i.e., the soft keyboard, on the first interface; and through process communication between the input method and the text editing box, sends a cursor position acquisition instruction to the target text editing box to obtain the cursor position corresponding to the first click operation.
[0282] Optionally, after the input method completes its invocation, it sends a notification message to the first writing application to inform it that the user has a text input need at this time.
[0283] S804 responds to the cursor position acquisition command, acquires the cursor position through the target text editing box, and sends the cursor position to the input method.
[0284] For example, after receiving the cursor position acquisition instruction, the target text editing box acquires the cursor position corresponding to the first click operation and sends the cursor position to the input method.
[0285] Optionally, the implementation method for determining the cursor position based on the first click operation can be found in [reference needed]. Figure 3 The relevant description of S303 is not repeated here in the embodiments of this application.
[0286] S805 sends the cursor position to the first writing application via the input method.
[0287] The first writing program can instruct the global handwriting input process corresponding to the global handwriting input application.
[0288] For example, after receiving the cursor position sent by the target text editing box, the input method sends the cursor position to the first writing application.
[0289] S806, the first writing application displays an editing window in the area corresponding to the cursor position; and listens for movement operations.
[0290] For example, after obtaining the cursor position sent by the input method, the first writing application displays an editing window, i.e., the aforementioned floating window, near the cursor position; and listens for the user's movement operations.
[0291] Optionally, the function of the editing window can be referred to the function of the floating window described above; this application embodiment will not elaborate further here.
[0292] S807, the first writing application sends a target hide command to the input method; the target hide command instructs the input method to hide the input method window.
[0293] For example, the system involved in the embodiments of this application can set the default text input method to handwriting input; however, due to the system settings, when a click operation on the text editing box is received, the input method window is automatically displayed; at this time, the first writing application can send a target hiding command to the input method so that the input method hides the input method window.
[0294] Optionally, after obtaining the cursor position, the corresponding target area is determined based on the cursor position. The process for determining the target area can be found in [reference needed]. Figure 3 The relevant description in the document.
[0295] Alternatively, the implementation methods of S801 to S807 can be found in [reference needed]. Figure 3 The relevant descriptions of S301 to S303 are not repeated here in the embodiments of this application.
[0296] S808 receives a first movement operation that occurs on the first interface.
[0297] Optionally, the first movement operation can be any of the following: writing operation, text selection, or text deletion.
[0298] For example, a user performs a first movement operation on an interactive tablet; if the first movement operation is a writing operation, the user receives the writing operation that occurs on the first interface.
[0299] Optionally, after receiving the first movement operation, it is determined whether the first movement operation is performed by a preset first touch object and whether the first movement operation is located in the target area; when it is determined that the first movement operation is performed by the first touch object and is located in the target area, a first writing layer is added and displayed on the first interface to receive subsequent handwriting input operations from the user.
[0300] Alternatively, the implementation of S808 can be found in [reference needed]. Figure 3 The relevant descriptions of S304 and S305 are not repeated here in the embodiments of this application.
[0301] S809, after confirming that the first movement operation has ended, the first handwriting is recognized by OCR through the first writing application to obtain the text content.
[0302] For example, after detecting that the user's first movement operation has ended, the first writing application is used to perform OCR recognition on the first handwriting corresponding to the first movement operation to obtain the converted text content in standard font.
[0303] Optionally, the termination of the first movement operation can be determined by the duration during which no movement operation is received.
[0304] For example, a time threshold is set, such as 300ms; when the time without receiving a mobile operation reaches 300ms, the first mobile operation is determined to be terminated.
[0305] Alternatively, the implementation of S809 can be found in [reference needed]. Figure 3 The relevant descriptions of S305 and S306 are not repeated here in the embodiments of this application.
[0306] S810 sends text content to the input method via the first writing application.
[0307] For example, after the first handwriting is converted into text content through the first writing application, the text content is sent to the input method.
[0308] S811 uses the input method to fill the target text editing box with text content.
[0309] For example, after obtaining the text content, the input method adds the text content to the position corresponding to the cursor position in the target text editing box, and obtains the final text content, which is then displayed on the first interface.
[0310] Optionally, after this, the system can also receive user editing operations on the text content; and perform corresponding editing processing on the text content in the text editing box according to the editing operations.
[0311] Alternatively, the implementation methods of S810 and S811 can be found in [reference needed]. Figure 3 The relevant description of S307 is not repeated here in the embodiments of this application.
[0312] The above technical solution describes the writing method provided in the embodiments of this application through the transmission of instructions and information between multiple modules. During the execution of this writing method, the text editing box, the input method, and the first writing application are interconnected and each performs its own function. Users do not need to repeatedly open and close the soft keyboard or writing software to input text or write handwriting, thereby improving the writing efficiency of handwriting input on the interactive tablet and thus enhancing the user experience.
[0313] The above text combined Figures 1 to 8 The writing method provided in the embodiments of this application has been described in detail; the following will be combined with Figure 9 and Figure 10The apparatus embodiments of this application are described in detail below. It should be understood that the apparatus in the embodiments of this application can perform the various methods described in the foregoing embodiments of this application, that is, the specific working processes of the various products described below can be referred to the corresponding processes in the foregoing method embodiments.
[0314] Figure 9 This is a schematic diagram of the structure of a writing device provided in an embodiment of this application.
[0315] For example, such as Figure 9 As shown, the writing device 900 includes:
[0316] The first display module 901 is used to display a first interface, which includes at least one text editing box.
[0317] The first receiving module 902 is used to receive a first click operation occurring on the first interface; the first click operation points to at least one target text editing box in a text editing box.
[0318] The first determining module 903 is used to display a cursor at the position corresponding to the first click operation, determine the target area in the first interface based on the position of the cursor, and display an editing toolbar near the target area; the editing toolbar is used to trigger the editing of the text content in the target text editing box;
[0319] The second receiving module 904 is used to receive the first movement operation that occurs on the first interface;
[0320] The first confirmation module 905 is used to confirm that the first movement operation is performed by a preset first touch object and that the starting point of the first movement operation is located in the target area. Then, the first writing layer of the first writing application is superimposed on the first interface, and the first writing handwriting is added and displayed on the first writing layer based on the first movement operation.
[0321] The second confirmation module 906 is used to obtain the first text content in standard font based on the first handwriting after confirming that the first movement operation has ended.
[0322] The second display module 907 is used to display the first text content in the target text editing box.
[0323] In one possible implementation, the writing device 900 is also used to close the first writing layer.
[0324] In one possible implementation, the writing device 900 is further configured to receive a second movement operation occurring on the first interface; the second movement operation does not point to a target area; update the first interface according to the second movement operation; and display the updated first interface.
[0325] In one possible implementation, the writing device 900 is also used for sliding updates of the first interface; or for turning pages on the first interface.
[0326] In one possible implementation, the color of the first handwriting is a first preset color. The writing device 900 is also used to confirm that no operation pointing to the target area has been received within a preset time, close the editing toolbar; receive a third movement operation occurring on the first interface; the third movement operation is performed by a preset first touch object; and display the second handwriting according to the third movement operation; the color of the second handwriting is the second preset color.
[0327] In one possible implementation, the writing device 900 is further configured to receive a fourth movement operation on the first interface, the fourth movement operation not pointing to a target area; based on the fourth movement operation, add and display a third writing stroke on the first writing layer; after confirming that the fourth movement operation has terminated, obtain a second text content in a standard font based on the third writing stroke, and display the second text content in the target text editing box.
[0328] In one possible implementation, after the step of displaying the second text content in the target text editing box, the writing device 900 is further configured to receive a closing operation on the editing toolbar, closing the editing toolbar and closing the first writing layer.
[0329] In one possible implementation, the first determining module 903 is specifically used to call the input method when the first click operation is received, the input method instructs the target text editing box to obtain the click position of the first click operation; determine the position corresponding to the first click operation based on the click position and the text information in the target text editing box; and display the cursor at the position corresponding to the first click operation.
[0330] In one possible implementation, the first determining module 903 is specifically used to determine the click position as the position corresponding to the first click operation when there is text information in the target text editing box; and to determine the preset position in the target text editing box as the position corresponding to the first click operation when there is no text information in the target text editing box.
[0331] In one possible implementation, the first determining module 903 is further configured to determine the preset area where the cursor is located as the target area.
[0332] In one possible implementation, the writing device 900 is further configured to receive a fifth movement operation that passes through the target text editing box;
[0333] If it is confirmed that the fifth movement operation is performed by the preset first touch object, then the editing method corresponding to the fifth movement operation is determined according to the fifth movement operation;
[0334] Edit the content of the first text according to this editing method;
[0335] The first edited text content is displayed in the target text editing box.
[0336] In one possible implementation, the writing device 900 is also used to add and display a fourth writing stroke on the first writing layer based on the fifth movement operation;
[0337] When it is confirmed that the fifth movement operation passes through the first text content displayed in the target text editing box, and the fourth handwriting is the first preset handwriting, the editing method corresponding to the fifth movement operation is determined to be deleting text;
[0338] When it is confirmed that the fifth movement operation passes through the first text content displayed in the target text editing box, and the fourth handwriting is the second preset handwriting, the editing mode corresponding to the fifth movement operation is determined to be selected text;
[0339] Once it is confirmed that the fourth handwriting is the third preset handwriting, the editing method corresponding to the fifth movement operation is determined to be either splitting or combining text.
[0340] In one possible implementation, when the editing mode corresponding to the fifth movement operation is text deletion, the writing device 900 is further configured to determine the first overlapping area between the fourth handwriting and the first text content;
[0341] Based on the first overlapping region, the third text content in the first overlapping region is determined;
[0342] Delete the third text content.
[0343] In one possible implementation, when the editing mode corresponding to the fifth movement operation is to delete text, the writing device 900 is further used to determine the first bounding rectangle of the fourth writing stroke in the target text editing box, and the second bounding rectangle of the first text content;
[0344] Based on the first bounding rectangle and the second bounding rectangle, determine the intersection area of the first bounding rectangle and the second bounding rectangle;
[0345] Determine the fourth text content covered by the intersection region;
[0346] Delete the fourth text content within the first text content.
[0347] In one possible implementation, when the editing mode corresponding to the fifth movement operation is selected text, the writing device 900 is further used to determine the second overlapping area between the fourth handwriting and the first text content;
[0348] Based on the second overlapping region, the fifth text content within the second overlapping region is determined;
[0349] Select the fifth text content within the first text content.
[0350] In one possible implementation, when the editing mode corresponding to the fifth movement operation is splitting or combining text, the writing device 900 is further used to determine the target position of the fourth writing stroke in the target text editing box;
[0351] Based on the target location, determine the sixth text content adjacent to the target location in the target text editing box;
[0352] The sixth text content within the first text content is split or combined.
[0353] In one possible implementation, the writing device 900 is also used for swiping updates of the first interface; or for turning pages on the first interface.
[0354] In one possible implementation, the second confirmation module 906 is specifically used to perform text recognition on the first handwriting to obtain candidate text of at least one standard font.
[0355] Display at least one of the candidate texts in the candidate pop-up window;
[0356] Receive the selection operation that occurs in this candidate pop-up window;
[0357] Based on the selection operation and at least one of the candidate texts, the content of the first text is determined.
[0358] It should be noted that the writing device described above is embodied in the form of functional units. The term "module" here can be implemented in software and / or hardware, without specific limitations.
[0359] For example, a "module" can be a software program, hardware circuit, or a combination of both that implements the above functions. Hardware circuits may include application-specific integrated circuits (ASICs), electronic circuits, processors (e.g., shared processors, proprietary processors, or group processors) and memory for executing one or more software or firmware programs, combined logic circuits, and / or other suitable components that support the described functions.
[0360] Therefore, the units of the various examples described in the embodiments of this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0361] Figure 10 This is a schematic diagram of another interactive flat panel provided in an embodiment of this application.
[0362] For example, such as Figure 10 As shown, the interactive flat panel 100 includes a memory 1001 and a processor 1002. The memory 1001 stores executable program code 1003, and the processor 1002 is used to call and execute the executable program code 1003 to perform a writing method.
[0363] Furthermore, embodiments of this application also protect an apparatus that may include a memory and a processor, wherein the memory stores executable program code, and the processor is used to call and execute the executable program code to perform a writing method provided in embodiments of this application.
[0364] This embodiment can divide the device into functional modules based on the above method example. For example, each module can correspond to a separate function, 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 one logical functional division. In actual implementation, there may be other division methods.
[0365] When the device is divided into functional modules corresponding to each function, it may further include a first display module, a first receiving module, a first determining module, a second receiving module, a first confirming module, a second confirming module, and a second display module. It should be noted that all relevant content of each step involved in the above method embodiments can be referenced to the functional description of the corresponding functional module, and will not be repeated here.
[0366] It should be understood that the apparatus provided in this embodiment is used to perform the writing method described above, and therefore can achieve the same effect as the implementation method described above.
[0367] When using integrated units, the device may include a processing module and a storage module. When the device is applied to an interactive flat panel, the processing module can be used to control and manage the actions of the interactive flat panel. The storage module can be used to support the execution of relevant program code by the interactive flat panel.
[0368] The processing module may be a processor or a controller, which can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc., and the storage module may be a memory.
[0369] In addition, the device provided in the embodiments of this application may specifically be a chip, component or module. The chip may include a connected processor and a memory. The memory is used to store instructions. When the processor calls and executes the instructions, the chip can execute a writing method provided in the above embodiments.
[0370] This embodiment also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the above-described related method steps to implement a writing method provided in the above embodiment.
[0371] 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-ROM), microdrives, and 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 cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.
[0372] This embodiment 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 embodiment.
[0373] In this embodiment, the device, computer-readable storage medium, computer program product, or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0374] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0375] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0376] 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
1. A writing method, characterized in that, The writing method includes: Display a first interface, the first interface including at least one text editing box; Receive a first click operation occurring on the first interface; the first click operation points to a target text editing box in the at least one text editing box; A cursor is displayed at the location corresponding to the first click operation, and a target area in the first interface is determined based on the position of the cursor, and an editing toolbar is displayed near the target area; the editing toolbar is used to trigger the editing of the text content in the target text editing box; Receive a first movement operation occurring on the first interface; If it is confirmed that the first movement operation is performed by a preset first touch object and the starting point of the first movement operation is located in the target area, then the first writing layer of the first writing application is superimposed on the first interface, and the first writing handwriting is added and displayed on the first writing layer based on the first movement operation. After confirming that the first movement operation has terminated, the first text content in standard font is obtained based on the first handwriting. The first text content is displayed in the target text editing box.
2. The method according to claim 1, characterized in that, The process of displaying the text content in the target text editing box also includes: Close the first writing layer.
3. The method according to claim 2, characterized in that, The method further includes: A second movement operation occurring on the first interface is received; the second movement operation is not directed at the target area. The first interface is updated according to the second movement operation; The updated first screen is displayed.
4. The method according to claim 2, characterized in that, The color of the first handwriting is a first preset color, and the method further includes: If no operation targeting the target area is received within the preset time, close the editing toolbar; Receive a third movement operation occurring on the first interface; the third movement operation is performed by a preset first touch object; According to the third movement operation, the second handwriting is displayed; the color of the second handwriting is the second preset color.
5. The method according to claim 1, characterized in that, The method further includes: Receive a fourth movement operation on the first interface, wherein the fourth movement operation is not directed at the target area; Based on the fourth movement operation, a third writing stroke is added and displayed on the first writing layer; After confirming the termination of the fourth movement operation, the second text content in standard font is obtained based on the third handwriting and displayed in the target text editing box.
6. The method according to claim 5, characterized in that, After the step of displaying the second text content in the target text editing box, the method further includes: The system receives a close operation on the editing toolbar, closes the editing toolbar, and closes the first writing layer.
7. The method according to claim 1, characterized in that, Displaying the cursor at the position corresponding to the first click operation includes: When the first click operation is received, the input method is invoked, and the input method instructs the target text editing box to obtain the click position of the first click operation; Based on the click location and the text information in the target text editing box, determine the position corresponding to the first click operation; and display a cursor at the position corresponding to the first click operation.
8. The method according to claim 7, characterized in that, Determining the position corresponding to the first click operation based on the click position and the text information in the target text editing box includes: When the text information exists in the target text editing box, the click position is determined as the position corresponding to the first click operation; If the text information is not present in the target text editing box, the preset position in the target text editing box is determined as the position corresponding to the first click operation.
9. The method according to any one of claims 1 to 8, characterized in that, Determining the target area in the first interface based on the cursor position includes: The preset area where the cursor is located is determined as the target area.
10. The method according to any one of claims 1 to 8, characterized in that, After the first text content is displayed in the target text editing box, the method further includes: Receive a fifth movement operation, the fifth movement operation passing through the target text editing box; If it is confirmed that the fifth movement operation is performed by a preset first touch object, then the editing method corresponding to the fifth movement operation is determined according to the fifth movement operation; Edit the first text content according to the editing method described above; The edited first text content is displayed in the target text editing box.
11. The writing method according to claim 10, characterized in that, The step of determining the editing method corresponding to the fifth movement operation based on the fifth movement operation includes: Based on the fifth movement operation, a fourth writing stroke is added and displayed on the first writing layer; When it is confirmed that the fifth movement operation passes through the text content displayed in the target text editing box, and the fourth handwriting is the first preset handwriting, the editing method corresponding to the fifth movement operation is determined to be deleting text; When it is confirmed that the fifth movement operation passes through the text content displayed in the target text editing box, and the fourth handwriting is the second preset handwriting, the editing mode corresponding to the fifth movement operation is determined to be selected text; When it is confirmed that the fourth handwriting is the third preset handwriting, the editing method corresponding to the fifth movement operation is determined to be either splitting text or combining text.
12. The method according to claim 11, characterized in that, When the editing mode corresponding to the fifth movement operation is to delete text; the step of editing the content of the first text according to the editing mode includes: Determine the first overlapping area between the fourth handwriting and the first text content; Based on the first overlapping region, determine the third text content in the first overlapping region; Delete the aforementioned third text content.
13. The method according to claim 11, characterized in that, When the editing mode corresponding to the fifth movement operation is to delete text; the step of editing the content of the first text according to the editing mode includes: The fourth handwriting is determined to be within the first bounding rectangle of the target text editing box, and the second bounding rectangle of the first text content; Based on the first bounding rectangle and the second bounding rectangle, determine the intersection area of the first bounding rectangle and the second bounding rectangle; Determine the fourth text content covered by the intersection region; The fourth text content in the first text content is deleted.
14. The method according to claim 11, characterized in that, When the editing mode corresponding to the fifth movement operation is selected text; the step of editing the content of the first text according to the editing mode includes: Determine the second overlapping area between the fourth handwriting and the first text content; Based on the second overlapping region, determine the fifth text content in the second overlapping region; Select the fifth text content within the first text content.
15. The method according to claim 11, characterized in that, When the editing method corresponding to the fifth movement operation is splitting text or combining text; the step of editing the content of the first text according to the editing method includes: Determine the target position of the fourth handwriting stroke within the target text editing box; Based on the target location, determine the sixth text content adjacent to the target location in the target text editing box; The sixth text content in the first text content is split or combined.
16. The method according to claim 3, characterized in that, The update of the first interface includes: The first interface can be updated by sliding; or the first interface can be turned by flipping pages.
17. The method according to any one of claims 1 to 8, characterized in that, The text content obtained based on the first handwriting style and using the standard font includes: Text recognition is performed on the first handwriting to obtain candidate text in at least one standard font; Display at least one of the candidate texts in the candidate pop-up window; Receive the selection operation that occurs in the candidate pop-up window; Based on the selection operation and at least one of the candidate texts, the text content is determined.
18. An interactive flat panel, characterized in that, The interactive flat panel includes: Memory, used to store executable program code; A processor is configured to call and run the executable program code from the memory, causing the interactive tablet to perform the writing method as described in any one of claims 1 to 17.
19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the writing method as described in any one of claims 1 to 17.