Text input method and device, electronic equipment and storage medium
By receiving word phrase pinyin input and displaying the word phrase unit in the smartphone input method, users can directly select the target word phrase unit, which solves the problem of low efficiency in homophone input and achieves more efficient text input.
Patent Information
- Application Number
- CN202211186397.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-26
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2042-09-26
AI Technical Summary
In existing smartphone input methods, users need to search for the target character from a large number of homophones when inputting homophones, resulting in low text input efficiency.
By receiving the pinyin input of a phrase, the system displays the corresponding phrase units. Each unit contains at least one candidate character. The user selects the target phrase unit, which is then displayed in the text input area, simplifying the process of selecting homophones.
It improves text input efficiency, allowing users to easily select the text they want to input from phrase units, reducing the steps of searching among multiple homophones or homonyms.
Smart Images

Figure CN115454263B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of electronic devices, and particularly relates to a character input method and device, an electronic device, and a storage medium. BACKGROUND
[0002] With the popularity of smart phones, the input method of the smart phone has become a high-frequency application used by people every day. Currently, the input method of the phone mainly inputs the information of a target word in the form of pinyin, strokes, etc., and displays candidate words on the input method interface.
[0003] When using pinyin, a user usually has a large number of homophonic words. The user needs to find a target character from a large number of homophonic words, resulting in low character input efficiency. SUMMARY
[0004] The embodiments of the present application provide a character input method, device, electronic device, and storage medium, which can solve the problem of low character input efficiency.
[0005] In a first aspect, the embodiments of the present application provide a character input method, comprising:
[0006] receiving a first input for inputting a word group pinyin in an input method keyboard;
[0007] in response to the first input, displaying at least one word group unit corresponding to the word group pinyin, each word group unit comprising at least one candidate word;
[0008] in response to a second input for selecting a target word group unit from the at least one word group unit, displaying the target word group unit in a text input area corresponding to the input method keyboard.
[0009] In a second aspect, the embodiments of the present application provide a character input device, comprising:
[0010] a first receiving module configured to receive a first input for inputting a word group pinyin in an input method keyboard;
[0011] a first display module configured to, in response to the first input, display at least one word group unit corresponding to the word group pinyin, each word group unit comprising at least one candidate word;
[0012] a second display module configured to, in response to a second input for selecting a target word group unit from the at least one word group unit, display the target word group unit in a text input area corresponding to the input method keyboard.
[0013] In a third aspect, an electronic device is provided. The electronic device includes a processor and a memory. The memory stores programs or instructions executable by the processor. The programs or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
[0014] In a fourth aspect, a readable storage medium is provided. The readable storage medium stores programs or instructions. The programs or instructions, when executed by a processor, implement the steps of the method according to the first aspect.
[0015] In a fifth aspect, a chip is provided. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to execute programs or instructions to implement the method according to the first aspect.
[0016] In a sixth aspect, a computer program product is provided. The computer program product is stored in a storage medium. The computer program product is executed by at least one processor to implement the method according to the first aspect.
[0017] In the embodiments of the present application, the user inputs a word group pinyin, and at least one word group unit corresponding to the word group pinyin is displayed. In response to a second input for selecting a target word group unit from the at least one word group unit, the target word group unit is displayed in a text input area corresponding to an input method keyboard. Since each word group unit includes at least one candidate word, the user can conveniently select a desired word from the word group unit without inputting the pinyin and searching for the desired word from multiple homophonic words or homophonic phrases, thereby improving the word input efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0018] Figure 1 FIG. 1 is a flowchart of a word input method according to an embodiment;
[0019] Figure 2 FIG. 2 is a schematic diagram of an interface for displaying word group units according to an embodiment;
[0020] Figure 3 FIG. 3 is a schematic diagram of an interface for displaying word group units according to another embodiment;
[0021] Figure 4 FIG. 4 is a schematic diagram of determining a word group unit according to a pinyin unit according to an embodiment;
[0022] Figure 5 FIG. 5 is a schematic diagram of a preset button according to an embodiment;
[0023] Figure 6 FIG. 6 is a schematic diagram of a stroke input button according to an embodiment;
[0024] Figure 7This is a schematic diagram of an interface that combines pinyin and strokes to display target text in one embodiment;
[0025] Figure 8 This is a schematic diagram of the architecture of a text input device in one embodiment;
[0026] Figure 9 This is a schematic diagram of the architecture of an electronic device in one embodiment;
[0027] Figure 10 This is a schematic diagram of the hardware structure of an electronic device in one embodiment. Detailed Implementation
[0028] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0029] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0030] It should be noted that all actions involving the acquisition of signals, information, or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where the application is located, and with authorization from the owner of the relevant device / account.
[0031] The text input method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0032] like Figure 1 As shown in the figure, this embodiment introduces a text input method, including steps S1100-S1300.
[0033] S1100: Receives the first input for entering the pinyin of a phrase on the input method keyboard.
[0034] The input interface includes an input method keyboard. The input method keyboard contains a plurality of keys, which can be used by the user to input pinyin, letters, characters, etc. The first input is an input of the user to the input method keyboard. The first input can be a single click, multiple clicks, long press, etc. For example, the user clicks multiple times on a key in the input method keyboard.
[0035] As shown in the input interface shown in Figure 2 , the input method keyboard is displayed below the input interface, and the input method keyboard includes letter keys, character keys, and function keys. The first input can be multiple clicks of a letter key by the user. The word group pinyin input by the user includes the pinyin of the character that the user wants to input. The pinyin of the character that the user wants to input can be at any position in the word group pinyin. For example, the pinyin of the character that the user wants to input can be at a middle position of the word group pinyin, or the pinyin of the character that the user wants to input can be at a beginning or end position of the word group pinyin.
[0036] As shown in Figure 2 , the character that the user wants to input is “yi”, and the pinyin of the character that the user wants to input is “yi”. The user inputs the word group pinyin “zhangyide”, and at this time the pinyin of the character that the user wants to input is at a middle position of the word group pinyin. The user can also input the word group pinyin “xuanyi”, and at this time the pinyin of the character that the user wants to input is at an end position of the word group pinyin.
[0037] S1200: In response to the first input, display at least one word group unit corresponding to the word group pinyin, and each word group unit includes at least one candidate character.
[0038] A word group includes a plurality of characters, and the word group pinyin can be composed of the pinyin of all the characters in the word group. For example, the word group “zhangyide” includes the character “zhang”, the character “yi”, and the character “de”. The pinyin of the character “zhang” is “zhang”, the pinyin of the character “yi” is “yi”, and the pinyin of the character “de” is “de”. Then the pinyin of the word group “zhangyide” is “zhangyide”.
[0039] A word group is composed of a plurality of candidate characters, and a word group unit can be a single candidate character. For example, for the word group “zhangyide”, the candidate character “zhang” is a word group unit, the candidate character “yi” is a word group unit, and the candidate character “de” is a word group unit.
[0040] The phrase unit can also include multiple candidate words. For example, the user only wants to input a first phrase, and after inputting the pinyin corresponding to the first phrase, the user continues to input other pinyin due to a mistake. The pinyin of the first phrase and the other pinyin form a phrase pinyin. The phrase corresponding to the phrase pinyin includes two phrase units. One phrase unit is the first phrase, and the phrase unit includes multiple candidate words. The other phrase unit is the character corresponding to the other pinyin input by the user. For example, the user wants to input the phrase "Zhang Yi", and after inputting the phrase pinyin "zhangyi", the user continues to input the pinyin "de" due to a mistake. The phrase pinyin "zhangyi" and the pinyin "de" form a phrase pinyin "zhangyide", and the phrase corresponding to the phrase pinyin "zhangyide" is "Zhang Yi's". The phrase "Zhang Yi's" includes the phrase unit "Zhang Yi" and the phrase unit "de", and the phrase unit "Zhang Yi" includes the candidate word "Zhang" and the candidate word "Yi".
[0041] S1300: In response to a second input for selecting a target phrase unit from the at least one phrase unit, displaying the target phrase unit in a text input area corresponding to the input method keyboard.
[0042] After displaying the phrase units, the user selects one phrase unit from the displayed phrase units, and the phrase unit selected by the user is a target phrase unit. The target phrase unit is the character that the user wants to input. For example, the first phrase unit, the second phrase unit, and the third phrase unit are displayed, the user selects the second phrase unit, and the second phrase unit is the target phrase unit.
[0043] The text input area is an area in which the user wants to input characters. The text input area can be an input box, such as an input box in a chat interface of a social application. After the user selects the target phrase unit, the target phrase unit is displayed in the text input area. For example, the user inputs the phrase pinyin "zhangyide", the phrase unit "Zhang", the phrase unit "Yi", and the phrase unit "de" are displayed, and after the user selects the phrase unit "Yi", the character "Yi" is displayed in the text input area.
[0044] In this embodiment, the user inputs a phrase pinyin, at least one phrase unit corresponding to the phrase pinyin is displayed, and in response to a second input for selecting a target phrase unit from the at least one phrase unit, the target phrase unit is displayed in a text input area corresponding to an input method keyboard. Since each phrase unit includes at least one candidate word, the user can conveniently select the character that the user wants to input from the phrase units, without having to input pinyin and search for the character that the user wants to input from multiple homophonic characters or homophonic phrases, thereby improving the efficiency of character input.
[0045] In this embodiment, the step S1200 includes steps S1211-S1212.
[0046] S1211: In response to the first input, display the spelling result corresponding to the word group pinyin, and the spelling result includes at least one candidate word group.
[0047] The candidate word group is a word group corresponding to the word group pinyin input by the user. One word group pinyin can correspond to one candidate word group, or can correspond to multiple candidate word groups. In the case of one candidate word group corresponding to one word group pinyin, the spelling result contains one candidate word group, and one candidate word group is displayed at this time. For example, the word group pinyin "zhugeliang" only corresponds to one candidate word group "zhugeliang", and the word group "zhugeliang" is displayed after the user inputs the word group pinyin "zhugeliang".
[0048] In the case of multiple candidate word groups corresponding to one word group pinyin, the spelling result contains multiple candidate word groups, and multiple candidate word groups are displayed after the user inputs the word group pinyin. For example, the word group pinyin "zhangyide" corresponds to the candidate word group "zhangyide" and the candidate word group "zhangyide", and the candidate word group "zhangyide" and the candidate word group "zhangyide" are displayed after the user inputs the word group pinyin "zhangyide".
[0049] S1212: In response to a second input of a target word group in the at least one candidate word group, display at least one word group unit corresponding to the target word group.
[0050] The second input is a selection input, and the user selects a word group from the candidate word groups, and the word group selected by the user is the target word group. The second input can be a long press input. In the case of displaying multiple candidate word groups, the second input is for one of the multiple candidate word groups. The long press time can be set according to the input habits of the user. For example, the long press time can be 0.3 seconds.
[0051] The target word group selected by the user contains the character that the user wants to input. After the user selects the target word group, the word group unit corresponding to the target word group is displayed. As shown in Figure 3 The character that the user wants to input is "wings", the user inputs the word group pinyin "zhangyide", and the candidate word group "zhangyide" and the candidate word group "zhangyide" are displayed. The user selects the candidate word group "zhangyide", and the candidate word group "zhangyide" contains the character "wings" that the user wants to input, and the word group unit "zhang", the word group unit "wings", and the word group unit "de" corresponding to the candidate word group "zhangyide" are displayed.
[0052] The embodiment allows the user to select the target word group, the target word group selected by the user contains the character that the user wants to input, and the word group unit corresponding to the target word group is displayed, so that the user can quickly select the target word group unit and improve the input efficiency.
[0053] In this embodiment, the step S1200 includes S1221-S1222.
[0054] S1221: In response to the first input, display the pinyin unit corresponding to the word group pinyin.
[0055] After the user inputs the word group pinyin, the pinyin unit corresponding to the word group pinyin is displayed. The pinyin unit can be the pinyin of one character. For example, the user inputs the word group pinyin "zhangyide", and the word group pinyin "zhangyide" corresponds to the pinyin unit "zhang", the pinyin unit "yi", and the pinyin unit "de".
[0056] S1222: In response to a third input on a target pinyin unit in the pinyin unit, display at least one word unit determined according to the word group pinyin and the target pinyin unit.
[0057] The third input can be a click input or a long press input. The target pinyin unit is the pinyin corresponding to the target character, and the target character is the character that the user wants to input. The word group pinyin corresponds to at least one word group, and after the user selects the target pinyin unit, the word unit corresponding to the target pinyin unit is determined from the word units included in the word group corresponding to the word group pinyin.
[0058] As shown in Figure 4 the user inputs the word group pinyin "zhangyide", and the pinyin unit "zhang", the pinyin unit "yi", and the pinyin unit "de" are displayed. The word group pinyin "zhangyide" corresponds to the word group "zhangyide", the word group "zhangyide", and the word group "zhangyide". The user selects the pinyin unit "yi", and the word unit "yi" corresponding to the pinyin unit "yi" in the word group "zhangyide" is displayed, the word unit "yi" corresponding to the pinyin unit "yi" in the word group "zhangyide" is displayed, and the word unit "yi" corresponding to the pinyin unit "yi" in the word group "zhangyide" is displayed.
[0059] The present embodiment displays the pinyin unit corresponding to the word group pinyin, so that the user can select the target pinyin unit corresponding to the target character from the pinyin unit corresponding to the word group pinyin, quickly locate the target character according to the target pinyin unit and the word group pinyin, and improve the input efficiency.
[0060] In the present embodiment, the step S1200 includes steps S1231-S1233.
[0061] S1231: In response to the first input, determine the spelling result corresponding to the word group pinyin, the spelling result including at least one candidate word group.
[0062] The candidate phrase is a phrase corresponding to the phrase pinyin input by the user. One phrase pinyin can correspond to one candidate phrase, such as the phrase pinyin "zhugeliang" corresponding to only one candidate phrase "Zhugeliang". One phrase pinyin can also correspond to multiple candidate phrases. For example, the phrase pinyin "zhangyide" corresponds to the candidate phrase "Zhang Yide" and the candidate phrase "Yi".
[0063] S1231: splitting the at least one candidate phrase to obtain at least one phrase unit corresponding to the phrase pinyin; each phrase unit includes a single candidate character.
[0064] The candidate phrase is split according to the corresponding phrase unit to obtain the phrase unit corresponding to the candidate phrase. The phrase unit is a single candidate character. If the phrase pinyin corresponds to multiple candidate phrases, each candidate phrase is split into the corresponding phrase unit.
[0065] For example, the phrase pinyin "zhangyide" corresponds to the candidate phrase "Zhang Yide" and the candidate phrase "Yi". The candidate phrase "Zhang Yide" is split to obtain the candidate character "Zhang", the candidate character "Yi", and the candidate character "De". The candidate phrase "Yi" is split to obtain the candidate character "Yi", the candidate character "Yi", and the candidate character "De".
[0066] S1233: displaying the at least one phrase unit.
[0067] After obtaining the phrase unit corresponding to the candidate phrase, all phrase units corresponding to all candidate phrases are displayed. For example, the user inputs the phrase pinyin "zhangyide", which corresponds to the candidate phrase "Zhang Yide" and the candidate phrase "Yi". The phrase unit "Zhang", the phrase unit "Yi", the phrase unit "De", the phrase unit "Yi", the phrase unit "Yi", and the phrase unit "De" are displayed.
[0068] The embodiment splits the candidate phrase corresponding to the phrase pinyin input by the user to obtain the candidate character corresponding to the candidate phrase, and displays the candidate character, so that the user can directly click the character to be input, thereby improving the input efficiency.
[0069] In the embodiment, the step S1200 includes: in response to the first input, displaying at least one phrase unit corresponding to the phrase pinyin in a target area; and the target area is located in the right-hand operation area.
[0070] Users can use a mobile device with one hand, for example, using their right hand. The right-hand operating area is the area that is convenient for the user to click. For example, when using their right hand, the user can easily click on the center, right, and bottom areas of the screen. The left and top areas of the screen are less convenient to operate. Therefore, the right-hand operating area includes the center, right, and bottom areas of the screen. The target area is a portion of this right-hand operating area.
[0071] In this embodiment, phrase units are displayed in the target area, which is located in the right-hand operation area. The right-hand operation area is a convenient area for users to click, allowing users to easily click on phrase units, facilitating user operation and improving input efficiency.
[0072] In this embodiment, steps S2100-2200 are included before step S1300.
[0073] S2100: Receives a fourth input for inputting auxiliary information.
[0074] Users can input auxiliary information using the input method keyboard. Auxiliary information can be the strokes of characters. After displaying the phrase unit, users can input strokes using the input method keyboard. For example... Figure 5 As shown, when displaying phrase units, an "Append Mode" button is also displayed. After the user clicks the "Append Mode" button, stroke input buttons are displayed on the input method keyboard. Figure 6 As shown, the input method keyboard displays the stroke input buttons for "horizontal," "vertical," "left-falling," "right-falling," and "turning." The keyboard can also display other stroke input buttons. Users can input strokes by clicking these buttons. The strokes input are those contained in the text the user wants to input. Users can input strokes in the order of the target text's strokes. Users can also input any stroke contained in the target text. Users can input only a portion of the target text's strokes.
[0075] User-inputted auxiliary information can be displayed. For example... Figure 7 As shown, when a user clicks the stroke input button multiple times, the strokes entered by the user are displayed in the input interface.
[0076] S2200: In response to the fourth input, candidate word groups that match the auxiliary information are selected from the at least one word group group, and the candidate word group group group is displayed.
[0077] Based on the stroke count input by the user, candidate word groups are selected from the word group units. Word groups containing the user-input stroke count are selected as candidate word groups. Candidate word groups are displayed, while other word groups are not displayed.
[0078] For example, the phrase units include a first phrase unit, a second phrase unit, a third phrase unit, and a fourth phrase unit. Among them, the first phrase unit and the third phrase unit contain the strokes input by the user, and the second phrase unit and the fourth phrase unit do not contain the strokes input by the user. Then, the first phrase unit and the third phrase unit are used as candidate phrase units. The first phrase unit and the third phrase unit are displayed, while the second phrase unit and the fourth phrase unit are not displayed.
[0079] The step S1300 includes: in response to a second input for selecting the target phrase unit from the candidate phrase units, displaying the target phrase unit in the text input area corresponding to the input method keyboard.
[0080] After displaying the candidate phrase units, the user selects a phrase unit from the candidate phrase units, and the selected phrase unit by the user is used as the target phrase unit. The selected target phrase unit by the user is displayed in the text input area. The target phrase unit is the text that the user wants to input.
[0081] In this embodiment, by allowing the user to input auxiliary information, combining the pinyin and the auxiliary information to quickly locate the target text, the input of the target text is completed more conveniently, and the input efficiency is improved.
[0082] In this embodiment, the step S1200 includes: in response to the first input, displaying at least one phrase unit of the phrase pinyin in the input mode corresponding to the input method keyboard.
[0083] After the user inputs the phrase pinyin, the phrases corresponding to the input phrase pinyin are determined from the phrase library of the input method. The input method keyboard can correspond to multiple different input modes, and in different input modes, the display order of the phrase units is also different. For example, the input modes can include a "work mode" and a "life mode", and the phrase pinyin corresponds to the phrase unit "wing" and the phrase unit "righteousness". In the "work mode" of the input method keyboard, when the user wants to input the text "wing", the display order of the phrase unit "wing" is before the phrase unit "righteousness". In the "life mode" of the input method keyboard, when the user wants to input the text "righteousness", the display order of the phrase unit "wing" is after the phrase unit "righteousness".
[0084] In this embodiment, by setting different input modes, the user can use different input modes in different usage scenarios, and determine the display order of the phrase units according to the input mode. The display order of the phrase units is more in line with the user's needs, which is convenient for the user to quickly select the target text and improve the input efficiency.
[0085] In this embodiment, the step S1200 includes: in response to the first input, displaying at least one word unit corresponding to the word group pinyin according to input frequencies respectively corresponding to the at least one word unit; and wherein the higher the input frequency, the higher the display order of the corresponding word unit.
[0086] The input frequency corresponding to a word unit refers to the number of times that the user inputs the word unit. The higher the input frequency, the more times the user inputs the word unit. When displaying a plurality of word units, the order of the word units is determined according to the input frequencies of the word units. The higher the input frequency of a word unit, the higher the display order of the word unit, so that the user can more easily select the word unit.
[0087] For example, the word group pinyin corresponds to a word unit "Yi", a word unit "Yi", and a word unit "Yi". The input frequency of the word unit "Yi" is the highest, and the input frequency of the word unit "Yi" is the lowest. The word unit "Yi" is displayed before the word unit "Yi", and the word unit "Yi" is displayed after the word unit "Yi".
[0088] In this embodiment, the display order of the word unit is set according to the input frequency corresponding to the word unit. The higher the input frequency of a word unit, the higher the probability that the word unit is the word unit that the user wants to input. The higher the input frequency of a word unit, the higher the display order of the word unit, which is more convenient for the user to click and improves input efficiency.
[0089] The text input method provided in the embodiments of the present application can be executed by a text input device. In the embodiments of the present application, the text input method executed by the text input device is taken as an example to illustrate the text input device provided in the embodiments of the present application.
[0090] As shown in Figure 8 The text input device 800 includes:
[0091] The first receiving module 801 is configured to receive a first input of a word group pinyin in an input method keyboard.
[0092] The first display module 802 is configured to display at least one word unit corresponding to the word group pinyin in response to the first input, each word unit including at least one candidate word.
[0093] The second display module 803 is configured to display a target word unit in a text input area corresponding to the input method keyboard in response to a second input for selecting the target word unit from the at least one word unit.
[0094] In the embodiment, a user inputs a phrase pinyin, and a phrase unit corresponding to the phrase pinyin is displayed. In response to a second input for selecting a target phrase unit from the phrase unit, the target phrase unit is displayed in a text input area corresponding to an input method keyboard. Since each phrase unit includes at least one candidate character, the user can conveniently select a character to be input from the phrase unit without inputting the pinyin and searching for the character to be input from multiple homophonic characters or homophonic phrases, thereby improving character input efficiency.
[0095] In an embodiment, the first display module includes:
[0096] A third display submodule is configured to display spelling results corresponding to the phrase pinyin in response to the first input, wherein the spelling results include at least one candidate phrase.
[0097] A fourth display submodule is configured to display at least one phrase unit corresponding to a target phrase in the at least one candidate phrase in response to a second input for the target phrase.
[0098] In an embodiment, the first display module includes:
[0099] A fifth display submodule is configured to display pinyin units corresponding to the phrase pinyin in response to the first input.
[0100] A sixth display submodule is configured to display at least one phrase unit determined according to the phrase pinyin and a target pinyin unit in the pinyin units in response to a third input for the target pinyin unit.
[0101] In an embodiment, the first display module includes:
[0102] A first determination submodule is configured to determine spelling results corresponding to the phrase pinyin in response to the first input, wherein the spelling results include at least one candidate phrase.
[0103] A second acquisition submodule is configured to split the at least one candidate phrase to obtain at least one phrase unit corresponding to the phrase pinyin, wherein each phrase unit includes a single candidate character.
[0104] A seventh display submodule is configured to display the at least one phrase unit.
[0105] In an embodiment, the first display module includes:
[0106] An eighth display submodule is configured to display at least one phrase unit corresponding to the phrase pinyin in a target area in response to the first input, wherein the target area is located in a right-hand operation area.
[0107] In an implementation, further comprising:
[0108] a second receiving module, configured to receive a fourth input of inputting the auxiliary information.
[0109] a third displaying module, configured to, in response to the fourth input, filter a candidate word group unit matched with the auxiliary information from the at least one word group unit, and display the candidate word group unit.
[0110] the second displaying module comprises:
[0111] a ninth displaying sub-module, configured to, in response to a second input for selecting the target word group unit from the candidate word group unit, display the target word group unit in a text input area corresponding to the input method keyboard.
[0112] In an implementation, the first displaying module comprises:
[0113] a tenth displaying sub-module, configured to, in response to the first input, display at least one word group unit corresponding to the word group pinyin in an input mode corresponding to the input method keyboard.
[0114] In an implementation, the first displaying module comprises:
[0115] an eleventh displaying sub-module, configured to, in response to the first input, display at least one word group unit corresponding to the word group pinyin according to input frequencies of the at least one word group unit respectively; wherein the higher the input frequency, the earlier the display order of the corresponding word group unit.
[0116] The character input apparatus in the embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), or the like, and can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, a self-service machine, or the like. The embodiments of the present application are not limited in this regard.
[0117] The character input apparatus in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, an ios operating system, or other possible operating system. The embodiments of the present application are not limited in this regard.
[0118] The character input apparatus provided in the embodiments of the present application can implement Figures 1 to 7 The method embodiments implement various processes, which will not be repeated here to avoid repetition.
[0119] Optionally, as shown in Figure 9 The embodiments of the present application also provide an electronic device 900, which includes a processor 901 and a memory 902. The memory 902 stores programs or instructions that can be run on the processor 901. When the programs or instructions are executed by the processor 901, various steps of the above character input method embodiments are implemented, and the same technical effects are achieved. To avoid repetition, the steps will not be repeated here.
[0120] It should be noted that the electronic device in the embodiments of the present application includes the mobile electronic device and the non-mobile electronic device described above.
[0121] Figure 10 To implement the hardware structure of an electronic device according to an embodiment of the present application.
[0122] The electronic device 1000 includes, but is not limited to, a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a storage 1009, and a processor 1010, etc.
[0123] Those skilled in the art can understand that the electronic device 1000 can further include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 1010 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 10 The electronic device structure shown in the figure is not a limitation on the electronic device, and the electronic device can include more or fewer components than shown, or combine certain components, or different component arrangements, which are not described here.
[0124] The user input unit 1007 is configured to receive a first input of inputting a phrase pinyin in an input method keyboard.
[0125] The display unit 1006 is configured to display at least one phrase unit corresponding to the phrase pinyin in response to the first input, each phrase unit including at least one candidate word.
[0126] The display unit 1006 is further configured to display a target phrase unit in a text input area corresponding to the input method keyboard in response to a second input for selecting the target phrase unit from the at least one phrase unit.
[0127] In the embodiment, the user inputs a phrase pinyin, displays at least one phrase unit corresponding to the phrase pinyin, and displays a target phrase unit in a text input area corresponding to an input method keyboard in response to a second input for selecting the target phrase unit from the at least one phrase unit. Since each phrase unit includes at least one candidate word, the user can conveniently select a desired character from the phrase unit without having to input a pinyin and search for a desired character from multiple homophonic characters or homophonic words, thereby improving character input efficiency.
[0128] Optionally, the display unit 1006 is further configured to display a spelling result corresponding to the phrase pinyin in response to the first input, the spelling result including at least one candidate phrase.
[0129] The display unit 1006 is further configured to display at least one phrase unit corresponding to a target phrase in the at least one candidate phrase in response to a second input for the target phrase.
[0130] Optionally, the display unit 1006 is further configured to display a pinyin unit corresponding to the phrase pinyin in response to the first input.
[0131] The display unit 1006 is further configured to display at least one word unit determined according to the word group pinyin and the target pinyin unit in response to a third input on the target pinyin unit in the pinyin units.
[0132] Optionally, the processor 1010 is configured to determine a spelling result corresponding to the word group pinyin in response to the first input, and the spelling result includes at least one candidate word group.
[0133] The processor 1010 is further configured to split the at least one candidate word group to obtain at least one word unit corresponding to the word group pinyin, and each word unit includes a single candidate word.
[0134] The display unit 1006 is further configured to display the at least one word unit.
[0135] In an implementation, the first display module includes:
[0136] The display unit 1006 is further configured to display at least one word unit corresponding to the word group pinyin in a target region in response to the first input, and the target region is located in the right-hand operation region.
[0137] Optionally, the user input unit 1007 is further configured to receive a fourth input of inputting auxiliary information.
[0138] The display unit 1006 is further configured to filter a candidate word unit matching the auxiliary information from the at least one word unit in response to the fourth input, and display the candidate word unit.
[0139] The display unit 1006 is further configured to display the target word unit in a text input region corresponding to the input method keyboard in response to a second input for selecting the target word unit from the candidate word unit.
[0140] Optionally, the display unit 1006 is further configured to display at least one word unit of the word group pinyin in an input mode corresponding to the input method keyboard in response to the first input.
[0141] Optionally, the display unit 1006 is further configured to display at least one word unit corresponding to the word group pinyin according to input frequencies of the at least one word unit in response to the first input, and the higher the input frequency, the earlier the display order of the corresponding word unit.
[0142] It should be understood that in the embodiments of the present application, the input unit 1004 can include a graphics processor (GPU) 10041 and a microphone 10042. The graphics processor 10041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 can include a display panel 10061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 can include two parts of a touch detection device and a touch controller. The other input devices 10072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, a joystick, and the like, which will not be described here.
[0143] The memory 1009 can be used to store software programs and various data. The memory 1009 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), etc. In addition, the memory 1009 can include a volatile memory or a non-volatile memory, or the memory 1009 can include both volatile and non-volatile memories. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 1009 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.
[0144] The processor 1010 can include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 1010.
[0145] The embodiments of the present application also provide a readable storage medium, the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize various processes of the above-mentioned text input method embodiments, and the same technical effects can be achieved. To avoid repetition, details are not described here.
[0146] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0147] The embodiment of the present application further provides a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions to realize the processes of the above text input method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.
[0148] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system chip, a system chip, a chip system or a system on chip, etc.
[0149] The embodiment of the present application provides a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to realize the processes of the above text input method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.
[0150] It should be noted that in this paper, the term "includes", "contains" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "includes a" does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to the order of the functions shown or discussed, but can also include the functions performed in a substantially simultaneous manner or in the opposite order according to the functions involved, for example, the described method can be performed in an order different from the described order, and various steps can also be added, omitted or combined. In addition, the features described with reference to some examples can be combined in other examples.
[0151] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned example methods can be realized by means of software and a necessary general hardware platform, and of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product in essence or in the form of a part that contributes to the prior art, which is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk) and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
[0152] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative and not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.
Claims
1. A character input method characterized by comprising: The method comprises: receiving a first input for inputting a phrase pinyin in an input method keyboard; in response to the first input, displaying a pinyin unit corresponding to the phrase pinyin; wherein the pinyin unit is a pinyin of one character; in response to a third input on a target pinyin unit in the pinyin unit, displaying at least one phrase unit determined according to the phrase pinyin and the target pinyin unit and an append mode button; wherein the at least one phrase unit is a phrase unit corresponding to the target pinyin unit determined from phrase units included in a phrase corresponding to the phrase pinyin, and the phrase unit includes one candidate word; receiving a fourth input for inputting auxiliary information; wherein the auxiliary information is a stroke of a target character, and the fourth input includes an input of clicking the append mode button and an input on a stroke input button in the input method keyboard, and the stroke input button is displayed after the append mode button is clicked; in response to the fourth input, filtering a candidate phrase unit matching the auxiliary information from the at least one phrase unit, and displaying the candidate phrase unit; in response to a second input for selecting a target phrase unit from the candidate phrase unit, displaying the target phrase unit in a text input area corresponding to the input method keyboard.
2. A method according to claim 1, characterized in that The method further comprises: in response to the first input, displaying a spelling result corresponding to the phrase pinyin, and the spelling result includes at least one candidate phrase; in response to a second input on a target phrase in the at least one candidate phrase, displaying at least one phrase unit corresponding to the target phrase.
3. A method according to claim 1, characterized in that The method further comprises: in response to the first input, determining a spelling result corresponding to the phrase pinyin, and the spelling result includes at least one candidate phrase; splitting the at least one candidate phrase to obtain at least one phrase unit corresponding to the phrase pinyin; each phrase unit includes a single candidate word; displaying the at least one phrase unit.
4. The method of claim 1, wherein, The method further comprises: in response to the first input, displaying at least one phrase unit corresponding to the phrase pinyin in a target area; and the target area is located in a right-hand operation area.
5. The method of claim 1, wherein, The method further comprises: in response to the first input, displaying at least one phrase unit of the phrase pinyin in an input mode corresponding to the input method keyboard.
6. The method of claim 1, wherein, The method further comprises: in response to the first input, displaying at least one phrase unit corresponding to the phrase pinyin according to input frequencies of the at least one phrase unit respectively; wherein the higher the input frequency, the earlier the display order of the corresponding phrase unit.
7. A character input device, characterized by comprising: The apparatus comprises: a first receiving module configured to receive a first input for inputting a phrase pinyin in an input method keyboard; The first display module comprises a fifth display submodule and a sixth display submodule, the fifth display submodule is configured to display a pinyin unit corresponding to the word group pinyin in response to the first input; wherein the pinyin unit is a pinyin of one character; the sixth display submodule is configured to display at least one word group unit and an append mode button determined according to the word group pinyin and a target pinyin unit in response to a third input on the target pinyin unit; wherein the at least one word group unit is a word group unit corresponding to the target pinyin unit determined from word group units included in a word group corresponding to the word group pinyin, and the word group unit comprises one candidate character; The second receiving module is configured to receive a fourth input of inputting auxiliary information; wherein the auxiliary information is a stroke of a target character, and the fourth input comprises an input of clicking the append mode button and an input of a stroke input button in the input method keyboard, and the stroke input button is displayed after the append mode button is clicked; The third display module is configured to filter a candidate word group unit matching the auxiliary information from the at least one word group unit in response to the fourth input, and display the candidate word group unit; The second display module comprises a ninth display submodule, the ninth display submodule is configured to display a target word group unit in a text input area corresponding to the input method keyboard in response to a second input of selecting the target word group unit from the candidate word group unit.
8. The apparatus of claim 7, wherein, The first display module further comprises: The third display submodule is configured to display a spelling result corresponding to the word group pinyin in response to the first input, and the spelling result comprises at least one candidate word group; The fourth display submodule is configured to display at least one word group unit corresponding to a target word group in the at least one candidate word group in response to a second input on the target word group.
9. The apparatus of claim 7, wherein, The first display module further comprises: The first determining submodule is configured to determine a spelling result corresponding to the word group pinyin in response to the first input, and the spelling result comprises at least one candidate word group; The second obtaining submodule is configured to split the at least one candidate word group to obtain at least one word group unit corresponding to the word group pinyin; each word group unit comprises a single candidate character; The seventh display submodule is configured to display the at least one word group unit.
10. The apparatus of claim 7, wherein, The first display module further comprises: The eighth display submodule is configured to display at least one word group unit corresponding to the word group pinyin in a target area in response to the first input; and the target area is located in a right-hand operation area.
11. An electronic device, comprising: The apparatus comprises a processor and a memory, the memory stores programs or instructions executable on the processor, and the programs or instructions are executed by the processor to implement the steps of the character input method according to any one of claims 1-6.
12. A readable storage medium, characterized by, The readable storage medium stores programs or instructions, and the programs or instructions are executed by the processor to implement the steps of the character input method according to any one of claims 1-6.
Citation Information
Patent Citations
Chinese character input method suitable for touch screen equipment
CN104238929A
Input method candidate word processing method and electronic equipment
CN112181167A
Character display method and device and electronic equipment
CN112269475A
Input method, input device, electronic equipment and medium
CN113076010A