Text processing method and device

By receiving character selection and input operations on an electronic device and directly storing the target text in a clipboard, the problem of complicated text processing operations is solved and efficiency is improved.

CN114518827BActive Publication Date: 2025-09-05VIVO MOBILE COMM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210155603.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-21
Publication Date
2025-09-05
Estimated Expiration
2042-02-21

AI Technical Summary

Technical Problem

When copying, pasting and editing text information, the operations are complicated, which increases the user's operation steps and reduces the efficiency of text processing.

Method used

By receiving the user's character selection operation on the display interface of the electronic device, determining the text between the first character and the second character as the target text, and directly storing it in the target clipboard through the input operation, the cross-application operation process is simplified.

Benefits of technology

It reduces the user's operation steps, improves the efficiency of text processing, and avoids the tedious operation of frequently switching applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114518827B_ABST
    Figure CN114518827B_ABST
Patent Text Reader

Abstract

The present application discloses a text processing method and apparatus thereof, belonging to the field of communication technology. The text processing method specifically comprises: receiving a user selection operation of N characters in a first text on a first display interface of an electronic device, where N is a positive integer greater than 1; in response to the selection operation, determining the first character and the second character, and determining the text between the first character and the second character in the first text as a first target text; receiving a first input from the user for the first target text; and in response to the first input, storing the first target text in a target clipboard.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a text processing method and device thereof. Background Art

[0002] At present, with the development of science and technology, smart electronic devices are becoming more and more integrated into all aspects of people's lives, work and social interactions. When using smart electronic devices in daily life, people often copy, paste and edit text information in smart electronic devices to obtain the target text information for sending or saving.

[0003] However, copying text requires selecting the text, adjusting the cursor, and then copying the text. Furthermore, when copying text across applications, users must frequently switch applications to copy the text from one application to another for processing. This makes copying, pasting, and editing text complicated, increasing the number of steps required and reducing text processing efficiency. Summary of the Invention

[0004] The purpose of the embodiments of the present application is to provide a text processing method and device thereof, which can solve the problem that when copying, pasting and editing text information, the operations are complicated, the user's operation steps are increased, and the efficiency of text processing is reduced.

[0005] In a first aspect, an embodiment of the present application provides a text processing method, which includes: receiving a user's selection operation of N characters in a first text in a first display interface of an electronic device, where N is a positive integer greater than 1; in response to the selection operation, determining the first character and the second character, and determining that the text between the first character and the second character in the first text is a first target text; receiving a first input of the user for the first target text; and in response to the first input, storing the first target text in a target clipboard.

[0006] In a second aspect, an embodiment of the present application provides a text processing device, which includes: a receiving unit for receiving a user's selection operation of N characters in a first text in a first display interface of an electronic device, where N is a positive integer greater than 1; a processing unit for determining the first character and the second character in response to the selection operation, and determining that the text between the first character and the second character in the first text is the first target text; the receiving unit is also used to receive the user's first input of the first target text; the processing unit is also used to store the first target text in a target clipboard in response to the first input.

[0007] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0009] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.

[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method described in the first aspect.

[0011] In an embodiment of the present application, a user selects N characters in a first text on a first display interface of an electronic device, where N is a positive integer greater than 1; the electronic device determines the first character and the second character in response to the selection operation, and determines that the text between the first character and the second character in the first text is the first target text; then the user inputs the first target text; and the electronic device stores the first target text in a target clipboard in response to the first input. In this way, by selecting N characters in the first text, the first character and the second character are determined from the N characters, and then the first character and the second character are used as the first character and the last character of the text to be copied, and the first text between the first character and the second character is directly selected as the first target text to be copied, and then by inputting the first target text (i.e., the first input), the first target text is directly copied to the target clipboard of the corresponding application. The operation is simple, avoids the user frequently switching applications to perform cross-application operations, reduces the user's operation steps, and improves the efficiency of text processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 A flowchart of a text processing method provided in an embodiment of the present application;

[0013] Figure 2 One of the interface diagrams of the text processing method provided in the embodiment of the present application;

[0014] Figure 3 The second interface diagram of the text processing method provided in the embodiment of the present application;

[0015] Figure 4 The third interface diagram of the text processing method provided in the embodiment of the present application;

[0016] Figure 5 This is a fourth interface diagram of the text processing method provided in an embodiment of the present application;

[0017] Figure 6 This is a fifth interface diagram of the text processing method provided in an embodiment of the present application;

[0018] Figure 7 The sixth interface diagram of the text processing method provided in the embodiment of the present application;

[0019] Figure 8 The seventh interface diagram of the text processing method provided in the embodiment of the present application;

[0020] Figure 9 The eighth interface diagram of the text processing method provided in the embodiment of the present application;

[0021] Figure 10 This is a ninth interface diagram of the text processing method provided in an embodiment of the present application;

[0022] Figure 11 This is a tenth diagram of an interface of a text processing method provided in an embodiment of the present application;

[0023] Figure 12 This is an eleventh schematic diagram of the interface of the text processing method provided in an embodiment of the present application;

[0024] Figure 13 This is a twelfth schematic diagram of the interface of the text processing method provided in an embodiment of the present application;

[0025] Figure 14 This is a thirteenth schematic diagram of the interface of the text processing method provided in an embodiment of the present application;

[0026] Figure 15 A structural block diagram of a text processing device provided in an embodiment of the present application;

[0027] Figure 16 This is one of the hardware schematic diagrams of the electronic device provided in the embodiment of the present application;

[0028] Figure 17 This is the second hardware diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0029] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.

[0030] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0031] The technical solution of the text processing method provided in the embodiments of this application can be implemented by a text processing device. The specific implementation can be determined based on actual usage requirements and is not limited by the embodiments of this application. To more clearly describe the text processing method provided in the embodiments of this application, the following method embodiments are exemplified by using a text processing device as the implementation entity of the text processing method.

[0032] The text processing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0033] like Figure 1 As shown, the embodiment of the present application provides a text processing method, which may include the following steps S102 to S108:

[0034] Step S102: receiving a user's selection operation on N characters in a first text on a first display interface of an electronic device.

[0035] Among them, the text processing method proposed in the embodiment of the present application is applicable to an electronic device, which is an electronic device with a touch screen function. Specifically, the electronic device can be a smart phone, a tablet computer, a laptop computer with a touch screen function, etc., and no specific restrictions are made here.

[0036] Furthermore, the above-mentioned first display interface is the display interface of the current application of the electronic device. The first text is displayed in the first display interface. The first text is the text information in the current application. The first text includes multiple characters, and the above-mentioned N characters are N different characters among the multiple characters of the first text.

[0037] Furthermore, N is a positive integer greater than 1. Specifically, N can be 2, 3, 4, etc. The value of N can be set according to actual conditions and is not specifically limited here.

[0038] Specifically, when N is equal to 2, the above-mentioned selection operation may be a two-finger input operation of the user on two different characters in the first text, and the above-mentioned two-finger input operation is a touch input operation of the user on the above-mentioned two different characters. The two-finger input operation is specifically manifested as: a first single-finger input of the first character of the above-mentioned two different characters, and a second single-finger input of the second character of the above-mentioned two different characters, wherein the operation time of the first single-finger input overlaps with the operation time of the second single-finger input. Specifically, the above-mentioned first single-finger input and the second single-finger input can be executed simultaneously, or one of the first single-finger input and the second single-finger input can be executed first, and the other of the first single-finger input and the second single-finger input can be executed during the execution of the single-finger input.

[0039] Specifically, if the first and second single-finger inputs are executed simultaneously, they can be click input or long press input. If the first and second single-finger inputs are not executed simultaneously, the first single-finger input executed first is long press input, and the second single-finger input executed later is click input or long press input. The execution order and execution form of the first and second single-finger inputs can be set according to actual circumstances and are not specifically limited here.

[0040] Furthermore, when N is equal to 3, the above selection operation may be a three-finger input operation of the user on three different characters in the first text, and the above three-finger input operation is a touch input operation of the user on the above three different characters. Similarly, there is an overlapping part in the input operation time of the user on the three different characters.

[0041] Furthermore, when N is equal to 4, the above selection operation may be a four-finger input operation of the user on four different characters in the first text, and the above four-finger input operation is a touch input operation of the user on the above four different characters. Similarly, there is an overlapping part in the input operation time of the user on the four different characters.

[0042] Step S104: In response to the selection operation, determining the first character and the second character, and determining the text between the first character and the second character in the first text as the first target text.

[0043] Specifically, after receiving the user's selection operation of N characters in the first text, the first character and the second character are determined from the N characters according to the preset rules, and then based on the first character and the second character, at least one continuous text segment in the first text is selected according to the preset rules and determined as the first target text to be processed.

[0044] Specifically, when N is equal to 2 (that is, the above selection operation is a two-finger input operation), the two different characters corresponding to the two-finger input operation are directly determined as the first character and the second character, and then the determined first character and second character are respectively used as the first character and the last character of the text to be processed, the first text located between the first character and the second character is selected, and the first text segment is determined as the first target text to be processed.

[0045] Furthermore, when N is equal to 3 (that is, the above selection operation is a three-finger input operation), the characters corresponding to the input operation points at both ends of the three-finger input operation (that is, the characters at both ends of the above three different characters) are determined to be the first character and the second character, and then the first text between the first character and the second character is selected as the first target text.

[0046] Further, when N is equal to 4 (that is, the above-mentioned selection operation is a four-finger input operation), the characters corresponding to the input operation points at both ends of the four-finger input operation (that is, the characters at both ends of the above-mentioned four different characters) are determined to be the first character and the second character. At this time, a continuous text segment between the first character and the second character is selected as the text to be processed, that is, the first text between the characters corresponding to the input operation points at both ends of the four-finger input operation is determined to be the first target text; or two first characters and two second characters are respectively determined according to the order of the above-mentioned four different characters corresponding to the four-finger input operation. At this time, two continuous text segments in the first text are selected as the text to be processed according to the two groups of first characters and second characters, that is, two continuous text segments are respectively determined as the first target text according to the order of the four input operation points of the four-finger input operation.

[0047] It should be noted that, in actual application, the method of determining the first character and the second character based on the user's selection operation of N characters in the first text is not limited to the method described above. The first two characters or the last two characters or any other two characters in the N characters can also be determined as the first character and the second character. For the preset rules for determining the first character and the second character, the user can set them according to actual conditions, and no specific restrictions are made here.

[0048] Furthermore, after the first target text is determined, an indicator such as an underline, a shadow, a rectangular frame, etc. may be displayed below the first target text to indicate that the first target text has been selected.

[0049] For example, Figure 2 As shown, in Figure 2In (a), a first text 201 is displayed within a first display interface 200. A two-finger click operation on the character "虽" (i.e., the first character 202) and the character "的" (i.e., the second character 203) in the first text 201 is received by the user. At this time, N is equal to 2. In response to this two-finger click operation, as Figure 2 shown in (b), with the character "虽" as the leading character and the character "的" as the trailing character, the text between the character "虽" and the character "的" is selected, that is, the text between the character "虽" and the character "的" is determined as a first target text 204, and an underline is displayed below the first target text 204 to indicate that this segment of text has been selected.

[0050] Step S106: Receive a first input from the user for the first target text.

[0051] Among them, the first target text is the text to be processed selected through the above two-finger operation, and the first input is a touch input for the first target text.

[0052] Specifically, the first input is different from the above two-finger input operation. The first input can specifically be a click input, a press input, a linear slide input, a slide input along a preset trajectory, and no specific limitation is made here.

[0053] Step S108: In response to the first input, store the first target text in the target clipboard.

[0054] Among them, the first input has a first input parameter indicating the specific form of the input. The first input parameters corresponding to the first inputs of different input forms are different. The target clipboard is the clipboard in different applications of the electronic device.

[0055] Specifically, when the electronic device receives the first input from the user for the first target text, it determines the first input parameter of the first input, and then executes different instructions according to the first input parameter to copy the first target text to the clipboards of different applications of the electronic device.

[0056] Specifically, in the case where the first input is a click input, the first input parameter is the number of consecutive clicks. According to the different numbers of consecutive clicks of the user on the first target text, different instructions are executed to copy the first target text to the clipboards of different applications of the electronic device.

[0057] Further, in the case where the first input is a press input, the first input parameter is the pressing force. According to the different pressing forces of the user on the first target text, different instructions are executed to copy the first target text to the clipboards of different applications of the electronic device.

[0058] Furthermore, in the case where the first input is a linear sliding input, the first input parameter is a sliding direction, and different instructions are executed according to different sliding directions of the first input to copy the first target text to clipboards of different applications of the electronic device.

[0059] Furthermore, in the case where the first input is a sliding input along a preset trajectory, the first input parameter is the sliding trajectory, and different instructions are executed according to different first input sliding trajectories to copy the first target text to the clipboard of different applications of the electronic device.

[0060] The text processing method provided by the embodiment of the present application receives a user's selection operation of N characters in a first text in a first display interface of an electronic device, wherein N is a positive integer greater than 1; the electronic device determines the first character and the second character in response to the selection operation, and determines that the text between the first character and the second character in the first text is the first target text; then receives the user's first input of the first target text; the electronic device stores the first target text in the target clipboard in response to the first input. In this way, by performing the selection operation of N characters in the first text, the first character and the second character are determined from the N characters, and then the first character and the second character are used as the first character and the last character of the text to be copied, and the first text between the first character and the second character is directly selected as the first target text to be processed, and then by performing the input operation (i.e., the first input) on the first target text, the first target text is directly copied to the clipboard of different applications of the electronic device, which is simple to operate, avoids the user from frequently switching applications to operate across applications, reduces the user's operation steps, and improves the efficiency of text processing.

[0061] In the embodiment of the present application, the above step S108 may specifically include the following step S108a:

[0062] Step S108a: When the first input meets the first preset condition, the first target text is stored in a target clipboard, where the target clipboard includes: a clipboard of a foreground application.

[0063] The first input is distinct from the aforementioned two-finger input operation and can specifically include a click input, a press input, a linear slide input, or a slide input along a preset trajectory, without specific limitations herein. The first input has a first input parameter that represents the specific form of the input. Different first input forms correspond to different first input parameters.

[0064] Specifically, when the electronic device receives the user's first input of the first target text, it determines the first input parameter of the first input, and if the first input parameter meets the first preset condition, it copies the above-mentioned first target text to the clipboard of the foreground application, that is, it copies the above-mentioned first target text to the clipboard of the application in which it is located.

[0065] Specifically, when the first input is a click input, the first input parameter is the number of consecutive clicks. When the number of consecutive clicks of the user on the first target text meets the first preset number, the first target text is copied to the clipboard of the foreground application.

[0066] Furthermore, when the first input is a pressing input, the first input parameter is the pressing force. When the user's pressing force on the first target text meets the first preset force, the first target text is copied to the clipboard of the foreground application.

[0067] Furthermore, when the first input is a linear sliding input, the first input parameter is a sliding direction, and when the first input sliding direction conforms to a first preset direction, the first target text is copied to the clipboard of the foreground application.

[0068] Furthermore, when the first input is a sliding input along a preset trajectory, the first input parameter is the sliding trajectory. When the sliding trajectory of the first input meets the first preset trajectory, the first target text is copied to the clipboard of the foreground application.

[0069] Furthermore, in the embodiment of the present application, the above step S108 may further specifically include the following step S108b:

[0070] Step S108b: When the first input meets the second preset condition, the first target text is stored in a target clipboard, where the target clipboard includes: a system clipboard of the electronic device.

[0071] Specifically, when the electronic device receives the first input of the user for the first target text, it determines the first input parameter of the first input, and copies the first target text to the system clipboard of the electronic device if the first input parameter meets the second preset condition.

[0072] Specifically, when the first input is a click input, the first input parameter is the number of consecutive clicks. When the number of consecutive clicks of the user on the first target text meets the second preset number, the first target text is copied to the system clipboard of the electronic device.

[0073] Furthermore, when the first input is a pressing input, the first input parameter is the pressing force, and when the user's pressing force on the first target text meets the second preset force, the first target text is copied to the system clipboard of the electronic device.

[0074] Furthermore, when the first input is a linear sliding input, the first input parameter is a sliding direction, and when the first input sliding direction conforms to a second preset direction, the first target text is copied to the system clipboard of the electronic device.

[0075] Furthermore, when the first input is a sliding input along a preset trajectory, the first input parameter is the sliding trajectory, and when the sliding trajectory of the first input meets the second preset trajectory, the above-mentioned first target text is copied to the system clipboard of the electronic device.

[0076] Furthermore, in the embodiment of the present application, the above step S108 may further specifically include the following steps S108c and S108d:

[0077] Step S108c: When the first input meets the third preset condition, an application list is displayed on the first display interface, where a plurality of application icons are displayed in the application list.

[0078] Among them, the above-mentioned multiple application icons are icons of applications currently running on the electronic device, which include foreground application icons and background application icons.

[0079] Step S108d: In response to a selection input of the user selecting at least one target application from a plurality of application icons, the first target text is stored in a target clipboard, where the target clipboard includes: a clipboard of at least one target application.

[0080] Specifically, when the electronic device receives the user's first input of the first target text, it determines the first input parameter of the first input. If the first input parameter meets the third preset condition, it displays an application list on the first display interface. The application list displays application icons of multiple applications running on the electronic device. According to the user's selection input of the above application icons, the above first target text is copied to the clipboard of the corresponding application.

[0081] It should be noted that the user can select one or more application icons from a plurality of application icons, and the electronic device will simultaneously copy the first target text to the clipboard of one or more applications according to the icons selected by the user.

[0082] Specifically, when the first input is a click input, the first input parameter is the number of consecutive clicks. When the number of consecutive clicks of the first target text by the user meets the third preset number, the application list is displayed on the first display interface, and the above-mentioned first target text is copied to the clipboard of the corresponding application according to the user's selection.

[0083] Furthermore, when the first input is a press input, the first input parameter is the pressing force. When the user's pressing force on the first target text meets the third preset force, the application list is displayed on the first display interface, and the above-mentioned first target text is copied to the clipboard of the corresponding application according to the user's selection.

[0084] Furthermore, when the first input is a linear sliding input, the first input parameter is the sliding direction. When the first input sliding direction conforms to the third preset direction, the application list is displayed on the first display interface, and the above-mentioned first target text is copied to the clipboard of the corresponding application according to the user's selection.

[0085] Furthermore, when the first input is a sliding input along a preset trajectory, the first input parameter is the sliding trajectory. When the sliding trajectory of the first input meets the third preset trajectory, the application list is displayed on the first display interface, and the above-mentioned first target text is copied to the clipboard of the corresponding application according to the user's selection.

[0086] Exemplarily, the first input is a linear sliding input, such as Figure 3 As shown, in Figure 3 In (a), the user receives a two-finger left-swipe input for the first target text 204 (i.e., the first input is a two-finger linear slide, and the sliding direction is left), and the electronic device responds to the two-finger left-swipe input and directly stores the first target text 204 in the foreground application, i.e., the clipboard of the current application.

[0087] And in Figure 4 In (a), a two-finger right-slide input of the user to the first target text 204 is received (ie, the first input is a two-finger linear slide, the slide direction is right), and the electronic device responds to the two-finger right-slide input, such as Figure 4 As shown in (b), an application list 205 is displayed in the first display interface 200, and the application list 205 includes multiple application icons 206 (i.e., icons of Application 1, Application 2, Application 3 and Application 4). The user's selection input for the Application 1 and Application 3 icons is received, and the electronic device stores the first target text 204 in the clipboards of Application 1 and Application 3 in response to the selection input.

[0088] In the above-mentioned embodiment provided by the present application, upon receiving a first input of a first target text by a user, the electronic device determines a first input parameter of the first input and, if the first input parameter meets a preset condition, executes a corresponding instruction to copy the first target text to the clipboard of a different application of the electronic device. In this way, the first target text can be copied to the clipboard of a different application of the electronic device simply by inputting the first target text. This operation is simple, avoids the user frequently switching applications to perform cross-application operations, reduces the user's operation steps, and improves the efficiency of text processing.

[0089] In the embodiment of the present application, after the above step S108, the text processing method provided in the embodiment of the present application may further include the following step S110:

[0090] Step S110: Display a first indicator on the first display interface.

[0091] The first indicator is used to indicate the target clipboard. The first indicator corresponds to the target clipboard. The user can implement a series of operations on the corresponding target clipboard by inputting operations on the first indicator.

[0092] Specifically, the form of the first indicator corresponds to the application where the target clipboard is located, and the application where the target clipboard is located is expressed by the display form of the first indicator, that is, the storage location of the first target text is expressed by the display form of the first indicator.

[0093] Specifically, if the target clipboard is a foreground application clipboard or a background application clipboard, the first indicator can be displayed as an application icon; if the target clipboard is a system clipboard of an electronic device, the first indicator can be displayed as an electronic device icon. If the first target text is copied to the clipboards of multiple applications simultaneously, that is, if there are multiple target clipboards, the first indicator can be displayed as an icon component, and all icons can be expanded by inputting an operation on the icon component.

[0094] In addition, the first indicator may also express the application where the target clipboard is located in other display forms, which are not specifically limited here.

[0095] For example, Figure 3 As shown, the electronic device receives and responds to the user's double-finger left swipe input on the first target text 204, and stores the first target text 204 to the foreground application, that is, the clipboard of the current application, as shown in FIG. Figure 3 As shown in (b), the icon of the current application (ie, the first indicator 207 ) is displayed on the first display interface 200 to indicate that the first target text 204 is stored in the clipboard of the current application.

[0096] Similarly, if Figure 4 As shown in (c), after the first target text 204 is stored in the clipboards of application 1 and application 3, a first indicator mark 207 is displayed in the first display interface 200. At this time, the first indicator mark 207 is in the form of an icon component, which becomes the icons of application 1 and application 3 after expansion, indicating that the first target text 204 is stored in the clipboards of application 1 and application 3.

[0097] In the above embodiment provided by the present application, when the first target text is stored in the target clipboard, a first indicator is displayed on the first display interface, and the first indicator is used to indicate the target clipboard. In this way, the display form of the first indicator can be used to indicate the application where the target clipboard is located, that is, the display form of the first indicator can be used to indicate the storage location of the first target text, clearly and intuitively showing the copying status of the first target text, and facilitating the user to edit the first target text and the target clipboard.

[0098] In the embodiment of the present application, after the above step S110, the text processing method provided in the embodiment of the present application may further include the following steps S112 and S114:

[0099] Step S112: receiving a fifth input from the user to the first indication mark, and displaying a second operating component on the first display interface in response to the fifth input.

[0100] The first indicator is used to indicate the target clipboard. The first indicator corresponds to the target clipboard. The user can implement a series of operations on the corresponding target clipboard by inputting operations on the first indicator.

[0101] Furthermore, the fifth input is a touch input of the user on the first indication mark, and the touch input can specifically be a single-click input, a double-click input, a long press input, etc., which is not specifically limited here.

[0102] Step S114: receiving a sixth input from the user to the second operating component, and editing the text content in the target clipboard in response to the sixth input.

[0103] Among them, the second operation component includes multiple first operation controls, different first operation controls are used to implement different functions, and the sixth input is the user's touch input to the second operation component. Specifically, the sixth input is the user's touch input to the multiple first operation controls in the second operation component. The user can implement editing processing of the text content of the corresponding target clipboard through input operations on the multiple first operation controls in the second operation component.

[0104] In the above embodiment provided by the present application, when a first indicator mark is displayed on a first display interface, a fifth input of the user to the first indicator mark is received, and the electronic device displays a second operation component on the first display interface in response to the fifth input; and then a sixth input of the user to the second operation component is received, and the electronic device edits the text content in the corresponding target clipboard in response to the sixth input. In this way, after the first target text is copied to the target clipboard, the text content in the target clipboard can be edited by inputting the first indicator mark corresponding to the target clipboard. The operation is simple, avoids the user frequently switching applications to perform cross-application operations, reduces the user's operation steps, and improves the efficiency of text processing.

[0105] In the embodiment of the present application, the above step S114 may specifically include the following step S114a:

[0106] Step S114a: When a sixth input to the text sharing control in the second operating component is received, the text content in the target clipboard is edited, where the editing process includes sending the text content in the target clipboard to the first clipboard.

[0107] The target clipboard and the first clipboard are clipboards in different applications of the electronic device.

[0108] Specifically, the second operation component includes multiple first operation controls, and different first operation controls are used to implement different functions. Among them, the multiple first operation controls include a text sharing control, which receives user touch input (i.e., the sixth input) on the above text sharing control and sends the text content in the target clipboard to the clipboard of another application (i.e., the first clipboard).

[0109] Furthermore, in the embodiment of the present application, the above step S114 may further specifically include the following step S114b:

[0110] Step S114b: when a sixth input to the text adding control in the second operation component is received, the text content in the target clipboard is edited, and the editing process includes: adding the text content in the second clipboard to the target clipboard.

[0111] The target clipboard and the second clipboard are clipboards in different applications of the electronic device. The second clipboard and the first clipboard may be clipboards of different applications or may be clipboards of the same application.

[0112] Specifically, the second operation component includes multiple first operation controls, including a text adding control, which receives the user's touch input (i.e., the sixth input) to the above text adding control, and adds the text content in other application clipboards (i.e., the second clipboard) to the target clipboard.

[0113] Furthermore, in the embodiment of the present application, the above step S114 may further specifically include the following step S114c:

[0114] Step S114c: when a sixth input to the text deletion control in the second operation component is received, the text content in the target clipboard is edited, and the editing process includes: deleting the text content in the target clipboard.

[0115] Specifically, the second operation component includes multiple first operation controls, and different first operation controls are used to implement different functions. Among them, the multiple first operation controls include a text deletion control, which receives a user's touch input (i.e., the sixth input) to the above text deletion control and deletes the text content in the target clipboard.

[0116] Furthermore, in the embodiment of the present application, the above step S114 may further specifically include the following step S114d:

[0117] Step S114d: when a sixth input to the text preview control in the second operating component is received, the text content in the target clipboard is edited, and the editing process includes: previewing and displaying the text content in the target clipboard.

[0118] Specifically, the second operation component includes multiple first operation controls, and different first operation controls are used to implement different functions. Among them, the multiple first operation controls include a text preview control, which receives user touch input (i.e., the sixth input) to the above text preview control, displays a text preview interface in the first display interface, and displays the text content in the target clipboard in the text preview interface.

[0119] For example, in Figure 5 In, such as Figure 5 As shown in (a), when the first indicator 207 is displayed at the end of the first target text 204, the electronic device receives a single-click input (i.e., the fifth input) from the user on the first indicator 207, and responds to the single-click input, as shown in FIG. Figure 5 As shown in (b), a second operation component 208 is displayed in the first display interface 200, and the second operation component 208 includes multiple first operation controls 209. The user receives a single-click input (i.e., the sixth input) of the text preview control in the multiple first operation controls 209, and the electronic device responds to the single-click input, such as Figure 5As shown in (c), a text preview interface 210 is displayed within the first display interface 200, and the text content in the application clipboard corresponding to the first indication identifier 207 is displayed in the text preview interface 210.

[0120] In the above embodiments provided by the present application, when the first indication identifier is displayed on the first display interface, through the fifth input of the user to the first indication identifier, a second operation component is displayed on the first display interface. The second operation component includes a plurality of first operation controls. Through the input operations of the user on the plurality of first operation controls, editing operations such as sharing text, adding text, deleting text, and previewing text are performed on the text content in the corresponding target clipboard. In this way, after copying the first target text to the target clipboard, through the input operation on the first indication identifier corresponding to the target clipboard, the editing operation on the text content in the target clipboard can be realized. The operation is simple, avoiding the user from frequently switching applications for cross-application operations, reducing the user's operation steps, and improving the efficiency of text processing.

[0121] In the embodiments of the present application, after the above step S104, the text processing method provided by the embodiments of the present application may further include the following step S116:

[0122] Step S116: Display a second indication identifier on the first display interface.

[0123] Among them, the second indication identifier is used to indicate the selected first text (i.e., the first target text).

[0124] Further, the second indication identifier corresponds to the first target text. Specifically, the display area of the second indication identifier corresponds to the display area of the first target text. The user can adjust the text content of the first target text by changing the display area of the second indication identifier.

[0125] Specifically, the second indication identifier may specifically be in the form of an underline, a shadow, a rectangular box, etc. The specific form of the second indication identifier can be set according to the actual situation and is not specifically limited here.

[0126] Exemplarily, as Figure 2 shown in (b), after selecting the first target text 204 through the double-finger click operation on the character "虽" (i.e., the first character 202) and the character "的" (i.e., the second character 203) in the first text 201, an underline (i.e., the second indication identifier 211) is displayed below the first target text 204 to indicate that this paragraph of text has been selected.

[0127] In the above embodiment provided by the present application, after the first target text is determined, a second indicator is displayed on the first display interface. The second indicator is used to indicate the first target text, and the display area of ​​the second indicator corresponds to the display area of ​​the first target text. In this way, the display area of ​​the second indicator can be adjusted by inputting into the first display interface to adjust the display area of ​​the first target text, thereby flexibly changing the text content of the first target text. This operation is simple, avoids repeated selection of the first target text, reduces the user's operation steps, and improves the efficiency of text processing.

[0128] In the embodiment of the present application, after the above step S116, the text processing method provided in the embodiment of the present application may further include the following step S118:

[0129] Step S118: receiving a fourth input from the user on the first display interface, and in response to the fourth input, adjusting the display area of ​​the second indicator according to the fourth input to adjust the text content of the first target text.

[0130] The fourth input is a touch input of the user on the first display interface of the electronic device. The fourth input has a fifth input parameter that describes a specific form of the input. Different input forms of the fourth input correspond to different fifth input parameters.

[0131] Specifically, when the electronic device receives the fourth input from the user on the first display interface, it determines the fifth input parameter of the fourth input, and then executes different instructions according to the fifth input parameter to adjust the display area of ​​the second indicator mark, thereby adjusting the text content of the first target text.

[0132] Specifically, the fourth input may be a user's rotational sliding input of a specific area in the first display interface, and the fifth input parameter includes the input area (e.g., the left area and the right area of ​​the first target text) and the input rotation direction (e.g., clockwise rotation and counterclockwise rotation). Depending on the input area, the display area of ​​the second indicator at the beginning of the first target text is adjusted, or the display area of ​​the second indicator at the end of the first target text is adjusted; depending on the input rotation direction, the size of the display area of ​​the second indicator is increased or decreased.

[0133] For example, Figures 6 to 9 As shown, in Figure 6 In (a), a clockwise rotation input of the first display interface 200 to the right of the first target text 204 is received, and in response to the clockwise rotation input, as shown in FIG. Figure 6As shown in (b), the underline below the first target text 204 (i.e., the second indication identifier 211) extends backward from the last character '的', causing the last character of the first target text 204 to change from '的' to '般', increasing the text content of the first target text 204.

[0134] In Figure 7 (a), a counterclockwise rotation input of the first display interface 200 in the right area of the first target text 204 is received from the user. In response to this counterclockwise rotation input, as Figure 7 shown in (b), the underline below the first target text 204 (i.e., the second indication identifier 211) is withdrawn forward from the last character '的', causing the last character of the first target text 204 to change from '的' to '照', reducing the text content of the first target text 204.

[0135] In Figure 8 (a), a clockwise rotation input of the first display interface 200 in the left area of the first target text 204 is received from the user. In response to this clockwise rotation input, as Figure 8 shown in (b), the underline below the first target text 204 (i.e., the second indication identifier 211) is withdrawn backward from the first character '虽', causing the first character of the first target text 204 to change from '虽' to '但', reducing the text content of the first target text 204.

[0136] In Figure 9 (a), a counterclockwise rotation input of the first display interface 200 in the left area of the first target text 204 is received from the user. In response to this counterclockwise rotation input, as Figure 9 shown in (b), the underline below the first target text 204 (i.e., the second indication identifier 211) extends forward from the first character '虽', causing the first character of the first target text 204 to change from '虽' to '叶', increasing the text content of the first target text 204.

[0137] It should be noted that the above example is only one manifestation of the fourth input. In the actual application process, the display area of the second indication identifier can also be adjusted by specifying other manifestations of the fourth input. No specific limitation is made here.

[0138] In the above embodiments provided by the present application, when the second indication identifier is displayed on the first display interface, the display area of the second indication identifier is adjusted through an input operation on the first display interface, and then the display area of the first target text is adjusted, so as to flexibly adjust the text content of the first target text. The operation is simple, avoiding repeated selection operations on the first target text, reducing the operation steps of the user, and improving the efficiency of text processing.

[0139] In the embodiment of the present application, before the above step S106, the text processing method provided in the embodiment of the present application further includes the following steps S120 and S122:

[0140] Step S120: receiving a second input of a target character in the first target text from the user, and displaying a first operating component on the first display interface in response to the second input.

[0141] Among them, the target character is the character to be edited in the first target text selected by the user, and the second input is the user's touch operation on the target character, which is different from the above-mentioned two-finger input operation and the first input. The second input can specifically be the user's single-click input, sliding input and other input forms of the target character, and no specific restrictions are made here.

[0142] Furthermore, the first operation component is used to implement the editing function of the target character. The first operation component includes multiple second operation controls. Different second operation controls are used to implement different editing functions. The user can implement the editing operation of the target character by inputting operations on the multiple second operation controls in the first operation component.

[0143] Step S122: receiving a third input from the user to the first operating component, and in response to the third input, editing the target characters to perform an editing operation on the target text to obtain an edited first target text.

[0144] Among them, the third input is the user's touch input to the first operation component. Specifically, the third input is the user's touch input to multiple second operation controls in the first operation component. The user can edit the target characters through input operations on multiple second operation controls in the first operation component, thereby realizing the editing operation of the first target text.

[0145] In the above embodiment provided by the present application, before copying the first target text to the target clipboard, the user can display a first operation component on the first display interface by inputting the target characters in the first target text (i.e., the second input), and then edit the target characters by inputting the first operation component (i.e., the third input), thereby implementing the editing operation on the first target text. In this way, before copying the first target text to the target clipboard, the editing operation on the first target text can be implemented by inputting the first target text, and then the edited first target text can be copied to the target clipboard. The operation is simple, reduces the user's operation steps, and improves the efficiency of text processing.

[0146] In the embodiment of the present application, the above step S122 may specifically include the following step S122a:

[0147] Step S122a: when a third input to the character editing control in the first operation component is received, the target character is edited to perform an editing operation on the target text, where the editing operation includes: editing the target character.

[0148] Specifically, the first operation component includes multiple second operation controls, different second operation controls are used to implement different editing functions, and the multiple second operation controls include a character editing control, which receives the user's touch input (i.e., the third input) to the character editing control, and performs editing operations such as bold display, italic display, font size adjustment, and font adjustment on the target characters.

[0149] For example, Figure 10 As shown, in Figure 10 In (a), a single-finger sliding input of the user to the first target text 204 (ie, the target character 212) is received, and the electronic device responds to the single-finger sliding input, such as Figure 10 As shown in (b), a first operation component 213 is displayed in the first display interface 200, and the first operation component 213 includes multiple second operation controls 214. The user receives a single click input of a character editing control in the multiple second operation controls 214, and the electronic device responds to the single click input, such as Figure 10 As shown in (c), an editing operation list 215 is displayed on the first display interface 200, and the editing operation list 215 includes multiple editing operation controls 216. When a user clicks on an "I" (tilt) control in the multiple editing operation controls 216, the electronic device responds to the click input, such as Figure 10 As shown in (d), the target character "faint" is displayed at an angle.

[0150] Furthermore, in the embodiment of the present application, the above step S122 may further specifically include the following step S122b:

[0151] Step S122b: When a third input of adding a control to a character in the first operation component is received, the target character is edited to perform an editing operation on the target text, where the editing operation includes adding a third character to the first target text.

[0152] The third character is the character to be added input by the user.

[0153] Specifically, the multiple second operation controls also include a character adding control, which receives the user's touch input (i.e., the third input) to the character adding control, inserts and displays a first input box in front of the target character, and enters the third character to be added in the first input box to insert the third character in front of the target character for display.

[0154] Specifically, the first input box can also be inserted and displayed at other positions in the first target text (for example, behind the target character), so as to add the third character to other positions of the first target text, which is not limited here.

[0155] Exemplarily, as Figure 11 shown, in Figure 11 (a), upon receiving and responding to a single-finger sliding input of the user on "lightly" (i.e., the target character 212) in the first target text 204, a first operation component 213 is displayed within the first display interface 200. The first operation component 213 includes a plurality of second operation controls 214. Upon receiving a click input of the user on the character addition control among the plurality of second operation controls 214, the electronic device responds to this click input. As Figure 11 (b) shown, a first input box 218 is displayed in front of the character "lightly". The user's text input "thinly" is received for the first input box 218, and the first input box 218 and the text input therein are floatingly displayed within the first display interface 200, indicating that the character "thinly" is inserted in front of the character "lightly".

[0156] Further, in the embodiment of the present application, the above step S122 may specifically further include the following step S122c:

[0157] Step S122c: When receiving a third input on the character deletion control in the first operation component, edit the target character to perform an edit operation on the target text, and the edit operation includes: deleting the target character.

[0158] Specifically, the plurality of second operation controls further include a character deletion control. Upon receiving a touch input (i.e., the third input) of the user on the character deletion control, the target character in the first target text is deleted.

[0159] Specifically, when deleting the target character in the first target text, the target character can be directly deleted from the first target text, or a third indication identifier can be displayed around the target character. The third indication identifier is used to indicate that the target character has been deleted, facilitating a clear and intuitive display of the edit operation performed on the first target text.

[0160] Exemplarily, as Figure 12 shown, in Figure 12 (a), upon receiving and responding to a single-finger sliding input of the user on "lightly" (i.e., the target character 212) in the first target text 204, a first operation component 213 is displayed within the first display interface 200. The first operation component 213 includes a plurality of second operation controls 214. Upon receiving a click input of the user on the character deletion control among the plurality of second operation controls 214, the electronic device responds to this click input. As Figure 12As shown in (b), a dotted box (i.e., the third indication identifier 217) encloses the character "light", indicating that the character "light" has been deleted.

[0161] Further, in the embodiment of the present application, the above step S122 may specifically further include the following step S122d:

[0162] Step S1,22d: When receiving a third input to the character replacement control in the first operation component, edit the target character to perform an edit operation on the target text, and the edit operation includes: replacing the target character with a fourth character.

[0163] Herein, the fourth character is the character to be replaced input by the user.

[0164] Specifically, the multiple second operation controls further include a character replacement control. Receive a touch input (i.e., the third input) from the user to the character replacement control, display a fifth input box around the target character, and input the fourth character to be replaced in the fifth input box, so as to replace the target character in the first target text with the fourth character for display.

[0165] Exemplarily, as Figure 13 shown, in Figure 13 (a), receive and respond to a single-finger sliding input from the user to the character "light" (i.e., the target character 212) in the first target text 204, display a first operation component 213 in the first display interface 200. The first operation component 213 includes multiple second operation controls 214. Receive a click input from the user to the character replacement control among the multiple second operation controls 214. The electronic device responds to this click input. As Figure 13 (b) shows, display a fifth input box 219 above the character "light", receive the text input "thin" from the user to the fifth input box 219. The electronic device responds to this text input. As Figure 13 (c) shows, replace the target character 212 (i.e., "light") in the first target text 204 with the character "thin" for display.

[0166] In the above embodiment provided by the present application, before the first target text is copied to the target clipboard, a first operation component is displayed on the first display interface through the user's input operation (i.e., second input) on the target characters in the first target text. The first operation component includes multiple second operation controls. Through the user's input operation (i.e., third input) on the multiple second operation controls, the target characters are subjected to character editing, character deletion, character replacement, character addition and other editing operations to implement the editing operation of the first target text. In this way, before the first target text is copied to the target clipboard, the editing operation of the first target text can be implemented through the input operation, and then the edited first target text is copied to the target clipboard. The operation is simple, reduces the user's operation steps, and improves the efficiency of text processing.

[0167] In the embodiment of the present application, after the above step S122, the text processing method provided in the embodiment of the present application may further include the following step S124:

[0168] Step S124: when it is detected that a second target text having the same content as the first target text exists after the first target text, a first indicator control is displayed on the first display interface.

[0169] The second target text is located in the first text and after the first target text. The second target text has the same text content as the first target text, and there are one or more second target texts. The first indicator control is used to remind the user to perform the same editing operation on the second target text as on the first target text, that is, the first indicator control is used to remind the user to perform a batch operation on other text segments in the first text that have the same content as the first target text.

[0170] Specifically, the first indication control includes at least one operation control (eg, an "OK" control), and the editing process of the second target text is implemented through the user's input operation on the operation control in the second indication control.

[0171] For example, Figure 14 As shown, after completing the editing operations such as character editing, character deletion, character replacement, and character addition on the first target text 204, if it is detected that there is a text segment with the same text content as the first target text 204 behind the first text 201, a first indicator control 220 is displayed on the first display interface 200, and the text "The same text is detected, do you want to batch process it" is displayed in the first indicator control 220 to remind the user to perform batch editing operations on the text segments with the same text content as the first target text 204.

[0172] In the above embodiment provided by the present application, after completing the editing operations such as character editing, character deletion, character replacement, and character addition on the first target text, it is detected whether there is a text segment (i.e., a second target text) with the same content as the first target text in the first text. If the second target text exists, the user is reminded to perform a batch editing operation on the second target text through the first indicator control. In this way, when the second target text with the same content as the first target text is detected in the first text, the batch editing operation of the second target text is realized through a one-key operation, which is simple to operate, reduces the user's operation steps, and improves the efficiency of text processing.

[0173] The text processing method provided in the embodiment of the present application can be executed by a text processing device. In the embodiment of the present application, the text processing device provided in the embodiment of the present application is described by taking the text processing method performed by the text processing device as an example.

[0174] like Figure 15 As shown, an embodiment of the present application provides a text processing device 1500, which may include the following receiving unit 1502 and processing unit 1504.

[0175] The receiving unit 1502 is configured to receive a user's selection operation of N characters in a first text on a first display interface of the electronic device, where N is a positive integer greater than 1;

[0176] The processing unit 1504 is configured to determine, in response to the selection operation, the first character and the second character, and determine the text between the first character and the second character in the first text as the first target text;

[0177] The receiving unit 1502 is further configured to receive a first input of a first target text by a user;

[0178] The processing unit 1504 is further configured to store the first target text in the target clipboard in response to the first input.

[0179] In an embodiment of the present application, a text processing device 1500 receives a user's selection operation of N characters in a first text in a first display interface of an electronic device through a receiving unit 1502, determines a first character and a second character in response to the selection operation through a processing unit 1504, and determines that the text between the first character and the second character in the first text is a first target text; then receives a first input of the first target text by the user through the receiving unit 1502, and stores the first target text in a target clipboard in response to the first input through the processing unit 1504. In this way, by selecting N characters in the first text, the first character and the second character are determined from the N characters, and then the first character and the second character are used as the first character and the last character of the text to be copied, and the first text between the first character and the second character is directly selected as the first target text to be processed, and then by inputting the first target text (i.e., the first input), the first target text is directly copied to the clipboard of different applications of the electronic device, which is simple to operate, avoids the user from frequently switching applications to operate across applications, reduces the user's operation steps, and improves the efficiency of text processing.

[0180] Optionally, in an embodiment of the present application, the processing unit 1504 is also used to: when the first input meets the first preset condition, store the first target text in the target clipboard, the target clipboard includes: the clipboard of the foreground application; or when the first input meets the second preset condition, store the first target text in the target clipboard, the target clipboard includes: the system clipboard of the electronic device; or when the first input meets the third preset condition, display an application list on the first display interface, multiple application icons are displayed in the application list, and in response to the user's selection input selecting at least one target application from the multiple application icons, store the first target text in the target clipboard, the target clipboard includes: the clipboard of at least one target application.

[0181] Optionally, in an embodiment of the present application, the text processing device 1500 further includes a display unit, which is used to: display a first indicator mark on the first display interface when the first target text is stored in the target clipboard, wherein the first indicator mark is used to indicate the target clipboard.

[0182] Optionally, in an embodiment of the present application, the receiving unit 1502 is further used to receive the user's fifth input to the first indication mark; the display unit is further used to display the second operation component on the first display interface in response to the fifth input; the receiving unit 1502 is further used to receive the user's sixth input to the second operation component; the processing unit 1504 is further used to edit the text content in the target clipboard in response to the sixth input.

[0183] Optionally, in an embodiment of the present application, the processing unit 1504 can be specifically used to: upon receiving the sixth input to the text sharing control in the second operating component, perform editing processing on the text content in the target clipboard, the editing processing including: sending the text content in the target clipboard to the first clipboard; and / or upon receiving the sixth input to the text adding control in the second operating component, perform editing processing on the text content in the target clipboard, the editing processing including: adding the text content in the second clipboard to the target clipboard; and / or upon receiving the sixth input to the text deleting control in the second operating component, perform editing processing on the text content in the target clipboard, the editing processing including: deleting the text content in the target clipboard; and / or upon receiving the sixth input to the text preview control in the second operating component, perform editing processing on the text content in the target clipboard, the editing processing including: previewing and displaying the text content in the target clipboard.

[0184] Optionally, in an embodiment of the present application, the display unit is further used to: display a second indicator mark on the first display interface, wherein the second indicator mark is used to indicate the first target text.

[0185] Optionally, in an embodiment of the present application, the receiving unit 1502 is further used to receive a fourth input from the user to the first display interface; the processing unit 1504 is further used to respond to the fourth input and adjust the display area of ​​the second indicator according to the fourth input to adjust the text content of the first target text.

[0186] Optionally, in an embodiment of the present application, the receiving unit 1502 is further used to receive a second input from the user regarding a target character in the first target text; the display unit is further used to display a first operation component on the first display interface in response to the second input; the receiving unit 1502 is further used to receive a third input from the user regarding the first operation component; the processing unit 1504 is further used to edit the target character in response to the third input, so as to perform an editing operation on the target text and obtain the edited first target text.

[0187] Optionally, in an embodiment of the present application, the processing unit 1504 can be specifically used to: upon receiving a third input to the character editing control in the first operation component, edit the target character to perform an editing operation on the target text, the editing operation including: editing the target character; and / or upon receiving a third input to the character adding control in the first operation component, edit the target character to perform an editing operation on the target text, the editing operation including: adding a third character to the first target text; and / or upon receiving a third input to the character deleting control in the first operation component, edit the target character to perform an editing operation on the target text, the editing operation including: deleting the target character; and / or upon receiving a third input to the character replacing control in the first operation component, edit the target character to perform an editing operation on the target text, the editing operation including: replacing the target character with a fourth character.

[0188] Optionally, in an embodiment of the present application, the display unit is also used to: when a second target text with the same content as the first target text is detected after the first target text, display a first indicator control on the first display interface, wherein the first indicator control is used to remind the user to perform editing operations on the second target text.

[0189] In an embodiment of the present application, by selecting N characters in the first text, the first character and the second character are determined from the N characters, and then the first character and the second character are used as the first character and the last character of the text to be copied, and the first text between the first character and the second character is directly selected as the first target text to be processed, and then by inputting the first target text (i.e., the first input), the first target text is directly copied to the clipboards of different applications of the electronic device. In addition, before copying the first target text to the target clipboard, the first target text can also be edited. After the first target text is stored in the target clipboard, the text content in the target clipboard can be edited by the first indicator mark displayed in the first display interface, and the same text segment in the first text can be batch processed by the input operation. In this way, the user is avoided from frequently switching applications to operate across applications, the operation is simple, the user's operation steps are reduced, and the efficiency of text processing is improved.

[0190] The text processing device in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.

[0191] The text processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0192] The text processing device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented in the method embodiment are not described here.

[0193] Alternatively, as Figure 16 As shown, an embodiment of the present application also provides an electronic device 1600, including a processor 1601 and a memory 1602, wherein the memory 1602 stores a program or instruction that can be run on the processor 1601, and when the program or instruction is executed by the processor 1601, the various steps of the above-mentioned text processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0194] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0195] Figure 17 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0196] The electronic device 1700 includes but is not limited to: a radio frequency unit 1701, a network module 1702, an audio output unit 1703, an input unit 1704, a sensor 1705, a display unit 1706, a user input unit 1707, an interface unit 1708, a memory 1709, and a processor 1710.

[0197] Those skilled in the art will understand that the electronic device 1700 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 1710 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 17 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.

[0198] The user input unit 1707 is configured to receive a user's selection operation on N characters in a first text in a first display interface of the electronic device, where N is a positive integer greater than 1.

[0199] The processor 1710 is configured to, in response to a selection operation, determine a first character and a second character, and determine text between the first character and the second character in the first text as a first target text.

[0200] The user input unit 1707 is further configured to receive a first input of a first target text from a user.

[0201] The processor 1710 is further configured to, in response to the first input, store the first target text in the target clipboard.

[0202] In an embodiment of the present application, the electronic device 1700 receives a user's selection operation of N characters in a first text in a first display interface of the electronic device through a user input unit 1707, and determines the first character and the second character in response to the above selection operation through a processor 1710, and determines that the text between the first character and the second character in the first text is the first target text; then receives the user's first input of the first target text through the user input unit 1707, and stores the first target text in a target clipboard in response to the above first input through the processor 1710. In this way, by selecting N characters in the first text, the first character and the second character are determined from the N characters, and then the first character and the second character are used as the first character and the last character of the text to be copied, and the first text between the first character and the second character is directly selected as the first target text to be processed, and then by inputting the first target text (i.e., the first input), the first target text is directly copied to the clipboards of different applications of the electronic device, which is simple to operate, avoids the user from frequently switching applications to operate across applications, reduces the user's operation steps, and improves the efficiency of text processing.

[0203] Optionally, processor 1710 can be specifically used to: when the first input meets a first preset condition, store the first target text in a target clipboard, the target clipboard including: the clipboard of the foreground application; or when the first input meets a second preset condition, store the first target text in a target clipboard, the target clipboard including: the system clipboard of the electronic device; or when the first input meets a third preset condition, display an application list on the first display interface, multiple application icons are displayed in the application list, and in response to the user's selection input selecting at least one target application from the multiple application icons, store the first target text in the target clipboard, the target clipboard including: the clipboard of at least one target application.

[0204] Optionally, the display unit 1706 is configured to display a first indicator on the first display interface when the first target text is stored in the target clipboard, wherein the first indicator is used to indicate the target clipboard.

[0205] Optionally, the user input unit 1707 is also used to receive the user's fifth input to the first indication mark; the display unit 1706 is also used to display the second operation component on the first display interface in response to the fifth input; the user input unit 1707 is also used to receive the user's sixth input to the second operation component; the processor 1710 is also used to edit the text content in the target clipboard in response to the sixth input.

[0206] Optionally, the processor 1710 can be specifically used to: upon receiving the sixth input to the text sharing control in the second operating component, edit the text content in the target clipboard, and the editing process includes: sending the text content in the target clipboard to the first clipboard; and / or upon receiving the sixth input to the text adding control in the second operating component, edit the text content in the target clipboard, and the editing process includes: adding the text content in the second clipboard to the target clipboard; and / or upon receiving the sixth input to the text deleting control in the second operating component, edit the text content in the target clipboard, and the editing process includes: deleting the text content in the target clipboard; and / or upon receiving the sixth input to the text preview control in the second operating component, edit the text content in the target clipboard, and the editing process includes: previewing and displaying the text content in the target clipboard.

[0207] Optionally, the display unit 1706 is further configured to display a second indicator on the first display interface, wherein the second indicator is configured to indicate the first target text.

[0208] Optionally, the user input unit 1707 is further used to receive a fourth input from the user on the first display interface; the processor 1710 is further used to, in response to the fourth input, adjust the display area of ​​the second indicator according to the fourth input to adjust the text content of the first target text.

[0209] Optionally, the user input unit 1707 is also used to receive a second input from the user for the target character in the first target text; the display unit 1706 is also used to display the first operation component on the first display interface in response to the second input; the user input unit 1707 is also used to receive a third input from the user for the first operation component; the processor 1710 is also used to edit the target character in response to the third input to perform an editing operation on the target text to obtain the edited first target text.

[0210] Optionally, the processor 1710 can be specifically used to: upon receiving a third input to the character editing control in the first operation component, edit the target character to perform an editing operation on the target text, the editing operation including: editing the target character; and / or upon receiving a third input to the character adding control in the first operation component, edit the target character to perform an editing operation on the target text, the editing operation including: adding a third character to the first target text; and / or upon receiving a third input to the character deleting control in the first operation component, edit the target character to perform an editing operation on the target text, the editing operation including: deleting the target character; and / or upon receiving a third input to the character replacing control in the first operation component, edit the target character to perform an editing operation on the target text, the editing operation including: replacing the target character with a fourth character.

[0211] Optionally, the display unit 1706 is also used to display a first indicator control on the first display interface when a second target text with the same content as the first target text is detected after the first target text, wherein the first indicator control is used to remind the user to perform editing operations on the second target text.

[0212] The electronic device 1700 provided in the embodiment of the present application determines the first character and the second character from the N characters by selecting N characters in the first text, and then uses the first character and the second character as the first character and the last character of the text to be copied, directly selects the first text between the first character and the second character as the first target text to be processed, and then directly copies the first target text to the clipboards of different applications of the electronic device by inputting the first target text (i.e., the first input). In addition, before copying the first target text to the target clipboard, the first target text can also be edited. After storing the first target text in the target clipboard, the text content in each application clipboard can be edited by the first indicator mark displayed in the first display interface, and the same text segment in the first text can be batch processed by the input operation. In this way, the user is prevented from frequently switching applications to operate across applications, the operation is simple, the user's operation steps are reduced, and the efficiency of text processing is improved.

[0213] It should be understood that in an embodiment of the present application, the input unit 1704 may include a graphics processing unit (GPU) 17041 and a microphone 17042, and the graphics processor 17041 processes image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1706 may include a display panel 17061, and the display panel 17061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1707 includes a touch panel 17071 and at least one of other input devices 17072. The touch panel 17071 is also called a touch screen. The touch panel 17071 may include two parts: a touch detection device and a touch controller. Other input devices 17072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0214] The memory 1709 can be used to store software programs and various data. The memory 1709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1709 may include a volatile memory or a non-volatile memory, or the memory 1709 may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 1709 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0215] Processor 1710 may include one or more processing units. Optionally, processor 1710 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1710.

[0216] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned text processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0217] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0218] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned text processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0219] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0220] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned text processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0221] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising 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 statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0222] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0223] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A text processing method, characterized in that: The text processing method comprises: Receive a user selection operation of N characters in a first text on a first display interface of an electronic device, where N is a positive integer greater than 1; In response to the selection operation, determining a first character and a second character, and determining text between the first character and the second character in the first text as a first target text; receiving a first input of the first target text by the user; In response to the first input, storing the first target text in a target clipboard; The step of storing the first target text in a target clipboard in response to the first input includes: When the first input is received, a first input parameter of the first input is determined, and a corresponding instruction is executed according to the first input parameter to copy the first target text to a clipboard of a corresponding application.

2. The text processing method according to claim 1, characterized in that: The storing of the first target text into the target clipboard further includes: If the first input meets a first preset condition, the first target text is stored in a target clipboard, where the target clipboard includes: a clipboard of a foreground application; or If the first input meets the second preset condition, the first target text is stored in a target clipboard, where the target clipboard includes: a system clipboard of the electronic device; or When the first input meets the third preset condition, an application list is displayed on the first display interface, and multiple application icons are displayed in the application list; in response to the user's selection input of selecting at least one target application from the multiple application icons, the first target text is stored in a target clipboard, and the target clipboard includes: a clipboard of the at least one target application.

3. The text processing method according to claim 2, characterized in that: The text processing method further includes: Editing the text content in the target clipboard, wherein the editing process includes: Sending the text content in the target clipboard to the first clipboard; and / or Add the text content in the second clipboard to the target clipboard; and / or Deleting the text content in the target clipboard; and / or The preview displays the text content in the target clipboard.

4. The text processing method according to any one of claims 1 to 3, characterized in that: Before receiving a first input of the first target text by the user, the text processing method further includes: receiving a second input of a target character in the first target text by the user, and displaying a first operating component on the first display interface in response to the second input; A third input from the user to the first operating component is received, and in response to the third input, the target characters are edited to perform an editing operation on the target text to obtain the edited first target text.

5. The text processing method according to claim 4, characterized in that: The step of editing the target character in response to the third input to perform an editing operation on the target text specifically includes: In case of receiving the third input to the character editing control in the first operation component, editing the target character to perform an editing operation on the target text, the editing operation comprising: editing the target character; and / or In the case of receiving the third input of adding a control to a character in the first operation component, editing the target character to perform an editing operation on the target text, the editing operation comprising: adding a third character to the first target text; and / or In the case of receiving the third input to the character deletion control in the first operation component, editing the target character to perform an editing operation on the target text, the editing operation including: deleting the target character; and / or When the third input to the character replacement control in the first operation component is received, the target character is edited to perform an editing operation on the target text, and the editing operation includes: replacing the target character with a fourth character.

6. A text processing device, characterized in that: The text processing device comprises: a receiving unit, configured to receive a user's selection operation of N characters in a first text on a first display interface of an electronic device, where N is a positive integer greater than 1; a processing unit, configured to, in response to the selection operation, determine a first character and a second character, and determine text between the first character and the second character in the first text as a first target text; The receiving unit is further configured to receive a first input of the first target text by the user; The processing unit is further configured to store the first target text in a target clipboard in response to the first input; The processing unit is specifically configured to: upon receiving the first input, determine a first input parameter of the first input, and execute a corresponding instruction according to the first input parameter to copy the first target text to a clipboard of a corresponding application.

7. The text processing device according to claim 6, characterized in that The processing unit is further configured to: If the first input meets a first preset condition, the first target text is stored in a target clipboard, where the target clipboard includes: a clipboard of a foreground application; or If the first input meets the second preset condition, the first target text is stored in a target clipboard, where the target clipboard includes: a system clipboard of the electronic device; or When the first input meets the third preset condition, an application list is displayed on the first display interface, and multiple application icons are displayed in the application list; in response to the user's selection input of selecting at least one target application from the multiple application icons, the first target text is stored in a target clipboard, and the target clipboard includes: a clipboard of the at least one target application.

8. The text processing device according to claim 7, wherein: The processing unit is further configured to: Editing the text content in the target clipboard, wherein the editing process includes: Sending the text content in the target clipboard to the first clipboard; and / or Add the text content in the second clipboard to the target clipboard; and / or Deleting the text content in the target clipboard; and / or The preview displays the text content in the target clipboard.

9. The text processing device according to any one of claims 6 to 8, characterized in that: The receiving unit is further configured to receive a second input of a target character in the first target text by the user; The text processing device further includes a display unit, configured to display a first operating component on the first display interface in response to the second input; The receiving unit is further configured to receive a third input from the user on the first operating component; The processing unit is further configured to edit the target characters in response to the third input, so as to perform an editing operation on the target text and obtain the edited first target text.

10. The text processing device according to claim 9, wherein: The processing unit is specifically configured to: In case of receiving the third input to the character editing control in the first operation component, editing the target character to perform an editing operation on the target text, the editing operation comprising: editing the target character; and / or In the case of receiving the third input of adding a control to a character in the first operation component, editing the target character to perform an editing operation on the target text, the editing operation comprising: adding a third character to the first target text; and / or In the case of receiving the third input to the character deletion control in the first operation component, editing the target character to perform an editing operation on the target text, the editing operation including: deleting the target character; and / or When the third input to the character replacement control in the first operation component is received, the target character is edited to perform an editing operation on the target text, and the editing operation includes: replacing the target character with a fourth character.

Citation Information

Patent Citations

  • Terminal

    CN104156164A

  • Method and device for processing texts in mobile terminal and mobile terminal

    CN106168905A

  • Text selection method and device

    CN112748842A