Word processing method and word processing device

By preselecting part of the text during word processing and providing opportunities for preview and re-adjustment, the problem of error or missed deletion is solved, and the user interaction experience and word processing efficiency is improved.

CN113536745BActive Publication Date: 2025-07-29VIVO MOBILE COMM HANGZHOU CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110802568.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-15
Publication Date
2025-07-29
Estimated Expiration
2041-07-29

AI Technical Summary

Technical Problem

During the text input process, users need to re-enter after accidentally deleting content or missing it, resulting in poor user experience.

Method used

By pre-selecting some text as preprocessing objects when triggering the deletion control, and providing preview and re-adjustment during the preprocessing process, avoiding errors or missed deletion and improving user interaction experience.

Benefits of technology

It effectively avoids the situation of misdeletion or misdeletion, and improves the efficiency and user experience of word processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113536745B_ABST
    Figure CN113536745B_ABST
Patent Text Reader

Abstract

The present application discloses a text processing method and a text processing device, belonging to the field of communication technologies. The text processing method includes: when a first text is displayed, receiving a first input to a deletion control; in response to the first input, determining a corresponding second text in the first text; receiving a second input to the second text; and in response to the second input, performing a corresponding operation on the second text.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technologies, and particularly relates to a text processing method and a text processing device. Background Art

[0002] In the related art, when there is a need to delete or modify during text input, users are often accustomed to pressing the delete control to delete the entered text. However, after the user deletes, they cannot find the deleted content again. In case of accidental deletion, they need to re-enter, and the user experience of the deletion operation is poor. Summary of the Invention

[0003] The purpose of the embodiments of this application is to provide a text processing method and a text processing device, which can improve the user experience in the text processing process.

[0004] In a first aspect, the embodiments of this application provide a text processing method, including:

[0005] When a first text is displayed, receive a first input to the delete control;

[0006] In response to the first input, determine a corresponding second text in the first text;

[0007] Receive a second input to the second text;

[0008] In response to the second input, perform a corresponding operation on the second text.

[0009] In a second aspect, the embodiments of this application provide a text processing device, including:

[0010] A receiving module, configured to receive a first input to the delete control when a first text is displayed;

[0011] A determining module, configured to determine a corresponding second text in the first text in response to the first input;

[0012] The receiving module is further configured to receive a second input to the second text;

[0013] An execution module, configured to perform a corresponding operation on the second text in response to the second input.

[0014] In a third aspect, the embodiments of this application provide an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the method according to the first aspect are implemented.

[0015] Fourthly, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented.

[0016] Fifthly, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the steps of the method according to the first aspect.

[0017] In an embodiment of the present application, after a user inputs text in a dialog box of a document editing software or a chat software, the input text is displayed as first text. At this time, if the user makes a first input to a deletion control, corresponding second text is selected in the first text according to the first input.

[0018] Among them, the deletion control may specifically be the "backspace key" or "delete key" on the keyboard, or a target shortcut key set according to the software, or a virtual button corresponding to the deletion or backspace function on the virtual keyboard. The present application does not limit the specific form of the deletion control.

[0019] Specifically, for some embodiments, whenever the user presses the deletion control once, one character in the first text is selected forward as the second text according to the position of the cursor. That is, when the user presses the deletion control 5 times, 5 characters in the first text are correspondingly selected as the second text. For other embodiments, multiple characters in the first text can also be selected at one time as the second text according to methods such as dragging or long pressing. The greater the dragging distance or the longer the long pressing time of the first input, the more characters are selected at one time.

[0020] After several characters are selected as the second text, corresponding operations such as deletion, adjustment, and modification can be performed on the selected second text according to a second input to the second text.

[0021] For example, after the user inputs multiple first texts in an input window, if the first texts need to be modified or deleted, the cursor position can be adjusted and the deletion control can be pressed. If the cursor is at the end of the first text, several characters are selected as the second text according to the number of times or duration of the first input of the user to the deletion control. At this time, the second text is highlighted, and the user can preview the characters to be deleted or modified and the text content left after deletion according to different display methods.

[0022] If the user confirms such modification, the second text can be deleted or corrected through the second input to the second text, thus completing the text processing. If the user finds that there are parts of the second text that have been accidentally deleted, or there are parts of the remaining first text that have been missed in deletion, the selected second text can be increased or decreased through further operations on the second text, such as adjusting the cursor position, performing the first input again, etc., that is, adjusting the text to be deleted or modified, so as to prevent accidental deletion and missed deletion.

[0023] In this application, when the deletion control is triggered, a part of the text is pre-selected as the object of preprocessing, and during the preprocessing process, the selected object is not immediately deleted, providing the user with an opportunity for preview and readjustment, thus effectively avoiding situations such as accidental deletion and missed deletion, preventing the user from repeating the input operation due to accidental deletion or missed deletion, and improving the user experience of the deletion operation. Brief Description of the Drawings

[0024] Figure 1 Shows one of the flowcharts of the text processing method according to an embodiment of the present application;

[0025] Figure 2 Shows one of the interface schematic diagrams of the text processing method according to an embodiment of the present application;

[0026] Figure 3 Shows a second interface schematic diagram of the text processing method according to an embodiment of the present application;

[0027] Figure 4 Shows a third interface schematic diagram of the text processing method according to an embodiment of the present application;

[0028] Figure 5 Shows a second flowchart of the text processing method according to an embodiment of the present application;

[0029] Figure 6 Shows the structural block diagram of the text processing device according to an embodiment of the present application;

[0030] Figure 7 Shows the structural block diagram of the electronic device according to an embodiment of the present application;

[0031] Figure 8 Is a schematic diagram of the hardware structure of an electronic device for implementing an embodiment of the present application. Detailed Embodiments

[0032] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0033] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same category, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.

[0034] Next, in combination with the accompanying drawings, the text processing method and text processing device provided by the embodiments of the present application will be described in detail through specific embodiments and their application scenarios.

[0035] In some embodiments of the present application, a text processing method is provided. Figure 1 One of the flowcharts of the text processing method according to the embodiments of the present application is shown, as Figure 1 shown, the method includes:

[0036] Step 102, when the electronic device displays the first text, receive a first input to the delete control;

[0037] Step 104, in response to the first input, determine the corresponding second text in the first text;

[0038] Step 106, receive a second input to the second text;

[0039] Step 108, in response to the second input, perform a corresponding operation on the second text.

[0040] In the embodiments of the present application, after the user inputs text in the dialog box of the document editing software or chat software, the input text is displayed as the first text. At this time, if the user makes a first input to the delete control, then in the first text, the corresponding second text is selected according to the first input.

[0041] Among them, the deletion control can specifically be the "backspace key" or "delete key" on the keyboard, or a target shortcut key set according to the software, or a virtual key corresponding to the delete or backspace function on the virtual keyboard. The present application does not limit the specific form of the deletion control.

[0042] Specifically, for some embodiments, whenever the user presses the deletion control once, one character in the first text is selected forward as the second text according to the position of the cursor. That is, when the user presses the deletion control 5 times, 5 characters in the first text are correspondingly selected as the second text. For other embodiments, multiple characters in the first text can also be selected at once as the second text according to methods such as dragging or long pressing. The greater the dragging distance of the first input and the longer the long pressing time, the more characters are selected at once.

[0043] After selecting a number of characters as the second text, corresponding operations such as deletion, adjustment, modification, etc. can be performed on the selected second text according to the second input to the second text.

[0044] For example, when the user inputs multiple first texts in the input window, if modification or deletion of the first text is required, the cursor position can be adjusted and the deletion control can be pressed. If the cursor is at the end of the first text, a number of characters are selected as the second text according to the number of times or duration of the first input of the deletion control by the user. At this time, the second text is highlighted, and the user can preview the characters to be deleted or modified and the text content left after deletion according to different display methods.

[0045] If the user confirms such modification, the second text can be deleted or corrected through the second input to the second text, thereby completing the text processing. If the user finds that there is a part of the second text that has been accidentally deleted, or there is a part of the first text that has been missed in deletion, the selected second text can be increased or decreased through further operations on the second text, such as adjusting the cursor position and performing the first input again, that is, adjusting the text to be deleted or modified, so as to prevent accidental deletion and missed deletion.

[0046] In the present application, when the deletion control is triggered, a part of the text is pre-selected as the object of preprocessing, and during the preprocessing process, immediate deletion processing is not performed on the selected object, providing the user with an opportunity for preview and re-adjustment, thereby effectively avoiding situations such as accidental deletion and missed deletion, preventing the user from re-entering due to accidental deletion or missed deletion, improving the human-computer interaction experience of the input method, and optimizing the efficiency of text processing.

[0047] In some embodiments of the present application, in response to the first input, determining the second text to be deleted in the first text includes;

[0048] In response to a first input, at least part of the first text is selected, and at least part of the first text is determined as a second text to be deleted, and the text in the first text that is not selected by the first input is determined as a third text to be retained;

[0049] The text processing method further includes:

[0050] The electronic device receives a third input to the second text;

[0051] In response to the third input, one or more of the following operations are performed:

[0052] Perform an operation of determining at least part of the second text as the third text;

[0053] Perform an operation of determining at least part of the third text as the second text;

[0054] Wherein, the display mode of the second text is different from that of the third text.

[0055] In an embodiment of the present application, when determining the second text, according to the user's first input to the deletion control, the first text is divided into a second text to be deleted that is selected, and a third text to be retained that is not selected. Among them, the display mode of the second text is different from that of the third text. For example, the second text is highlighted text, the third text is non-highlighted text, or the second text is text marked with a strikethrough, and the third text is normally displayed text, etc.

[0056] Figure 2 Shows one of the interface schematic diagrams of the text processing method according to an embodiment of the present application. As Figure 2 shown, in the chat interface 200 of the chat software, a virtual keyboard 202 and a text input window 204 located above the virtual keyboard 202 are displayed. In the text input window 204, the first text 206 that the user has entered is displayed. At this time, if the user has a need to delete or correct a part of the first text 206, the user can touch the deletion control 208 on the virtual keyboard 202 to select part of the first text 206 as the second text.

[0057] Figure 3 Shows another interface schematic diagram of the text processing method according to an embodiment of the present application. As Figure 3 shown, after the user triggers the deletion control 208, part of the characters in the first text are selected, and the second text 302 is highlighted by a highlight box, while the characters in the first text that are not selected are the third text 304. As Figure 3 shown, the third text 304 and the second text 302 are displayed differently.

[0058] At this time, the user can further increase or decrease the second text by making a third input to the second text. Specifically, the user can determine a part of the second text as the third text by dragging the highlighted box, or by moving the cursor, or by continuing to make the first input to the deletion control, that is, removing the "accidentally deleted" part from the second text, or can determine a part of the third text as the second text, that is, adding the "missed deleted" part, so that the user can directly check whether there are missed deletions or accidental deletions through the displayed content of the second text and the third text, and can adjust the text to be deleted or modified by making a third input to the second text, thereby preventing accidental deletions and missed deletions.

[0059] In some embodiments of the present application, the second input is an input for deleting text;

[0060] In response to the second input, perform corresponding operations on the second text, including:

[0061] In response to the second input, delete the second text and retain the third text.

[0062] In an embodiment of the present application, the second input is a deletion input, that is, an actual deletion operation on the selected second text. For example, the second input can be performed by the user double-clicking the deletion control. After the user double-clicks the deletion control, the characters currently selected as the second text are deleted, and at this time, only the unselected third text is retained in the text editing window, that is, the deletion operation of the text is completed.

[0063] It can be understood that after the second text is deleted, the deleted second text can be restored through a preset "rollback" operation. After the restored second text is restored, the restored second text is marked by a special display method, such as covering the restored second text with colors such as yellow and green, and after receiving a further input operation from the user, the second text is restored to the normal displayed first text or third text.

[0064] In some embodiments of the present application, the second input is an input for sending text to a target electronic device;

[0065] In response to the second input, perform corresponding operations on the second text, including:

[0066] In response to the second input, send the third text to the target electronic device.

[0067] In an embodiment of the present application, the second input is specifically a "send" input. Specifically, when the user is in the chat interface of the chat software, such as when the user communicates with the user holding the target electronic device through the chat software, Figure 4Shows the third schematic diagram of the interface of the word processing method according to an embodiment of the present application. In Figure 4 In it, the user enters a first piece of text including several characters in the chat window 400. Among them, some characters are selected as the second text 402 by the user's first input to the deletion control, and the remaining characters constitute the third text 404.

[0068] At this time, the user can directly click the send button 406. At this time, the third text 404 is directly used as the text message to be sent this time and sent to the target electronic device. As Figure 4 shown, after the text is sent, the third text 404 appears in the chat record, and the second text 402 is directly erased and no longer displayed.

[0069] The embodiment of the present application can select the text to be deleted as the second text according to the deletion operation, and directly use the third text to be retained as the information to be sent after confirmation, thereby reducing the operation steps of text editing and optimizing the efficiency of text processing.

[0070] In some embodiments of the present application, the second input is an input for editing text;

[0071] In response to the second input, corresponding operations are performed on the second text, including:

[0072] In response to the second input, a corresponding fourth text is determined;

[0073] The second text is replaced with the fourth text.

[0074] In the embodiment of the present application, the second input is a text editing input, that is, an input for re-editing or inputting text. The user can input the fourth text by tapping the keyboard, touching the virtual keyboard, etc., and replace the second text with the fourth text, that is, realize the re-input of the second text.

[0075] In the embodiment of the present application, Figure 5 Shows the second flowchart of the word processing method according to an embodiment of the present application. As Figure 5 shown, the complete process of deletion in the word processing method includes:

[0076] Step 502, the electronic device receives a deletion input;

[0077] Step 504, determine whether the deletion does not start from the end of the text; if yes, go to step 506, otherwise go to step 508;

[0078] Step 506, move the cursor to the deletion point;

[0079] Step 508, in response to the deletion input, start pre-deletion;

[0080] Step 510, determine whether accidental deletion occurs; if yes, proceed to step 512, otherwise proceed to step 516;

[0081] Step 512, adjust the content to be deleted;

[0082] Step 514, determine whether the adjustment is completed; if yes, proceed to step 516, otherwise return to step 512;

[0083] Step 516, send the content, or replace the text, or double - click the delete control to delete.

[0084] In some embodiments of the present application, a text processing device is provided. Figure 6 The structural block diagram of the text processing device according to an embodiment of the present application is shown. As Figure 6 shown, the text processing device 600 includes:

[0085] A receiving module 602, configured to receive a first input to the delete control when the first text is displayed on the electronic device;

[0086] A determining module 604, configured to determine corresponding second text in the first text in response to the first input;

[0087] The receiving module 602 is further configured to receive a second input;

[0088] An execution module 606, configured to perform corresponding operations on the second text in response to the second input.

[0089] In an embodiment of the present application, after the user inputs text in the dialog box of the document editing software or the chat software, according to the input text of the user, it is displayed as the first text. At this time, if the user makes a first input to the delete control, then in the first text, corresponding second text is selected according to the first input.

[0090] Among them, the delete control may specifically be the "backspace key" or "delete key" on the keyboard, or a target shortcut key set according to the software, or a virtual key corresponding to the delete or backspace function on the virtual keyboard. The present application does not limit the specific form of the delete control.

[0091] Specifically, for some embodiments, whenever the user presses the delete control once, one character in the first text is selected forward as the second text according to the position of the cursor. That is, if the user presses the delete control 5 times, 5 characters in the first text are correspondingly selected as the second text. For other embodiments, multiple characters in the first text can also be selected at one time according to methods such as dragging or long - pressing. The greater the dragging distance or the longer the long - pressing time of the first input, the more characters are selected at one time.

[0092] After selecting a number of characters as the second text, corresponding operations such as deletion, adjustment, modification, etc. can be performed on the selected second text according to the second input to the second text.

[0093] For example, when the user enters multiple first texts in the input window, if the first text needs to be modified or deleted, the cursor position can be adjusted and the delete control can be pressed. If the cursor is at the end of the first text, a number of characters are selected as the second text according to the number of times or duration of the first input to the delete control by the user. At this time, the second text is highlighted, and the user can preview the characters to be deleted or modified and the remaining text content according to different display methods.

[0094] If the user confirms such a modification, the second text can be deleted or corrected through the second input to the second text, thus completing the text processing. If the user finds that there is a part of the second text that has been mistakenly deleted, or there is a part of the remaining first text that has been missed in deletion, the selected second text can be increased or decreased through further operations on the second text, such as adjusting the cursor position and performing the first input again, that is, adjusting the text to be deleted or modified, so as to prevent the situation of misdeletion and missed deletion.

[0095] In this application, when the delete control is triggered, some text is pre-selected as the object of preprocessing, and during the preprocessing process, immediate deletion processing is not performed on the selected object, providing the user with an opportunity for preview and readjustment, thus effectively avoiding situations such as misdeletion and missed deletion, preventing the user from repeating the input due to misdeletion or missed deletion, improving the human-computer interaction experience of the input method, and optimizing the efficiency of text processing.

[0096] In some embodiments of this application, the determination module 604 is further configured to, in response to the first input, select at least part of the first text, determine at least part of the first text as the second text to be deleted, and determine the text in the first text that is not selected by the first input as the third text to be retained;

[0097] The receiving module 602 is further configured to receive a third input to the second text;

[0098] The determination module 604 is further configured to, in response to the third input, perform one or more of the following operations:

[0099] An operation of determining at least part of the second text as the third text;

[0100] An operation of determining at least part of the third text as the second text;

[0101] Wherein, the display method of the second text is different from the display method of the third text.

[0102] In the embodiments of the present application, when determining the second text, according to the first input of the user to the deletion control, the first text is divided into the second text to be deleted that is selected, and the third text to be retained that is not selected. Among them, the display modes of the second text and the third text are different. For example, the second text is highlighted text, the third text is non-highlighted text, or the second text is text marked with a strikethrough, and the third text is normal display text, etc.

[0103] Figure 2 One of the interface schematic diagrams of the text processing method according to the embodiments of the present application is shown. As Figure 2 shown, in the chat interface 200 of the chat software, a virtual keyboard 202 and a text input window 204 located above the virtual keyboard 202 are displayed. In the text input window 204, the first text 206 already input by the user is displayed. At this time, if the user has a need to delete or correct a part of the first text 206, the user can touch the deletion control 208 on the virtual keyboard 202 to select a part of the first text 206 as the second text.

[0104] Figure 3 Another interface schematic diagram of the text processing method according to the embodiments of the present application is shown. As Figure 3 shown, after the user triggers the deletion control 208, some characters in the first text are selected, and the second text 302 is highlighted by a highlight box. The characters in the first text that are not selected are the third text 304. As Figure 4 shown, the third text 304 and the second text 302 are displayed differently.

[0105] At this time, the user can further perform a third input on the second text to increase or decrease the second text. Specifically, the user can determine a part of the second text as the third text by dragging the highlight box, or by moving the cursor, or by continuing to perform the first input on the deletion control, that is, removing the "incorrectly deleted" part from the second text, or can also determine a part of the third text as the second text, that is, adding the "missed deleted" part, so that the user can directly verify whether there is missed deletion or incorrect deletion through the display content of the second text and the third text, and can adjust the text to be deleted or modified by performing a third input on the second text, thereby preventing the situation of incorrect deletion and missed deletion.

[0106] In some embodiments of the present application, the second input is an input for deleting text;

[0107] The execution module 606 is further configured to:

[0108] In response to the second input, delete the second text and retain the third text.

[0109] In an embodiment of the present application, the second input is a deletion input, that is, an operation to actually delete the selected second text. For example, the second input can be performed by the user double-clicking on the deletion control. After the user double-clicks on the deletion control, the characters currently selected as the second text are deleted, and at this time, only the unselected third text remains in the text editing window, that is, the deletion operation of the text is completed.

[0110] It can be understood that after the second text is deleted, the deleted second text can be restored again through a preset "rollback" operation. After the restored second text is restored, the restored second text is marked by a special display method, such as covering the restored second text with colors such as yellow and green, and after receiving a further input operation from the user, the second text is restored to the normally displayed first text or third text.

[0111] In some embodiments of the present application, the second input is an input for sending text to a target electronic device;

[0112] The execution module 606 is further configured to:

[0113] In response to the second input, send the third text to the target electronic device.

[0114] In an embodiment of the present application, the second input is specifically a "send" input. Specifically, when the user is in the chat interface of the chat software, such as when the user communicates with the user holding the target electronic device through the chat software in text, Figure 4 FIG. 3 shows a third schematic diagram of the interface of the text processing method according to an embodiment of the present application. In Figure 4 this figure, the user enters the first text including several characters in the chat window. Among them, some characters are selected as the second text 402 by the user through the first input to the deletion control, and the remaining characters constitute the third text 404.

[0115] At this time, the user can directly click the send button 406. At this time, the third text 404 is directly used as the text message to be sent this time and sent to the target electronic device. For example, Figure 4 as shown in the figure, after the text is sent, the third text 404 appears in the chat record, and the second text 402 directly disappears and is no longer displayed.

[0116] The embodiment of the present application can select the text to be deleted as the second text according to the deletion operation, and directly use the third text to be retained as the information to be sent after confirmation, thereby reducing the operation steps of text editing and optimizing the efficiency of text processing.

[0117] In some embodiments of the present application, the second input is an input for editing text;

[0118] The execution module 606 is further configured to:

[0119] In response to the second input, determine the corresponding fourth text;

[0120] Replace the second text with the fourth text.

[0121] In the embodiments of the present application, the second input is a text editing input, that is, an input for re-editing or inputting text. The user can input the fourth text by tapping the keyboard, touching the virtual keyboard, etc., and replace the second text with the fourth text, that is, realize the re-input of the second text.

[0122] The text processing device in the embodiments of the present application can be a device, or a component, an integrated circuit, or a chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.

[0123] The text processing device in the embodiments of the present application can be a device with an operating system. The operating system can be the Android operating system, the iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.

[0124] The text processing device provided in the embodiments of the present application can implement each process implemented in the above method embodiments. To avoid repetition, it will not be described in detail here.

[0125] Optionally, the embodiments of the present application further provide an electronic device 700, Figure 7 showing a structural block diagram of the electronic device according to the embodiments of the present application, as Figure 7 shown, including a processor 702, a memory 704, a program or instruction stored on the memory 704 and executable on the processor 702. When the program or instruction is executed by the processor 702, it implements each process of the above method embodiments and can achieve the same technical effects. To avoid repetition, it will not be described in detail here.

[0126] 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.

[0127] Figure 8 Schematic diagram of the hardware structure of an electronic device for implementing an embodiment of the present application.

[0128] The electronic device 2000 includes, but is not limited to: a radio frequency unit 2001, a network module 2002, an audio output unit 2003, an input unit 2004, a sensor 2005, a display unit 2006, a user input unit 2007, an interface unit 2008, a memory 2009, and a processor 2010 and other components.

[0129] Those skilled in the art can understand that the electronic device 2000 may further include a power supply 2011 (such as a battery) for supplying power to each component. The power supply 2011 can be logically connected to the processor 2010 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in 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 have different component arrangements, which will not be elaborated here.

[0130] Among them, the user input unit 2007 is used to receive a first input to a deletion control when a first text is displayed;

[0131] The processor 2010 is used to determine a corresponding second text in the first text in response to the first input;

[0132] The user input unit 2007 is further used to receive a second input;

[0133] The processor 2010 is further used to perform a corresponding operation on the second text in response to the second input.

[0134] Optionally, the processor 2010 is further used to, in response to the first input, select at least part of the text in the first text, and determine at least part of the text in the first text as the second text to be deleted, and determine the text in the first text that is not selected by the first input as the third text to be retained;

[0135] The user input unit 2007 is further used to receive a third input to the second text;

[0136] The processor 2010 is further used to perform one or more of the following steps in response to the third input:

[0137] An operation of determining at least part of the second text as the third text;

[0138] An operation of determining at least a part of the third text as the second text;

[0139] Wherein, the display mode of the second text is different from that of the third text.

[0140] Optionally, the second input is an input for deleting text; the processor 2010 is further configured to delete the second text and retain the third text in response to the second input.

[0141] Optionally, the second input is an input for sending text to a target electronic device; the processor 2010 is further configured to send the third text to the target electronic device in response to the second input.

[0142] Optionally, the second input is an input for editing text; the processor 2010 is further configured to determine a corresponding fourth text in response to the second input; and replace the second text with the fourth text.

[0143] It should be understood that, in the embodiments of the present application, the input unit 2004 may include a Graphics Processing Unit (GPU) 5082 and a microphone 5084. The graphics processor 5082 processes the image data of static pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.

[0144] The display unit 2006 may include a display panel 5122. The display panel 5122 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 2007 includes a touch panel 5142 and other input devices 5144. The touch panel 5142 is also referred to as a touch screen. The touch panel 5142 may include two parts: a touch detection device and a touch controller. The other input devices 5144 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, which will not be elaborated here. The memory 2009 may be used to store software programs and various data, including but not limited to application programs and operating systems. The processor 2010 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 2010.

[0145] The embodiments of the present application further provide a readable storage medium. A program or instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, each process of the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.

[0146] Among them, the processor is the processor in the electronic device in the above-mentioned 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 disc, etc.

[0147] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above method embodiment and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0148] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system chip, a chip system, or a system-on-chip, etc.

[0149] It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article, or device including that element. In addition, it should be pointed out that the methods and devices in the embodiments of the present application are 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 reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

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

[0151] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.

Claims

1. A word processing method, characterized in that, Including: When displaying the first text, receiving a first input to a deletion control; In response to the first input, dividing the first text into a second text to be deleted that is selected and a third text to be retained that is not selected, where the second text and the third text correspond to different operations; Receiving a second input; In response to the second input, performing a corresponding operation on the second text; When the second input is an input for sending the text to a target electronic device, the performing the corresponding operation on the second text in response to the second input includes: In response to the second input, sending the third text to the target electronic device and eliminating the second text so that it is no longer displayed.

2. The word processing method according to claim 1, wherein The text processing method further includes: Receiving a third input to the second text; In response to the third input, performing one or more of the following operations: An operation of determining at least part of the second text as the third text; An operation of determining at least part of the third text as the second text; Wherein, the display manner of the second text is different from the display manner of the third text.

3. The word processing method according to claim 2, characterized in that, The second input is an input for deleting the text; The performing the corresponding operation on the second text in response to the second input includes: In response to the second input, deleting the second text and retaining the third text.

4. The word processing method according to claim 2, characterized in that, The second input is an input for editing the text; The performing the corresponding operation on the second text in response to the second input includes: In response to the second input, determining a corresponding fourth text; Replacing the second text with the fourth text.

5. A word processing device, characterized in that, Including: A receiving module, configured to receive a first input to a deletion control when displaying the first text; A determining module, configured to, in response to the first input, divide the first text into a second text to be deleted that is selected and a third text to be retained that is not selected, where the second text and the third text correspond to different operations; The receiving module is further configured to receive a second input; An executing module, configured to perform a corresponding operation on the second text in response to the second input; When the second input is an input for sending the text to a target electronic device, the executing module is further configured to: In response to the second input, send the third text to the target electronic device and eliminate the second text so that it is no longer displayed.

6. The word processing apparatus according to claim 5, characterized in that, The receiving module is further configured to receive a third input to the second text; The determining module is further configured to, in response to the third input, perform one or more of the operation of determining at least part of the second text as the third text and the operation of determining at least part of the third text as the second text; Wherein, the display manner of the second text is different from the display manner of the third text.

7. The word processing apparatus according to claim 6, wherein The second input is an input for deleting the text; The executing module is further configured to: In response to the second input, delete the second text and retain the third text.

8. The word processing apparatus according to claim 6, characterized in that, The second input is an input for editing the text; The executing module is further configured to: In response to the second input, determine a corresponding fourth text; Replace the second text with the fourth text.

Citation Information

Patent Citations

  • Text processing method and device

    CN112256179A

  • Text selection method and device

    CN112748842A