CN112306257A - Character deleting method and device and electronic equipment - Google Patents

Character deleting method and device and electronic equipment Download PDF

Info

Publication number
CN112306257A
CN112306257A CN202011233871.XA CN202011233871A CN112306257A CN 112306257 A CN112306257 A CN 112306257A CN 202011233871 A CN202011233871 A CN 202011233871A CN 112306257 A CN112306257 A CN 112306257A
Authority
CN
China
Prior art keywords
input
character
character string
initial
determining
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.)
Granted
Application number
CN202011233871.XA
Other languages
Chinese (zh)
Other versions
CN112306257B (en
Inventor
孙华伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011233871.XA priority Critical patent/CN112306257B/en
Publication of CN112306257A publication Critical patent/CN112306257A/en
Application granted granted Critical
Publication of CN112306257B publication Critical patent/CN112306257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements 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/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a character deleting method and device and electronic equipment, and belongs to the technical field of communication. The method comprises the following steps: receiving a first input of a user to the electronic device under the condition that an input initial character string is displayed; and responding to the first input, determining a target character in the initial character string according to the input parameter of the first input, and deleting the target character. According to the method and the device, the user does not need to delete the characters one by one when the wrong characters appear in the character string, so that the operation of the user can be saved, the character deleting efficiency is improved, and the character deleting time is saved.

Description

Character deleting method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a character deleting method and device and electronic equipment.
Background
With the continuous development of science and technology, electronic devices (such as mobile phones, tablet computers and the like) have become an indispensable tool in life and work of people.
At present, people use electronic equipment to input texts to communicate in the process of inputting texts
With the development of the internet and the continuous enrichment of the functions of the mobile phone, people increasingly use the mobile phone to input texts for communication. At present, most of mobile devices such as mobile phones and the like complete text input through a pinyin input method. In the process of using the pinyin input method, when missing characters, multiple characters and wrong characters appear in the whole string of characters, the method of deleting the wrong characters from right to left one by one and then re-inputting the correct character string is generally adopted, and the method has the problems of time consumption and low efficiency.
Disclosure of Invention
The embodiment of the application aims to provide a character deleting method, a character deleting device and electronic equipment, and the problem that time-consuming offset exists in a mode of deleting wrong characters in the prior art can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a character deletion method, where the method includes:
receiving a first input of a user to the electronic device under the condition that an input initial character string is displayed;
and responding to the first input, determining a target character in the initial character string according to the input parameter of the first input, and deleting the target character.
In a second aspect, an embodiment of the present application provides a character deleting device, including:
the first input receiving module is used for receiving a first input of a user to the electronic equipment under the condition of displaying an input initial character string;
and the target character deleting module is used for responding to the first input, determining a target character in the initial character string according to the input parameter of the first input, and deleting the target character.
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 character deletion 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, which when executed by a processor implement the steps of the character deletion 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 character deletion method according to the first aspect.
In the embodiment of the application, a first input of a user to the electronic device is received under the condition that an input initial character string is displayed, a target character in the initial character string is determined according to an input parameter of the first input in response to the first input, and the target character is deleted. According to the method and the device, the target character to be deleted can be determined and the target character is deleted through the user inputting the electronic equipment, so that the user does not need to delete the characters one by one when the wrong characters appear in the character string, the operation of the user can be saved, the character deleting efficiency is improved, and the character deleting time is saved.
Drawings
Fig. 1 is a flowchart illustrating steps of a character deleting method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a pinyin editing mode according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an input performed on an electronic device according to an embodiment of the present application;
FIG. 4 is a diagram illustrating a Pinyin positioning mode according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another embodiment of an input performed on an electronic device;
fig. 6 is a schematic diagram of a cursor positioning character according to an embodiment of the present application;
FIG. 7 is a diagram illustrating a corrected character according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a character deleting device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
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 following describes in detail the character deletion scheme provided in the embodiments of the present application with reference to the accompanying drawings by using specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart illustrating steps of a character deleting method provided in an embodiment of the present application is shown, and as shown in fig. 1, the character deleting method may specifically include the following steps:
step 101: in a case where an initial character string of an input is displayed, a first input of a user to an electronic device is received.
The method and the device can be applied to scenes for quickly deleting the error characters of the input character strings.
It is to be understood that the initial character string refers to a character string input by the user for performing error character deletion. For example, as shown in fig. 2, the initial character string input by the user is "confling", however, what the user needs to input is that the character string is "confling", and at this time, the character string "confling" input by the user in the display interface can be used as the initial character string.
The first input refers to an input that is executed by a user on the electronic device to obtain a target character to be deleted in an initial character string and delete the target character, and in this embodiment, the first input may be an input that is formed by the user shaking the electronic device, or an input that is formed by the user rotating the electronic device, and specifically, a specific form of the first input may be set by the user according to a business requirement, which is not limited in this embodiment of the present application.
After the user inputs the character string, the user may check whether an error character exists in the character string, if an error character exists, the character string input by the user may be regarded as an initial character string, and then, the user may perform a first input on the electronic device to obtain an error character in the initial character string, that is, a target character, and perform a subsequent target character deleting operation.
Of course, in this embodiment, a character deletion mode may also be preset, and the character deletion mode may be entered through an operation set by a user, for example, as shown in fig. 2, when a text (application such as a short message, a WeChat, a telephone, etc.) is input in an input method interface, an input method keyboard button may be provided. The corresponding character is typically entered by clicking (pressing and then flicking) a certain character button. When the input method interface detects that a finger (which can be any finger, but is more a thumb in the using process) is pressed on the input method interface for more than 1s without bouncing, namely, the input method interface enters a character deleting mode and the like when the input method interface has a pressing action for more than 1 s.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
In this example, the number of characters of the initial character string may be determined according to the number of the inputted letters, for example, the initial character string inputted by the user is "cong", the number of letters is 4, at this time, the number of characters of the initial character string is 4, and so on. In addition, the number of characters in the initial character string may be determined according to the number of participles in the initial character string, for example, the initial character string input by the user is "li ' conn ' ming", where "'" is a participle and the number of participles in the initial character string is 2, and at this time, the number of characters in the initial character string is 3, that is, "li", "conn" and "ming" are respectively used as one character.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
In the case of displaying the input initial character string, step 102 is performed after receiving a first input to the electronic device by the user.
Step 102: and responding to the first input, determining a target character in the initial character string according to the input parameter of the first input, and deleting the target character.
The target character refers to a character in the initial character string that needs to be deleted, and in this embodiment, the target character may be one character, or may also be two or more characters, and specifically, the present embodiment is not limited thereto, which may be determined according to an actual situation.
After receiving a first input from a user to the electronic device, a target character in the initial character string may be determined in response to the input parameters of the first input, and the target character may be deleted.
According to the method and the device, the target character to be deleted in the character string can be input and deleted by combining the input of the user to the electronic equipment, and the user does not need to delete the characters one by one when the user generates wrong characters in the character string, so that the operation of the user can be saved, the character deleting efficiency is improved, and the character deleting time is saved.
In this embodiment, the character selection direction and the character selection number may be determined in combination with the cursor and the input parameter of the first input, and further, the target character in the initial character string may be obtained according to the character selection direction and the character selection number, and specifically, the detailed description may be described in combination with the following specific implementation manner.
In a specific implementation manner of the present application, the step 102 may include:
substep A1: and determining the character selection direction corresponding to the initial character string according to the first input parameter of the first input.
In the present embodiment, the character selection direction refers to a direction for selecting a target character to be deleted. It is to be understood that the character selection direction is a selection direction determined with reference to a character input cursor, for example, during the process of inputting characters by a user, a cursor may be displayed, and the character selection direction may be a direction located on the left side of the cursor or a direction located on the right side of the cursor.
The first input parameter refers to a parameter of the first input for determining a character selection direction corresponding to the initial character string. In this example, the first input parameter may be a swing direction parameter for a user to swing the electronic device, or may also be a rotation direction parameter for the user to rotate the electronic device, and specifically, the first input parameter may be determined according to a form of the first input, which is not limited in this embodiment.
After receiving a first input to the electronic device by a user, responding to the first input, and determining a character selection direction corresponding to an initial character string according to a first input parameter of the first input, as shown in fig. 6, where a cursor is located at a position behind a first character "c", and when the first input is a flick input, determining a character selection direction according to the flick direction, where, if the flick direction is flicking the electronic device leftward, the character selection direction is selecting a character in a direction located on the left side of the cursor, and if the flick direction is flicking the electronic device rightward, the character selection direction is selecting a character in a direction located on the right side of the cursor, and so on.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
Substep A2: and determining the number of character selections corresponding to the initial character string according to the first input second input parameter.
The character selection number refers to the number used to select a character to be deleted from the initial character string.
The second input parameter refers to a parameter of the first input for determining the number of character selections, in this example, the second input parameter may be a parameter of the number of flicks, or may be a parameter of a rotation angle, and specifically, the second input parameter may be determined according to a specific form of the first input, which is not limited in this embodiment.
After receiving a first input of the electronic device by a user, responding to the first input, and determining the character selection number corresponding to the initial character string according to a second input parameter of the first input.
Substep A3: and determining the target characters in the initial character string according to the character selection direction and the character selection number.
After determining the character selection direction and the character selection number, the target character can be selected from the initial character string by combining the character selection direction and the character selection number.
According to the method and the device, the character selection direction and the character selection number can be directly obtained through the input of the user to the electronic equipment, the target characters to be deleted in the initial character string are obtained by combining the character selection direction and the character selection number, the user does not need to select the characters one by one and delete the characters, the operation steps of deleting the characters by the user are reduced, and the user experience is improved.
Next, the process of determining the character selection direction is described in detail below in conjunction with the specific form of the first input.
In another specific implementation manner of the present application, the sub-step a1 may include:
substep A1-1: and under the condition that the first input is swing input, determining a character selection direction corresponding to the initial character string according to the swing direction of the swing input.
In this embodiment, a measuring device such as a gyroscope is previously provided in the electronic device, and the rotation direction, the rotation angle, the swing direction, the number of swings, and the like of the electronic device can be detected by the device, and as shown in fig. 3, when the user swings the mobile phone left while holding the mobile phone, the rotation direction and the rotation angle of the mobile phone can be measured by the device such as the gyroscope.
In the case that the first input is a flick input, the first input parameter is a flick direction parameter of the flick input, and at this time, a character selection direction corresponding to the initial character string may be determined in combination with the flick direction of the flick input, for example, as shown in fig. 6, the cursor is located at a position after a first character "c" in the input initial character string, when the flick direction is flicking the electronic device to the left, the character selection direction is selecting a character in a direction to the left of the cursor, and when the flick direction is flicking the electronic device to the right, the character selection direction is selecting a character in a direction to the right of the cursor.
Substep A1-2: and under the condition that the first input is a rotation input, determining a character selection direction corresponding to the initial character string according to the rotation direction of the rotation input.
In the case that the first input is a rotation input, the first input parameter is a rotation direction, at this time, a character selection direction corresponding to the initial character string may be determined according to the rotation direction of the rotation input, as shown in fig. 5, when the user rotates to the left, the character selection direction is a direction located on the left side of the cursor, and the like.
Of course, in this embodiment, when the target character needs to be determined, the cursor position may be first adjusted by the user, and then the character selection direction is determined by combining the specific form of the first input, for example, after the user inputs the initial character string, a positioning cursor may be displayed at the end of the initial character string, such as "conforming" shown in fig. 4, where "conforming" is the positioning cursor, and when the user needs to delete the character "o" in the character string, the user performs the first rotation operation on the electronic device, and then the positioning position may be determined according to the rotation direction and the rotation angle of the first rotation operation, that is, after the user inputs the initial character string by rotating the electronic device to realize the cursor movement, a positioning cursor may be displayed at the end of the initial character string, such as "conforming" shown in fig. 4, where "|" is the positioning cursor, when the user needs to delete the character "o" in the character string, the user performs a rotation operation on the electronic device, and further, the positioning position can be determined according to the rotation direction and the rotation angle of the rotation operation, that is, the user realizes cursor movement by rotating the electronic device. Of course, the adjustment of the cursor position may also be realized by a manner of dragging the cursor by the user, and specifically, the adjustment may be determined according to the service requirement, which is not limited in this embodiment.
Next, a scheme of determining the number of character selections will be described in detail below in conjunction with a specific form of the first input.
In another specific implementation manner of the present application, the sub-step a2 may include:
substep A2-1: and under the condition that the first input is swing input, determining the number of character selections corresponding to the initial character string according to the number of swing times of the swing input.
In this embodiment, in the case of the flick input of the first input, the second input parameter of the first input is a flick number parameter, at this time, the number of character selections corresponding to the initial character string may be determined according to the flick number, for example, when the flick number is 1, the number of character selections is 1, and when the flick number is 3, the number of character selections is 3, and the like.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
Substep A2-2: and under the condition that the first input is a rotation input, determining the number of character selections corresponding to the initial character string according to the rotation angle of the rotation input.
And under the condition that the first input is the rotation input, the second input parameter of the first input is the rotation angle, and at the moment, the number of character selections corresponding to the initial character string can be determined according to the rotation angle of the rotation input.
In this example, the correspondence between the rotation angle and the number of character selections may be stored in the electronic device system, for example, the number of character selections corresponding to rotation angles of 0 ° to 10 ° is 1, the number of character selections corresponding to rotation angles of 10 ° to 20 ° is 2, and the number of character selections corresponding to rotation angles of 20 ° to 30 ° is 3.
It will be appreciated that in addition to determining the number of character selections based on the angle of rotation, the number of character selections may also be determined based on the speed of rotation of the rotational input, i.e., the faster the speed of rotation, the greater the number of characters selected.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
According to the method and the device, the character selection direction and the character selection number are determined by combining the input of the user to the electronic equipment, and then the target characters to be deleted can be screened out from the initial character string.
In this example, the missing characters may also be added at specified locations in conjunction with user input, and in particular, may be described in detail in conjunction with the specific implementations described below.
In another specific implementation manner of the present application, after adjusting the cursor to a certain position in the initial character string, the method may further include:
step B1: a second input by the user is received.
In the embodiment of the present application, the second input refers to an input of adding a character at the positioning position by the user.
The second input may be an input formed by a click operation performed by the user, for example, as shown in fig. 6, the initial character string is "c | ingling", the location position is a position after the character "c", and when the character "h" needs to be added at the position, the character "h" displayed by the pinyin input method may be clicked by the user, and the click operation forms the second input.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
After receiving the second input by the user, step B2 is performed.
Step B2: in response to the second input, a first character of the input is determined and the first character is added at the localized position.
After receiving the second input of the user, the first character of the input may be determined in response to the second input, and the first character may be added at the location position, for example, as shown in fig. 7, the initial character string is "comingling", and when it is determined through fig. 6 that the location position "c | comingling" is a position between the character "c" and the first character "o" from the right, the second input performed by the user may be received, and if the user clicks the "h" character in the pinyin input method, the character may be taken as the first character, and the character may be added at the location position, that is, the character string "chongling".
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
In another implementation manner of the present application, after the user deletes the target character in the initial character string, a third input may be performed by the user to determine the first character, and add the first character to the position where the target character is located, that is, complete the replacement of the first character and the target character. In particular, the detailed description may be combined with the following specific implementations.
In another specific implementation manner of the present application, after deleting the target character, the method may further include:
step C1: receiving a third input of the user;
step C2: and responding to the third input, determining a first character of the input according to the input parameter of the third input, and adding the first character to the position of the target character.
In the embodiment of the present application, the third input refers to an input performed by the user for adding a character at a position corresponding to the target character.
The third input may be an input formed by a click operation performed by the user, for example, as shown in fig. 6, the initial character string is "c | ingling", the location position is a position after the character "c", and when the character "h" needs to be added at the position, the character "h" displayed by the pinyin input method may be clicked by the user, and the click operation forms the third input.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
After deleting the target character in the initial character string, a third input performed by the user can be received, a first character input by the user is determined according to the input parameter of the third input, and the first character is added to the position where the target character is located.
According to the character deleting method provided by the embodiment of the application, under the condition that the input initial character string is displayed, the first input of a user to the electronic equipment is received, the first input is responded, the target character in the initial character string is determined according to the input parameter of the first input, and the target character is deleted. According to the method and the device, the target character to be deleted can be determined and the target character is deleted through the user inputting the electronic equipment, so that the user does not need to delete the characters one by one when the wrong characters appear in the character string, the operation of the user can be saved, the character deleting efficiency is improved, and the character deleting time is saved.
It should be noted that, in the character deletion method provided in the embodiment of the present application, the execution main body may be a character deletion apparatus, or a control module in the character deletion apparatus for executing the character deletion method. In the embodiment of the present application, a method for executing a character deletion by a character deletion apparatus is taken as an example, and the character deletion apparatus provided in the embodiment of the present application is described.
Referring to fig. 8, a schematic structural diagram of a character deleting device provided in the embodiment of the present application is shown, and as shown in fig. 8, the character deleting device 800 may specifically include the following modules:
a first input receiving module 810, configured to receive a first input to the electronic device by a user in a case where an initial character string of the input is displayed;
and the target character deleting module 840 is used for responding to the first input, determining a target character in the initial character string according to the input parameter of the first input, and deleting the target character.
Optionally, the target character deleting module 840 includes:
a first direction determining unit, configured to determine, according to the first input parameter of the first input, a character selection direction corresponding to the initial character string;
the character number determining unit is used for determining the character selection number corresponding to the initial character string according to the first input second input parameter;
and the target character determining unit is used for determining the target characters in the initial character string according to the character selection direction and the character selection number.
Optionally, the first direction determining unit includes:
a first direction determining subunit, configured to determine, when the first input is a flick input, a character selection direction corresponding to the initial character string according to the flick direction of the flick input;
and the second direction determining subunit is configured to determine, when the first input is a rotation input, a character selection direction corresponding to the initial character string according to a rotation direction of the rotation input.
Optionally, the number of characters determining unit includes:
a first character number determining subunit, configured to determine, when the first input is a flick input, a number of character selections corresponding to the initial character string according to the flick frequency of the flick input;
and the second character number determining subunit is configured to determine, when the first input is a rotational input, the number of character selections corresponding to the initial character string according to a rotation angle of the rotational input.
Optionally, the number of characters of the initial character string is determined according to the number of input letters;
or the number of the characters of the initial character string is determined according to the number of the participle characters in the initial character string.
According to the character deleting device provided by the embodiment of the application, under the condition that the input initial character string is displayed, the first input of a user to the electronic equipment is received, the first input is responded, the target character in the initial character string is determined according to the input parameter of the first input, and the target character is deleted. According to the method and the device, the target character to be deleted can be determined and the target character is deleted through the user inputting the electronic equipment, so that the user does not need to delete the characters one by one when the wrong characters appear in the character string, the operation of the user can be saved, the character deleting efficiency is improved, and the character deleting time is saved.
The character 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 character 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 character deleting device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 9, an electronic device 900 is further provided in this embodiment of the present application, and includes a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and executable on the processor 901, where the program or the instruction is executed by the processor 901 to implement each process of the foregoing character 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. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 0105, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 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.
The radio frequency unit 1001 is configured to receive a first input of the electronic device from a user in a case where an input initial character string is displayed;
and a processor 1010, configured to determine, in response to the first input, a target character in the initial character string according to an input parameter of the first input, and delete the target character.
According to the method and the device, the target character to be deleted can be determined and deleted by inputting the electronic equipment by the user, so that the user does not need to delete the characters one by one when the wrong characters appear in the character string, the operation of the user can be saved, the character deleting efficiency is improved, and the character deleting time is saved.
Optionally, the radio frequency unit 1001 is further configured to determine, according to the first input parameter of the first input, a character selection direction corresponding to the initial character string;
the processor 1010 is further configured to determine, according to the first input second input parameter, a number of character selections corresponding to the initial character string; and determining the target characters in the initial character string according to the character selection direction and the character selection number.
Optionally, the processor 1010 is further configured to determine, when the first input is a flick input, a character selection direction corresponding to the initial character string according to a flick direction of the flick input; and under the condition that the first input is a rotation input, determining a character selection direction corresponding to the initial character string according to the rotation direction of the rotation input.
Optionally, the processor 1010 is further configured to determine, when the first input is a flick input, a number of character selections corresponding to the initial character string according to the flick frequency of the flick input; and under the condition that the first input is a rotation input, determining the number of character selections corresponding to the initial character string according to the rotation angle of the rotation input.
Optionally, the number of characters of the initial character string is determined according to the number of input letters;
or the number of the characters of the initial character string is determined according to the number of the participle characters in the initial character string.
The number of the characters and the character selection direction are determined by combining swing input or rotation input, the target characters to be deleted in the initial character string are determined, the target characters are deleted, the characters do not need to be deleted one by a user, then accurate characters are added, operation steps of the user can be reduced, and use experience of the user can be further improved.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 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 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 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 1010.
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 program or the instruction implements each process of the above-mentioned character deleting method embodiment, and can achieve the same technical effect, 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 above-mentioned character deletion method embodiment, and can achieve the same technical effect, and is not described here again to avoid repetition.
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.
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 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, an air conditioner, 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 (10)

1. A method for deleting a character, comprising:
receiving a first input of a user to the electronic device under the condition that an input initial character string is displayed;
and responding to the first input, determining a target character in the initial character string according to the input parameter of the first input, and deleting the target character.
2. The method of claim 1, wherein determining a target character in the initial string based on the input parameters of the first input comprises:
determining a character selection direction corresponding to the initial character string according to the first input parameter of the first input;
determining the number of character selections corresponding to the initial character string according to the first input second input parameter;
and determining the target characters in the initial character string according to the character selection direction and the character selection number.
3. The method of claim 2, wherein determining the character selection direction corresponding to the initial character string according to the first input parameter of the first input comprises:
under the condition that the first input is swing input, determining a character selection direction corresponding to the initial character string according to the swing direction of the swing input;
and under the condition that the first input is a rotation input, determining a character selection direction corresponding to the initial character string according to the rotation direction of the rotation input.
4. The method of claim 2, wherein the determining the number of character selections corresponding to the initial character string according to the second input parameter of the first input comprises:
under the condition that the first input is swing input, determining the number of character selections corresponding to the initial character string according to the number of swing times of the swing input;
and under the condition that the first input is a rotation input, determining the number of character selections corresponding to the initial character string according to the rotation angle of the rotation input.
5. The method of claim 1,
the number of characters of the initial character string is determined according to the number of input letters;
or the number of the characters of the initial character string is determined according to the number of the participle characters in the initial character string.
6. A character deletion apparatus, comprising:
the first input receiving module is used for receiving a first input of a user to the electronic equipment under the condition of displaying an input initial character string;
and the target character deleting module is used for responding to the first input, determining a target character in the initial character string according to the input parameter of the first input, and deleting the target character.
7. The apparatus of claim 6, wherein the target character deletion module comprises:
a first direction determining unit, configured to determine, according to the first input parameter of the first input, a character selection direction corresponding to the initial character string;
the character number determining unit is used for determining the character selection number corresponding to the initial character string according to the first input second input parameter;
and the target character determining unit is used for determining the target characters in the initial character string according to the character selection direction and the character selection number.
8. The apparatus of claim 7, wherein the first direction determining unit comprises:
a first direction determining subunit, configured to determine, when the first input is a flick input, a character selection direction corresponding to the initial character string according to the flick direction of the flick input;
and the second direction determining subunit is configured to determine, when the first input is a rotation input, a character selection direction corresponding to the initial character string according to a rotation direction of the rotation input.
9. The apparatus of claim 7, wherein the number of characters determining unit comprises:
a first character number determining subunit, configured to determine, when the first input is a flick input, a number of character selections corresponding to the initial character string according to the flick frequency of the flick input;
and the second character number determining subunit is configured to determine, when the first input is a rotational input, the number of character selections corresponding to the initial character string according to a rotation angle of the rotational input.
10. The apparatus of claim 6,
the number of characters of the initial character string is determined according to the number of input letters;
or the number of the characters of the initial character string is determined according to the number of the participle characters in the initial character string.
CN202011233871.XA 2020-11-06 2020-11-06 Character deleting method and device and electronic equipment Active CN112306257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011233871.XA CN112306257B (en) 2020-11-06 2020-11-06 Character deleting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011233871.XA CN112306257B (en) 2020-11-06 2020-11-06 Character deleting method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112306257A true CN112306257A (en) 2021-02-02
CN112306257B CN112306257B (en) 2024-06-18

Family

ID=74325243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011233871.XA Active CN112306257B (en) 2020-11-06 2020-11-06 Character deleting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112306257B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002098A (en) * 2012-11-30 2013-03-27 广东欧珀移动通信有限公司 Single-hand input method and smart cell phone with same
CN103186255A (en) * 2011-12-27 2013-07-03 中国电信股份有限公司 Cursor mobile processing method and system based on gyroscope as well as user terminal
US20140223370A1 (en) * 2011-08-31 2014-08-07 Rakuten, Inc. Mobile electronic device, method for controlling mobile electronic device, program, and information storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140223370A1 (en) * 2011-08-31 2014-08-07 Rakuten, Inc. Mobile electronic device, method for controlling mobile electronic device, program, and information storage medium
CN103186255A (en) * 2011-12-27 2013-07-03 中国电信股份有限公司 Cursor mobile processing method and system based on gyroscope as well as user terminal
CN103002098A (en) * 2012-11-30 2013-03-27 广东欧珀移动通信有限公司 Single-hand input method and smart cell phone with same

Also Published As

Publication number Publication date
CN112306257B (en) 2024-06-18

Similar Documents

Publication Publication Date Title
WO2022121790A1 (en) Split-screen display method and apparatus, electronic device, and readable storage medium
CN112433693B (en) Split screen display method and device and electronic equipment
CN112099714B (en) Screenshot method and device, electronic equipment and readable storage medium
CN112416200A (en) Display method, display device, electronic equipment and readable storage medium
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN112148167A (en) Control setting method and device and electronic equipment
CN111813305A (en) Application program starting method and device
CN111651106A (en) Unread message prompting method, unread message prompting device, unread message prompting equipment and readable storage medium
CN112181559A (en) Interface display method and device and electronic equipment
EP4351117A1 (en) Information display method and apparatus, and electronic device
CN112306257B (en) Character deleting method and device and electronic equipment
CN111857465B (en) Application icon sorting method and device and electronic equipment
CN112286613A (en) Interface display method and interface display device
CN114416264A (en) Message display method and device
CN113342241A (en) Target character selection method and device, electronic equipment and storage medium
CN112732100A (en) Information processing method and device and electronic equipment
CN112182673A (en) Information sharing method, device and equipment
CN111813473A (en) Screen capturing method and device and electronic equipment
CN111752428A (en) Icon arrangement method and device, electronic equipment and medium
CN112162681A (en) Text operation execution method and device and electronic equipment
CN112035032B (en) Expression adding method and device
CN113162840B (en) Display method, display device, electronic apparatus, and readable storage medium
CN112235645B (en) Multimedia content playing method and device
CN113076010B (en) Input method, input device, electronic equipment and medium
CN113821293A (en) Interface switching method and device

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
GR01 Patent grant