CN114415847A - Text information deleting method and device and electronic equipment - Google Patents
Text information deleting method and device and electronic equipment Download PDFInfo
- Publication number
- CN114415847A CN114415847A CN202210061051.XA CN202210061051A CN114415847A CN 114415847 A CN114415847 A CN 114415847A CN 202210061051 A CN202210061051 A CN 202210061051A CN 114415847 A CN114415847 A CN 114415847A
- Authority
- CN
- China
- Prior art keywords
- input
- target
- text information
- receiving
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/162—Delete operations
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a text information deleting method and device and electronic equipment, and belongs to the technical field of electronic equipment. The text information deleting method comprises the following steps: receiving a first input of a user in a case where the first text information is displayed; displaying at least one positioning identifier in response to the first input, the at least one positioning identifier corresponding to at least one character in the first text information; receiving a second input of the user; in response to the second input, deleting the target text information in the first text information to obtain second text information; wherein the target text information is determined based on the at least one location indicator and the second input.
Description
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a text information deleting method and device and electronic equipment.
Background
Today, instant messaging is developed, and many messages need to be sent and received every day. Sometimes, a long section of content is output and then is found to be wrong, if the long section is deleted, one character is deleted, or the long section is deleted by pressing a selection, so that the operation is inconvenient for a user, and the error is easy to occur. For example, the deletion mode of one character by one character is time-consuming, and the contents which do not need to be deleted can be easily deleted by always clicking a deletion key; the cursor appears after long-time pressing, the cursor needs to be dragged to select the characters needing to be deleted, the operation is complicated, and the contents needing not to be deleted are easily selected in the dragging process.
Disclosure of Invention
The embodiment of the application aims to provide a text information deleting method, a text information deleting device and electronic equipment, and can solve the problems that a text deleting operation process is complicated and errors are prone to occurring in the related technology.
In a first aspect, an embodiment of the present application provides a text information deleting method, where the method includes:
receiving a first input of a user in a case where the first text information is displayed;
displaying at least one positioning identifier in response to the first input, the at least one positioning identifier corresponding to at least one character in the first text information;
receiving a second input of the user;
in response to the second input, deleting the target text information in the first text information to obtain second text information; wherein the target text information is determined based on the at least one location indicator and the second input.
In a second aspect, an embodiment of the present application provides a text information deleting apparatus, including:
the first receiving module is used for receiving a first input of a user under the condition of displaying the first text information;
a first response module, configured to display at least one positioning identifier in response to the first input, where the at least one positioning identifier corresponds to at least one character in the first text information;
the second receiving module is used for receiving a second input of the user;
the second response module is used for responding to the second input and deleting the target text information in the first text information to obtain second text information; wherein the target text information is determined based on the at least one location indicator and the second input.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or an instruction stored on the memory and executable on the processor, where the program or the instruction, when executed by the processor, implements the steps of the text information deleting method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, and when executed by a processor, the program or instructions implement the steps of the text information deleting method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the text information deleting method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, at least one positioning identifier is displayed based on a first input of a user, a second input of the user is further received, and target text information in the first text information is determined and deleted based on the second input and the at least one positioning identifier. Therefore, the character part to be deleted can be determined through the first input and the second input, the characters which are not easy to select, the operation is simple and convenient, and the operation error can be quickly corrected.
Drawings
Fig. 1 is a flowchart of a text information deletion method according to an embodiment of the present application;
FIG. 2 is one of the schematic diagrams of a text information interface of an embodiment of the present application;
FIG. 3 is a second schematic diagram of a text message interface according to an embodiment of the present application;
FIG. 4 is a third schematic diagram of a text-information interface according to an embodiment of the present application;
FIG. 5 is a fourth schematic diagram of a text-information interface in an embodiment of the present application;
FIG. 6 is a fifth schematic diagram of a text message interface in accordance with an embodiment of the present application;
FIG. 7 is a sixth schematic view of a text messaging interface in accordance with an embodiment of the present application;
FIG. 8 is a seventh schematic view of a text-messaging interface in accordance with an embodiment of the present application;
fig. 9 is a block diagram of a text information device according to an embodiment of the present application;
fig. 10 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 11 is a hardware configuration diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The method, the apparatus, and the electronic device for deleting text information provided by the embodiments of the present application are described in detail with reference to the accompanying drawings.
As shown in fig. 1, the present application provides a text information deleting method, which specifically includes the following steps:
In the step, the first text information is a character text displayed on a character editing interface; the first input is a preset input, and the first input may include, but is not limited to, at least one of a click input, a press input, a long press input, a pinch input, a drag input, a slide input, and a swipe input, that is, the first input may be one of the above-mentioned inputs, or may also be a combination input of two or more of the above-mentioned inputs.
As an example, the first input may be a first input operation on at least one character in the first text information, and may also be a first input on a target position in the first text information, such as a position between any two characters, or a blank position, etc.
And 102, responding to the first input, and displaying at least one positioning identifier, wherein the at least one positioning identifier corresponds to at least one character in the first text information.
In this step, the positioning mark may be an arrow mark or a number, where the arrow indicates the deleted text direction, and the number is used to indicate the deleted character number.
As an example, as shown in fig. 2, the first text information a is "a color is seen from a mountain, and a silence is heard from a water. The flowers are removed in spring, and the birds are not frightened in coming. Wangwei ", wherein a first positioning mark b1 is correspondingly displayed above the" mountain "character, wherein the arrow direction of the first positioning mark b1 points to the beginning of the first text information, and indicates that the part before the" mountain "character is deleted; it will be appreciated that if the arrow direction points to the end of the first text information, then deletion of the text following the "mountain" word is indicated. Wherein, the first input can be click input of the 'mountain' character or long press input between 'mountain' and 'having'.
As another example, as shown in fig. 3, the first text information a is "a color is seen from a mountain, and a silence is heard from water. The flowers are removed in spring, and the birds are not frightened in coming. Wangwei ", wherein a second positioning mark b2 is correspondingly displayed above the 'with' character, and a third positioning mark b3 is correspondingly displayed above the 'sound' character; wherein, the arrow direction of the second positioning mark b2 and the third positioning mark b3 points downwards for indicating the deletion of the text between the second positioning mark b2 and the third positioning mark b 3.
As still another example, as shown in fig. 4, the first text information a is "a color is seen from a mountain, and a silence is heard from a water. The flowers are removed in spring, and the birds are not frightened in coming. Wangwei. The fourth positioning mark b4 is displayed above the character of 'far-looking mountain is colored and close-listening to water' in a one-to-one correspondence manner, wherein the fourth positioning mark b4 is a number, and the size of the number represents the number of characters which are deleted before based on the character with the number of 1. It will be appreciated that the number "1" indicates the deletion of "water", the number "2" indicates the deletion of "hear water", the number "3" indicates the deletion of "hear near water", and so on.
And 103, receiving a second input of the user.
In this step, the second input may include, but is not limited to, at least one of a click input, a press input, a long press input, a pinch input, a drag input, a slide input, and a swipe input, that is, the second input may be one of the above-mentioned inputs, or may also be a combination input of two or more of the above-mentioned inputs.
As an example, the second input is an input operation to the target area; in the example shown in fig. 2, the second input may be an input operation to a text region preceding the "mountain" word; in the example shown in fig. 3, the second input may be an input operation to a text region between the second and third position indicators b2 and b 3.
As another example, the second input is an input operation on the target positioning identifier; in the example shown in fig. 4, the second input may be an input operation for one of the numbers.
In the above embodiment, the at least one positioning identifier is displayed based on a first input of the user, a second input of the user is further received, and the target text information in the first text information is determined and deleted based on the second input and the at least one positioning identifier. Therefore, the character part to be deleted can be determined through the first input and the second input, the characters which are not easy to select, the operation is simple and convenient, and the operation error can be quickly corrected.
Particularly, when the positioning mark is a number, the operation of deleting the number of the characters from back to front by a user can be simulated, the number mark represents the number of the characters deleted from the characters corresponding to the number 1, the operation is simple and convenient, the user can know the deleting position clearly through the number mark, the operation habit of the user is simulated, and the user experience is greatly improved.
In an embodiment, after displaying the at least one positioning identifier, the method further includes:
receiving a third input of a target positioning identifier in the at least one positioning identifier from a user;
updating the target positioning identifier from a first identifier state to a second identifier state in response to the third input; wherein the first identification state and the second identification state indicate different deletion content.
As an example, the identification state of the target location identification may include: the arrow points to the left, the arrow points to the down and the arrow points to the right. Pointing to the left by an arrow to indicate a text area before the target positioning identifier is deleted; pointing to the right by an arrow to indicate a text area after the target positioning identifier is deleted; the arrow pointing down indicates deletion of the text region between the two target location markers.
In the embodiment, the third input of the target positioning identifier by the user is received, and the state of the positioning identifier indicating identifier can be switched, so that the text area to be deleted indicated by the target positioning character is changed, the editing operation of the user is facilitated, and the text editing efficiency can be improved.
In another embodiment, the first input comprises a first sub-input and a second sub-input; the receiving a first input of a user comprises:
receiving a first sub-input of a target character by a user;
displaying a positioning identifier selection window in response to the first sub-input;
receiving a second sub-input of the positioning identifier selection window from the user;
said displaying at least one location indicator in response to said first input, comprising:
and responding to the second sub-input, and displaying a target positioning identifier in a corresponding area of the target character.
As an implementation manner, three positioning identifiers are displayed in the positioning identifier selection window, including: the arrow points to the left, the arrow points to the down, and the arrow points to the right. Pointing to the left by an arrow to indicate a text area before the target positioning identifier is deleted; pointing to the right by an arrow to indicate a text area after the target positioning identifier is deleted; the arrow pointing down indicates deletion of the text region between the two target location markers.
As an example, as shown in fig. 2, a first sub-input (e.g., click input, long-press input, etc.) of the word "mountain" by the user is received, a positioning identifier selection window c is displayed, a second sub-input (e.g., click input, long-press input, etc.) of the target positioning identifier in the positioning identifier selection window c by the user is received, and the target positioning identifier (e.g., identifier pointing to the left with an arrow in fig. 2) is displayed above the word "mountain" in response to the second sub-input.
As another example, as shown in fig. 3, a first sub-input (e.g., click input, long press input, etc.) of the "with" word and the "voice" word by the user is received, a positioning identifier selection window c is displayed, a second sub-input (e.g., click input, long press input, etc.) of the target positioning identifier in the positioning identifier selection window c by the user is received, and the target positioning identifier (e.g., identifier pointed downward by the arrow in fig. 3) is displayed above the "with" word and the "voice" word in response to the second sub-input.
In the embodiment, the input operation on the target character is received, the positioning identifier selection window is displayed and displayed, the selection input of the user on the target positioning identifier in the positioning identifier selection window is further received, the target positioning identifier is displayed in the corresponding area of the target character, and the target positioning identifier can be determined based on the selection of the user, so that the text area to be deleted is determined, the editing operation process of the user is facilitated, and the text editing efficiency is improved.
In an embodiment, before the receiving the first input of the user, the method further includes:
receiving a fourth input from the user;
in response to the fourth input, displaying a positioning control;
the receiving a first input of a user comprises:
a first input to the positioning control by a user is received.
The number of the positioning controls is N, and the N positioning controls respectively correspond to N characters in the first text information; n is a positive integer and N is less than or equal to the total number of characters of the first text information.
As an example, as shown in fig. 5, a fourth input of the user to an arbitrary position of the first text information is received, and the user is colored at far mountains and silent at near waters, respectively. The flowers are removed in spring, and the birds are not frightened in coming. And a positioning control e is correspondingly displayed above each character in the Wangwei. The first input is an input operation to at least one target positioning control in the N positioning controls.
Further, as an example, the first text information a is "a color is seen from a mountain, and a silence is heard from a water. The flowers are removed in spring, and the birds are not frightened in coming. Wangwei. The first input as in fig. 6 may be an input operation to a positioning control e displayed above the "mountain" word; as in fig. 7, the first input may be an input operation to a positioning control e displayed above the "near" word and the "not" word; as shown in fig. 8, the first input may be an input operation to a positioning control e displayed above the word "water", and based on the input operation, positioning marks (numbers) are displayed in the positioning controls above the words before the word "water".
In the above embodiment, in the case of displaying the first text information, the positioning control is displayed by receiving a fourth input of the user; the at least one positioning identifier is further displayed by receiving a first input to a target positioning control of the at least one positioning control. Like this, because location controlling part and characters one-to-one can make the user know more clearly and delete where through the location controlling part, guarantee that the wrong characters of difficult selection, and easy operation is convenient, and convenient the change moreover even the operation error also can correct fast.
In an embodiment, the at least one positioning identifier includes a first target positioning identifier, and in the case where the first target positioning identifier indicates deletion of text information before or after the first target character, the receiving a second input by the user includes:
receiving a second input of the user to the first target area;
the first target character is a character corresponding to the first target positioning identifier; the first target region comprises any one of: a text region preceding the first target character; a text region following the first target character.
As an example, as shown in fig. 2, a first target location indicator b1 is correspondingly displayed above the "mountain" word, wherein, when the arrow direction of the first target location indicator b1 points to the beginning of the first text information, the deletion of the part before the "mountain" word is indicated; at the end of the first text information, the arrow direction indicates the deletion of the text following the "mountain" word. The first target area is a text area before or after the first target location indicator b 1.
In an embodiment, the at least one positioning identifier includes a second target positioning identifier and a third target positioning identifier, and in a case where the second target positioning identifier and the third target positioning identifier indicate deletion of text information between a second target character and a third target character, the receiving a second input of the user includes:
receiving a second input of the user to the second target area;
the second target character is a character corresponding to the second target positioning identifier, and the third target character is a character corresponding to the third target positioning identifier; the second target area is a text area between the second target character and the third target character.
As an example, as shown in fig. 3, a second target positioning mark b2 is correspondingly displayed above the "there" word, and a third target positioning mark b3 is correspondingly displayed above the "sound" word; wherein the second target region is a text region between the second target locator mark b2 and the third target locator mark b 3.
In the above embodiment, after the target text information to be deleted is determined based on the target positioning identifier, based on the second input of the user to the target area, the operation of deleting the target text information is performed, so that the error deletion can be avoided.
In an embodiment, before the receiving the first input of the user, the method further includes:
receiving a fifth input of the user;
updating position information of a cursor in response to the fifth input;
the displaying at least one positioning identifier comprises:
and displaying at least one positioning identifier based on the position information of the cursor.
As an example, as shown in fig. 4 and 8, if the user wants to delete the word before "none", the user may make a first input to the position where the word "none" is located, or the position between "none" and "water", and in response to the first input, display a cursor c1 after "water" (the cursor is displayed at the end of the text by default), and correspondingly display a positioning mark above the word before the cursor c 1; in this way, the user can select one or more words as the portion to be deleted based on the location identifier.
In the embodiment, the operation of deleting one by one from back to front can be simulated, the operation is simple and convenient, the operation habit of the user is simulated, and the user experience is greatly improved.
In an embodiment, the second input comprises a third sub-input and a fourth sub-input; the receiving of the second input of the user comprises:
receiving a third sub-input of a user to a fourth target positioning identifier in the at least one positioning identifier;
displaying a deletion confirmation window in response to the third sub-input;
receiving a fourth sub-input of the user to the deletion confirmation window;
the deleting, in response to the second input, the target text information in the first text information includes:
and in response to the fourth sub-input, deleting the target text information in the first text information.
Illustratively, as shown in fig. 4 and 8, when five characters of "5", i.e., "color, near-listening water" are selected as the part to be deleted, a deletion confirmation window d is displayed, and when a fourth sub-input to the deletion confirmation window d is received, the part of text of "color, near-listening water" is deleted.
In this embodiment, the target text information is deleted based on the user's input operation to the deletion confirmation window, so that erroneous deletion can be avoided.
It should be noted that, in the text information deleting method provided in the embodiment of the present application, the execution main body may be a text information deleting device, or a control module in the text information deleting device, configured to execute the text information deleting method. In the embodiment of the present application, a method for executing text information deletion by a text information deletion apparatus is taken as an example, and the text information deletion apparatus provided in the embodiment of the present application is described.
As shown in fig. 9, the present application provides a text information deleting apparatus 900 including:
a first receiving module 901, configured to receive a first input of a user when the first text information is displayed;
a first response module 902, configured to display at least one positioning identifier in response to the first input, where the at least one positioning identifier corresponds to at least one character in the first text information;
a second receiving module 903, configured to receive a second input of the user;
a second response module 904, configured to respond to the second input, delete the target text information in the first text information, so as to obtain second text information; wherein the target text information is determined based on the at least one location indicator and the second input.
Optionally, the apparatus 900 comprises:
the third receiving module is used for receiving a third input of the target positioning identifier in the at least one positioning identifier from the user;
a third response module, configured to respond to the third input, update the target location identifier from the first identifier state to the second identifier state; wherein the first identification state and the second identification state indicate different deletion content.
Optionally, the first input comprises a first sub-input and a second sub-input; the first receiving module 901 includes:
the first receiving submodule is used for receiving a first sub-input of a target character by a user;
the apparatus 900 comprises: a first response unit for displaying a positioning identifier selection window in response to the first sub-input;
the first receiving module 901 further includes: the second receiving submodule is used for receiving second sub-input of the positioning identification selection window by a user;
the first response module 902 includes:
and the first response submodule is used for responding to the second sub-input and displaying a target positioning identifier in a corresponding area of the target character.
Optionally, the apparatus 900 further comprises:
the fourth receiving module is used for receiving a fourth input of the user;
a fourth response module to display a positioning control in response to the fourth input;
the first receiving module includes:
and the third receiving submodule is used for receiving the first input of the user to the positioning control.
Optionally, the at least one positioning identifier includes a first target positioning identifier, and in the case that the first target positioning identifier indicates to delete text information before or after the first target character, the second receiving module 903 includes:
the fourth receiving submodule is used for receiving second input of the user to the first target area;
the first target character is a character corresponding to the first target positioning identifier; the first target region comprises any one of: a text region preceding the first target character; a text region following the first target character.
Optionally, the at least one positioning identifier includes a second target positioning identifier and a third target positioning identifier, and in a case that the second target positioning identifier and the third target positioning identifier indicate to delete text information between a second target character and a third target character, the second receiving module 903 includes:
the fifth receiving submodule is used for receiving second input of the user to the second target area;
the second target character is a character corresponding to the second target positioning identifier, and the third target character is a character corresponding to the third target positioning identifier; the second target area is a text area between the second target character and the third target character.
Optionally, the apparatus 900 further comprises:
the fifth receiving module is used for receiving fifth input of the user;
a fifth response module, configured to update the position information of the cursor in response to the fifth input;
the first response module 902 includes:
and the display unit is used for displaying at least one positioning identifier based on the position information of the cursor.
Optionally, the second input comprises a third sub-input and a fourth sub-input; the second receiving module 903 comprises:
the sixth receiving submodule is used for receiving a third sub-input of a user to a fourth target positioning identifier in the at least one positioning identifier;
the apparatus 900 further comprises: a sixth response module for displaying a deletion confirmation window in response to the third sub-input;
the second receiving module 903 further includes: the seventh receiving submodule is used for receiving the fourth sub-input of the user to the deletion confirmation window;
the second response module 904 comprises:
and the second response submodule is used for responding to the fourth sub-input and deleting the target text information in the first text information.
The text information deleting device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The text information deleting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The text information deleting device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 8, implement the same technical effect, and is not described here again to avoid repetition.
Optionally, as shown in fig. 10, an electronic device 1000 is further provided in this embodiment of the present application, and includes a processor 1001, a memory 1002, and a program or an instruction stored in the memory 1002 and executable on the processor 1001, where the program or the instruction is executed by the processor 1001 to implement each process of the text information deletion method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1100 includes, but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, a processor 1110, and the like.
Those skilled in the art will appreciate that the electronic device 1100 may further include a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 1110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
A user input unit 1107 that receives a first input from the user when the first text information is displayed;
a display unit 1106, configured to display at least one positioning identifier in response to the first input, where the at least one positioning identifier corresponds to at least one character in the first text information;
a user input unit 1107 for receiving a second input by the user;
a processor 1110, configured to, in response to the second input, delete a target text message in the first text message to obtain a second text message; wherein the target text information is determined based on the at least one location indicator and the second input.
The electronic device 1100 provided by the embodiment of the application displays at least one positioning identifier based on a first input of a user, further receives a second input of the user, and determines and deletes target text information in the first text information based on the second input and the at least one positioning identifier. Therefore, the character part to be deleted can be determined through the first input and the second input, the characters which are not easy to select, the operation is simple and convenient, and the operation error can be quickly corrected.
Optionally, the user input unit 1107 is further configured to receive a third input of the target location identifier in the at least one location identifier from the user;
the display unit 1106 is further configured to update the target positioning identifier from the first identifier state to the second identifier state in response to the third input; wherein the first identification state and the second identification state indicate different deletion content.
Optionally, the first input comprises a first sub-input and a second sub-input; a user input unit 1107, specifically configured to receive a first sub-input of a target character by a user;
a display unit 1106, further configured to display a positioning identifier selection window in response to the first sub-input;
a user input unit 1107, further specifically configured to receive a second sub-input of the positioning identifier selection window by the user;
the display unit 1106 is specifically configured to display, in response to the second sub-input, a target positioning identifier in a corresponding area of the target character.
Optionally, a user input unit 1107, further configured to receive a fourth input from the user;
a display unit 1106, further configured to display a positioning control in response to the fourth input;
the user input unit 1107 is specifically configured to receive a first input of the positioning control by the user.
Optionally, the at least one positioning identifier includes a first target positioning identifier, and in a case that the first target positioning identifier indicates to delete text information before or after the first target character, the user input unit 1107 is specifically configured to receive a second input of the first target area by the user; the first target character is a character corresponding to the first target positioning identifier; the first target region comprises any one of: a text region preceding the first target character; a text region following the first target character.
Optionally, the at least one positioning identifier includes a second target positioning identifier and a third target positioning identifier, and the user input unit 1107 is specifically configured to receive a second input of the user to the second target area when the second target positioning identifier and the third target positioning identifier indicate that text information between the second target character and the third target character is deleted; the second target character is a character corresponding to the second target positioning identifier, and the third target character is a character corresponding to the third target positioning identifier; the second target area is a text area between the second target character and the third target character.
Optionally, the user input unit 1107 is further configured to receive a fifth input from the user;
a display unit 1106, further configured to update position information of a cursor in response to the fifth input; and displaying at least one positioning identifier based on the position information of the cursor.
Optionally, the second input comprises a third sub-input and a fourth sub-input; a user input unit 1107, specifically configured to receive a third sub-input of a fourth target location identifier in the at least one location identifier from a user;
a display unit 1106, further configured to display a deletion confirmation window in response to the third sub-input;
a user input unit 1107, further specifically configured to receive a fourth sub-input to the deletion confirmation window by the user;
the processor 1110 is specifically configured to delete the target text information in the first text information in response to the fourth sub-input.
It should be understood that in the embodiment of the present application, the input Unit 1104 may include a Graphics Processing Unit (GPU) 11041 and a microphone 11042, and the Graphics processor 11041 processes image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1107 includes a touch panel 11071 and other input devices 11072. A touch panel 11071, also called a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1109 may be used for storing software programs and various data including, but not limited to, application programs and an operating system. Processor 1110 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the process of the text information deleting method embodiment is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip 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 an instruction to implement each process of the text information deletion method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing text information deleting method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may 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 instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (15)
1. A text information deleting method is characterized by comprising the following steps:
receiving a first input of a user in a case where the first text information is displayed;
displaying at least one positioning identifier in response to the first input, the at least one positioning identifier corresponding to at least one character in the first text information;
receiving a second input of the user;
in response to the second input, deleting the target text information in the first text information to obtain second text information; wherein the target text information is determined based on the at least one location indicator and the second input.
2. The method for deleting text information according to claim 1, wherein after displaying at least one positioning identifier, the method further comprises:
receiving a third input of a target positioning identifier in the at least one positioning identifier from a user;
updating the target positioning identifier from a first identifier state to a second identifier state in response to the third input;
wherein the first identification state and the second identification state indicate different deletion content.
3. The text information deleting method according to claim 1, wherein the first input includes a first sub-input and a second sub-input; the receiving a first input of a user comprises:
receiving a first sub-input of a target character by a user;
displaying a positioning identifier selection window in response to the first sub-input;
receiving a second sub-input of the positioning identifier selection window from the user;
said displaying at least one location indicator in response to said first input, comprising:
and responding to the second sub-input, and displaying a target positioning identifier in a corresponding area of the target character.
4. The method for deleting text information according to claim 1, wherein before the receiving the first input of the user, the method further comprises:
receiving a fourth input from the user;
in response to the fourth input, displaying a positioning control;
the receiving a first input of a user comprises:
a first input to the positioning control by a user is received.
5. The method for deleting text information according to any one of claims 1 to 4, wherein the at least one positioning identifier includes a first target positioning identifier, and in the case that the first target positioning identifier indicates that text information before or after a first target character is deleted, the receiving of the second input by the user includes:
receiving a second input of the user to the first target area;
the first target character is a character corresponding to the first target positioning identifier; the first target region comprises any one of: a text region preceding the first target character; a text region following the first target character.
6. The method for deleting text information according to any one of claims 1 to 4, wherein the at least one positioning identifier includes a second target positioning identifier and a third target positioning identifier, and in the case that the second target positioning identifier and the third target positioning identifier indicate that text information between a second target character and a third target character is deleted, the receiving of the second input by the user includes:
receiving a second input of the user to the second target area;
the second target character is a character corresponding to the second target positioning identifier, and the third target character is a character corresponding to the third target positioning identifier; the second target area is a text area between the second target character and the third target character.
7. The method for deleting text information according to claim 1, wherein before the receiving the first input of the user, the method further comprises:
receiving a fifth input of the user;
updating position information of a cursor in response to the fifth input;
the displaying at least one positioning identifier comprises:
and displaying at least one positioning identifier based on the position information of the cursor.
8. The text information deleting method according to claim 1 or 7, wherein the second input includes a third sub input and a fourth sub input; the receiving of the second input of the user comprises:
receiving a third sub-input of a user to a fourth target positioning identifier in the at least one positioning identifier;
displaying a deletion confirmation window in response to the third sub-input;
receiving a fourth sub-input of the user to the deletion confirmation window;
the deleting, in response to the second input, the target text information in the first text information includes:
and in response to the fourth sub-input, deleting the target text information in the first text information.
9. A text information deleting apparatus, comprising:
the first receiving module is used for receiving a first input of a user under the condition of displaying the first text information;
a first response module, configured to display at least one positioning identifier in response to the first input, where the at least one positioning identifier corresponds to at least one character in the first text information;
the second receiving module is used for receiving a second input of the user;
the second response module is used for responding to the second input and deleting the target text information in the first text information to obtain second text information; wherein the target text information is determined based on the at least one location indicator and the second input.
10. The text information deleting apparatus according to claim 9, wherein said apparatus comprises:
the third receiving module is used for receiving a third input of the target positioning identifier in the at least one positioning identifier from the user;
a third response module, configured to respond to the third input, update the target location identifier from the first identifier state to the second identifier state; wherein the first identification state and the second identification state indicate different deletion content.
11. The text information deleting apparatus according to claim 9, wherein the first input includes a first sub input and a second sub input; the first receiving module includes:
the first receiving submodule is used for receiving a first sub-input of a target character by a user;
the device comprises: a first response unit for displaying a positioning identifier selection window in response to the first sub-input;
the first receiving module further comprises: the second receiving submodule is used for receiving second sub-input of the positioning identification selection window by a user;
the first response module comprises:
and the first response submodule is used for responding to the second sub-input and displaying a target positioning identifier in a corresponding area of the target character.
12. The text information deleting apparatus according to claim 9, wherein said apparatus further comprises:
the fourth receiving module is used for receiving a fourth input of the user;
a fourth response module to display a positioning control in response to the fourth input;
the first receiving module includes:
and the third receiving submodule is used for receiving the first input of the user to the positioning control.
13. The apparatus according to any one of claims 9 to 12, wherein said at least one positioning mark comprises a first target positioning mark, and in the case that said first target positioning mark indicates that the text information before or after the first target character is deleted, said second receiving module comprises:
the fourth receiving submodule is used for receiving second input of the user to the first target area;
the first target character is a character corresponding to the first target positioning identifier; the first target region comprises any one of: a text region preceding the first target character; a text region following the first target character.
14. The apparatus according to any one of claims 9 to 12, wherein the at least one positioning identifier includes a second target positioning identifier and a third target positioning identifier, and in a case where the second target positioning identifier and the third target positioning identifier indicate deletion of text information between a second target character and a third target character, the second receiving module includes:
the fifth receiving submodule is used for receiving second input of the user to the second target area;
the second target character is a character corresponding to the second target positioning identifier, and the third target character is a character corresponding to the third target positioning identifier; the second target area is a text area between the second target character and the third target character.
15. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the text information deletion method of any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210061051.XA CN114415847A (en) | 2022-01-19 | 2022-01-19 | Text information deleting method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210061051.XA CN114415847A (en) | 2022-01-19 | 2022-01-19 | Text information deleting method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114415847A true CN114415847A (en) | 2022-04-29 |
Family
ID=81275378
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210061051.XA Pending CN114415847A (en) | 2022-01-19 | 2022-01-19 | Text information deleting method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114415847A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115080170A (en) * | 2022-06-29 | 2022-09-20 | 维沃移动通信有限公司 | Information processing method, information processing apparatus, and electronic device |
CN115097951A (en) * | 2022-08-18 | 2022-09-23 | 荣耀终端有限公司 | Character deleting method, electronic equipment and storage medium |
-
2022
- 2022-01-19 CN CN202210061051.XA patent/CN114415847A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115080170A (en) * | 2022-06-29 | 2022-09-20 | 维沃移动通信有限公司 | Information processing method, information processing apparatus, and electronic device |
CN115097951A (en) * | 2022-08-18 | 2022-09-23 | 荣耀终端有限公司 | Character deleting method, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113300938B (en) | Message sending method and device and electronic equipment | |
CN113518026B (en) | Message processing method and device and electronic equipment | |
WO2022156668A1 (en) | Information processing method and electronic device | |
CN114415847A (en) | Text information deleting method and device and electronic equipment | |
JP2024518775A (en) | Message processing method, first message processing device, second message processing device, and electronic device | |
WO2023131055A1 (en) | Message sending method and apparatus, and electronic device | |
CN111831181A (en) | Application switching display method and device and electronic equipment | |
CN112565063A (en) | Message processing method and device and electronic equipment | |
CN111638841B (en) | Message detail page display method and device and electronic equipment | |
WO2022135259A1 (en) | Speech input method and apparatus, and electronic device | |
CN112698762B (en) | Icon display method and device and electronic equipment | |
CN114397989A (en) | Parameter value setting method and device, electronic equipment and storage medium | |
CN114327088A (en) | Message sending method, device, electronic equipment and medium | |
CN114116098A (en) | Application icon management method and device, electronic equipment and storage medium | |
CN113485853A (en) | Information interaction method and device and electronic equipment | |
CN113434226A (en) | Communication method, communication device, electronic equipment and readable storage medium | |
WO2022247814A1 (en) | Method and apparatus for selecting target character, electronic device, and storage medium | |
CN114385562A (en) | Text information deleting method and device and electronic equipment | |
CN112099715B (en) | Information processing method and device | |
CN114416264A (en) | Message display method and device | |
CN113536745A (en) | Character processing method and character processing device | |
CN112162681A (en) | Text operation execution method and device and electronic equipment | |
CN112764625A (en) | Notification message display method and device | |
CN112181229A (en) | Icon display control method and device and electronic equipment | |
CN111752428A (en) | Icon arrangement method and device, electronic equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |