Content editing method, device, equipment and storage medium

By introducing target acquisition mode and stylus trajectory input into terminal devices, the problem of cumbersome content editing operations with stylus is solved, convenient and efficient content data acquisition and editing is achieved, and user experience and editing efficiency are improved.

CN114637449BActive Publication Date: 2024-08-23LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210276992.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-21
Publication Date
2024-08-23
Estimated Expiration
2042-03-21

AI Technical Summary

Technical Problem

In the existing technology, when the stylus is used to edit content on a terminal device, the operation is cumbersome, especially in terms of the copy and paste function. The user needs to perform multi-step tedious operations, which cannot meet the usage needs.

Method used

By introducing the target acquisition mode into the terminal device and utilizing the trajectory input and control signals of the stylus, more convenient and efficient content data acquisition and editing can be achieved, including determining that the terminal device is in the target acquisition mode, obtaining trajectory input and responding to target instructions, and simplifying copying. Paste operation.

Benefits of technology

It realizes convenient and efficient content editing with a stylus on the terminal device, reduces operating steps, improves user experience and editing efficiency, and is suitable for selecting and pasting multiple content data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114637449B
    Figure CN114637449B
Patent Text Reader

Abstract

The present application discloses a content editing method, apparatus, device and storage medium, the method comprising: determining, in response to a first control signal, that a terminal device is in a target acquisition mode; the first control signal is a control signal generated by an input device based on a first trigger operation of a target control of the input device; based on the terminal device being in the target acquisition mode, obtaining a track input of the input device, and determining at least one content data in response to the track input; responding to a second control signal, responding to a target instruction corresponding to the target acquisition mode based on the at least one content data; the second control signal is a control signal generated by the input device based on a second trigger operation of the target control of the input device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and relates to but is not limited to a content editing method, apparatus, device and storage medium. Background Art

[0002] Many users often use stylus as input devices for text editing and basic functions when using terminal devices with stylus. Many users also use stylus instead of finger input directly after getting stylus due to usage habits.

[0003] In the related art, when a user uses a stylus pen to perform content editing operations on a terminal device (such as copy and paste operations in text editing), the content editing function in the terminal device's system has not been specially optimized for the pen, and content editing still requires multiple steps of tedious operations. Summary of the invention

[0004] In view of this, embodiments of the present application provide a content editing method, apparatus, device, and storage medium.

[0005] On the one hand, an embodiment of the present application provides a content editing method, the method comprising: in response to a first control signal, determining that a terminal device is in a target acquisition mode; the first control signal is a control signal generated by an input device based on a first trigger operation of a target control of the input device; based on the terminal device being in the target acquisition mode, obtaining a trajectory input of the input device, and determining at least one content data in response to the trajectory input; in response to a second control signal, responding to a target instruction corresponding to the target acquisition mode based on the at least one content data; the second control signal is a control signal generated by the input device based on a second trigger operation of the target control of the input device.

[0006] On the other hand, an embodiment of the present application provides a content editing method, which includes: in response to a first control signal, determining that a terminal device turns on a target acquisition mode; the first control signal is a control signal generated by an input device based on a first trigger operation of a target control of the input device; based on the terminal device being in the target acquisition mode, obtaining a first track input of the input device, determining at least one content data in response to the first track input, and responding to a first target instruction corresponding to the target acquisition mode with the at least one content data; in response to a second control signal, determining that the terminal device ends the target acquisition; the second control signal is a control signal generated by the input device based on a second trigger operation of the target control of the input device.

[0007] On the other hand, an embodiment of the present application provides a terminal device, which includes: a display screen, used to receive a control signal and a trajectory input, and send the control signal and the trajectory input to a processor; the control signal includes a first control signal and a second control signal; the processor is used to implement the steps in the content editing method.

[0008] On the other hand, an embodiment of the present application provides a content editing device, which includes: a first determination module, used to determine that a terminal device is in a target acquisition mode in response to a first control signal; the first control signal is a control signal generated by an input device based on a first trigger operation of a target control of the input device; a first acquisition module, used to obtain a trajectory input of the input device based on the terminal device being in the target acquisition mode, and determine at least one content data in response to the trajectory input; a first response module, used to respond to a second control signal, and respond to a target instruction corresponding to the target acquisition mode based on the at least one content data; the second control signal is a control signal generated by the input device based on a second trigger operation of the target control of the input device.

[0009] On the other hand, an embodiment of the present application provides a content editing device, which includes: a second determination module, used to determine that a terminal device turns on a target acquisition mode in response to a first control signal; the first control signal is a control signal generated by an input device based on a first trigger operation of a target control of the input device; a second acquisition module, used to obtain a first track input of the input device based on the terminal device being in the target acquisition mode, determine at least one content data in response to the first track input, and respond to a first target instruction corresponding to the target acquisition mode with the at least one content data; a second response module, used to determine that the terminal device ends the target acquisition in response to a second control signal; the second control signal is a control signal generated by the input device based on a second trigger operation of the target control of the input device.

[0010] On the other hand, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the above-mentioned content editing method are implemented.

[0011] In an embodiment of the present application, by determining that the terminal device is in a target acquisition mode based on a first control signal, and in the target acquisition mode, determining the content data based on the trajectory input of the input device, and responding to the target instruction corresponding to the target acquisition mode based on the content data based on a second control signal, the content data can be determined more conveniently and efficiently, and then at least one content data can be made to respond to the target instruction more conveniently and efficiently, thereby realizing the editing of the content data. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 A flowchart of a content editing method according to an embodiment of the present application;

[0013] Figure 2 A flowchart of another content editing method according to an embodiment of the present application;

[0014] Figure 3 A flowchart of another content editing method according to an embodiment of the present application;

[0015] Figure 4 A flowchart of another content editing method according to an embodiment of the present application;

[0016] Figure 5 A flowchart of a content editing method according to an embodiment of the present application is provided;

[0017] Figure 6 A flowchart of a content editing method according to an embodiment of the present application is provided;

[0018] Figure 7 A flowchart of a content editing method according to an embodiment of the present application is provided;

[0019] Figure 8 A flowchart of a method for copying and pasting content using an active pen according to an embodiment of the present application;

[0020] Fig. 9 A schematic diagram of the structure of a content editing device according to an embodiment of the present application;

[0021] Fig.10 A schematic diagram of the structure of another content editing device according to an embodiment of the present application;

[0022] Fig.11 A schematic diagram of a hardware entity of the terminal device of this application. DETAILED DESCRIPTION

[0023] In order to make the objectives, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present disclosure. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0024] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.

[0026] Figure 1 A flowchart of a content editing method according to an embodiment of the present application is shown in FIG. Figure 1 As shown, the method can be applied to a processor of a terminal device, and the method comprises the following steps:

[0027] Step 102: determining that the terminal device is in a target acquisition mode in response to a first control signal; the first control signal is a control signal generated by an input device based on a first trigger operation of a target control of the input device;

[0028] Among them, the terminal device can be a mobile phone, tablet computer or laptop computer with a touch screen (also known as a touch screen). The touch screen can be divided into an infrared touch screen, a resistive touch screen, a surface acoustic wave touch screen and a capacitive touch screen according to the type of sensor; the input device can be a stylus (also known as a stylus), which is a pen-shaped tool that can be used to input instructions to a terminal device with a touch screen. A user can click the touch screen with the stylus to select content data or draw, etc. A stylus that can click the capacitive touch screen is a capacitive stylus, and the capacitive stylus can include an active capacitive stylus (also known as an active stylus) and a passive capacitive stylus (also known as a passive stylus). The active capacitive stylus has its own circuit, and the touch screen receives the signal emitted by the active capacitive stylus to obtain the coordinates of the active capacitive stylus on the touch screen; the passive capacitive stylus has no circuit, and changes the capacitance of the touch screen by contacting the touch screen, thereby achieving the same effect as a finger touching the screen.

[0029] The target control may be a control or button on the input device; the first trigger operation may be pressing the target control, single-clicking the target control, double-clicking the target control, pressing the target control for a first preset time, etc.; the first control signal may be a high-level signal or a low-level signal generated based on the first trigger operation; the target acquisition mode may be a mode for realizing the target function, and the target acquisition mode may include a copy mode, a delete mode, a favorite mode, a send mode, a search mode, a reference mode, an annotation mode and a translation mode, etc. The copy mode may realize the copy function, and the translation mode may realize the translation function; different first trigger operations or target controls may generate different first control signals, and accordingly, the terminal device may be in different target acquisition modes in response to the first control signal.

[0030] In some embodiments, when the same first trigger operation is performed on different target controls, the generated first control signals may be different, and the target acquisition modes of the terminal device in response to the first control signal are also different. For example, if the triggered target control is the first control on the input device, and the first control corresponds to the copy function, the terminal device is in the copy mode; if the triggered target control is the second control on the input device, and the second control corresponds to the delete function, the terminal device is in the delete mode.

[0031] In other embodiments, different first trigger operations are performed on the same target control, and the generated first control signals may be different. The target acquisition modes of the terminal device in response to the first control signal are also different. For example, if the target control is pressed, and the pressing operation corresponds to a copy function, the terminal device is in a copy mode; if the target control is double-clicked, and the double-click operation corresponds to a translation function, the terminal device is in a translation mode.

[0032] Step 104: based on the terminal device being in a target acquisition mode, obtaining a track input of the input device, and determining at least one content data in response to the track input;

[0033] Among them, the trajectory input of the input device can be obtained in the target acquisition mode, such as obtaining the trajectory input when the target control is maintained in a pressed and unreleased state; the content data can be text, image, audio and other data; the trajectory input can be drawing a circle, an underline, an overline, a strikethrough, a bracket, etc.; the underline can include a double underline and a single underline, the overline can include a double overline and a single overline, the bracket can include a curly bracket, a square bracket and a small bracket, etc.; at least one content data can be determined according to the position of the trajectory input. When the trajectory input is drawing a circle, the content within the circle can be determined as the content data. When the trajectory input is drawing an underline, the content above the underline can be determined as the content data. When the trajectory input is drawing an overline, the content below the overline can be determined as the content data. When the trajectory input is drawing a bracket, the content within the bracket can be determined as the content data.

[0034] Step 106: In response to a second control signal, respond to a target instruction corresponding to the target acquisition mode based on the at least one content data; the second control signal is a control signal generated by the input device based on a second trigger operation of the target control of the input device.

[0035] Among them, the second trigger operation can be leaving (releasing) the target control, pressing the target control for a second preset time, etc., the first trigger operation can correspond to the second trigger operation, when the first trigger operation is pressing the target control, the second trigger operation can be releasing the target control, when the first trigger operation is single-clicking the target control, the second trigger operation can be single-clicking the target control again, when the first trigger operation is pressing the target control for a first preset time, the second trigger operation can be pressing the target control for the first preset time again, or pressing the target control for a second preset time; the second control signal can be a low-level signal or a high-level signal generated based on the second trigger operation.

[0036] Wherein, the target instruction corresponds to the target acquisition mode. When the target acquisition mode is the copy mode, the target instruction may be to copy at least one content data to the clipboard; when the target acquisition mode is the delete mode, the target instruction may be to delete at least one content data; when the target acquisition mode is the collection mode, the target instruction may be to add at least one content data to the favorites; when the target acquisition mode is the send mode, the target instruction may be to jump to the interface where the candidate contacts are located to select the target contact from the candidate contacts and send at least one content data to the target contact; when the target acquisition mode is the send mode, the target instruction may also be to jump to the interface where the candidate applications are located to select the target application from the candidate applications, through the The target application sends at least one content data to the target contact; when the target acquisition mode is the search mode, the target instruction may be searching for the at least one content data in a search engine; when the target acquisition mode is the reference mode, the target instruction may be referencing the at least one content data, that is, adding the at least one content data as the referenced content to the dialog box, waiting for the user to reference the at least one content data and input new content; when the target acquisition mode is the annotation mode, the target instruction may be adding an annotation to the at least one content data, that is, using the at least one content data as the annotated content, waiting for the user to add an annotation to the at least one content data; when the target acquisition mode is the translation mode, the target instruction may be translating the at least one content data.

[0037] In an embodiment of the present application, by determining that the terminal device is in a target acquisition mode based on a first control signal, and in the target acquisition mode, determining the content data based on the trajectory input of the input device, and responding to the target instruction corresponding to the target acquisition mode based on the content data based on a second control signal, the content data to be edited can be determined more conveniently and efficiently, and then at least one content data can be made to respond to the target instruction more conveniently and efficiently, thereby realizing the editing of the content data.

[0038] In some embodiments, Figure 2 As shown, the "responding to the target instruction corresponding to the target acquisition mode based on the at least one content data" in step 106 can be implemented by the following steps 161 to 163:

[0039] Step 161: Displaying the at least one content data;

[0040] Step 162: if a modification operation for the at least one content data is obtained, in response to the modification operation, respond to the target instruction corresponding to the target acquisition mode with the at least one content data after modification;

[0041] Among them, the modification operation may include adding content to at least one content data, deleting part of the content in the at least one content data, replacing part of the content in the at least one content data, highlighting part of the content in at least one content data and adjusting the order of part of the content in at least one content data, etc.; the modification operation may be a modification operation performed by an input device, or may be a modification operation performed by a finger, etc.

[0042] In one embodiment, when at least one content data is determined, the terminal device can display the at least one content data for the user to view, and the user can directly use his finger or a stylus to add, delete, replace, adjust the order, and other modification operations on at least one content data, and copy the modified content data to the clipboard.

[0043] Step 163: If no modification operation for the at least one content data is obtained, respond to the target instruction corresponding to the target acquisition mode with the at least one content data.

[0044] In one embodiment, timing can be started from the start of display of at least one content data. Within a third preset time period, if no modification operation is obtained for at least one content data, it is assumed that the user does not perform a modification operation on the at least one content data, and the at least one content data can be copied to the clipboard.

[0045] In an embodiment of the present application, at least one content data can be modified by obtaining a modification operation so that the modified content data responds to a target instruction, thereby being able to flexibly modify the content data so that the modified content data is more in line with the user's intention; by responding to a target instruction with at least one content data without obtaining a modification operation, the intelligence of the content data responding to the target instruction is improved.

[0046] In some embodiments, Figure 3 As shown, step 104 "obtaining a track input of the input device based on the terminal device being in the target acquisition mode, and determining at least one content data in response to the track input" can be implemented by the following steps 141a and 142a:

[0047] Step 141a: Based on the terminal device being in a target acquisition mode, obtaining a trajectory input from a first input interface, where the first input interface is used to obtain an input of the input device on a display area of ​​a display screen;

[0048] Wherein, when the input device is a stylus pen, the first input interface may be a pen tip of the stylus pen.

[0049] Step 142a: Based on the track input, respond to the selection instruction with the target content matching the track input in the display page displayed in the display area.

[0050] Among them, the target content in the display page that matches the track input obtained from the first input interface can be determined as at least one content data.

[0051] In an embodiment of the present application, in the target acquisition mode, the content data is determined only based on the input trajectory of the first input interface of the input device, thereby avoiding accidental touching of the content data by other input interfaces such as fingers, and improving the accuracy of determining the content data through the input trajectory of the input device.

[0052] In some embodiments, Figure 4 As shown, step 104 "obtaining a track input of the input device based on the terminal device being in the target acquisition mode, and determining at least one content data in response to the track input" can be implemented by the following steps 141b to 143b:

[0053] Step 141b: obtaining a trajectory input based on the terminal device being in a target acquisition mode;

[0054] Step 142b: if the trace input belongs to the input device, respond to a selection instruction with a target content matching the trace input in a display page displayed in the display area based on the trace input;

[0055] Step 143b: If the trajectory input belongs to the operating body; control the display page displayed in the display area to switch based on the trajectory input.

[0056] Among them, the operating body can be the user's finger; the user can perform trigger operations such as pulling up, pulling down, swiping left or swiping right on the display page, and the terminal device forms a trajectory input according to the acquired trigger operation, and controls the switching of the display page based on the trajectory input.

[0057] In the embodiment of the present application, when the user determines the content data to be copied through the input track of the input device, he may want to continuously browse the content of the web page or other pages. By controlling the switching of the display page based on the track input of the operating body, the input track of the input device can be used to select the content data, and the input track of the operating body can be used to switch the display page, which improves the efficiency of obtaining multiple content data and avoids conflicts in track input. The user's content editing experience and content reading experience are improved.

[0058] In some embodiments, Figure 5 As shown, the method also includes:

[0059] Step 103: responding to a switching instruction based on the terminal device being in the target acquisition mode, wherein the switching instruction is used to change a display page of a display area of ​​a display screen;

[0060] In which, the display page comes from the same application, or the display page comes from different applications; the at least one content data includes multiple content data, and the multiple content data are data at different locations of the same application, or the multiple content data are data of different applications; the user can execute target instructions on the content data in different display pages of the same application, or on the content data of display pages of different applications by switching display pages.

[0061] In one embodiment, when a user uses a stylus pen to see multiple or single contents that he wants to copy in the display page of an application, he can press and hold the button on the pen to circle the multiple scattered contents that he needs to copy in the display page as at least one content data; the at least one content data can be content data in the same display page of the same application, or content data in different display pages of the same application, or content data in display pages of different applications. If the at least one content data required by the user comes from different display pages of the same application, or from display pages of different applications, the display page can be switched to continue copying the contents of different display pages; the terminal device can generate a switching instruction based on the switching operation, and switch the display page in response to the switching instruction so that the user can continue copying.

[0062] In the embodiment of the present application, by changing the display page in response to the switching instruction, the target instruction can be executed on the content data of multiple different display pages, thereby improving the convenience and flexibility of the content data responding to the target instruction.

[0063] In some embodiments, the method further includes: responding to another target instruction corresponding to the target acquisition mode on the target display page in response to a third control signal; the third control signal is a control signal generated by the input device based on a third trigger operation of the input device.

[0064] Among them, the third trigger operation may be an operation in which the input device presses the terminal device for a fourth preset time period; the other target instruction may be a paste instruction; the target display page may be a display page for pasting at least one content data; the target display page and the display page of at least one content data may be on the same display page, or on different display pages of the same application, or on display pages of different applications.

[0065] In one embodiment, the terminal device may generate a paste instruction according to the received third trigger operation, and paste the at least one content data to the target display page based on the paste instruction.

[0066] In another embodiment, the terminal device may also pop up a "Paste" control on the target display page based on the paste instruction, and paste at least one content data to the target display page when a user triggers the "Paste" control.

[0067] In the embodiment of the present application, by responding to another target instruction based on the third control signal, the content data can be made to respond to different target instructions (the target instruction and another target instruction) more efficiently and conveniently.

[0068] Figure 6 A flowchart of a content editing method according to an embodiment of the present application is shown in FIG. Figure 6 As shown, the method comprises the following steps:

[0069] Step 602: In response to a first control signal, determining that the terminal device turns on a target acquisition mode; the first control signal is a control signal generated by an input device based on a first trigger operation of a target control of the input device;

[0070] Among them, the target control can be a control or button on the input device; the first trigger operation can be pressing the target control, single-clicking the target control, double-clicking the target control, pressing the target control for a first preset time, etc.; the first control signal can be a high-level signal or a low-level signal generated based on the first trigger operation; the target acquisition mode can be a mode for realizing the target function, and the target acquisition mode can include copy mode, delete mode, collection mode, send mode, search mode, reference mode, annotation mode and translation mode, etc.

[0071] Step 604: based on the terminal device being in the target acquisition mode, obtaining a first track input of the input device, determining at least one content data in response to the first track input, and responding to a first target instruction corresponding to the target acquisition mode with the at least one content data;

[0072] Among them, the first trajectory input can be drawing a circle, drawing an underline, drawing an overline, drawing a strikethrough, drawing a bracket, etc.; the first target instruction corresponds to the target acquisition mode, and at least one content data can be determined according to the first trajectory input, and the target acquisition mode and the first target instruction can be determined according to the first trajectory input, that is, different first trajectory inputs correspond to different target acquisition modes and first target instructions. For example, when the first trajectory input is drawing a circle, the target acquisition mode is determined to be a copy mode, and the first target instruction is to copy at least one content data to a clipboard; when the first trajectory input is drawing an underline, the target acquisition mode is determined to be a reference mode, and the first target instruction is determined to reference at least one content data; when the first trajectory input is drawing a strikethrough, the target acquisition mode is determined to be a deletion mode, and the first target instruction is determined to delete at least one content data.

[0073] Step 606: In response to a second control signal, determine that the terminal device ends the target acquisition; the second control signal is a control signal generated by the input device based on a second trigger operation of the target control of the input device.

[0074] Among them, the first trigger operation may correspond to the second trigger operation, the first trigger operation may indicate the start of the target acquisition mode, and the second trigger operation may indicate the end of the target acquisition; the second trigger operation may be leaving (releasing) the target control, pressing the target control for a second preset time, etc., the second control signal may be a low-level signal or a high-level signal generated based on the second trigger operation, and the target acquisition may be ended when the second control signal is received.

[0075] In an embodiment of the present application, by determining, based on a first control signal, whether the terminal device has turned on the target acquisition mode, and in the target acquisition mode, determining the content data and the first target instruction based on the trajectory input of the input device, and determining the end of acquisition based on a second control signal, and responding to the first target instruction corresponding to the target acquisition mode based on the content data, the content data can be determined more conveniently and efficiently, and then at least one content data can be made to respond to the target instruction more conveniently and efficiently; in addition to determining the first target instruction through the first control signal, the first target instruction can also be determined through trajectory input, which increases the diversity and flexibility of determining the first target instruction.

[0076] In some embodiments, Figure 7 As shown, the method further comprises the following steps:

[0077] Step 608: Based on the terminal device being in the target acquisition mode, obtaining a second track input of the input device;

[0078] The second trajectory input may be a trajectory input different from the first trajectory input. When the first trajectory input is drawing a circle, the second trajectory input may be drawing a bracket.

[0079] Step 610: Respond to the second target instruction corresponding to the target acquisition mode with the at least one content data; wherein the starting point of the second trajectory input is located in the area where any one of the at least one content data is located; and the ending point of the second trajectory input is a new position that is not the starting point.

[0080] Among them, the second target instruction can correspond to the target acquisition mode. When the target acquisition mode is the copy mode, the second target instruction can be a paste instruction; when the target acquisition mode is the send mode, the second target instruction can be a target contact selection instruction; in some embodiments, when the second track input is received, all content data can be used as the content to be pasted; in other embodiments, the content data for executing the second target instruction can also be determined according to the second track input, such as using the content between the starting point of the second track input and the ending point of the second track input as the content to be pasted; for example, when the second track input is a drawing bracket, the content between the left bracket and the right bracket is used as the content to be pasted.

[0081] In the embodiment of the present application, by determining the content data to respond to the second target instruction according to the second trajectory input, the content data can be made to respond to the second target instruction more efficiently and conveniently.

[0082] Many users often use the stylus as an input device for some text editing and basic functions when using a mobile phone with a stylus. There are also many users who, after getting a stylus, directly use the stylus instead of finger input due to usage habits.

[0083] When users use a stylus to perform text editing operations, they are likely to use the copy and paste function. However, the copy and paste function in the current mobile phone system has not been specially optimized for the pen, and is only the most basic operation, resulting in some specific scenarios when users use the stylus being unable to meet their usage needs.

[0084] For example, a user is writing a note and wants to copy a few useful sentences from a webpage he has read before as part of his note. However, these sentences are scattered in different paragraphs of this webpage. The user wants to copy these sentences and paste them all into the note he is writing. Using the copy and paste function on the mobile phone, it takes multiple tedious steps to complete the task.

[0085] Some third-party keyboards can support the storage of multiple clipboard contents. Users can copy multiple contents and select the copied contents one by one when pasting to the target location. However, the disadvantages of this solution include: if the contents are scattered in multiple places in a chapter, it is too troublesome to copy them. You need to copy them one by one (each one needs to be long pressed, selected, and selected to copy in the pop-up box), then open the target address, open the clipboard on the keyboard, and select multiple clipboards to record the repeated operation of pasting.

[0086] In view of the above problems and the defects of the solutions in the related technologies, this solution proposes:

[0087] On a mobile phone with an active pen, there is a shortcut button on the active pen, which can be long-pressed to set as a copy command. Therefore, when the user uses the pen to see multiple or single contents that he wants to copy on a web page or other applications, he long-presses the shortcut button on the pen, circles the multiple scattered contents that he needs to copy in the interface, and then releases the button, indicating that the copy action is completed. At this time, all the contents just copied are recorded in a clipboard. When the user clicks the paste control in the target application, all the contents just copied will be pasted at the target location.

[0088] With this solution, users can directly circle the desired content with the pen, which is convenient and quick, and more in line with natural usage habits. The start and end of the copy action can be controlled by the shortcut button on the pen. When selecting the content to be copied one by one, it does not affect the user's need to continue browsing web pages or other interface content.

[0089] Figure 8 FIG. 1 is a flow chart of a method for copying and pasting content using an active pen according to an embodiment of the present application. Figure 8 As shown, the method comprises the following steps:

[0090] Step S801: The user writes a note;

[0091] Among them, users can write notes through note. Note is an application that can record memos, write diaries, notes or experiences. Users can edit notes and other contents in the note editing interface 80.

[0092] Step S802: browsing web pages;

[0093] When a user is writing a note in the note editing interface, if he wants to take useful words from a web page he has viewed before as part of his note, he can open other applications, browse the web page 81 therein, and copy the relevant content.

[0094] Step S803: start copying content;

[0095] There is a button 801 on the stylus pen, and the user can press and hold the button 801 on the stylus pen to directly enter the content copy mode and start copying content. The content 811 in the area swiped across the page 81 will be copied to the clipboard.

[0096] Step S804: continue to copy content;

[0097] The user can keep pressing the button on the pen and continue to copy multiple scattered contents in the interface, such as content 812 and content 813. When selecting the contents to be copied one by one, the user can continue to browse other web pages or browse the interface contents of other applications.

[0098] Step S805: Release the button to complete the copying;

[0099] The user can release the button on the pen to complete the copying, and all the selected contents are copied to the clipboard. The web page 82 can display a prompt content 821 “All contents have been copied”.

[0100] Step S806: Open the note;

[0101] Step S807: click to paste the control;

[0102] The user can open a note, long-press a target position 802 of the note editing interface 80, and a "paste" control 803 pops up;

[0103] Step S808: Paste all the content just copied.

[0104] Among them, after the user clicks the paste option, all the copied content (content 811 to content 813) will be pasted at the target location.

[0105] It should be noted that, in the embodiment of the present application, if the above-mentioned content editing method is implemented in the form of a software function module, and when it is sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a terminal device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0106] Based on the embodiments of the aforementioned methods, the embodiments of the present application provide a content editing device, which includes the modules included and can be implemented by a processor in the device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0107] Fig. 9 This is a schematic diagram of the composition structure of a content editing device according to an embodiment of the present application. Fig. 9 As shown, the device 900 includes a first determining module 901, a first obtaining module 902 and a first responding module 903, wherein:

[0108] A first determination module 901 is used to determine that the terminal device is in a target acquisition mode in response to a first control signal; the first control signal is a control signal generated by an input device based on a first trigger operation of a target control of the input device;

[0109] A first obtaining module 902, configured to obtain a track input of the input device based on the terminal device being in a target obtaining mode, and determine at least one content data in response to the track input;

[0110] The first response module 903 is used to respond to the target instruction corresponding to the target acquisition mode based on the at least one content data in response to the second control signal; the second control signal is a control signal generated by the input device based on the second trigger operation of the target control of the input device.

[0111] In some embodiments, the first response module 903 includes: a display submodule, used to display the at least one content data in response to a second control signal; a first response submodule, used to respond to a modification operation for the at least one content data if the modification operation is obtained, and respond to the target instruction corresponding to the target acquisition mode with the at least one modified content data; a second response submodule, used to respond to the target instruction corresponding to the target acquisition mode with the at least one content data if the modification operation is not obtained for the at least one content data.

[0112] In some embodiments, the first obtaining module 902 includes: a first obtaining submodule, used to obtain a trajectory input from a first input interface based on the terminal device being in a target acquisition mode, the first input interface being used to obtain an input of the input device on a display area of ​​a display screen; and a third responding submodule, used to respond to a selection instruction based on the trajectory input with a target content matching the trajectory input in a display page displayed in the display area.

[0113] In some embodiments, the first acquisition module 902 includes: a second acquisition submodule, which is used to obtain a trajectory input based on that the terminal device is in a target acquisition mode; a fourth response submodule, which is used to respond to a selection instruction with a target content matching the trajectory input in a display page displayed in the display area if the trajectory input belongs to the input device based on the trajectory input; and a switching submodule, which is used to control the switching of the display page displayed in the display area based on the trajectory input if the trajectory input belongs to an operating body.

[0114] In some embodiments, the apparatus further comprises: a switching module, for responding to a switching instruction based on the terminal device being in the target acquisition mode, wherein the switching instruction is used to change a display page of a display area of ​​a display screen; wherein the display page is from the same application, or the display page is from a different application. The at least one content data comprises a plurality of content data, wherein the plurality of content data are data at different locations of the same application, or the plurality of content data are data of different applications.

[0115] Fig.10 FIG. 1 is a schematic diagram of the composition structure of another content editing device according to an embodiment of the present application. Fig.10 As shown, the device 1000 includes a second determining module 1001, a second obtaining module 1002 and a second responding module 1003, wherein:

[0116] The second determination module 1001 is used to determine whether the terminal device starts the target acquisition mode in response to a first control signal; the first control signal is a control signal generated by the input device based on a first trigger operation of the target control of the input device;

[0117] A second obtaining module 1002 is configured to obtain a first track input of the input device based on the terminal device being in a target obtaining mode, determine at least one content data in response to the first track input, and respond to a first target instruction corresponding to the target obtaining mode with the at least one content data;

[0118] The second response module 1003 is used to determine that the terminal device ends the target acquisition in response to a second control signal; the second control signal is a control signal generated by the input device based on a second trigger operation of the target control of the input device.

[0119] In some embodiments, the apparatus further includes: a third acquisition module, configured to obtain a second trajectory input of the input device based on that the terminal device is in a target acquisition mode; a third response module, configured to respond to a second target instruction corresponding to the target acquisition mode with the at least one content data; wherein the starting point of the second trajectory input is located in an area where any one of the at least one content data is located; and the ending point of the second trajectory is a new position other than the starting point.

[0120] Correspondingly, an embodiment of the present application provides a terminal device, Fig.11 A schematic diagram of a hardware entity of a terminal device according to an embodiment of the present application is shown in FIG. Fig.11 As shown, the terminal device 1100 includes: a display screen 1101 and a processor 1102, wherein:

[0121] Display screen 1101, used for receiving control signals and track input, and sending the control signals and track input to a processor; the control signals include a first control signal and a second control signal;

[0122] Wherein, the display screen may be a touch screen.

[0123] Processor 1102 is used to determine that the terminal device is in a target acquisition mode in response to a first control signal; the first control signal is a control signal generated by the input device based on a first trigger operation of a target control of the input device; based on the terminal device being in the target acquisition mode, obtain a trajectory input of the input device, and determine at least one content data in response to the trajectory input; in response to a second control signal, respond to a target instruction corresponding to the target acquisition mode based on the at least one content data; the second control signal is a control signal generated by the input device based on a second trigger operation of the target control of the input device.

[0124] Through the embodiments provided by the present application described above, the user can operate the shortcut key (touch key, i.e., a touch area or physical key) of the stylus to press the electronic device to enter the target acquisition mode. In this target acquisition mode, the electronic device can respond to the input trajectory of the stylus to obtain multiple different contents scattered in different locations or / and different applications, and the content can be at least one of the following characters, strings, pictures, icons, video files or audio files, etc. That is, the input trajectory of the stylus is the input trajectory when the shortcut key of the stylus is maintained in a pressed state. When the shortcut key of the stylus is maintained in a pressed state, any trajectory of the input of the stylus (circle, line, diagonal line, etc.) can respond to the acquisition of the content located at the corresponding position. Therefore, the electronic device responds to the input trajectory of the stylus (i.e., obtained by establishing a first channel with the stylus, for example, a Bluetooth channel) when the first control signal (i.e., obtained by establishing a second channel different from the first channel with the stylus, such as a sensing channel for sensing the input of the stylus tip) to obtain multiple different contents scattered in different locations or / and different applications. In addition, when the shortcut key of the stylus is maintained in a pressed state, the electronic device further identifies the input trajectory of the finger to respond to the switching of different pages under the same application or the switching between different applications. Thereby improving the efficiency of the input trajectory of the stylus for obtaining multiple contents and avoiding conflicts in the trajectory input. If the electronic device obtains that the user releases the shortcut key (touch key, i.e., a touch area or a physical key) for the stylus and presses it (i.e., the second control signal), the multiple contents obtained are copied to the clipboard. In another embodiment, before copying to the clipboard, the multiple contents obtained can be displayed to provide a user with modification, deletion or layout. That is, the multiple contents copied to the clipboard are regarded as one content relative to the clipboard. Of course, the multiple contents copied to the clipboard can also be regarded as multiple corresponding contents relative to the clipboard. Thereby improving the input efficiency of the stylus.

[0125] Correspondingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method are implemented. The computer-readable storage medium can be transient or non-transient.

[0126] Correspondingly, an embodiment of the present application provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be implemented specifically by hardware, software or a combination thereof. In an optional embodiment, the computer program product is specifically embodied as a computer storage medium, and in another optional embodiment, the computer program product is specifically embodied as a software product, such as a software development kit (Software Development Kit, SDK) and the like.

[0127] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure for understanding.

[0128] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present disclosure. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present disclosure, the size of the serial number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure. The serial numbers of the embodiments of the present disclosure are for description only and do not represent the advantages and disadvantages of the embodiments.

[0129] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0130] In the several embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0131] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0132] In addition, all functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may be separately configured as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0133] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, magnetic disks or optical disks.

[0134] Alternatively, if the above-mentioned integrated unit of the present disclosure is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0135] The above description is only an implementation mode of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure.

Claims

1. A content editing method, comprising: In response to the first control signal, determining that the terminal device is in a target acquisition mode; The first control signal is a control signal generated by the input device based on a first trigger operation of a target control of the input device; Based on the terminal device being in a target acquisition mode, obtaining a trajectory input of the input device, and determining at least one content data in response to the trajectory input; The method includes: if the track input belongs to the input device, responding to the selection instruction with the target content matching the track input in the display page displayed in the display area based on the track input; if the track input belongs to the operating body, controlling the switching of the display page displayed in the display area based on the track input; In response to a second control signal, a target instruction corresponding to the target acquisition mode is responded to based on the at least one content data; the second control signal is a control signal generated by the input device based on a second trigger operation of the target control of the input device.

2. The method according to claim 1, characterized in that The responding to the target instruction corresponding to the target acquisition mode based on the at least one content data includes: presenting the at least one content data; If a modification operation for the at least one content data is obtained, in response to the modification operation, responding to the target instruction corresponding to the target acquisition mode with the modified at least one content data; If no modification operation for the at least one content data is obtained, respond to the target instruction corresponding to the target acquisition mode with the at least one content data.

3. The method according to claim 1, characterized in that The method of obtaining a track input of the input device based on the terminal device being in a target acquisition mode, and determining at least one content data in response to the track input comprises: Based on the terminal device being in a target acquisition mode, obtaining a trajectory input from a first input interface, where the first input interface is used to obtain an input of the input device on a display area of ​​a display screen; Based on the trace input, the target content matching the trace input in the display page displayed in the display area responds to the selection instruction.

4. The method according to claim 1, wherein The method further comprises: Based on the terminal device being in the target acquisition mode, responding to a switching instruction, the switching instruction is used to change a display page of a display area of ​​a display screen; The display page comes from the same application, or the display page comes from different applications; the at least one content data includes multiple content data, and the multiple content data are data at different locations of the same application, or the multiple content data are data from different applications.

5. A content editing method, comprising: In response to the first control signal, determining that the terminal device starts a target acquisition mode; The first control signal is a control signal generated by the input device based on a first trigger operation of a target control of the input device; Based on the terminal device being in a target acquisition mode, obtaining a first trace input of the input device, determining at least one content data in response to the first trace input, and responding to a first target instruction corresponding to the target acquisition mode with the at least one content data; In response to a second control signal, determining that the terminal device ends the target acquisition; The second control signal is a control signal generated by the input device based on a second triggering operation of a target control of the input device.

6. The method according to claim 5, characterized in that The method further comprises: Based on the terminal device being in a target acquisition mode, obtaining a second trajectory input of the input device; Responding to a second target instruction corresponding to the target acquisition mode with the at least one content data; The starting point of the second track input is located in the area where any one of the at least one content data is located; and the ending point of the second track input is a new position other than the starting point.

7. A terminal device, comprising: a display screen, configured to receive a control signal and a trajectory input, and send the control signal and the trajectory input to a processor; The control signal includes a first control signal and a second control signal; The processor is used to implement the steps in the method according to any one of claims 1 to 6.

8. A content editing device, comprising: A first determining module, configured to determine, in response to a first control signal, that the terminal device is in a target acquisition mode; The first control signal is a control signal generated by the input device based on a first trigger operation of a target control of the input device; a first obtaining module, configured to obtain a track input of the input device based on the terminal device being in a target obtaining mode, and determine at least one content data in response to the track input; The method includes: if the track input belongs to the input device, responding to the selection instruction with the target content matching the track input in the display page displayed in the display area based on the track input; if the track input belongs to the operating body, controlling the switching of the display page displayed in the display area based on the track input; The first response module is used to respond to the target instruction corresponding to the target acquisition mode based on the at least one content data in response to the second control signal; the second control signal is a control signal generated by the input device based on the second trigger operation of the target control of the input device.

9. A content editing device, comprising: A second determining module is configured to determine, in response to the first control signal, whether the terminal device starts a target acquisition mode; The first control signal is a control signal generated by the input device based on a first trigger operation of a target control of the input device; a second obtaining module, configured to obtain a first trace input of the input device based on the terminal device being in a target obtaining mode, determine at least one content data in response to the first trace input, and respond to a first target instruction corresponding to the target obtaining mode with the at least one content data; A second response module, configured to determine, in response to a second control signal, that the terminal device ends the target acquisition; The second control signal is a control signal generated by the input device based on a second triggering operation of a target control of the input device.