CN112269475A - Character display method and device and electronic equipment - Google Patents

Character display method and device and electronic equipment Download PDF

Info

Publication number
CN112269475A
CN112269475A CN202011149843.XA CN202011149843A CN112269475A CN 112269475 A CN112269475 A CN 112269475A CN 202011149843 A CN202011149843 A CN 202011149843A CN 112269475 A CN112269475 A CN 112269475A
Authority
CN
China
Prior art keywords
candidate
input
word
target
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011149843.XA
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 CN202011149843.XA priority Critical patent/CN112269475A/en
Publication of CN112269475A publication Critical patent/CN112269475A/en
Priority to PCT/CN2021/125786 priority patent/WO2022083750A1/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

Abstract

The application discloses a character display method and device and electronic equipment, and belongs to the technical field of communication. The problem of low character input efficiency in a scene that a user inputs characters with low use frequency can be solved. The method comprises the following steps: receiving a first input of a first candidate word from a user under the condition that the first candidate word is displayed; responding to the first input, and acquiring N first candidate participles of the first candidate words; receiving second input of a user on a target first candidate participle of the N first candidate participles; in response to the second input, displaying the target first candidate participle in the text input box. The embodiment of the application is applied to a character input scene.

Description

Character display method and device and electronic equipment
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a character display method and device and electronic equipment.
Background
Currently, when a user inputs a character using a keyboard (e.g., a physical keyboard or a virtual keyboard), since each character (e.g., pinyin) input by the keyboard generally corresponds to a plurality of candidate characters, when the user inputs a certain character using the keyboard, the electronic device sequentially displays the plurality of candidate characters corresponding to the character according to the frequency of use of the plurality of candidate characters. In addition, when the user needs to input some rare words, if the rare word does not exist in the word bank, the user needs to input each character in the rare word in turn, so that the rare word can be input. For example, when the user wants to output the name of "meng competition wall", a full spelling of "meng competition wall" is entered, and if the word stock does not find the name of the person based on the full spelling, the user needs to search the three characters of "meng", "competition" and "wall" from the candidate words corresponding to each pinyin in sequence according to the pinyins of the three characters of "meng", "competition" and "wall", so that the name of the person of "meng competition wall" can be output.
However, when the user wants to input a character, if the character is not displayed in the top page of the candidate word, in order to improve the character input efficiency, the user can select a mode of inputting a phrase containing the character, input the phrase, delete the character which is not needed in the phrase, and output the character. For example, since the word "bang" is not displayed in the first page of the candidate word in pinyin "meng", the user can select to input the pinyin of "bang" and select the word "bang" in the first page of the candidate word in pinyin, and then delete the word "son" of the word "bang", so as to obtain the word "bang".
Therefore, the operation difficulty of character input is increased, and the condition of mistakenly deleting the input characters can also exist, so that the character input efficiency is influenced.
Disclosure of Invention
The embodiment of the application aims to provide a character display method, a character display device and electronic equipment, which can solve the problem of low character input efficiency in a character input process.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a text display method, where the method includes: receiving a first input of a first candidate word from a user under the condition that the first candidate word is displayed; responding to the first input, performing word segmentation on the first candidate words to obtain N first candidate word segmentations, wherein N is a positive integer greater than 1; receiving second input of a user on a target first candidate participle of the N first candidate participles; in response to the second input, displaying the target first candidate participle in the text input box.
In a second aspect, an embodiment of the present application provides a text display device, including: display module, processing module and receiving module: the receiving module is configured to receive a first input of the first candidate word by the user when the first candidate word is displayed; the processing module is configured to perform word segmentation on the first candidate word in response to the first input received by the receiving module to obtain N first candidate word segmentations, where N is a positive integer greater than 1; the receiving module is further configured to receive a second input of a user to a target first candidate participle of the N first candidate participles obtained by the processing module; the display module is configured to display the target first candidate word segmentation in the text input box in response to the second input received by the receiving module.
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, where the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method as described above 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 according to the first aspect.
In the embodiment of the application, under the condition that the first candidate word is displayed, after the electronic device receives a first input of a user on the first candidate word, word segmentation operation can be performed on the first candidate word, so that N first candidate word segmentations are obtained, and thus, after the electronic device receives a second input of the user on a target first candidate word segmentation in the N first candidate word segmentations, the target first candidate word segmentation can be displayed on a screen. Therefore, the candidate words are segmented, so that the user can select the part needing to be displayed on the screen from the candidate words, the part needing to be input in the candidate words can be displayed on the screen without moving a cursor to delete the part needing to be input by the user, the whole input process not only reduces the character operation flow, saves the character input time, but also improves the character input efficiency.
Drawings
Fig. 1 is a flowchart of a text display method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a text display method according to an embodiment of the present application;
fig. 3 is a second schematic diagram of a text display method according to an embodiment of the present application;
fig. 4 is a third schematic view illustrating a text display method according to an embodiment of the present application;
fig. 5 is a fourth schematic view illustrating a text display method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a text display device according to an embodiment of the present application;
fig. 7 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 8 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes a text display method provided by the embodiments of the present application in detail through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
The character display method provided by the embodiment of the application can be applied to various character input scenes. Take the example of a user chatting using a chat APP.
In the prior art, when a user wants to input a word "race" in a chat interface, the user groups words for the "race". Then, inputting the pinyin jingsai of the competition in the text box, selecting the phrase of the competition in the initial page of the candidate word of the pinyin, displaying the screen of the phrase of the competition, and deleting the single character of the competition of the phrase of the competition to obtain the characters of the competition. In the embodiment of the application, when a user wants to input a word "race" in a chat interface, the user groups words for the "race", then inputs pinyin "jingsai" of the "race" in a text box, selects the word group of the "race" in the first page of the pinyin candidate word, then performs long-time pressing operation on the word group of the "race", so that the word group of the "race" is divided into two single words of the "race" and the "race", and finally the user clicks and selects the word group of the "race" to be displayed on a screen. Therefore, the candidate words are segmented, so that the user can select the part needing to be displayed on the screen from the candidate words, the part needing to be input in the candidate words can be displayed on the screen without moving a cursor to delete the part needing to be input by the user, the whole input process not only reduces the character operation flow, saves the character input time, but also improves the character input efficiency.
In other words, the text display method can be executed by software or hardware installed in the electronic device. As shown in fig. 1, the text input method provided in the embodiment of the present application may include steps 201 to 204 described below.
Step 201: in the case that the first candidate word is displayed, the electronic device receives a first input of the first candidate word by a user.
In this embodiment of the present application, the first candidate word is a candidate word that is displayed after a user inputs a character by using an input method and matches the input character. Further, the first candidate word in this embodiment of the application is a first-level candidate word corresponding to the input character (i.e., a candidate word displayed on the top page, which is a candidate word that does not need to be further expanded by the user).
In an embodiment of the present application, the first input is used to trigger the electronic device to perform a word segmentation operation on the first candidate word. For example, the first input may be: the touch input of the user to the first candidate word or the specific gesture input by the user may be specifically set according to actual requirements. In one example, the touch input may be a long press input of the first candidate word by the user.
Alternatively, in the embodiment of the present application, when the user wants to input a character with a low frequency of use, the character is not usually displayed in the candidate word top page. Therefore, in order to improve the character input efficiency, a user usually performs word segmentation on characters that the user wants to input, and if the characters that the user wants to input and other characters can form a word group, the user inputs the pinyin of the word group, so as to display a candidate word (i.e., the first candidate word) corresponding to the pinyin of the word group, and further, the user can perform first input on the word group including the characters that the user wants to input, thereby triggering the electronic device to perform word segmentation on the word group.
For example, assuming that the user wants to output the name of "bang contest wall", since "bang contest wall" is not a commonly used phrase, the user can group words for three words, i.e., "bang", "contest" and "wall", respectively. As shown in fig. 2, taking "meng" as an example, the user selects and inputs pinyin of "meng" in the text input box for word grouping of "meng", finds the phrase "meng" (i.e., the first candidate word) in the initial page of the candidate word corresponding to the pinyin, and then presses the phrase "meng" (i.e., the first input) to trigger the electronic device to perform word grouping operation on the phrase "meng" (i.e., split into "meng" and "sub").
It should be noted that if the character that the user wants to input cannot be a word, the user can input a single character according to the normal character display method, and then perform multi-level screening to find out the single character.
Step 202: in response to the first input, N first candidate participles of the first candidate word are obtained.
Wherein N is a positive integer greater than 1.
In an embodiment of the present application, the N first candidate participles may include at least two candidate participles. In one example, the N first candidate segmentations may include at least two candidate words.
Optionally, in this embodiment of the application, after receiving the first input, the electronic device may perform word segmentation on the first candidate word to obtain N first candidate word segmentations.
Further optionally, when the electronic device performs word segmentation on the first candidate word, at least two word segmentation methods can be used.
Mode 1: the electronic device may split the first candidate word according to the number of the single words in the first candidate word, for example, split the first candidate word into a plurality of single words. For example, the electronic device may split the first candidate word in a preset splitting unit (e.g., one splitting unit includes a preset number of bytes) according to a byte length of the first candidate word. In one example, the electronic device may split the first candidate word into a plurality of candidate single words. Specifically, each Chinese character corresponds to two bytes, so that the electronic device can split the first candidate word by using the two bytes as a splitting unit, and then split a plurality of single words.
Example 1, when the first candidate word is "mengzi", the electronic device may split "mengzi" into "mengzi" and "son" in a split unit of two bytes.
Mode 2: the electronic device may use a language model to segment the first candidate word into a plurality of different segmented words. The electronic device may use the language model for recognition when recognizing the input text in the input box. The language model obtained by the adaptive learning of the language model may include: lexicons, grammar rules, spelling rules, etc. Specifically, the language model performs word segmentation on the first candidate word, and then the language model performs semantic inspection on each word obtained after word segmentation to determine that the word segmentation exists in the first candidate word.
Example 2, the language model may determine word semantics in the first candidate word in conjunction with a context of the first candidate word. For example, if the input text is a "cut word", the language model performs semantic analysis on the "cut word" to obtain several segments of "cut", "word", "cut", "open", "word" and "language".
Optionally, in this embodiment of the application, the electronic device may display the N first candidate participles respectively, or may display the N first candidate participles as a whole (that is, still display the first candidate participles).
Step 203: and receiving second input of the target first candidate participle in the N first candidate participles from the user.
In an embodiment of the application, the target first candidate participle is at least one of the N first candidate participles.
In an embodiment of the application, the second input is configured to select a target first candidate participle from the N first candidate participles. It should be noted that the second input may refer to the description of the first input, and is not described herein. For example, the second input may be a click input of a user clicking a target first candidate participle, or may be a sliding input of the user on N first candidate participles.
Step 204: and responding to the second input, and displaying the target first candidate participle in the character input box.
In the embodiment of the application, after the target first candidate participle is displayed, the electronic device may perform on-screen display on the target first candidate participle. It is understood that the electronic device displays the target first candidate participle on a screen, namely, displays the target candidate participle in a text display box of the input method.
In the text display method provided by the embodiment of the application, under the condition that the first candidate word is displayed, after the electronic device receives the first input of the first candidate word by the user, word segmentation operation can be performed on the first candidate word, so that N first candidate words are obtained, and therefore, after the electronic device receives the second input of the target first candidate word in the N first candidate words by the user, the target first candidate word can be displayed on a screen. Therefore, the candidate words are segmented, so that the user can select the part needing to be displayed on the screen from the candidate words, the part needing to be input in the candidate words can be displayed on the screen without moving a cursor to delete the part needing to be input by the user, the whole input process not only reduces the character operation flow, saves the character input time, but also improves the character input efficiency.
Optionally, in this embodiment of the application, before the step 203, the text display method provided in this embodiment of the application may further include the following step 202a 1:
step 202a 1: and respectively displaying the N first candidate participles.
Wherein the second input is a selection input for a user to select the target first candidate segmentation.
For example, as shown in fig. 3 (a), when the user wants to input the word "word cut", the user may select to group words for the word "word cut", for example, "word cut", and then input the pinyin "qiekaiiyu" for the word cut "in the text input box, select the word cut" in the candidate word corresponding to the pinyin, and perform a long-press operation on the word cut "(i.e., the first input). Next, as shown in fig. 3 (b), the electronic apparatus displays "cut", "open", "word" and "word" for the "cut word" respectively. Finally, as shown in fig. 3 (b) and (c), the user clicks the "cut" individual character and displays the "cut" individual character on the screen, and as shown in fig. 3 (c) and (d), the user clicks the "word" individual character and displays the "word" individual character on the screen.
Therefore, the N first candidate participles are separately displayed, misoperation of a user is reduced, the user can conveniently screen the target first candidate participles, and the input efficiency of the user is improved.
Optionally, in this embodiment of the application, in the process that the user performs step 203, the electronic device displays the first candidate word.
For example, before the step 203, the text display method provided in the embodiment of the present application may further include the following step 202b 1:
step 202b 1: a sliding input of the user on the first candidate word is received.
Wherein, the target first candidate participle is: and inputting the candidate participles at the position of the corresponding sliding end point in a sliding mode.
For example, as shown in fig. 4 (a), when the user wants to input the word "race", it may select to group words for the "race", for example, "race", and then input the pinyin "jingsai" of the "race" in the text input box, and click the candidate word "race" in the first page of the candidate word, as shown in fig. 4 (b), so that the user slides back and forth (i.e., the above-mentioned slide input) on the "race" displayed in the text input box, and when the user wants to screen the word "race", the user may slide to above the "race" word, at which time, when the user looses his/her hands, the electronic device may screen the "race" word.
Therefore, the target first candidate participle is determined through sliding input on the first candidate word, and the man-machine interaction performance is improved.
Optionally, in this embodiment of the application, after the electronic device performs step 203, the text display method provided in this embodiment of the application may further include the following steps 301 to 303:
step 301: and responding to the second input, canceling the display of the target first candidate participle and displaying M second candidate participles.
Wherein the M second candidate participles include: and the other first candidate participles except the target first candidate participle in the N first candidate participles.
For example, as shown in (a), (b), and (c) of fig. 3, after the electronic device displays the "cut" word on the screen, the remaining "open", "word", and "word" parts except the "cut" word may be displayed continuously.
Step 302: and receiving third input of the target second candidate participles of the M second candidate participles from the user.
Wherein the target second candidate participle is at least one second candidate participle in the M second candidate participles.
Step 303: and responding to a third input, and displaying the target second candidate participle on a screen.
For example, after the electronic device performs word segmentation once and selects a word desired to be input on the screen, in order to further improve the text input efficiency, the electronic device may not delete the remaining word segments in the first candidate word except for the target first candidate word, but retain M second candidate word segments in the first candidate word except for the target first candidate word, and allow the user to continue to select the target second candidate word desired to be input on the screen again.
Therefore, after the target first candidate participle is displayed in the character input box, the user is allowed to select the candidate word needing to be displayed on the screen again, so that the repeated input and participle of the user are reduced, and the character input efficiency is further improved.
It should be noted that, if the user continues to input after cutting words and selecting the screen once, the electronic device may empty the previous remaining candidate segmentation and display the candidate word corresponding to the new input by the user.
It should be noted that the electronic device can also memorize phrases composed of candidate segmented words on the screen. That is, after the electronic device screens the candidate words obtained after word segmentation, the on-screen phrases can be memorized and stored, so that when the user subsequently wants to input the phrases again, the phrases can be directly displayed in the candidate word pages, and the efficiency of the user for inputting the phrases for the second time is improved.
Furthermore, since each candidate word is usually split into a plurality of candidate words after being segmented, the user may select a desired candidate word from the candidate words several times, and output a word group composed of the candidate words. In order to avoid the electronic equipment from memorizing the candidate participles selected by the user at a single time, the electronic equipment is ensured to memorize phrases which are input by the user and are formed by the candidate participles selected for multiple times, and the accuracy of the phrases memorized by the electronic equipment is improved. The electronic device may memorize the phrases on the screen when the user next performs text input (i.e., when inputting pinyin again in the text input box) after the candidate words obtained after the word segmentation are on the screen.
For example, referring to fig. 3, after the user displays the "word" and the "word" on the screen, the electronic device may memorize the "word" as a phrase after obtaining the desired "word. Thus, when the user wants to input the word segmentation again, the electronic equipment already memorizes the word segmentation, and therefore after the user inputs the pinyin of the word segmentation, the word segmentation is directly displayed in the candidate word page for the user to select.
Optionally, in this embodiment of the application, after the electronic device performs step 203, the text display method provided in this embodiment of the application may further include the following step 203 a:
step 203 a: and responding to the second input, displaying the target first candidate participle in the character input box, and clearing the rest first candidate participles except the target first candidate participle in the first candidate participle.
For example, after the user displays the target first candidate word segmentation on the screen, the electronic device may automatically empty the remaining content, and return to the initial state of the input method input interface for the next input. After the user selects the screen, the input method automatically clears the unnecessary residual content and returns to the initial state for the next input.
Optionally, in this embodiment of the present application, before step 201, a scheme provided in this embodiment of the present application further includes: when the electronic equipment inputs pinyin, special characters (for example, long pressing X enables X to have a pinyin separation function in a pinyin string instead of pinyin 'X') can be added among the pinyin of a plurality of candidate words, so that a plurality of candidate words can be input at one time, and a plurality of first candidate words can be displayed at one time. It should be noted that the special character may be any character (such as a number, a letter, or a symbol), and a user may press a certain character for a long time, which is equivalent to making the character a word segmentation character, that is, making the character have a pinyin separation function, and input of pinyin letters before and after the special character in the pinyin string is not affected.
For example, when the user wants to output "monte contest wall", as shown in (a) of fig. 5, the user inputs the pinyin string "mengzixingzhengxbai" using the 26-key input method, wherein the capital letter "X" is a separation symbol (i.e., the above-mentioned special character), and thus the electronic device separates the pinyin string "mengzixingzhengxbai" with "X" as the separation symbol, so that the electronic device can find corresponding candidate words for the pinyin strings "mengzi" and "jingzheng" and "bihu", respectively, as shown in (b) of fig. 5, the candidate word corresponding to "mengzixingzhengxbai" is "monte X contends for X gecko. Then, words can be divided for the 'mengzi', 'compete' and 'gecko', finally, the 'mengzi', 'compete' and 'wall' are respectively selected from the divided words to be displayed on a screen, and finally, the target character 'mengzi' is output.
It should be noted that, in the text display method provided in the embodiment of the present application, the execution main body may be a text display device, or a control module for the text display method in the text display device. In the embodiment of the present application, a text display method executed by a text display device is taken as an example to describe the text display device provided in the embodiment of the present application.
An embodiment of the present application provides a message display apparatus, as shown in fig. 6, the message display apparatus 500 includes: a receiving module 501, a processing module 502 and a display module 503, wherein:
a receiving module 501, configured to receive a first input of a first candidate word by a user when the first candidate word is displayed; a processing module 502, configured to obtain N first candidate participles of the first candidate word in response to the first input received by the receiving module; the receiving module 501 is further configured to receive a second input of a user for a target first candidate participle in the N first candidate participles obtained by the processing module; a display module 503, configured to display the target first candidate word segmentation in the text input box in response to the second input received by the receiving module.
Optionally, in this embodiment of the application, the processing module 502 is further configured to cancel, in response to the second input received by the receiving module 501, the display of the target first candidate participle; the display module 503 is further configured to respond to the second input received by the receiving module 501, and display M second candidate participles, where the M second candidate participles include: the other first candidate participles except the target first candidate participle in the N first candidate participles; the receiving module 501 is further configured to receive a third input of a target second candidate segmentation of the M second candidate segmentations from the user; the display module 503 is further configured to display the target second candidate participle in response to the third input received by the receiving module 501.
Optionally, in this embodiment of the application, the processing module 502 is further configured to, in response to a second input received by the receiving module 501, empty remaining first candidate participles in the first candidate word except for the target first candidate participle.
Optionally, in this embodiment of the application, the processing module 502 is specifically configured to perform word segmentation on the first candidate word to obtain N first candidate word segmentations.
Optionally, in this embodiment of the application, the display module 503 is specifically configured to: respectively displaying the N first candidate participles; wherein the second input is a selection input for a user to select the target first candidate segmentation.
Optionally, in this embodiment of the application, the receiving module 501 is specifically configured to receive a sliding input of the user on the first candidate word; wherein, the target first candidate participle is: and inputting the candidate participles at the position of the corresponding sliding end point by sliding.
In the text display device provided in the embodiment of the application, when the first candidate word is displayed, after the electronic device receives a first input of the first candidate word by the user, a word segmentation operation may be performed on the first candidate word, so as to obtain N first candidate words, and thus, after the electronic device receives a second input of a target first candidate word in the N first candidate words, the target first candidate word may be displayed on a screen. Therefore, the candidate words are segmented, so that the user can select the part needing to be displayed on the screen from the candidate words, the part needing to be input in the candidate words can be displayed on the screen without moving a cursor to delete the part needing to be input by the user, the whole input process not only reduces the character operation flow, saves the character input time, but also improves the character input efficiency.
The text display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The text input device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The text input provided by the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 5, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 600 is further provided in this embodiment of the present application, and includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and capable of being executed on the processor 601, where the program or the instruction is executed by the processor 601 to implement each process of the text display 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 devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 8 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 omitted here.
The user input unit 107 receives a first input of the first candidate word from the user when the first candidate word is displayed; the processor 110 is configured to, in response to the first input received by the user input unit 107, obtain N first candidate participles of the first candidate word; the user input unit 107 is further configured to receive a second input of a target first candidate participle from the N first candidate participles obtained by the processor 110 from the user; the display unit 106 is configured to display the target first candidate participle in the text input box in response to the second input received by the user input unit 107.
In the electronic device provided by the embodiment of the application, under the condition that the first candidate word is displayed, after the electronic device receives the first input of the first candidate word by the user, word segmentation operation can be performed on the first candidate word, so that N first candidate words are obtained, and thus, after the electronic device receives the second input of the target first candidate word in the N first candidate words by the user, the target first candidate word can be displayed on a screen. Therefore, the candidate words are segmented, so that the user can select the part needing to be displayed on the screen from the candidate words, the part needing to be input in the candidate words can be displayed on the screen without moving a cursor to delete the part needing to be input by the user, the whole input process not only reduces the character operation flow, saves the character input time, but also improves the character input efficiency.
Optionally, in this embodiment of the application, the processor 110 is specifically configured to perform word segmentation on the first candidate word to obtain N first candidate word segmentations.
Optionally, in this embodiment of the application, the processor 110 is further configured to respond to a second input received by the user input unit 107, and clear the target first candidate participle; the display unit 106 is further configured to respond to a second input received by the user input unit 107, and display M second candidate participles, where the M second candidate participles include: the other first candidate participles except the target first candidate participle in the N first candidate participles; the user input unit 107 is further configured to receive a third input of a target second candidate segmentation word in the M second candidate segmentation words from the user; the display unit 106 is further configured to display the target second candidate participle in response to a third input received by the user input unit 107.
Therefore, after the target first candidate participle is displayed on the screen, the user is allowed to select the displayed screen again, so that the repeated input and participle of the user are reduced, and the character input efficiency is further improved.
Optionally, in this embodiment of the application, the processor 110 is further configured to empty remaining first candidate participles in the first candidate word except for the target first candidate participle in response to a second input received by the user input unit 107.
Optionally, in this embodiment of the application, the display unit 106 is further configured to display the N first candidate participles respectively; wherein the second input is a selection input for a user to select the target first candidate segmentation.
Therefore, the N first candidate participles are separately displayed, misoperation of a user is reduced, the user can conveniently screen the target first candidate participles, and the input efficiency of the user is improved.
Optionally, in this embodiment of the application, the user input unit 107 is specifically configured to receive a sliding input of a user on a first candidate word; wherein, the target first candidate participle is: and inputting the candidate participles at the position of the corresponding sliding end point by sliding.
Therefore, the target first candidate participle is determined through sliding input on the first candidate word, and the man-machine interaction performance is improved.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 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 110 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 the processor 110.
The embodiment of the present application further provides a readable storage medium for text input, where the readable storage medium stores a program or an instruction, and the program or the instruction, when executed by a processor, implements the processes of the text display method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the detailed description is omitted here.
The processor is a processor in the electronic device in the 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.
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 execute a program or an instruction to implement each process of the text display method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods described in 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. A method for displaying text, the method comprising:
receiving a first input of a first candidate word from a user under the condition that the first candidate word is displayed;
responding to the first input, and acquiring N first candidate participles of the first candidate words, wherein N is a positive integer greater than 1;
receiving second input of a user on a target first candidate participle in the N first candidate participles;
and responding to the second input, and displaying the target first candidate participle in a text input box.
2. The method of claim 1, wherein after receiving a second user input of a target first candidate participle of the N first candidate participles, the method further comprises:
canceling the display of the target first candidate participle and displaying M second candidate participles in response to the second input; the M second candidate participles include: the other first candidate participles except the target first candidate participle in the N first candidate participles;
receiving a third input of a user to a target second candidate participle in the M second candidate participles;
in response to the third input, displaying the target second candidate participle.
3. The method of claim 2, wherein displaying the target first candidate participle in a text entry box in response to the second input comprises:
and responding to the second input, displaying the target first candidate participle in a character input box, and clearing the rest first candidate participles except the target first candidate participle in the first candidate participle.
4. The method according to any one of claims 1 to 3, wherein the obtaining N first candidate participles of the first candidate word comprises:
and performing word segmentation on the first candidate words to obtain N first candidate word segments.
5. The method of any one of claims 1 to 3, wherein the receiving a second input of a target first candidate participle of the N first candidate participles from the user comprises:
receiving a sliding input of a user on the first candidate word;
wherein the target first candidate participle is: and inputting the candidate participles at the position of the corresponding sliding end point by sliding.
6. A text display apparatus, the apparatus comprising: display module, processing module and receiving module:
the receiving module is used for receiving a first input of a user to a first candidate word under the condition that the first candidate word is displayed, wherein N is a positive integer larger than 1;
the processing module is configured to obtain N first candidate participles of the first candidate word in response to the first input received by the receiving module;
the receiving module is further configured to receive a second input of a user to a target first candidate participle in the N first candidate participles obtained by the processing module;
the display module is configured to display the target first candidate word segmentation in a text input box in response to the second input received by the receiving module.
7. The apparatus of claim 6,
the processing module is further configured to cancel display of the target first candidate participle in response to the second input received by the receiving module;
the display module is further configured to display, in response to the second input received by the receiving module, M second candidate participles, where the M second candidate participles include: the other first candidate participles except the target first candidate participle in the N first candidate participles;
the receiving module is further configured to receive a third input of a target second candidate segmentation word in the M second candidate segmentation words from the user;
the display module is further configured to display the target second candidate participle in response to the third input received by the receiving module.
8. The apparatus of claim 6,
the processing module is further configured to empty remaining first candidate participles in the first candidate word except for the target first candidate participle in response to the second input received by the receiving module.
9. The apparatus according to any one of claims 6 to 8,
the processing module is specifically configured to perform word segmentation on the first candidate words to obtain N first candidate word segments.
10. The apparatus according to any one of claims 6 to 8,
the receiving module is specifically configured to receive a sliding input of a user on the first candidate word;
wherein the target first candidate participle is: and inputting the candidate participles at the position of the corresponding sliding end point by sliding.
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 text display method according to any one of claims 1-5.
12. A readable storage medium, on which a program or instructions are stored, which program or instructions, when executed by a processor, carry out the steps of the text display method according to any one of claims 1 to 5.
CN202011149843.XA 2020-10-23 2020-10-23 Character display method and device and electronic equipment Pending CN112269475A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011149843.XA CN112269475A (en) 2020-10-23 2020-10-23 Character display method and device and electronic equipment
PCT/CN2021/125786 WO2022083750A1 (en) 2020-10-23 2021-10-22 Text display method and apparatus and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011149843.XA CN112269475A (en) 2020-10-23 2020-10-23 Character display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112269475A true CN112269475A (en) 2021-01-26

Family

ID=74342451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011149843.XA Pending CN112269475A (en) 2020-10-23 2020-10-23 Character display method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN112269475A (en)
WO (1) WO2022083750A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112949261A (en) * 2021-02-04 2021-06-11 维沃移动通信有限公司 Text restoration method and device and electronic equipment
CN113076010A (en) * 2021-03-26 2021-07-06 维沃移动通信有限公司 Input method, input device, electronic apparatus, and medium
CN113359999A (en) * 2021-05-24 2021-09-07 维沃移动通信有限公司 Candidate word updating method and device and electronic equipment
CN113778237A (en) * 2021-08-27 2021-12-10 维沃移动通信有限公司 Character display method and device, electronic equipment and medium
WO2022083750A1 (en) * 2020-10-23 2022-04-28 维沃移动通信有限公司 Text display method and apparatus and electronic device
WO2024067630A1 (en) * 2022-09-30 2024-04-04 华为技术有限公司 Input method, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2778860A1 (en) * 2013-03-15 2014-09-17 BlackBerry Limited Method and apparatus for word prediction selection
CN104679278A (en) * 2015-02-28 2015-06-03 广州三星通信技术研究有限公司 Character input method and device
CN107491502A (en) * 2017-07-31 2017-12-19 深圳市金立通信设备有限公司 A kind of method and terminal for selecting entry
CN107797676A (en) * 2016-09-05 2018-03-13 北京搜狗科技发展有限公司 A kind of input method of the single character and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9189157B2 (en) * 2013-03-15 2015-11-17 Blackberry Limited Method and apparatus for word prediction selection
CN112269475A (en) * 2020-10-23 2021-01-26 维沃移动通信有限公司 Character display method and device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2778860A1 (en) * 2013-03-15 2014-09-17 BlackBerry Limited Method and apparatus for word prediction selection
CN104679278A (en) * 2015-02-28 2015-06-03 广州三星通信技术研究有限公司 Character input method and device
CN107797676A (en) * 2016-09-05 2018-03-13 北京搜狗科技发展有限公司 A kind of input method of the single character and device
CN107491502A (en) * 2017-07-31 2017-12-19 深圳市金立通信设备有限公司 A kind of method and terminal for selecting entry

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022083750A1 (en) * 2020-10-23 2022-04-28 维沃移动通信有限公司 Text display method and apparatus and electronic device
CN112949261A (en) * 2021-02-04 2021-06-11 维沃移动通信有限公司 Text restoration method and device and electronic equipment
CN113076010A (en) * 2021-03-26 2021-07-06 维沃移动通信有限公司 Input method, input device, electronic apparatus, and medium
CN113076010B (en) * 2021-03-26 2023-06-23 维沃移动通信有限公司 Input method, input device, electronic equipment and medium
CN113359999A (en) * 2021-05-24 2021-09-07 维沃移动通信有限公司 Candidate word updating method and device and electronic equipment
CN113359999B (en) * 2021-05-24 2023-06-27 维沃移动通信有限公司 Candidate word updating method and device and electronic equipment
CN113778237A (en) * 2021-08-27 2021-12-10 维沃移动通信有限公司 Character display method and device, electronic equipment and medium
WO2024067630A1 (en) * 2022-09-30 2024-04-04 华为技术有限公司 Input method, electronic device and storage medium

Also Published As

Publication number Publication date
WO2022083750A1 (en) 2022-04-28

Similar Documents

Publication Publication Date Title
US20210073467A1 (en) Method, System and Apparatus for Entering Text on a Computing Device
CN112269475A (en) Character display method and device and electronic equipment
CN105814519B (en) System and method for inputting image or label to electronic equipment
CN107608532B (en) Association input method and device and electronic equipment
US20110201387A1 (en) Real-time typing assistance
CN107544684B (en) Candidate word display method and device
CN107870677B (en) Input method, input device and input device
WO2006028438A1 (en) System, method, and apparatus for continuous character recognition
CN107092424B (en) Display method and device of error correction items and device for displaying error correction items
WO2022135474A1 (en) Information recommendation method and apparatus, and electronic device
EP3267301B1 (en) High-efficiency touch screen text input system and method
WO2021254251A1 (en) Input display method and apparatus, and electronic device
CN112181253A (en) Information display method and device and electronic equipment
WO2022105754A1 (en) Character input method and apparatus, and electronic device
CN107797676B (en) Single character input method and device
CN112764734A (en) Code editing assisting method and device and electronic equipment
CN112148135A (en) Input method processing method and device and electronic equipment
CN115437548A (en) Display method and device of virtual keyboard, electronic equipment and storage medium
WO2022143523A1 (en) Vocabulary display method and apparatus, and electronic device
CN111966267A (en) Application comment method and device and electronic equipment
CN113010072A (en) Searching method and device, electronic equipment and readable storage medium
CN113885743A (en) Text content selection method and device
CN113127629A (en) Keyword searching method and device and electronic equipment
CN112328096A (en) Candidate word display method and device and electronic equipment
CN112684910A (en) Input method candidate word display method and device 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