CN112698735A - Information input method and device and electronic equipment - Google Patents

Information input method and device and electronic equipment Download PDF

Info

Publication number
CN112698735A
CN112698735A CN202011553790.8A CN202011553790A CN112698735A CN 112698735 A CN112698735 A CN 112698735A CN 202011553790 A CN202011553790 A CN 202011553790A CN 112698735 A CN112698735 A CN 112698735A
Authority
CN
China
Prior art keywords
input
target
interface
information
candidate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011553790.8A
Other languages
Chinese (zh)
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 CN202011553790.8A priority Critical patent/CN112698735A/en
Publication of CN112698735A publication Critical patent/CN112698735A/en
Pending legal-status Critical Current

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
    • G06F3/0236Character input methods using selection techniques to select from displayed items
    • 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
    • G06F3/0237Character input methods using prediction or retrieval techniques

Abstract

The application discloses an information input method, an information input device and electronic equipment, belongs to the technical field of communication, and can solve the problem that the process of inputting information in the related technology is complex and time-consuming. The method comprises the following steps: receiving a first input of a user under the condition that a first interface is displayed, wherein the first interface comprises a target text, and the first input is input of the target information in the target text by the user; and responding to the first input, displaying N first candidate items in a first interface, wherein each first candidate item comprises at least one character in the target information, and N is a positive integer.

Description

Information input method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an information input method, an information input device and electronic equipment.
Background
With the rapid development of terminal technology and mobile internet, more and more ways to input information are available.
Sometimes, target information which needs to be input by the user is already displayed in the current interface, and then the user can input the target information by triggering the electronic equipment to copy and paste. At present, the specific process of inputting the target information in a copy-and-paste manner may be as follows: the user firstly triggers the electronic equipment to display a drop-down list by long pressing the target information, secondly the user selects a 'copy' option from the drop-down list, triggers the electronic equipment to copy the target information, thirdly the user triggers the electronic equipment to position a cursor in the input box, and long presses the trigger electronic equipment to display a 'paste' option, and then the user selects the 'paste' option to trigger the electronic equipment to display the target information in the input box.
However, the process of inputting information in the related art is complicated and time-consuming, and the man-machine interaction performance is poor.
Disclosure of Invention
The embodiment of the application aims to provide an information input method, an information input device and electronic equipment, and the problem that the process of inputting information in the related technology is complex and time-consuming 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 an information input method, where the method includes: receiving a first input of a user under the condition that a first interface is displayed, wherein the first interface comprises a target text, and the first input is input of the target information in the target text by the user; and responding to the first input, and displaying N first candidate items in the first interface, wherein each first candidate item comprises at least one character in the target information, and N is a positive integer.
In a second aspect, an embodiment of the present application provides an information input device, including: the device comprises a receiving module and a display module; the receiving module is used for receiving a first input of a user under the condition that a first interface is displayed, wherein the first interface comprises a target text, and the first input is input of the user aiming at target information in the target text; the display module is used for responding to the first input received by the receiving module and displaying N first candidate items in a first interface, wherein each first candidate item comprises at least one character in the target information, and N is a positive integer.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the 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 method according to the first aspect.
In the embodiment of the application, a first input of a user can be received under the condition that a first interface is displayed, wherein the first interface comprises a target text, and the first input is input of the user for target information in the target text; and responding to the first input, and displaying N first candidate items in the first interface, wherein each first candidate item comprises at least one character in the target information, and N is a positive integer. Through the scheme, a user can trigger and display N first candidate items through first input on the target information in the target text of the current interface, each first candidate item comprises at least one character in the target information, namely the N first candidate items related to the target information are triggered and quickly generated for the user to select, and finally the purpose of quickly inputting information is achieved.
Drawings
Fig. 1 is a flowchart of an information input method provided in an embodiment of the present application;
FIG. 2 is a schematic interface diagram of an information input method provided in an embodiment of the present application;
FIG. 3 is a second schematic interface diagram of an information input method according to an embodiment of the present application;
FIG. 4 is a third schematic interface diagram of an information input method according to an embodiment of the present application;
FIG. 5 is a fourth schematic interface diagram of an information input method according to an embodiment of the present disclosure;
FIG. 6 is a fifth schematic interface diagram of an information input method according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an information input device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be 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.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
At present, the types of input modes are more and more abundant, and the mainstream input modes include pinyin 9-key input, pinyin 26-key input, english 26-key input, five-stroke input, handwriting input, voice input and the like, and the input modes can be divided into three categories: handwriting input, key input, and voice input.
Wherein, handwriting input type: each word needs to be written, the input is laborious and time-consuming, and the efficiency is low; speech input class: the input is convenient, but because the voice recognition technology of the electronic equipment is limited, the input accuracy rate is not high enough, so that repeated input is possibly needed, the input is relatively time-consuming, and the efficiency is low; key input class: at present, the input mode with the highest utilization rate is that the number of keystrokes for each character of the pinyin input mode is usually about 3 to 5, and the number of keystrokes for each character of the five-stroke input mode is usually about 2 to 3, so that the input is relatively slow, the time is relatively consumed, and the efficiency is low.
The information input method provided by the embodiment of the application can acquire the content required by the user through one-time input, and the number of keystrokes of each word can be about 1 to 2, so that the time is saved relatively, and the efficiency is high.
In the embodiment of the application, a user can trigger and display N first candidate items through first input of target information in a target text of a current interface, each first candidate item comprises at least one character in the target information, namely, N first candidate items associated with the target information are triggered and quickly generated for the user to select, and finally the purpose of quickly inputting information is achieved. Illustratively, for input interfaces with more characters, such as a document interface, a blog interface and the like, information needing to be input can be quickly input; aiming at input interfaces with large relevance between text information and information to be input, such as a chat interface, a comment building interface and the like, the purpose of quick response can be achieved; aiming at the condition that more input information exists and the information needing to be input later can be copied to the information input earlier, the input speed can be further improved.
In the description of the embodiments of the present application, unless otherwise specified, "a plurality" means two or more, for example, a plurality of processing units means two or more processing units; plural elements means two or more elements, and the like.
The information input method, the information input device, and the electronic device provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, an information input method is provided in an embodiment of the present application, and an example of the information input method provided in the embodiment of the present application is described below with an execution subject as an electronic device. The method may include steps 201 through 202 described below.
Step 201, the electronic device receives a first input of a user under the condition that a first interface is displayed.
The first interface comprises target text, and the first input is input of a user on target information in the target text.
In this embodiment, the first interface may be an input interface, for example, a document input interface, a memo interface, a blog interface, a chat interface, a comment building interface, and the like.
Optionally, the first input may be a sliding input of the user on the target information, a clicking input of the user on the target information within a preset time period, or other feasibility inputs, which may be specifically determined according to actual use requirements, and the embodiment of the present application is not limited.
For example, the slide input may be a slide input in any direction, such as an upward slide input, a downward slide input, a leftward slide input, a rightward slide input, or the like; the click input can be a single click input, a double finger input, a heavy pressure input and the like.
Step 202, the electronic device responds to the first input and displays the N first candidate items in the first interface.
Each first candidate item comprises at least one character in the target information, and N is a positive integer.
In this embodiment of the present application, the target information may be one character, may also be multiple characters (at least two characters), may be one word, may also be a segment of a word, and may specifically be determined according to actual use requirements, which is not limited in this embodiment of the present application.
In the embodiment of the application, the electronic device can determine the input starting position and the input ending position according to the input track of the finger in the screen, and then obtains the text information between the starting position and the ending position, namely the target information.
Alternatively, after receiving the first input of the user, the target information may be determined based on the first input, and specifically, the following steps 101 to 103 may be performed.
Step 101, the electronic device obtains a target parameter.
Wherein the target parameters include: the electronic device comprises a first coordinate, a second coordinate, a first interval, a second interval and a character size, wherein the first coordinate is a coordinate of the target information on a screen of the electronic device, the second coordinate is a coordinate of the target text on the screen, the first interval is a line interval of the target text, and the second interval is a character interval in the target text.
And 102, the electronic equipment determines the position information of the target information in the target text based on the target parameter.
And 103, acquiring the target information from the target text by the electronic equipment based on the position information.
Specifically, the electronic apparatus can obtain the text information at an arbitrary touch position (start position and end position) by the following method. Obtaining touch position coordinates point (x, y) (the coordinates of the start position and the coordinates of the end position of the target information can be determined according to the first coordinates), determining an interface element at the touch position (the interface element, the interface element and the text where the target information in the embodiment of the present application is located may be obtained by traversing a view tree, as shown in (a) in fig. 2, the text in a dashed box is the interface element where the touch position is located), and then obtaining related information of the interface element (including the boundary (boundaries [ x1, y1] [ x2, y2]) (i.e., the boundary of the target text, the boundary of the second coordinates), line spacing (spacing) (first spacing), character size (size), character spacing (gap) (second spacing), text content (content), and so on). And calculating the position of the character displayed on the touch position in the interface element by combining the information, wherein the formula is as follows.
The width of the interface element is x2-x 1;
interface element high-height y2-y 1;
the number of words in each line count ═ width + gap)/(size + gap);
the row of the text corresponding to the touch position in the interface element is (y-y 1+ spacing)/(size + spacing);
column of the text corresponding to the touch position in the interface element is (x-x 1+ gap)/(size + gap);
the position index of the character corresponding to the touch position in the interface element is count row + column.
According to the above calculation formula, the position (startIndex) of the character corresponding to the start position of the slide input in the interface element (i.e. the position of the start position of the target information in the target text is calculated according to the coordinates of the start position of the target information and the above formula), and the position (endIndex) of the character corresponding to the end position of the slide input in the interface element (i.e. the position of the end position of the target information in the target text is calculated according to the coordinates of the end position of the target information and the above formula), are calculated, and then the character content between the startIndex and the endIndex is calculated, i.e. the target information.
In this embodiment of the application, the electronic device may further obtain target information corresponding to the first input according to other related technologies, which is not limited in this embodiment of the application.
It can be understood that, in the embodiment of the present application, each first candidate includes one character or multiple characters in the target information, which is determined specifically according to an actual use situation, and the embodiment of the present application is not limited.
It can be understood that, in the embodiment of the present application, the characters in each first candidate may be all characters in the target information (i.e., each first candidate is at least one character in the target information), or may be part of characters in the target information (the remaining part is not a character in the target information).
Illustratively, the N first candidate items may include all single characters, all consecutive two characters, all consecutive three characters, all consecutive P characters (P is a positive integer), and.
Optionally, in this embodiment of the application, N first candidate items may be displayed in a suspended manner on the first interface, or may be displayed in a pop-up manner on the first interface, or may be displayed in other manners, which may be specifically determined according to actual use requirements, and this embodiment of the application is not limited.
Illustratively, as shown in (a) of fig. 2, the user selects the target information "follow only" through the sliding input, the electronic device acquires the target information "follow only" corresponding to the sliding input, and then as shown in (b) of fig. 2, displays "follow, six first candidates.
Optionally, in the case that the target information is 1 character, the electronic device may determine the 1 character as a first candidate, and display the 1 character (e.g., a floating display or a pop-up display) for selection by the user; the electronic device may also default that the 1 character is the character desired by the user and is displayed directly in the input area in the first interface without user selection.
Optionally, when the target information is 1 character, and the electronic device displays the target information in the input region in the first interface, the electronic device may further display M second candidates associated with the target information, where each second candidate may be obtained by matching the electronic device with a user in a local thesaurus, and a usage frequency of a word formed by each second candidate and the target information is greater than or equal to a preset threshold (or each second candidate may be one of M words having the largest usage frequency of the word formed by the target information), which is not limited in this embodiment of the application.
Illustratively, in the embodiment of the present application, in the case that the target information is 1 character, the above step 202 may be specifically implemented by the following step 202a, and after the above step 202a, the information input method provided in the embodiment of the present application may further include the following step 203.
Step 202a, the electronic device displays the target information in an input area of the first interface.
Step 203, the electronic device displays the M second candidates in the first interface.
Wherein each second candidate is associated with the target information, and M is a positive integer.
Illustratively, as shown in fig. 3, the target information is "thing", and the M second candidates are "situation, too much, real, accident, work, industry.
Exemplarily, in the embodiment of the present application, in a case that the target information is at least two characters, each first candidate is at least one character in the target information; the above step 202 may specifically be realized by the following step 202 b.
Step 202b, the electronic device displays the N first candidate items in the first interface based on the first policy or the second policy.
Wherein the first policy is: displaying first candidate items with different character numbers according to the character numbers from less to more; the first candidate items with the same number of characters are displayed from front to back according to the arrangement sequence of the first character in the first candidate items in the target information; the second strategy is: and displaying from high to low according to the use frequency of each first candidate.
Illustratively, as shown in fig. 2 (b), the electronic device displays the N first candidates based on a first policy, i.e., first displays all single characters ("follow, follow") in the target information ("follow"), then displays all consecutive double characters ("follow, follow") in the target information, and then displays all consecutive three characters ("follow only") in the target information.
In the embodiment of the application, a user can display the M first candidate items in the current interface or directly display the target information in the input box only by sliding input aiming at the target information. Compared with the related information input process in the background technology, the method can simplify the operation steps, save the operation time and improve the operation efficiency.
In the embodiment of the application, a first input of a user can be received under the condition that a first interface is displayed, wherein the first interface comprises a target text, and the first input is an input of the user on target information in the target text; and responding to the first input, and displaying N first candidate items in the first interface, wherein each first candidate item comprises at least one character in the target information, and N is a positive integer. Through the scheme, a user can trigger and display N first candidate items through first input on the target information in the target text of the current interface, each first candidate item comprises at least one character in the target information, namely the N first candidate items associated with the target information are triggered and quickly generated for the user to select, and finally the purpose of quickly inputting information is achieved.
Optionally, in this embodiment of the application, after the step 202, the user may select a target candidate item required by the user from the N first candidate items by inputting.
Illustratively, after the step 202, the information input method provided by the embodiment of the present application may further include the following steps 204 to 205.
In step 204, the electronic device receives a second input of the user to a target candidate item in the N first candidate items.
Optionally, the second input may be a single input, or may be multiple inputs within a preset time duration, which is not limited in the embodiment of the present application.
Optionally, the target candidate may be at least one of the N first candidate, which is not limited in this embodiment of the application.
Step 205, in response to the second input, the electronic device displays the target candidate item in the input area of the first interface, and displays K third candidate items in the first interface.
Wherein each third candidate is associated with the target candidate, and K is a positive integer.
Optionally, each third candidate may be obtained by the electronic device for user matching in the local lexicon, and the frequency of use of the word composed of each second candidate and the target candidate is greater than or equal to a preset threshold (or each second candidate may be one of K words with the largest frequency of use of the word composed of the target candidate), which is not limited in this embodiment of the application.
It should be noted that, in the embodiment of the present application, while the electronic device displays the target candidate item in the input area of the first interface, the electronic device may cancel displaying the N first candidate items, and may also keep displaying the N first candidate items, which is not limited in the embodiment of the present application.
In the embodiment of the application, the user can input the target candidate item quickly through the second input, and the information input efficiency can be improved.
Optionally, in this embodiment of the application, the K third candidates may include a candidate of the N first candidates.
Optionally, in this embodiment of the application, the K third candidates do not include a candidate of the N first candidates. The user does not select the candidate items except the target candidate item from the N first candidate items, and the user can be judged not to need the candidate items, so that the K third candidate items do not comprise the N first candidate items, the operation time of the user can be saved, the information input efficiency is improved, and the human-computer interaction performance can be improved.
Exemplarily, as shown in fig. 4, the target candidate is "only", the electronic device cancels the display of the N first candidates, displays "only" in the input box, and displays K third candidates "yes, want, meet, want, no, need".
Optionally, before the step 201, the information input method provided in the embodiment of the present application may further include the following steps 206 to 207; the above step 201 can be specifically realized by the step 201a described below.
Step 206, the electronic device receives a third input from the user.
And step 207, the electronic equipment responds to the third input and enters a character absorption mode.
Step 201a, the electronic device receives a first input in the character-sucking mode.
Optionally, in this embodiment of the application, the third input may be a click input of the user on the first interface, the third input may be a slide input of the user on the first interface, and the third input may also be another feasibility input, which is not limited in this embodiment of the application.
For example, reference may be made to the description of the click input and the slide input in the description of the first input in step 201, and details thereof are not repeated herein.
It can be understood that, in the embodiment of the present application, the word-sucking mode refers to an information input mode provided in the embodiment of the present application, that is, an information input mode for multiplexing existing text content in an input interface through the first input and the second input.
Optionally, in the embodiment of the present application, in the word sucking mode, the electronic device prohibits the response to an input event, such as a horizontal sliding event, a click event, and the like, which is implemented by the user for the current application and is the same as the operation of the first input, so that a misoperation can be avoided.
Illustratively, as shown in fig. 5, when the user clicks the input box, the electronic device pops up the input method keyboard, and the user presses the pull-down button with his finger, the electronic device may be triggered to quickly enter the word-sucking mode, and in the word-sucking mode, the electronic device may be prohibited from responding to the horizontal sliding event and the click event that the user implements on the current application.
Optionally, after step 207, the information input method provided in the embodiment of the present application may further include steps 208 to 209 described below.
In step 208, the electronic device receives a fourth input from the user.
In step 209, the electronic device exits the inhale mode in response to the fourth input.
Optionally, the fourth input may be a click input of the user on the first interface, the fourth input may also be a slide input of the user on the first interface, and the fourth input may also be another feasibility input, which is not limited in the embodiment of the present application.
For example, reference may be made to the description of the click input and the slide input in the description of the first input in step 201, and details thereof are not repeated herein.
It can be understood that after the electronic device exits the text absorption mode, the existing text content in the input interface can not be reused by responding to the first input and the second input.
For example, if the user cannot find the reusable text, the electronic device may be triggered to exit the text-absorption mode, and revert to the normal input mode to continue inputting the content. As shown in fig. 6, pressing the up-slide button with a finger can trigger the electronic device to exit the word-sucking mode quickly. And simultaneously, the electronic equipment recovers the response function of the horizontal sliding event and the click event applied currently.
It should be noted that, in the information input method provided in the embodiment of the present application, the execution main body may be an information input device, or a functional module and/or a functional entity in the information input device for executing the information input method. In the embodiment of the present application, an information input method executed by an information input device is taken as an example, and a device of the information input method provided in the embodiment of the present application is described.
Fig. 7 shows a schematic diagram of a possible structure of the information input device referred to in the embodiments of the present application. As shown in fig. 7, the information input apparatus 300 may include: a receiving module 301 and a display module 302; the receiving module 301 is configured to receive a first input of a user when a first interface is displayed, where the first interface includes a target text, and the first input is an input of the user for target information in the target text; the display module 302 is configured to display, in response to the first input received by the receiving module 301, N first candidate items in a first interface, where each first candidate item includes at least one character in the target information, and N is a positive integer.
Optionally, the information input device 300 further includes: an obtaining module, configured to obtain a target parameter after receiving a first input of a user, where the target parameter includes: the electronic equipment comprises a first coordinate, a second coordinate, a first interval, a second interval and a character size, wherein the first coordinate is a coordinate of the target information on a screen of the electronic equipment, the second coordinate is a coordinate of the target text on the screen, the first interval is a line interval of the target text, and the second interval is a character interval in the target text; determining the position information of the target information in the target text based on the target parameter; and acquiring the target information from the target text based on the position information.
Optionally, in a case that the target information is 1 character, the display module 302 is specifically configured to display the target information in an input area of the first interface; the display module 302 is further configured to display M second candidate items in the first interface after displaying N first candidate items in the first interface, where each second candidate item is associated with the target information, and M is a positive integer.
Optionally, in a case that the target information is at least two characters, each first candidate is at least one character in the target information; the display module 302 is specifically configured to display the N first candidate items in a first interface based on a first policy or a second policy; wherein the first policy is: displaying first candidate items with different character numbers according to the character numbers from less to more; the first candidate items with the same number of characters are displayed from front to back according to the arrangement sequence of the first character in the first candidate items in the target information; the second strategy is: and displaying from high to low according to the use frequency of each first candidate.
Optionally, the receiving module 301 is further configured to receive, after the N first candidate items are displayed in the first interface, a second input of a user to a target candidate item in the N first candidate items; the display module 302 is further configured to, in response to the second input received by the receiving module 301, display the target candidate item in the input area of the first interface, and display K third candidate items in the first interface; each third candidate item is associated with the target candidate item, and the K third candidate items do not include the candidate item of the N first candidate items, where K is a positive integer.
The embodiment of the application provides an information input device, which can receive a first input of a user under the condition that a first interface is displayed, wherein the first interface comprises a target text, and the first input is input of the user aiming at target information in the target text; and responding to the first input, and displaying N first candidate items in the first interface, wherein each first candidate item comprises at least one character in the target information, and N is a positive integer. Through the scheme, a user can trigger and display N first candidate items through first input on the target information in the target text of the current interface, each first candidate item comprises at least one character in the target information, namely the N first candidate items associated with the target information are triggered and quickly generated for the user to select, and finally the purpose of quickly inputting information is achieved.
The information input device in the embodiment of the present application may be a device, and may also be an electronic device or a component, an integrated circuit, or a chip in an electronic device. The electronic 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 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 information input device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The information input device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 6, and is not described here again to avoid repetition.
Optionally, as shown in fig. 8, an electronic device 400 is further provided in this embodiment of the present application, and includes a processor 401, a memory 402, and a program or an instruction stored in the memory 402 and executable on the processor 401, where the program or the instruction is executed by the processor 401 to implement each process of the above-mentioned information input 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. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application. The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and the like.
Those skilled in the art will appreciate that the electronic device 500 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 9 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 user input unit 507 is configured to receive a first input of a user when a first interface is displayed, where the first interface includes a target text, and the first input is an input of the user for target information in the target text; a processor 510, configured to respond to the first input, the display unit 506, configured to display N first candidate items in the first interface, where each first candidate item includes at least one character in the target information, and N is a positive integer.
Optionally, the processor 510 is configured to, after receiving the first input from the user, obtain a target parameter, where the target parameter includes: the electronic equipment comprises a first coordinate, a second coordinate, a first interval, a second interval and a character size, wherein the first coordinate is a coordinate of the target information on a screen of the electronic equipment, the second coordinate is a coordinate of the target text on the screen, the first interval is a line interval of the target text, and the second interval is a character interval in the target text; determining the position information of the target information in the target text based on the target parameter; and acquiring the target information from the target text based on the position information.
Optionally, in a case that the target information is 1 character, the display unit 506 is specifically configured to display the target information in an input area of the first interface; the display unit 506 is further configured to display M second candidates in the first interface after displaying the N first candidates in the first interface, where each second candidate is associated with the target information, and M is a positive integer.
Optionally, in a case that the target information is at least two characters, each first candidate is at least one character in the target information; a display unit 506, specifically configured to display the N first candidate items in a first interface based on a first policy or a second policy; wherein the first policy is: displaying first candidate items with different character numbers according to the character numbers from less to more; the first candidate items with the same number of characters are displayed from front to back according to the arrangement sequence of the first character in the first candidate items in the target information; the second strategy is: and displaying from high to low according to the use frequency of each first candidate.
Optionally, the user input unit 507 is further configured to receive, after the N first candidates are displayed in the first interface, a second input of a user to a target candidate in the N first candidates; the display unit 506 is further used for responding to the second input, displaying the target candidate item in the input area of the first interface, and displaying K third candidate items in the first interface; each third candidate item is associated with the target candidate item, and the K third candidate items do not include the candidate item of the N first candidate items, where K is a positive integer.
The electronic device provided by the embodiment of the application can receive a first input of a user under the condition that a first interface is displayed, wherein the first interface comprises a target text, and the first input is input of the user on target information in the target text; and responding to the first input, acquiring the target information, and displaying N first candidate items in a first interface, wherein each first candidate item comprises at least one character in the target information, and N is a positive integer. Through the scheme, a user can trigger and display N first candidate items through first input of target information in a target text of a current interface, each first candidate item comprises at least one character in the target information, namely, the N first candidate items related to the target information are triggered and quickly generated to be selected by the user, and finally the purpose of quickly inputting information is achieved.
It should be understood that, in the embodiment of the present application, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system. The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media. The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture 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 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and other input devices 5072. A touch panel 5071, also referred to as a touch screen. The touch panel 5071 may include two parts of a touch detection device and a touch controller. Other input devices 5072 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 further detail herein. The memory 509 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. Processor 510 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
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 information input 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 information input method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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 (12)

1. An information input method, characterized in that the method comprises:
receiving a first input of a user under the condition that a first interface is displayed, wherein the first interface comprises a target text, and the first input is input of the target information in the target text by the user;
and responding to the first input, displaying N first candidate items in the first interface, wherein each first candidate item comprises at least one character in the target information, and N is a positive integer.
2. The method of claim 1, wherein after receiving the first input from the user, further comprising:
obtaining target parameters, wherein the target parameters comprise: the method comprises the steps of obtaining target information, a first coordinate, a second coordinate, a first interval, a second interval and a character size, wherein the first coordinate is a coordinate of the target information on a screen of the electronic equipment, the second coordinate is a coordinate of a target text on the screen, the first interval is a line interval of the target text, and the second interval is a character interval in the target text;
determining the position information of the target information in the target text based on the target parameters;
determining the target information from the target text based on the location information.
3. The method according to claim 1 or 2, wherein in a case that the target information is 1 character, the displaying N first candidates in the first interface includes:
displaying the target information in an input area of the first interface;
after the displaying N first candidate items in the first interface, the method further includes:
and displaying M second candidate items in the first interface, wherein each second candidate item is associated with the target information, and M is a positive integer.
4. The method according to claim 1 or 2, wherein in the case that the target information is at least two characters, each of the first candidates is at least one character in the target information;
the displaying N first candidate items in the first interface includes:
displaying the N first candidate items in the first interface based on a first strategy or a second strategy;
wherein the first policy is: displaying first candidate items with different character numbers according to the character numbers from less to more; the first candidate items with the same number of characters are displayed from front to back according to the arrangement sequence of the first character in the first candidate items in the target information;
the second policy is: and displaying the first candidate items from high to low according to the use frequency of each first candidate item.
5. The method of claim 1 or 2, wherein after displaying the N first candidates in the first interface, the method further comprises:
receiving a second input of a user to a target candidate item in the N first candidate items;
responding to the second input, displaying the target candidate item in an input area of the first interface, and displaying K third candidate items in the first interface;
each of the third candidate items is associated with the target candidate item, and the K third candidate items do not include the candidate item of the N first candidate items, where K is a positive integer.
6. An information input apparatus, characterized in that the apparatus comprises: the device comprises a receiving module and a display module;
the receiving module is used for receiving a first input of a user under the condition that a first interface is displayed, wherein the first interface comprises a target text, and the first input is input of the user aiming at target information in the target text;
the display module is configured to display N first candidate items in the first interface in response to the first input received by the receiving module, where each first candidate item includes at least one character in the target information, and N is a positive integer.
7. The apparatus of claim 6, the apparatus further comprising: an obtaining module, configured to obtain a target parameter after receiving a first input of a user, where the target parameter includes: the method comprises the steps of obtaining target information, a first coordinate, a second coordinate, a first interval, a second interval and a character size, wherein the first coordinate is a coordinate of the target information on a screen of the electronic equipment, the second coordinate is a coordinate of a target text on the screen, the first interval is a line interval of the target text, and the second interval is a character interval in the target text; determining the position information of the target information in the target text based on the target parameters; determining the target information from the target text based on the location information.
8. The device according to claim 6 or 7, wherein, in the case that the target information is 1 character, the display module is specifically configured to display the target information in the input area of the first interface;
the display module is further configured to display M second candidate items in the first interface after displaying N first candidate items in the first interface, where each second candidate item is associated with the target information, and M is a positive integer.
9. The apparatus according to claim 6 or 7, wherein in the case that the target information is at least two characters, each of the first candidates is at least one character in the target information;
the display module is specifically configured to display the N first candidate items in the first interface based on a first policy or a second policy;
wherein the first policy is: displaying first candidate items with different character numbers according to the character numbers from less to more; the first candidate items with the same number of characters are displayed from front to back according to the arrangement sequence of the first character in the first candidate items in the target information;
the second policy is: and displaying the first candidate items from high to low according to the use frequency of each first candidate item.
10. The apparatus according to claim 6 or 7,
the receiving module is further configured to receive a second input of a user to a target candidate item of the N first candidate items after the N first candidate items are displayed in the first interface;
the display module is further configured to display the target candidate item in an input area of the first interface and display K third candidate items in the first interface in response to the second input received by the receiving module;
each of the third candidate items is associated with the target candidate item, and the K third candidate items do not include the candidate item of the N first candidate items, where K is a positive integer.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the information input method of any one of claims 1 to 5.
12. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions which, when executed by a processor, implement the steps of the information input method according to any one of claims 1 to 5.
CN202011553790.8A 2020-12-24 2020-12-24 Information input method and device and electronic equipment Pending CN112698735A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011553790.8A CN112698735A (en) 2020-12-24 2020-12-24 Information input method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011553790.8A CN112698735A (en) 2020-12-24 2020-12-24 Information input method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112698735A true CN112698735A (en) 2021-04-23

Family

ID=75510020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011553790.8A Pending CN112698735A (en) 2020-12-24 2020-12-24 Information input method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112698735A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113343984A (en) * 2021-06-28 2021-09-03 北京奇艺世纪科技有限公司 Bullet screen prompting method and device, electronic equipment and storage medium
CN113805708A (en) * 2021-09-14 2021-12-17 维沃移动通信有限公司 Information display method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609208A (en) * 2012-02-13 2012-07-25 广州市动景计算机科技有限公司 Method and system for word capture on screen of touch screen equipment, and touch screen equipment
CN105094361A (en) * 2015-06-26 2015-11-25 小米科技有限责任公司 Method, device and terminal for displaying associated words

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609208A (en) * 2012-02-13 2012-07-25 广州市动景计算机科技有限公司 Method and system for word capture on screen of touch screen equipment, and touch screen equipment
CN105094361A (en) * 2015-06-26 2015-11-25 小米科技有限责任公司 Method, device and terminal for displaying associated words

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113343984A (en) * 2021-06-28 2021-09-03 北京奇艺世纪科技有限公司 Bullet screen prompting method and device, electronic equipment and storage medium
CN113805708A (en) * 2021-09-14 2021-12-17 维沃移动通信有限公司 Information display method and device, electronic equipment and storage medium
WO2023040724A1 (en) * 2021-09-14 2023-03-23 维沃移动通信有限公司 Information display method and apparatus, electronic device, and storage medium
CN113805708B (en) * 2021-09-14 2024-01-23 维沃移动通信有限公司 Information display method, information display device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
EP3002664B1 (en) Text processing method and touchscreen device
CN111142747B (en) Group management method and electronic equipment
WO2023005920A1 (en) Screen splitting method and apparatus, and electronic device
CN109933252B (en) Icon moving method and terminal equipment
CN110928461A (en) Icon moving method and electronic equipment
CN113141295B (en) Message display method and device and electronic equipment
CN112698735A (en) Information input method and device and electronic equipment
CN110647277A (en) Control method and terminal equipment
CN112162803A (en) Message display method and device and electronic equipment
CN113849092A (en) Content sharing method and device and electronic equipment
CN113268182A (en) Application icon management method and electronic equipment
CN113282213A (en) Interface display method and device
CN112269501A (en) Icon moving method and device and electronic equipment
CN111049976B (en) Interface display method, electronic device and computer readable storage medium
WO2023125155A1 (en) Input method and input apparatus
CN112162689B (en) Input method and device and electronic equipment
CN111638828A (en) Interface display method and device
CN114416264A (en) Message display method and device
CN104407763A (en) Content input method and system
CN113342241A (en) Target character selection method and device, electronic equipment and storage medium
CN113311982A (en) Information selection method and device
CN113778279A (en) Screenshot method and device and electronic equipment
CN113807831A (en) Payment method and device
CN113885981A (en) Desktop editing method and device and electronic equipment
CN113436297A (en) Picture processing method and electronic equipment

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