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

Character deleting method and device and electronic equipment Download PDF

Info

Publication number
CN112306257B
CN112306257B CN202011233871.XA CN202011233871A CN112306257B CN 112306257 B CN112306257 B CN 112306257B CN 202011233871 A CN202011233871 A CN 202011233871A CN 112306257 B CN112306257 B CN 112306257B
Authority
CN
China
Prior art keywords
input
character
character string
flick
initial
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.)
Active
Application number
CN202011233871.XA
Other languages
Chinese (zh)
Other versions
CN112306257A (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

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)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (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 the electronic equipment by a user under the condition of displaying an input initial character string; 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 application does not need to delete the characters one by the user when the error characters appear in the character string, thereby saving the operation of the user, improving the efficiency of deleting the characters and saving the time of deleting the characters.

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, a character deleting device and electronic equipment.
Background
With the continuous development of science and technology, electronic devices (such as mobile phones and tablet computers) have become an indispensable tool in life and work of people.
At present, people use electronic equipment to input text for communication, and in the process
With the development of the internet and the continuous richness of the functions of mobile phones, people increasingly use mobile phones to input texts for communication and exchange. In most of the current mobile devices such as mobile phones, text input is completed 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 wrong characters are usually deleted one by one from right to left, and then the correct character string is input again, so that the method has the problems of time consumption and inefficiency.
Disclosure of Invention
The embodiment of the application aims to provide a character deleting method, a character deleting device and electronic equipment, which can solve the problem that time consumption is counteracted in a mode of deleting wrong characters in the prior art.
In order to solve the technical problems, the application is realized as follows:
In a first aspect, an embodiment of the present application provides a method for deleting a character, including:
receiving a first input of the electronic equipment by a user under the condition of displaying an input initial character string;
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 apparatus, including:
The first input receiving module is used for receiving a first input of the electronic equipment by a user under the condition of displaying the input initial character string;
and the target character deleting module is used for responding to the first input, determining target characters in the initial character string according to the input parameters of the first input and deleting the target characters.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions implementing the steps of the character deletion method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the character deletion method as described in 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 method for deleting characters according to the first aspect.
In the embodiment of the application, under the condition of displaying the input initial character string, receiving the first input of the user to the electronic equipment, responding to the first input, determining the target character in the initial character string according to the input parameter of the first input, and deleting the target character. According to the embodiment of the application, the target character to be deleted can be determined and deleted by executing the input to the electronic equipment by the user, so that the user does not need to delete the characters one by one when the error character appears 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 method for deleting characters according to an embodiment of the present application;
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 embodiment of the present application for performing input to an electronic device;
FIG. 4 is a schematic diagram of a Pinyin positioning mode according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another embodiment of an input to 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 schematic diagram of 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 following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The character deleting scheme provided by the embodiment of the application is described in detail through specific embodiments and application scenes thereof by combining the attached drawings.
Referring to fig. 1, a step flowchart of a character deleting method provided by 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 the case of displaying an entered initial string, a first input by a user to an electronic device is received.
The embodiment of the application can be applied to a scene for rapidly deleting the error characters of the input character string.
It is understood that the initial character string refers to a character string input by a user for performing erroneous character deletion. For example, as shown in fig. 2, the initial character string input by the user is "congling", however, the character string input by the user is "congjing", and the character string "congling" input by the user in the display interface may be used as the initial character string.
The first input is an input performed by the user on the electronic device to obtain the target character to be deleted in the initial character string and delete the target character, in this embodiment, the first input may be an input formed by the user throwing the electronic device, or may be an input formed by the user rotating the electronic device, or the like, and specifically, a specific form of the first input may be set by the user according to a service requirement.
After the user inputs the character string, the user may check whether there is an erroneous character in the character string, and if there is an erroneous character, the character string input by the user may be regarded as an initial character string at this time, and then the user may perform a first input to the electronic device to obtain the erroneous character, i.e., the target character, in the initial character string, and perform a subsequent target character deletion operation.
Of course, in this embodiment, the character deletion mode may be preset, and the character deletion mode may be entered through a user-set operation, for example, as shown in fig. 2, when a text (e.g., a sms, a phone, etc.) input method interface performs text input, there is an input method keyboard button. 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 (can be any finger, but more thumbs are in the use process) is pressed for more than 1s without flicking, namely the pressing action is more than 1s, the input method interface enters a mode of deleting characters and the like.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present application, and are not to be construed as the only limitation of the present embodiments.
In this example, the number of characters of the initial character string may be determined according to the number of inputted letters, for example, "cong" is the initial character string inputted by the user, 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 the word segmentation symbols in the initial character string, for example, the initial character string input by the user is "li ' cong ' mini", where "'" is the word segmentation symbol, and the number of the word segmentation symbols in the initial character string is 2, where the number of characters in the initial character string is 3, i.e., "li", "cong" and "mini" are respectively regarded as one character.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present application, and are not to be construed as the only limitation of the present embodiments.
In the case of displaying the entered initial string, step 102 is performed after receiving a first input from the user to the electronic device.
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 to be deleted in the initial character string, and in this embodiment, the target character may be one character, or may be two or more characters, specifically, may be determined according to the actual situation, which is not limited in this embodiment.
After receiving a first input from a user to the electronic device, a target character in the initial string may be determined in response to an input parameter of the first input, and the target character may be deleted.
According to the embodiment of the application, the target character to be deleted in the character string can be input and deleted by combining with the input of the user to the electronic equipment, and the user is not required to delete the character one by one when the user has the wrong character 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 by combining the cursor and the input parameters 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, which may be specifically described in detail in connection with the following specific implementation manner.
In a specific implementation of the present application, the step 102 may include:
Substep A1: and determining a 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 will be appreciated that the character selection direction is a selection direction determined based on the character input cursor, for example, a cursor may be displayed during the process of inputting characters by the user, 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 flick direction parameter of the electronic device that is flicked by the user, or may be a rotation direction parameter of the electronic device that is rotated by the user, and specifically, may be determined according to a form of the first input, which is not limited in this embodiment.
After receiving the first input of the user to the electronic device, the first input may be responded, and according to a first input parameter of the first input, a character selection direction corresponding to the initial character string may be determined, as shown in fig. 6, where the cursor is located at a position after the first character "c", where the first input is a flick input, the character selection direction may be determined according to the flick direction, where the character selection direction is a direction located at the left side of the cursor when the flick direction is a direction located at the left side of the cursor, and where the character selection direction is a direction located at the right side of the cursor when the flick direction is a direction located at the right side of the cursor, and so on.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present application, and are not to be construed as the only limitation of the present embodiments.
Substep A2: and determining the character selection number corresponding to the initial character string according to the second input parameter of the first input.
The character selection number refers to the number of characters to be deleted for selection from the initial character string.
The second input parameter refers to a parameter of the first input for determining the number of character selections, and in this example, the second input parameter may be a flick number parameter or a rotation angle parameter, and specifically, 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 user to the electronic device, the first input can be responded, and the character selection number corresponding to the initial character string can be determined according to a second input parameter of the first input.
Substep A3: and determining 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 may be selected from the initial character string in combination with the character selection direction and the character selection number.
According to the embodiment of the application, the character selection direction and the character selection number can be directly obtained through the input of the user to the electronic equipment, and the target character to be deleted in the initial character string is obtained by combining the character selection direction and the character selection number, so that 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, a process of determining the character selection direction is described in detail below in connection with a specific form of the first input.
In another specific implementation of the present application, the foregoing substep A1 may include:
substep A1-1: and under the condition that the first input is the flick input, determining a character selection direction corresponding to the initial character string according to the flick direction of the flick input.
In this embodiment, a measuring device such as a gyroscope is preset in the electronic device, and the rotation direction, rotation angle, flick direction, flick frequency, and the like of the electronic device can be detected by the device, and as shown in fig. 3, when the user holds the mobile phone to flick left, the rotation direction and 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 the first character "c" in the input initial character string, when the flick direction is a left flick electronic device, the character selection direction is a direction selection character located at the left side of the cursor, and when the flick direction is a right flick electronic device, the character selection direction is a direction selection character located at the right side of the cursor.
Substep A1-2: and when 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.
When the first input is a rotation input, the first input parameter is a rotation direction, and 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 left, the character selection direction is a left direction of the cursor, and so on.
Of course, in this embodiment, when the target character needs to be determined, the cursor position may be adjusted by the user first, so as to determine the character selection direction in combination with 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, as shown in fig. 4, "congling |", which 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, so that 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, the user may display a positioning cursor at the end of the initial character string, as shown in fig. 4, "congling |", which is the positioning cursor, and when the user needs to delete the character "o" in the character string, the user performs the rotation operation on the electronic device, so as to determine the positioning position according to the rotation direction and the rotation angle of the rotation operation, that is, the user moves the cursor by rotating the electronic device. Of course, the adjustment of the cursor position may be implemented by dragging the cursor by the user, and in particular, the present embodiment may be determined according to the service requirement, which is not limited.
Next, a scheme of determining the number of character selections is described in detail below in connection with a specific form of the first input.
In another specific implementation of the present application, the foregoing substep A2 may include:
Substep A2-1: and under the condition that the first input is the flick input, determining the character selection number corresponding to the initial character string according to the flick times of the flick input.
In this embodiment, in the case of the flick input of the first input, the second input parameter of the first input is the flick number parameter, and 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.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present application, and are not to be construed as the only limitation of the present embodiments.
Substep A2-2: and under the condition that the first input is rotation input, determining the character selection number corresponding to the initial character string according to the rotation angle of the rotation input.
When the first input is a rotation input, the second input parameter of the first input is a rotation angle, and at this time, 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 relationship between the rotation angle and the number of character selections may be stored in the electronic device system in advance, for example, the number of character selections corresponding to the rotation angle of 0 ° to 10 ° is 1, the number of character selections corresponding to the rotation angle of 10 ° to 20 ° is 2, the number of character selections corresponding to the rotation angle of 20 ° to 30 ° is 3, and the like.
It will be appreciated that, in addition to determining the number of character selections based on the rotation angle, the number of character selections may be determined based on the rotation speed of the rotational input, i.e., the faster the rotation speed, the greater the number of characters selected.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present application, and are not to be construed as the only limitation of the present embodiments.
According to the embodiment of the application, the character selection direction and the character selection number are determined by combining the input of the user to the electronic equipment, and further, the target characters to be deleted can be screened out from the initial character string.
In this example, missing characters may also be added at designated 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 of the present application, after adjusting the cursor to a certain position in the initial string, the method may further include:
step B1: a second input of the user is received.
In the embodiment of the application, the second input refers to the input of adding characters at the positioning position by the user.
The second input may be an input formed by a clicking operation performed by the user, for example, as shown in fig. 6, the initial character string is "c| ongling", the positioning position is a position after the character "c", and when the character "h" needs to be added at the position, the user may click the character "h" displayed by the pinyin input method, and the clicking operation forms the second input.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present application, and are not to be construed as the only limitation of the present embodiments.
After receiving the second input of the user, step B2 is performed.
Step B2: in response to the second input, an input first character is determined and the first character is added at the location.
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 positioning position, for example, as shown in fig. 7, the initial character string is "congling", when the positioning position "c| ongling" is determined to be the position between the character "c" and the first character "o" from the right through fig. 6, the second input performed by the user may be received, for example, the user clicks on the "h" character in the pinyin input method, the character is taken as the first character, and the character is added at the positioning position, thereby obtaining the character string "chongling".
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present application, and are not to be construed as the only limitation of the present embodiments.
In another implementation manner of the present application, after the user deletes the target character in the initial character string, the user may perform a third input 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 made in connection with the following detailed description.
In another specific implementation of the present application, after deleting the target character, the method may further include:
Step C1: receiving a third input from the user;
step C2: in response to the third input, determining a first character of the input according to an input parameter of the third input, and adding the first character at a position where the target character is located.
In the embodiment of the application, the third input refers to input performed by the user for adding the character at the position corresponding to the target character.
The third input may be an input formed by a clicking operation performed by the user, for example, as shown in fig. 6, the initial character string is "c| ongling", the positioning position is a position after the character "c", and when the character "h" needs to be added at the position, the user may click the character "h" displayed by the pinyin input method, and the clicking operation forms the third input.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present application, and are not to be construed as the only limitation of the present embodiments.
After deleting the target character in the initial character string, a third input performed by the user may be received, and a first character input by the user may be determined according to an input parameter of the third input and added at a 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 the user to the electronic equipment is received, the target character in the initial character string is determined according to the input parameter of the first input in response to the first input, and the target character is deleted. According to the embodiment of the application, the target character to be deleted can be determined and deleted by executing the input to the electronic equipment by the user, so that the user does not need to delete the characters one by one when the error character appears 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 deleting method provided in the embodiment of the present application, the execution body may be a character deleting device, or a control module in the character deleting device for executing the character deleting method. In the embodiment of the present application, a method for executing character deletion by a character deleting device is taken as an example, and the character deleting device provided in the embodiment of the present application is described.
Referring to fig. 8, a schematic structural diagram of a character deleting device according to an 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 of an electronic device by a user in a case where an input initial character string is displayed;
And a target character deleting module 840, configured to determine a target character in the initial character string according to an input parameter of the first input in response to the first input, and delete the target character.
Optionally, the target character deleting module 840 includes:
A first direction determining unit, configured to determine a character selection direction corresponding to the initial character string according to a first input parameter of the first input;
the character number determining unit is used for determining the character selection number corresponding to the initial character string according to the second input parameter of the first input;
And the target character determining unit is used for determining 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 a flick direction of the flick input;
and the second direction determining subunit is used for determining the character selection direction corresponding to the initial character string according to the rotation direction of the rotation input when the first input is the rotation input.
Optionally, the character number 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 a number of flicks of the flick input;
And the second character number determining subunit is used for determining the character selection number corresponding to the initial character string according to the rotation angle of the rotation input when the first input is the rotation input.
Optionally, the number of characters of the initial character string is determined according to the number of inputted letters;
Or the number of characters of the initial character string is determined according to the number of word segmentation 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 the user to the electronic equipment is received, the target character in the initial character string is determined according to the input parameter of the first input in response to the first input, and the target character is deleted. According to the embodiment of the application, the target character to be deleted can be determined and deleted by executing the input to the electronic equipment by the user, so that the user does not need to delete the characters one by one when the error character appears 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 application can be a device, and can also be a component, an integrated circuit or a chip in the terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc., and the non-mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, etc., and the embodiments of the present application are not limited in particular.
The character deleting device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The character deleting device provided by the embodiment of the present application can implement each process implemented by the method embodiment of fig. 1, and in order to avoid repetition, a description thereof will not be repeated here.
Optionally, as shown in fig. 9, the embodiment of the present application further provides an electronic device 900, including a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and capable of running on the processor 901, where the program or the instruction implements each process of the above-mentioned character deleting method embodiment when executed by the processor 901, and the process can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
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 also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1010 by a power management system to perform functions such as managing charge, discharge, and power consumption by 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 shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The radio frequency unit 1001 is configured to receive a first input of an electronic device from a user when an input initial character string is displayed;
And a processor 1010 configured to determine a target character in the initial character string according to an input parameter of the first input in response to the first input, and delete the target character.
According to the application, the target character to be deleted can be determined and deleted by executing the input to the electronic equipment by the user, so that the user does not need to delete the character one by one when the error character appears 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 a 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 second input parameter of the first input, a number of character selections corresponding to the initial character string; and determining 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, if 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 when 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, if the first input is a flick input, a number of character selections corresponding to the initial character string according to a number of flicks of the flick input; and under the condition that the first input is rotation input, determining the character selection number 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 inputted letters;
Or the number of characters of the initial character string is determined according to the number of word segmentation characters in the initial character string.
According to the embodiment of the application, the number of characters and the character selection direction are determined by combining the flick input or the rotation input, the target characters to be deleted in the initial character string are determined, the target characters are deleted, the user does not need to delete the characters one by one, then the accurate character is added, the operation steps of the user can be reduced, and the use experience of the user can be further improved.
It should be appreciated that in embodiments of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, where the graphics processor 10041 processes image data of still pictures or video obtained by an image capturing device (e.g., 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 can include two portions, 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, a joystick, and so forth, which are not described in detail herein. Memory 1009 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 1010 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1010.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above-mentioned character deleting method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a 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 (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the character deleting method embodiment, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (6)

1. A character deleting method, comprising:
receiving a first rotation operation under the condition that an input initial character string is displayed on an input method interface;
Updating a cursor position in response to the first rotation operation;
receiving a first input of a user to the electronic device; the first input is a flick input;
and responding to the first input, determining target characters in the initial character string according to the flicking direction of the flicking input, the flicking times of the flicking input and the updated cursor position, and deleting the target characters.
2. The method of claim 1, wherein the determining the target character in the initial string based on the flick direction of the flick input, the number of flicks of the flick input, and the updated cursor position comprises:
determining a character selection direction corresponding to the initial character string according to the flick direction of the flick input;
determining the number of character selections corresponding to the initial character string according to the flick times of the flick input;
and determining target characters in the initial character string according to the character selection direction, the character selection number and the updated cursor position.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
The number of characters of the initial character string is determined according to the number of inputted letters;
Or the number of characters of the initial character string is determined according to the number of word segmentation characters in the initial character string.
4. A character deleting apparatus, comprising:
The first input receiving module is used for receiving a first input of the electronic equipment by a user under the condition that the input method interface displays the input initial character string; the first input is a flick input;
The apparatus is further for receiving a first rotation operation and updating a cursor position in response to the first rotation operation;
and the target character deleting module is used for responding to the first input, determining target characters in the initial character string according to the flick direction of the flick input, the flick times of the flick input and the updated cursor position, and deleting the target characters.
5. The apparatus of claim 4, wherein the target character deletion module comprises:
The character number determining unit is used for determining a character selection direction corresponding to the initial character string according to the flick direction of the flick input;
the character number determining unit is used for determining the character selection number corresponding to the initial character string according to the flick times of the flick input;
and the target character determining unit is used for determining target characters in the initial character string according to the character selection direction, the character selection number and the updated cursor position.
6. The apparatus of claim 4, wherein the device comprises a plurality of sensors,
The number of characters of the initial character string is determined according to the number of inputted letters;
Or the number of characters of the initial character string is determined according to the number of word segmentation 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 CN112306257A (en) 2021-02-02
CN112306257B true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186255A (en) * 2011-12-27 2013-07-03 中国电信股份有限公司 Cursor mobile processing method and system based on gyroscope as well as user terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5497708B2 (en) * 2011-08-31 2014-05-21 楽天株式会社 Portable electronic device, control method for portable electronic device, program, and information storage medium
CN103002098B (en) * 2012-11-30 2015-09-02 广东欧珀移动通信有限公司 A kind of single-hand input method and there is the smart mobile phone of singlehanded input method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186255A (en) * 2011-12-27 2013-07-03 中国电信股份有限公司 Cursor mobile processing method and system based on gyroscope as well as user terminal

Also Published As

Publication number Publication date
CN112306257A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN107422934A (en) The method to set up and electronic equipment of a kind of icon
CN101178633A (en) Method, system and device for correcting hand-written screen error
CN111984162A (en) Page display method and device and electronic equipment
CN112433693B (en) Split screen display method and device and electronic equipment
WO2021233282A1 (en) Method and apparatus for displaying message detail page, and electronic device
CN112148165A (en) Display method and device and electronic equipment
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN112783408A (en) Gesture navigation method and device of electronic equipment, equipment and readable storage medium
CN116107531A (en) Interface display method and device
CN112269523A (en) Object editing processing method and device and electronic equipment
CN112148167A (en) Control setting method and device and electronic equipment
CN114090110B (en) Application program starting method and device and electronic equipment
CN105630376A (en) Terminal control method and device
CN113407075B (en) Icon sorting method and device and electronic equipment
CN113359999B (en) Candidate word updating method and device and electronic equipment
CN114415847A (en) Text information deleting method and device and electronic equipment
CN112698762B (en) Icon display method and device and electronic equipment
CN111966268B (en) Interface display method and device and electronic equipment
CN112306257B (en) Character deleting method and device and electronic equipment
CN107678632B (en) Resource transfer method, terminal and computer readable storage medium
CN113805708B (en) Information display method, information display device, electronic equipment and storage medium
CN114416264A (en) Message display method and device
CN113342241A (en) Target character selection method and device, electronic equipment and storage medium
CN114385562A (en) Text information deleting method and device and electronic equipment
CN113672136A (en) Information display method, device, equipment and storage 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
GR01 Patent grant
GR01 Patent grant