Writing editing method, device and storage medium
Patent Information
- Application Number
- CN202510235647.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2026-08-28
AI Technical Summary
在书写过程中,如果需要对书写笔迹的笔迹颜色、笔迹宽度、笔迹类型等笔迹相关参数进行切换时,需要点开二级菜单选择和切换参数信息,然后在切换完成后继续书写,从而在书写过程中变换书写笔迹的笔迹样式,比较繁琐
[0028] Fourthly, a computer-readable storage medium is provided, which stores a computer program, the computer program including program instructions, which, when executed by a processor, cause the processor to perform the writing and editing method of the first aspect.
Smart Images

Figure CN122653516A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of writing and editing, and in particular to writing and editing methods, devices and storage media. Background Technology
[0002] An electronic whiteboard, also known as an interactive whiteboard, typically consists of an electronic sensor whiteboard and a software whiteboard operating system. It has multiple functions such as writing, multimedia, and interactive features, and is widely used in education and meetings.
[0003] Electronic whiteboards have writing functions similar to ordinary whiteboards, allowing users to write on them using touch objects such as fingers or pens. However, if users need to switch handwriting parameters such as color, width, and type during writing, they must open a secondary menu to select and switch parameters, and then continue writing. This process of changing handwriting styles while writing is rather cumbersome. Summary of the Invention
[0004] This application provides writing and editing methods, devices, and storage media, aiming to improve the convenience of writing.
[0005] Firstly, a writing and editing method is provided, including:
[0006] The writing interface is displayed, and the writing interface includes a writing toolbar, which includes at least two writing parameter controls. The writing parameter controls are used to control the handwriting-related parameters of the writing.
[0007] Receive a first touch input operation applied to the writing interface;
[0008] Detect the touch medium type corresponding to the first touch input operation, wherein the touch medium type is used to represent the medium type of the touch object corresponding to the touch input operation;
[0009] If the touch medium type corresponding to the first touch input operation is a first preset medium type, and the first touch function setting switch is turned on, the touch input operation is responded to in the writing interface according to the touch response mode corresponding to the first touch function setting switch; the first preset medium type is a medium type other than the second preset medium type, the second preset medium type is a preset medium type for writing, the first touch function setting switch is the touch function setting switch of the touch medium type corresponding to the first touch input operation, and the touch function setting switch is used to set the touch response mode.
[0010] In this technical solution, a writing interface is displayed, including a writing toolbar with at least two writing parameter controls. These controls are used to control handwriting-related parameters. The interface receives touch input operations and detects the touch medium type. When the touch medium type is a media type other than the preset writing media type, and the touch function setting switch for that media type is enabled, the touch input operation is responded to in the writing interface according to the touch response mode corresponding to the enabled touch function setting switch for that media type. This is equivalent to responding to touch input operations in a media type other than the preset writing media type. Other media types can be set with touch function setting switches, and the response mode for touch input operations on the writing interface is determined by whether the touch function setting switch is turned on. This allows users to flexibly set the touch function of the touch object, thereby facilitating writing and editing and improving writing flexibility. In addition, by displaying at least two writing parameter controls in the writing toolbar, users can set different handwriting-related parameters for different writing parameter controls in advance before writing. During writing, the handwriting style can be changed by switching the selected writing parameter control without having to open a secondary menu, thus quickly switching the handwriting style and improving writing convenience.
[0011] In conjunction with the first aspect, in one possible implementation, responding to the first touch input operation in the writing interface according to the touch response mode corresponding to the first touch function setting switch includes: if the touch response mode corresponding to the first touch function setting switch is a writing mode, displaying a third handwriting corresponding to the first touch input operation in the writing interface, the third handwriting being a handwriting drawn according to the handwriting-related parameters of a first writing parameter control, the first writing parameter control being one of the at least two writing parameter controls, and the first writing parameter control being the writing parameter control selected when the first touch function setting switch is turned on; if the touch response mode corresponding to the first touch function setting switch is a selection mode, selecting the handwriting selected by the first touch input operation in the writing interface; if the touch response mode corresponding to the first touch function setting switch is an erase mode, erasing the handwriting corresponding to the first touch input operation in the writing interface.
[0012] Based on the touch response mode corresponding to the enabled touch function setting switch, the writing interface displays the handwriting drawn with the handwriting parameters of the writing parameter control selected by pressing the touch function setting switch, or selects the handwriting selected by the touch input operation, or erases the handwriting corresponding to the touch input operation, which can meet the user's writing and editing needs.
[0013] In conjunction with the first aspect, in one possible implementation, the method further includes: if the touch medium type corresponding to the first touch input operation is the second preset medium type, or if the touch medium type corresponding to the first touch input operation is the first preset medium type and the first touch function setting switch is not turned on, displaying the second writing handwriting corresponding to the first touch input operation in the writing interface, wherein the second writing handwriting is the writing handwriting drawn according to the handwriting-related parameters corresponding to the second writing parameter control, and the second writing parameter control is the writing parameter control that is selected among the at least two writing parameter controls.
[0014] When the medium type corresponding to the touch input operation is the preset medium type for writing or the touch function setting switch is not turned on, the writing handwriting corresponding to the touch input operation will be displayed in the writing interface, which can facilitate writing.
[0015] In conjunction with the first aspect, in one possible implementation, there are multiple first preset media types; the touch media type corresponding to the first touch input operation is the second preset media type; the touch function setting switch for the target media type is turned on, and the writing parameter control selected by turning on the touch function setting switch for the target media type is a third parameter control, the target media type is any one of the first preset media types, the third writing parameter control is one of the at least two writing parameter controls, and the handwriting-related parameters of the third writing parameter control are different from the handwriting-related parameters of the second writing handwriting parameter control; after displaying the second writing handwriting corresponding to the first touch input operation in the writing interface, the method further includes: receiving the second touch input operation acting on the writing interface; detecting the touch media type corresponding to the second touch input operation; if the touch media type corresponding to the second touch input operation is the target media type, displaying the third writing handwriting corresponding to the second touch input operation in the writing interface, the third writing handwriting being the writing handwriting drawn according to the handwriting-related parameters of the third writing parameter control.
[0016] When the touch function setting switch corresponding to the media type is turned on, and the handwriting parameters of the writing parameter control set by the turned-on touch function setting switch are different from the handwriting parameters of the selected writing parameter control, the user can change the handwriting style by switching the touch object corresponding to the touch input operation (such as switching between the pen tip and the pen tail), which can improve the convenience of handwriting switching.
[0017] In conjunction with the first aspect, in one possible implementation, after displaying the second handwriting corresponding to the first touch input operation in the writing interface, the method further includes: receiving a selection operation on a fourth writing parameter control, wherein the fourth writing parameter control is one of the at least two writing parameter controls, and the handwriting-related parameters of the fourth writing parameter control are different from the handwriting-related parameters of the second writing parameter control; receiving a third touch input operation applied to the writing interface; detecting the touch medium type corresponding to the third touch input operation; if the touch medium type corresponding to the third touch input operation is the second preset medium type, or, if the touch medium type corresponding to the third touch input operation is the first preset medium type and the third touch function setting switch is not turned on, displaying the fourth handwriting corresponding to the third touch input operation in the writing interface, wherein the third touch function setting switch is a touch function setting switch for the touch medium type corresponding to the third touch input operation, and the fourth handwriting is handwriting drawn according to the handwriting-related parameters of the fourth writing parameter control.
[0018] When a selection operation is received for the fourth writing parameter control in the writing interface, since the handwriting parameters of the fourth writing parameter control are different from those of the writing parameter control before switching, the writing handwriting is drawn according to the handwriting-related parameters of the writing parameter control after switching, which changes the handwriting style. Therefore, users can change the handwriting style by switching the selected writing parameter control, which can improve the convenience of writing switching.
[0019] In conjunction with the first aspect, in one possible implementation, the method further includes: displaying a touch function setting interface, the touch function setting interface including a first touch function setting switch; receiving an operation to turn on the first touch function setting switch; displaying multiple function options corresponding to the first touch function setting switch in the touch function setting interface, the multiple function options including a writing function option, a selection function option, and an erasing function option; receiving a selection operation for a target function option, the target function option being any one of the multiple function options; and determining the touch response mode corresponding to the target function option as the touch response mode corresponding to the first touch function setting switch.
[0020] By displaying a touch function interface that includes a touch function setting switch, the system can receive operations to turn on the touch function setting switch and select the corresponding function option. The touch response mode corresponding to the function option is then set as the touch response mode corresponding to the touch function setting switch, allowing users to easily and freely set the touch function of the object being touched.
[0021] In conjunction with the first aspect, in one possible implementation, after receiving the opening operation of the first touch function setting switch, the method further includes: receiving the closing operation of the first touch function setting switch.
[0022] Secondly, a writing and editing device is provided, comprising:
[0023] The display module is used to display the writing interface, which includes a writing toolbar. The writing toolbar includes at least two writing parameter controls, which are used to control the handwriting-related parameters of the writing strokes.
[0024] An operation receiving module is used to receive a first touch input operation applied to the writing interface;
[0025] The media type detection module is used to detect the touch media type corresponding to the first touch input operation;
[0026] The display module is further configured to respond to the first touch input operation in the writing interface according to the touch response mode corresponding to the first touch function setting switch if the touch medium type corresponding to the first touch input operation is a first preset medium type and the first touch function setting switch is turned on; the first preset medium type is a medium type other than the second preset medium type, the second preset medium type is a preset medium type for writing, the first touch function setting switch is a touch function setting switch for the touch medium type corresponding to the first touch input operation, and the touch function setting switch is used to set the touch response mode.
[0027] Thirdly, a touch display device is provided, including a memory, a processor, and a touch display screen, wherein the memory and the touch display screen are connected to the processor, the touch display screen is used to display a writing interface, and the processor is used to execute one or more computer programs stored in the memory, wherein when the processor executes one or more computer programs, the touch display device enables the writing and editing method of the first aspect described above.
[0028] Fourthly, a computer-readable storage medium is provided, which stores a computer program, the computer program including program instructions, which, when executed by a processor, cause the processor to perform the writing and editing method of the first aspect.
[0029] This application achieves the following technical effects: By displaying at least two writing parameter controls in the writing toolbar, users can pre-set different handwriting-related parameters for different writing parameter controls before writing. During the writing process, they can switch between the selected writing parameter controls to change the handwriting style without having to open a secondary menu, thus quickly switching handwriting styles and improving writing convenience. By setting a touch function setting switch for media types other than the preset writing media types, and determining the response mode for touch input operations on the writing interface by judging whether the touch function setting switch is turned on, users can flexibly set the touch function of the touch object, thereby facilitating writing and editing and improving writing flexibility. Attached Figure Description
[0030] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 and Figure 2 This is a schematic diagram of the writing interface;
[0032] Figure 3 A flowchart illustrating a writing and editing method provided in an embodiment of this application;
[0033] Figures 4A-4B A schematic diagram of the writing interface provided in the embodiments of this application;
[0034] Figures 5A-5C A schematic diagram of the touch function settings interface provided in an embodiment of this application;
[0035] Figures 6A-6F A schematic diagram of the writing interface provided in an embodiment of this application;
[0036] Figure 7 This is a schematic diagram of the structure of a writing and editing device provided in an embodiment of this application;
[0037] Figure 8 This is a schematic diagram of the structure of a touch display device provided in an embodiment of this application. Detailed Implementation
[0038] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0039] It should be noted that, unless there is a conflict, the various features in the embodiments of this application can be combined with each other, all of which are within the protection scope of this application. Furthermore, although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than the module division in the device or the order in the flowchart. Moreover, the terms "first," "second," and "third" used in this application do not limit the data or execution order, but only distinguish identical or similar items with essentially the same function and effect.
[0040] The technical solution of this application is applicable to writing scenarios. In a writing scenario, users can perform touch input operations on a touch display device using a pen, finger, or other touch objects. The touch display device detects the movement path of the touch input operation to obtain the handwriting, which reflects the movement path of the touch input operation. The touch display device displays the handwriting based on handwriting-related parameters, thereby forming handwriting elements in the writing interface. Handwriting-related parameters include handwriting color, handwriting width, and handwriting type.
[0041] The touch display device will display writing controls, which are used to trigger writing and allow the user to select and set handwriting-related parameters. For example, see [reference needed]. Figure 1 , Figure 1 This is a schematic diagram of a writing interface. The writing interface includes a writing toolbar L1, which contains various tool controls for user use, each performing a different function. The writing toolbar includes a writing control L11, which controls parameters related to handwriting and triggers the writing process. Users can click on the writing control L11 to open its secondary menu M1, where they can select and set one or more parameters, such as handwriting color, handwriting width, or handwriting type.
[0042] A common writing scenario is that users need to switch between different pen colors to highlight key information. (See reference...) Figure 2 Assuming the user writes from top to bottom and from front to back, to form Figure 2The writing content shown requires the user to repeatedly open the secondary menu of the writing control and set the corresponding color to complete the writing process, which is cumbersome and inconvenient.
[0043] In addition, users may use various writing media (i.e. touch objects) for touch input during the writing process. How to respond to touch input operations corresponding to different writing media to facilitate flexible writing for users remains to be solved.
[0044] In view of this, this application proposes a writing and editing scheme. By displaying at least two independent writing parameter controls in the writing toolbar of the writing interface, these controls can be independently set and controlled for handwriting-related parameters. Users can pre-set different handwriting-related parameters for different controls before writing. During writing, users can switch between selected controls to change the handwriting style, including handwriting color, without needing to repeatedly open the secondary menus of the writing parameter controls to select and set handwriting-related parameters. This allows for quick switching of handwriting styles to complete writing, improving writing convenience. Furthermore, by setting a touch function setting switch for media types other than the preset writing media types, and determining the response method for touch input operations on the writing interface by judging whether the touch function setting switch is on, users can flexibly set the touch function of the touch object, thereby facilitating writing and editing and improving writing flexibility.
[0045] The technical solution of this application is described in detail below, and the technical solution of this application is applicable to touch display devices. Touch display devices can be, for example, electronic whiteboards, interactive flat panels, etc., and are not limited to the examples given here.
[0046] See Figure 3 , Figure 3 This is a flowchart illustrating a writing and editing method provided in an embodiment of this application, such as... Figure 3 As shown, the method includes the following steps:
[0047] S101, displays the writing interface.
[0048] Here, the writing interface is the display interface used for writing interaction, where users can perform writing operations to form handwriting.
[0049] The writing interface includes a writing toolbar, which contains various tool controls for user use. The writing toolbar includes at least two writing parameter controls. These controls manage handwriting-related parameters, which reflect the display attributes of the handwriting on the interface. These parameters include handwriting color, handwriting width, and handwriting type. Handwriting color reflects the color attribute of the handwriting, and can be further subdivided into red, yellow, blue, green, etc. Handwriting width reflects the thickness of the handwriting, and can be further subdivided into 1 mm, 2 mm, 5 mm, etc. Handwriting type reflects the line style of the handwriting, and can be further subdivided into fountain pen, pencil, brush, etc.
[0050] At least two writing parameter controls in the writing toolbar are independent of each other; each writing parameter control performs the exact same function, and each writing parameter control can control any one or more display attributes among pen color, pen thickness, and pen type.
[0051] In some specific implementations, the writing parameter controls can be presented as a color wheel, where the colors displayed represent the colors of the handwriting drawn based on the handwriting-related parameters corresponding to the writing parameter controls presented in color wheel form. Presenting the writing parameter controls as a color wheel allows the colors in the wheel to intuitively represent the colors of the handwriting. Users can determine the color of the handwriting to be drawn when selecting the writing parameter control represented by the wheel, thus anticipating the color of the handwriting before putting pen to paper. Each writing parameter control in the writing toolbar performs the exact same function, allowing users to select and set at least two subcategories of any display attribute of the handwriting by setting different writing parameter controls. For example, users can set at least two colors for the handwriting by setting different writing parameter controls, or users can set at least two widths for the handwriting by setting different writing parameter controls.
[0052] For example, the writing interface can be displayed as follows: Figure 4A As shown, the writing toolbar is as follows: Figure 4A As shown in L2, the writing toolbar shown in L2 includes two writing parameter controls, which are respectively as follows: Figure 4A As shown in L21 and L22, clicking on color wheel 1 (L21) and color wheel 2 (L22) will open the secondary menus of the writing parameter controls represented by color wheels 1 and 2, respectively. The secondary menus of the writing parameter controls represented by color wheels 1 and 2 are as follows: Figure 4A M21 and Figure 4BAs shown in M22, M21 is the second-level menu of the writing parameter control represented by color wheel 1, and M22 is the second-level menu of the writing parameter control represented by color wheel 2.
[0053] S102, receives the first touch input operation applied to the writing interface.
[0054] Here, the first touch input operation applied to the writing interface refers to the operation of touching the writing interface to achieve the input function.
[0055] The touch display device includes a touch screen, which is used to detect the position information of the touch object. On the touch screen, users can perform writing or other operations by touching the touch screen with their fingers, pens, or other touch media (collectively referred to as touch objects). Accordingly, the touch display device detects the position information of the touch object such as a finger or pen when performing a touch operation, thereby receiving the first touch input operation applied to the writing interface.
[0056] S103, detect the touch medium type corresponding to the first touch input operation.
[0057] Here, touch medium type refers to the type of medium of the touch object corresponding to the touch input operation. The touch medium type is determined based on the type of touch object used to perform the input operation on the touch display device. For example, if a user can use their finger, the tip of a pen, or the end of a pen to touch the touch display device to perform the input operation, then the touch medium type can be divided into three types: type1, type2, and type3. Type1 indicates that the touch object corresponding to the touch input operation is a finger, type2 indicates that the touch object corresponding to the touch input operation is the tip of a pen, and type3 indicates that the touch object corresponding to the touch input operation is the end of a pen.
[0058] The detection of the touch medium type corresponding to the first touch input operation aims to determine the touch object that is in contact with the touch display device.
[0059] In one feasible implementation, the first contact area between the touch object corresponding to the first touch input operation and the touch display device can be detected to detect the touch medium type corresponding to the first touch input operation. Taking the touch object as a finger, the tip of a pen, and the tail of a pen as an example, if the first contact area is within a first area range, the touch medium type corresponding to the first touch input operation is determined to be the medium type used to represent the tip of a pen; if the first contact area is within a second area range, the touch medium type corresponding to the first touch input operation is determined to be the medium type used to represent the tail of a pen; if the first contact area is within a third area range, the touch medium type corresponding to the first touch input operation is determined to be the medium type used to represent a finger. The area within the first area range is smaller than the area within the second area range, and the area within the second area range is smaller than the area within the third area range.
[0060] In another feasible implementation, the elastic wave signal generated by the contact between the touch object corresponding to the first touch input operation and the touch display device can also be detected, and the touch medium type corresponding to the first touch input operation can be detected. The elastic wave signal is a sensing signal detected by the elastic wave sensor in the touch display device, and the sensing signal includes voltage signals, current signals, or magnetic flux signals, etc. This application does not limit the specific implementation method of detecting the touch medium type corresponding to the touch input operation.
[0061] In some possible scenarios, the sensor data detected by the touch display screen in a touch display device includes not only position information but also the result of determining the touch medium type by the touch display screen directly detecting touch signals or by the touch display screen detecting specific signals of the touched object through auxiliary sensors. For example, the determination result of the touch medium type can be obtained through the aforementioned two implementation methods or other implementation methods, and the determination result belongs to the sensor data detected by the touch display screen. In this case, the identifier specifically representing the touch medium type can be directly read from the sensor data encapsulated in a preset data structure, which serves as the touch medium type corresponding to the touch input operation. For example, if the identifier for the touch medium type in the sensor data corresponding to the first touch input operation detected by the touch screen is type1, then type1 is taken as the touch medium type corresponding to the first touch input operation, indicating that the touch object performing the first touch input operation is a finger; if the identifier for the touch medium type in the sensor data corresponding to the first touch input operation detected by the touch screen is type2, then type2 is taken as the touch medium type corresponding to the first touch input operation, indicating that the touch object performing the first touch input operation is the tip of a writing pen; if the identifier for the touch medium type in the sensor data corresponding to the first touch input operation detected by the touch screen is type3, then type3 is taken as the touch medium type corresponding to the first touch input operation, indicating that the touch object performing the first touch input operation is the tail of a writing pen.
[0062] S104, determine whether the touch medium type corresponding to the first touch input operation is the first preset medium type.
[0063] Here, the first preset media type is a media type other than the second preset media type, the second preset media type is a preset media type for writing, and the first preset media type can be one or more.
[0064] Taking the touch objects of a touch display device as including fingers, the tip of a writing pen, and the tail of a writing pen as an example, the tip of the writing pen is usually used for writing, so the second preset medium type can be the aforementioned type2; the first preset medium type can be the aforementioned type1 and type3.
[0065] If the touch medium type corresponding to the first touch input operation is the first preset medium type, it means that the medium type of the touch object performing the first touch input operation is not the preset medium type for writing, and step S105 is executed; if the touch medium type corresponding to the touch input operation is not the first preset medium type, it means that the medium type of the touch object performing the first touch input operation is the first preset medium type, that is, the preset medium type for writing, and step S107 is executed.
[0066] S105, Determine whether the first touch function setting switch is turned on.
[0067] Here, the first touch function setting switch is the touch function setting switch for the touch medium type corresponding to the first touch input operation. For example, if the touch medium type corresponding to the first touch input operation is the aforementioned type 1, then the first touch function setting switch is the touch function setting switch for the finger; or, if the touch medium type corresponding to the first touch input operation is the aforementioned type 3, then the first touch function setting switch is the touch function setting switch for the end of the writing pen. The touch function setting switch for the finger and the touch function setting switch for the end of the writing pen can be shown as ST1 and ST2 in Figure 5.
[0068] The touch function setting switch is used to set the touch response mode. Touch response mode refers to the mode in which touch input is responded to. There are three touch response modes: writing mode, selection mode, and erase mode. In writing mode, touch input is used to write handwriting; in selection mode, touch input is used to select handwriting; and in erase mode, touch input is used to erase handwriting. The touch function setting switch is used to turn multiple function options indicating the touch response mode on or off. These multiple function options provide the user with settings for the touch functionality of a touch object of a first preset media type.
[0069] In some possible scenarios, users can access the touch function settings interface (i.e., the touch function settings interface) via the settings controls in the writing interface to enable or disable the touch function settings. For example, see [link to example]. Figure 4A , Figure 4A The writing toolbar shown in the writing interface contains at least two writing parameter controls, as well as a settings control L23. Clicking the settings control L23 takes the user to the interface containing the touch function settings switch, as shown below. Figure 5A As shown, it includes a touch function setting switch ST1 for the finger and a touch function setting switch ST2 for the end of the writing pen; as Figure 5B As shown, when the touch function setting switch ST1 is clicked, the touch function setting switch ST1 is turned on, and multiple function options corresponding to the touch function setting switch ST1 are displayed; for example... Figure 5CAs shown, when the touch function setting switch ST2 is clicked, it is turned on, and multiple function options corresponding to ST2 are displayed. Among them, the function option "Select" corresponds to the selection mode, the function option "Eraser" corresponds to the erasing mode, and the function modes "Color Palette 1" and "Color Palette 2" correspond to the writing mode. Alternatively, users can also access the touch function setting switch interface through the system settings menu to turn the touch function setting switch on and select function options, or to turn the touch function setting switch off. This application does not impose any limitations on this.
[0070] If the first touch function setting switch is turned on, it means that the user has set the corresponding touch function for the touch object corresponding to the touch medium type of the first touch input operation, and step S106 is executed; if the first touch function setting switch is not turned on, it means that the user has not set the touch function for the touch object corresponding to the touch medium type of the first touch input operation, and step S107 is executed.
[0071] S106, press the touch response mode corresponding to the first touch function setting switch, and respond to the first touch input operation in the writing interface.
[0072] If the touch response mode corresponding to the first touch function setting switch is writing mode, the first handwriting corresponding to the first touch input operation is displayed in the writing interface. The first handwriting is the handwriting drawn according to the handwriting-related parameters of the first writing parameter control. The first writing parameter control is one of at least two writing parameter controls. The first writing parameter control is the writing parameter control selected when the first touch function setting switch is turned on.
[0073] For example, refer to Figure 5A Assuming the touch medium type corresponding to the first touch input operation is a medium type indicating that the touch object is a finger (e.g., the aforementioned type 1), then the first touch function setting switch is... Figure 5A In ST1, assuming the user selects the option when enabling the touch function setting switch ST1. Figure 5B The "Color Palette 1" option, Figure 5B The "Color Palette 1" option corresponds to Figure 4A In the color wheel 1, color wheel 1 is the first writing parameter control. Assuming the movement path of the first touch input operation is as follows... Figure 6A As shown by the dotted lines, the writing interface displays the first handwriting stroke corresponding to the first touch input operation, such as... Figure 6A The second image in the series is shown.
[0074] If the touch response mode corresponding to the first touch function setting switch is selection mode, select the writing style selected for the first touch input operation in the writing interface.
[0075] For example, assuming the touch medium type corresponding to the first touch input operation is a medium type indicating that the touch object is a finger, when the user turns on the touch function setting switch ST1, they select the type that indicates the touch object is a finger. Figure 5B The "Select" option allows you to choose the first touch input operation. Figure 6B The handwriting shown as l1 is selected in the writing interface by choosing the first touch input operation to select the handwriting style. Figure 6B The second image in the series is shown.
[0076] If the touch response mode corresponding to the first touch function setting switch is erase mode, the writing handwriting corresponding to the first touch input operation will be erased in the writing interface.
[0077] For example, assuming the touch medium type corresponding to the first touch input operation is a medium type indicating that the touch object is a finger, when the user turns on the touch function setting switch ST1, they select the type that indicates the touch object is a finger. Figure 5B The "Eraser" option, the movement path of the first touch input operation is as follows: Figure 6C As shown by the dotted lines, erasing the writing strokes corresponding to the first touch input operation in the writing interface is as follows: Figure 6C The second image in the series is shown.
[0078] Based on the touch response mode corresponding to the enabled touch function setting switch, the writing interface displays the handwriting drawn with the handwriting parameters of the writing parameter control selected by pressing the touch function setting switch, or selects the handwriting selected by the touch input operation, or erases the handwriting corresponding to the touch input operation, which can meet the user's writing and editing needs.
[0079] S107, Display the second handwriting corresponding to the first touch input operation in the writing interface.
[0080] Here, the second writing stroke is the writing stroke drawn according to the stroke-related parameters corresponding to the second writing parameter control, and the second writing parameter control is the writing parameter control that is selected among at least two writing parameter controls.
[0081] For example, refer to Figure 6D The second writing parameter control is as follows: Figure 6D As shown in color wheel 2, the handwriting-related parameters corresponding to color wheel 2 are as follows: Figure 4B As shown in M22, assuming the movement path of the first touch input operation is as follows: Figure 6D As shown by the dotted lines, the second image in 6D displays the second handwriting corresponding to the first touch input operation in the writing interface. Figure 6D The second handwriting in the text is black.
[0082] In the above Figure 3In the corresponding technical solution, a writing interface is displayed, including a writing toolbar with at least two writing parameter controls. These controls are used to control handwriting-related parameters. The interface receives touch input operations and detects the touch medium type. When the touch medium type is other than the preset writing medium type, and the touch function setting switch for that medium type is enabled, the touch input operation is responded to in the writing interface according to the touch response mode corresponding to the enabled touch function setting switch. This is equivalent to providing a writing medium other than the preset writing medium type. The system allows users to set touch functionality on / off for other media types and determine the response mode for touch input operations on the writing interface by checking if the touch functionality on / off switch is enabled. This allows users to flexibly configure the touch functionality of the objects being touched, thus facilitating writing and editing and improving writing flexibility. In addition, by displaying at least two writing parameter controls in the writing toolbar, users can pre-set different handwriting-related parameters for different writing parameter controls before writing. During writing, users can switch between the selected writing parameter controls to change the handwriting style without having to open a secondary menu, thus quickly switching handwriting styles and improving writing convenience.
[0083] In some embodiments, there are multiple first preset media types; the touch media type corresponding to the first touch input operation is a second preset media type; the touch function setting switch for the target media type is turned on, and the writing parameter control selected by turning on the touch function setting switch for the target media type is a third parameter control. The target media type is any one of the first preset media types, and the third writing parameter control is one of at least two writing parameter controls. The handwriting-related parameters of the third writing parameter control are different from the handwriting-related parameters of the second writing handwriting parameter control, that is, the handwriting color and / or handwriting width and / or handwriting type corresponding to the third writing parameter control are different from the handwriting color and / or handwriting thickness and / or handwriting type corresponding to the second writing parameter control. For example, the touch object performing the first touch input operation is the tip of a writing pen, the target media type is the aforementioned type 3, and the touch function setting switch for the target media type is as follows: Figure 5C As shown, color wheel 1 is the third parameter control; after displaying the second handwriting corresponding to the first touch input operation in the writing interface, the following steps A1-A3 are also included:
[0084] A1. Receives a second touch input operation applied to the writing interface.
[0085] A2. Detect the touch medium type corresponding to the second touch input operation.
[0086] The receiving of the second touch input operation applied to the writing interface and the detection of the touch medium type corresponding to the second touch input operation are similar to the receiving of the first touch input operation applied to the writing interface and the detection of the touch medium type corresponding to the first touch input operation applied to the writing interface in the aforementioned steps S101 to S102. Please refer to the description of the aforementioned steps S101 to S102, which will not be repeated here.
[0087] A3. If the touch medium type corresponding to the second touch input operation is the target medium type, display the third handwriting corresponding to the second touch input operation in the writing interface.
[0088] Here, the third writing stroke is the writing stroke drawn according to the stroke-related parameters of the third writing parameter control.
[0089] For example, refer to Figure 6E Suppose that the second handwriting corresponding to the first touch input operation is displayed in the writing interface, such as... Figure 6D As shown in the second image, the movement path of the second touch input operation is as follows: Figure 6E As shown by the dashed lines, the third parameter control is as follows: Figure 6E As shown in color wheel 1, the handwriting-related parameters corresponding to color wheel 1 are as follows: Figure 4A As shown in M21, the third handwriting corresponding to the second touch input operation is displayed in the writing interface, as shown in... Figure 6E The second image in the series is shown.
[0090] Understandably, if the touch medium type corresponding to the second touch input operation is not the target medium type, the response to the second touch input operation can be made in accordance with the response to the first touch input operation described in 104 to S107 above.
[0091] When the touch function setting switch corresponding to the media type is turned on, and the handwriting parameters of the writing parameter control set by the turned-on touch function setting switch are different from the handwriting parameters of the selected writing parameter control, the user can change the handwriting style by switching the touch object corresponding to the touch input operation (such as switching between the pen tip and the pen tail), which can improve the convenience of handwriting switching.
[0092] In some embodiments, after displaying the second handwriting corresponding to the first touch input operation in the writing interface, the following steps B1-B4 are further included:
[0093] B1. Receive the selection operation for the fourth writing parameter control.
[0094] The fourth writing parameter control is one of at least two writing parameter controls. The handwriting-related parameters of the fourth writing parameter control differ from those of the second writing parameter control; that is, the handwriting color and / or handwriting width and / or handwriting type corresponding to the fourth writing parameter control are different from those corresponding to the second writing parameter control. The handwriting-related parameters of both the second and fourth writing parameter controls are set by the user before or during writing.
[0095] The selection operation for the second writing parameter control indicates that the second writing parameter control is selected. Assuming the second writing stroke corresponding to the first touch input operation is displayed in the writing interface, such as... Figure 6D As shown in the second image, the colors of the ink on color wheel 1 and color wheel 2 are different. Figure 6D Color wheel 2 is selected, while color wheel 1 is unselected. (For reference...) Figure 6F When the user clicks on color wheel 1, the system receives a selection operation for the fourth writing parameter control.
[0096] B2. Receive third touch input operations applied to the writing interface.
[0097] B3. Detect the touch medium type corresponding to the third touch input operation.
[0098] The types of touch media for receiving and detecting the third touch input operation applied to the writing interface are similar to those for receiving and detecting the first touch input operation applied to the writing interface in steps S101 to S102. Please refer to the description of steps S101 to S102 above, which will not be repeated here.
[0099] B4. If the touch medium type corresponding to the third touch input operation is the second preset medium type, or if the touch medium type corresponding to the third touch input operation is the first preset medium type and the third touch function setting switch is not turned on, the fourth writing stroke corresponding to the third touch input operation will be displayed in the writing interface.
[0100] Here, the third touch function setting switch is the touch medium type corresponding to the third touch input operation, and the fourth writing handwriting is the writing handwriting drawn according to the handwriting-related parameters of the fourth writing parameter control.
[0101] For example, refer to Figure 6F Assuming the movement path of the third touch input operation is as follows: Figure 6F As shown by the dashed lines, the fourth parameter control is as follows: Figure 6F As shown in color wheel 1, the fourth writing stroke corresponding to the third touch input operation is displayed in the writing interface, as shown in the image. Figure 6FThe third image in the series is shown.
[0102] When a selection operation is received for the fourth writing parameter control in the writing interface, the writing style of the writing strokes drawn according to the writing parameter parameters of the writing parameter control after the switch is different from the writing parameter control before the switch, which can change the writing strokes. Therefore, users can change the writing strokes by switching the writing parameter control in the selected state, which can improve the convenience of writing switching.
[0103] In some possible cases, the above Figure 3 The corresponding technical solution may also include the following steps C1-C5:
[0104] C1. Display the touch function settings interface.
[0105] Here, the touch function settings interface includes a touch function settings switch, and the touch function settings switch in the touch function settings interface includes the aforementioned first touch function settings switch.
[0106] For example, the touch function settings interface can be displayed as follows: Figure 5A As shown.
[0107] C2. Receive the operation to turn on the first touch function setting switch.
[0108] Here, the "Enable First Touch Function Setting Switch" operation is used to enable the first touch function setting switch.
[0109] For example, the touch function settings interface is as follows Figure 5A As shown, assume the first touch function setting switch is... Figure 5A The touch function setting switch ST1 shown will be activated when the user clicks it. Figure 5A When the touch function setting switch ST1 is activated, an operation to activate the first touch function setting switch is received.
[0110] C3. In the touch function settings interface, multiple function options corresponding to the first touch function setting switch are displayed.
[0111] For example, in the touch function settings interface, displaying multiple function options corresponding to the touch function settings switch can be as follows: Figure 5B As shown.
[0112] C4. Receive the selection operation for the target function option.
[0113] Here, the target function option is any one of the multiple function options corresponding to the first touch function setting switch, and the selection operation of the target function option is used to indicate the selection of the target function option.
[0114] C5. Set the touch response mode corresponding to the target function option as the touch response mode corresponding to the first touch function setting switch.
[0115] For example, target function options such as Figure 5B The "Select" option in the settings will determine that the touch response mode corresponding to the first touch function setting switch ST1 is the selection mode.
[0116] In steps C1-C5 above, by displaying a touch function interface that includes a touch function setting switch, the system receives the operation of turning on the touch function setting switch and the operation of selecting the function option corresponding to the touch function setting switch, and determines the touch response mode corresponding to the function option as the touch response mode corresponding to the touch function setting switch, which allows users to freely set the touch function of the touch object.
[0117] Optionally, after receiving the enable operation of the first touch function setting switch, the method further includes receiving the disable operation of the first touch function setting switch. The disable operation of the first touch function setting switch is used to disable the first touch function setting switch.
[0118] For example, users can also enter Figure 5B The touch function settings interface is shown, and the touch function settings switch ST1 is turned off.
[0119] The method of this application has been described above; the apparatus of this application will be described below.
[0120] See Figure 7 , Figure 7 This is a schematic diagram of the structure of a writing and editing device provided in an embodiment of this application, as shown below. Figure 7 As shown, the writing and editing device 20 includes:
[0121] Display module 201 is used to display a writing interface, the writing interface including a writing toolbar, the writing toolbar including at least two writing parameter controls, the writing parameter controls being used to control handwriting-related parameters of the writing strokes;
[0122] The operation receiving module 202 is used to receive a first touch input operation applied to the writing interface;
[0123] The medium type detection module 203 is used to detect the touch medium type corresponding to the first touch input operation, wherein the touch medium type is used to represent the medium type of the touch object corresponding to the touch input operation;
[0124] The display module 201 is further configured to respond to the first touch input operation in the writing interface according to the touch response mode corresponding to the first touch function setting switch if the touch medium type corresponding to the first touch input operation is a first preset medium type and the first touch function setting switch is turned on; the first preset medium type is a medium type other than the second preset medium type, the second preset medium type is a preset medium type for writing, the first touch function setting switch is a touch function setting switch for the touch medium type corresponding to the first touch input operation, and the touch function setting switch is used to set the touch response mode.
[0125] It should be noted that the above-mentioned writing and editing device 20 can execute the functions described in this application. Figure 3 The writing and editing method provided in the embodiments has corresponding functional modules and beneficial effects. Technical details not described in detail in the writing and editing device 20 embodiments can be found in the writing and editing method provided in the embodiments of this application.
[0126] See Figure 8 , Figure 8 This is a schematic diagram of a touch display device according to an embodiment of this application. The touch display device 30 includes a processor 301, a memory 302, and a touch display screen 303. The memory 302 and the touch display screen 303 are connected to the processor 301, and the memory 302 is connected to the processor 301, for example, via a bus.
[0127] Processor 301 is configured to support the display device 30 in performing the corresponding functions in the methods described in the above method embodiments. Processor 301 may be a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof. The aforementioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The aforementioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0128] The touch display screen 303 is used to display a writing interface and to receive writing operations and other various user operations. The touch display screen 303 can be any type of touch display screen, including capacitive touch screens, resistive touch screens, and infrared touch screens.
[0129] Memory 302 is used to store program code, etc. Memory 302 may include volatile memory (VM), such as random access memory (RAM); memory 302 may also include non-volatile memory (NVM), such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); memory 302 may also include combinations of the above types of memory.
[0130] The memory 302 is used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the writing and editing method in the embodiments of this application. The processor executes various functional applications and data processing of the writing and editing method by running the non-volatile software programs, instructions, and modules stored in the memory, thereby realizing the functions of the writing and editing method provided in the above method embodiments.
[0131] The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function. The data storage area may store data created based on the use of the writing and editing device. In some embodiments, the memory may include memory remotely located relative to the processor, which can be connected to the writing and editing device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0132] The one or more modules are stored in the memory. When executed by the one or more processors, they perform the writing and editing methods in any of the above method embodiments. For example, they perform the method steps described in the above method embodiments to realize the functions of the modules described in the above device embodiments.
[0133] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a computer, cause the computer to perform the method described in the foregoing embodiments.
[0134] This application also provides a computer program product containing a computer program or instructions, which, when run on a computer device, causes the computer device to perform the method provided in the above-described method embodiments.
[0135] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0136] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.
Claims
1. A writing and editing method, characterized in that, include: The writing interface is displayed, and the writing interface includes a writing toolbar, which includes at least two writing parameter controls. The writing parameter controls are used to control the handwriting-related parameters of the writing. Receive a first touch input operation applied to the writing interface; Detect the touch medium type corresponding to the first touch input operation, wherein the touch medium type is used to represent the medium type of the touch object corresponding to the touch input operation; If the touch medium type corresponding to the first touch input operation is the first preset medium type, and the first touch function setting switch is turned on, the first touch input operation is responded to in the writing interface according to the touch response mode corresponding to the first touch function setting switch. The first preset medium type is a medium type other than the second preset medium type. The second preset medium type is a preset medium type for writing. The first touch function setting switch is a touch function setting switch for the touch medium type corresponding to the first touch input operation. The touch function setting switch is used to set the touch response mode.
2. The method according to claim 1, characterized in that, The step of responding to the first touch input operation in the writing interface according to the touch response mode corresponding to the first touch function setting switch includes: If the touch response mode corresponding to the first touch function setting switch is writing mode, the first writing handwriting corresponding to the first touch input operation is displayed in the writing interface. The first writing handwriting is the writing handwriting drawn according to the handwriting related parameters of the first writing parameter control. The first writing parameter control is one of the at least two writing parameter controls. The first writing parameter control is the writing parameter control selected when the first touch function setting switch is turned on. If the touch response mode corresponding to the first touch function setting switch is the selection mode, select the writing style selected by the first touch input operation in the writing interface; If the touch response mode corresponding to the first touch function setting switch is the erase mode, the writing handwriting corresponding to the first touch input operation is erased in the writing interface.
3. The method according to claim 1, characterized in that, The method further includes: If the touch medium type corresponding to the first touch input operation is the second preset medium type, or if the touch medium type corresponding to the first touch input operation is the first preset medium type and the first touch function setting switch is not turned on, the second writing handwriting corresponding to the first touch input operation is displayed in the writing interface. The second writing handwriting is the writing handwriting drawn according to the handwriting-related parameters of the second writing parameter control. The second writing parameter control is the writing parameter control that is selected among the at least two writing parameter controls.
4. The method according to claim 3, characterized in that, There are multiple first preset media types; the touch media type corresponding to the first touch input operation is the second preset media type; the touch function setting switch for the target media type is turned on, and the writing parameter control selected by turning on the touch function setting switch for the target media type is the third parameter control. The target media type is any one of the first preset media types, and the third writing parameter control is one of the at least two writing parameter controls. The handwriting-related parameters of the third writing parameter control are different from the handwriting-related parameters of the second handwriting parameter control. After displaying the second handwriting corresponding to the first touch input operation in the writing interface, the method further includes: Receive a second touch input operation applied to the writing interface; Detect the touch medium type corresponding to the second touch input operation; If the touch medium type corresponding to the second touch input operation is the target medium type, the third handwriting corresponding to the second touch input operation is displayed in the writing interface. The third handwriting is the handwriting drawn according to the handwriting-related parameters of the third writing parameter control.
5. The method according to claim 3, characterized in that, After displaying the second handwriting corresponding to the first touch input operation in the writing interface, the method further includes: The system receives a selection operation for a fourth writing parameter control, which is one of the at least two writing parameter controls, and the handwriting-related parameters of the fourth writing parameter control are different from the handwriting-related parameters of the second writing parameter control. Receive a third touch input operation applied to the writing interface; Detect the touch medium type corresponding to the third touch input operation; If the touch medium type corresponding to the third touch input operation is the second preset medium type, or if the touch medium type corresponding to the third touch input operation is the first preset medium type and the third touch function setting switch is not turned on, the fourth writing handwriting corresponding to the third touch input operation is displayed in the writing interface. The third touch function setting switch is the touch function setting switch of the touch medium type corresponding to the third touch input operation, and the fourth writing handwriting is the writing handwriting drawn according to the handwriting-related parameters of the fourth writing parameter control.
6. The method according to any one of claims 1-5, characterized in that, The method further includes: Display a touch function settings interface, the touch function settings interface including the first touch function settings switch; Receive an operation to enable the first touch function setting switch; The touch function setting interface displays multiple function options corresponding to the first touch function setting switch, including writing function options, selection function options, and erasing function options. Receive a selection operation for a target function option, wherein the target function option is any one of the plurality of function options; The touch response mode corresponding to the target function option is determined as the touch response mode corresponding to the first touch function setting switch.
7. The method according to claim 6, characterized in that, After receiving the operation to turn on the first touch function setting switch, the method further includes: Receives a shutdown operation on the first touch function setting switch.
8. A computer program product, characterized in that, The computer program product includes a computer program stored on a computer storage medium, the computer program including programs or instructions that, when executed by a computer device, cause the computer device to perform the writing and editing method as described in any one of claims 1-7.
9. A touch display device, characterized in that, The device includes a memory, a processor, and a touch display screen, the memory and the touch display screen being connected to the processor, the touch display screen being used to display a writing interface, and the processor being used to execute one or more computer programs stored in the memory, wherein, when executing the one or more computer programs, the processor causes the touch display device to implement the method as described in claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the method as described in any one of claims 1-7.