Character input method, device, electronic equipment and medium
By displaying symbol icons in the text editing interface and using a character prediction model to analyze contextual semantic features, the system automatically predicts and displays the required characters, solving the problem of users frequently switching keyboards and improving the fluency and efficiency of input.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- VIVO MOBILE COMM CO LTD
- Filing Date
- 2022-01-07
- Publication Date
- 2026-06-26
AI Technical Summary
When writing lengthy professional articles, users need to frequently switch between mobile phone keyboards to input Chinese, English, and punctuation marks, which leads to input interruptions and disruptions to the creative process.
By displaying symbol markers at target locations in the text editing interface and using a character prediction model to analyze contextual semantic features, the system automatically predicts and displays the required characters, reducing the need for users to search for and switch keyboards.
It improves the smoothness and efficiency of document editing, reduces the time and effort users spend searching for characters, and ensures that the input characters match the user's needs.
Smart Images

Figure CN114356118B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic equipment technology, and more specifically, to a character input method, a character input device, an electronic device, and a readable storage medium. Background Technology
[0002] Currently, typing on a mobile phone, especially when writing long professional articles, requires a mix of Chinese, English, and symbols, which necessitates users repeatedly switching between the phone's keyboard to find punctuation marks, making it time-consuming and laborious.
[0003] In related technologies, the letter keys on the input keyboard are displayed prominently, while punctuation marks are typically located in a corner or folded over. Users often have to interrupt their input flow to find the required punctuation mark; similarly, when inputting less common characters, they must search among multiple candidate characters. This pauses the user's input process and can easily disrupt their flow of thought. Summary of the Invention
[0004] This application provides a character input method, apparatus, electronic device, and medium that can input the required characters at the target position in the text editing interface based on the context, reducing the time and operation required for users to find the required characters, and improving the fluency and efficiency of document editing.
[0005] In a first aspect, embodiments of this application provide a character input method, including:
[0006] Receive the user's first input;
[0007] In response to the first input, a symbol is displayed at the target location in the text editing interface;
[0008] In text editing interfaces containing at least one character, the first character is displayed in the display area associated with the symbol identifier.
[0009] Secondly, embodiments of this application provide a character input device, including:
[0010] The receiving module is used to receive the user's initial input;
[0011] A display module, used to display a symbol at a target location in the text editing interface in response to the first input; and
[0012] In text editing interfaces containing at least one character, the first character is displayed in the display area associated with the symbol identifier.
[0013] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions which, when executed by the processor, implement the steps of the character input method provided in the first aspect.
[0014] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the character input method provided in the first aspect.
[0015] Fifthly, embodiments of this application provide a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the character input method provided in the first aspect.
[0016] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the character input method as described in the first aspect.
[0017] In this embodiment, a user's first input is received; in response to the first input, a symbol is displayed at the target position in the text editing interface; if the text editing interface includes at least one character, the first character is displayed in the display area associated with the symbol. During the editing of a text file, the user can trigger the character prediction function of the electronic device through the first input. Specifically, after the electronic device receives the first input, it determines the target position of the character to be input and displays a symbol at that target position. Then, it analyzes at least one character at the target position to determine the first character, and then adds the first character to the display area associated with the symbol to display the first character. Thus, by predicting, adding, and marking the first character to be input based on context, quick character insertion is achieved. While ensuring the similarity between the first character and the character required by the user, it avoids input interruptions caused by the user repeatedly switching keyboards, reduces the time and effort required for the user to find the required character, and improves the smoothness and efficiency of file editing. Attached Figure Description
[0018] Figure 1 One of the flowcharts of a character input method according to an embodiment of this application is shown;
[0019] Figure 2 A second flowchart of a character input method according to an embodiment of this application is shown;
[0020] Figure 3 A flowchart of a character input method according to an embodiment of this application is shown as third;
[0021] Figure 4A flowchart of a character input method according to an embodiment of this application is shown as fourth;
[0022] Figure 5 One of the schematic diagrams of an electronic device display according to an embodiment of this application is shown;
[0023] Figure 6 A second schematic diagram of an electronic device display according to an embodiment of this application is shown;
[0024] Figure 7 A third schematic diagram of an electronic device display according to an embodiment of this application is shown;
[0025] Figure 8 A structural block diagram of a character input device according to an embodiment of this application is shown;
[0026] Figure 9 A structural block diagram of an electronic device according to an embodiment of this application is shown;
[0027] Figure 10 A hardware structure block diagram of an electronic device according to an embodiment of this application is shown. 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] The following reference Figures 1 to 10 This application describes character input methods, apparatus, electronic devices, and media according to some embodiments.
[0031] In one embodiment of this application, Figure 1 One of the flowcharts illustrating a character input method according to an embodiment of this application is shown, including:
[0032] Step 102: Receive the user's first input;
[0033] The first input includes, but is not limited to, click input, button input, fingerprint input, swipe input, and press input. Button input includes, but is not limited to, single-click input, double-click input, long-press input, and combination key input for the power button, volume buttons, and main menu button of the electronic device. Of course, the first input can also be other operations performed by the user on the electronic device. This application embodiment does not specifically limit the operation method and can be any possible implementation method.
[0034] It is understood that the user's first input can be either the first input to a target location on the electronic device or the first input to a target control on the text editing interface. This target control is used to trigger the automatic input of the first character. The target control can be displayed on the input keyboard required for inputting characters, or it can be displayed directly on the file editing interface of the electronic device. The shape, size, and other parameters of the target control can be reasonably set according to user needs, and this application does not impose specific limitations.
[0035] Specifically, this character input method is applicable to electronic devices, including but not limited to mobile terminals, tablets, computers, laptops, wearable devices, or in-vehicle terminals.
[0036] Step 104: In response to the first input, display a symbol at the target location in the text editing interface.
[0037] The target position is the location where the character needs to be added. The target position can be selected by the user; for example, the user can manually move the cursor to the desired location on the keyboard, and the cursor's position at the time of the first input will be the target position. Alternatively, the target position can be automatically identified according to preset system rules. For example, the rules may use spaces between characters as the target position; that is, spaces appearing in the file will be the target position.
[0038] In this embodiment, a symbol is used to highlight the target position where the first character can be entered. The symbol differentiates the target position from the position of at least one existing character in the text editing interface. This allows the user to quickly identify the position where the first character will be inserted, facilitating the user's verification of the automatic character input position or the first character.
[0039] Specifically, such as Figure 5 As shown, the system highlights the area where punctuation marks are to be inserted, making it easier for the user to check and confirm. This area is also clickable; clicking it automatically switches the system input method to the punctuation keyboard, facilitating proofreading. Specifically, the symbols can be highlighted, text boxes, underlines, or annotation marks, and can be configured according to the user's needs.
[0040] Step 106: If the text editing interface includes at least one character, display the first character in the display area associated with the symbol identifier.
[0041] The display area associated with the symbol is the character area required to input the first character, and its size is related to the character area set by the system.
[0042] Furthermore, the first character can be predicted by analyzing the semantic features of at least one character related to the target position. Using a character prediction model based on deep learning to analyze semantic features results in high prediction accuracy, and the predicted first character better matches the user's input needs, reducing the time cost for the user to find the desired character. For example, a character prediction model can be pre-embedded in an electronic device. Semantic features are input into the character prediction model to determine multiple third characters and the matching degree between each third character and the semantic features. The third character with the highest matching degree is used as the first character, realizing the prediction and input of the first character, avoiding input interruptions caused by the user switching back and forth on the keyboard, and improving the speed of user document editing. In addition, considering that the first character with the highest matching degree analyzed by the model may not be the character the user needs, the steps for predicting the first character include: displaying each third character; and using the third character indicated by the fourth input as the first character. Thus, by displaying the third character, more accurate character input prompts are provided to the user, ensuring the user's input needs are met while reducing the time cost for the user to find the desired character.
[0043] The character prediction model can be trained using training samples. Specifically, the training samples include preset semantic features, sample characters corresponding to the preset semantic features, and the character types of the sample characters. For example, the character prediction model is obtained by training the preset model according to the preset semantic features, sample characters, and the character types of the sample characters.
[0044] In this embodiment, during text file editing, the user can trigger the character prediction function of the electronic device through a first input. Specifically, after receiving the first input, the electronic device determines the target position of the character to be input and displays a symbol at that target position. Then, it analyzes at least one character at the target position to determine the first character, and then adds the first character to the display area associated with the symbol to display the first character. Thus, by predicting, adding, and marking the first character to be input based on context, quick character insertion is achieved. While ensuring the similarity between the first character and the character needed by the user, it avoids input interruptions caused by the user repeatedly switching keyboards, reduces the time and effort required for the user to find the required character, and improves the smoothness and efficiency of file editing.
[0045] For example, add an automatic symbol button (target control 602) to the input method keyboard. When the user enters text on the keyboard, such as Figure 6 As shown, in the document editing interface, the user enters "What to eat tomorrow". At this time, the input cursor is located after "么". Where a punctuation mark needs to be inserted, the user clicks the automatic symbol button, takes the character area after "么" as the target position, and highlights the character area (display area). Through semantic feature analysis of "What to eat tomorrow", it is determined that the first character to be added is "?", and "?" is displayed in the display area to achieve automatic insertion of punctuation marks.
[0046] In an embodiment of the present application, Figure 2 FIG. 2 shows the second flowchart of the character input method according to the embodiment of the present application, including:
[0047] Step 202, receive a second input from the user;
[0048] Step 204, in response to the second input, update the first character indicated by the second input.
[0049] In the embodiment of the present application, when analyzing the first character through context semantic features, if it is automatically predicted that the first character may be inconsistent with the character the user wants to input, the user can correct the first character through a second input to the first character, so that the modified first character can meet the user's needs. Thus, custom correction of the first character is achieved. While ensuring that the first character meets the user's requirements, the operation of the user inputting characters is reduced as much as possible, which is beneficial to improving the user's creation efficiency.
[0050] It can be understood that when the user completes the update of the first character, the system automatically records the user's adjustment habits, and uses the updated first character and the semantic features related to the target position as new model training samples to train the character prediction model, so as to update the character prediction model, making the updated character prediction model more in line with the user's writing habits to achieve more accurate character recommendations.
[0051] In an embodiment of the present application, Figure 3 FIG. 3 shows the third flowchart of the character input method according to the embodiment of the present application, including:
[0052] Step 302, receive a third input from the user;
[0053] Step 304, in response to the third input, display at least one second character;
[0054] Exemplarily, the second character can be a third character obtained through semantic analysis, or other characters of the same character type as the first character.
[0055] It should be noted that, considering the clarity of displaying at least one second character, the number of at least one second character displayed can be limited to avoid displaying too many characters and affecting the visual experience. In addition, the selection options are simplified, making it easier for users to quickly find the target character they need.
[0056] Step 306: Receive second input from the user for at least one target character in the second character;
[0057] Step 308: In response to the second input, update the first character to the target character.
[0058] In this embodiment, when a user needs to correct the first character, at least one second character can be displayed via a third input. The user can then select a target character from the at least one second character to replace the first character. This achieves personalized correction of the first character, further improving the accuracy of character prediction and making the inserted character more closely match the user's needs.
[0059] For example, in a Chinese-language system on an electronic device, when a user needs to add punctuation at the end of a Chinese text, the system automatically analyzes the context and displays "?" (the first character) in the target location. However, if the user is not satisfied with the system's recommended punctuation, then... Figure 7 As shown, users can long-press the display area marked with a "?" to trigger the character correction function, which will then display four additional characters in the display area. Users can update the first character in the display area by selecting one of the additional characters.
[0060] Furthermore, in the case of predicting the first character through semantic features, the step of displaying at least one second character includes: displaying at least one second character in a display manner corresponding to the matching degree between at least one second character and the semantic features.
[0061] In this embodiment, the electronic device pre-stores a correspondence between matching degree and display mode. This correspondence allows the determination of the display mode corresponding to the matching degree of at least one second character. By displaying at least one second character differently according to different display modes, users can distinguish the differences in matching degree between at least one second character. This differentiated display of multiple first characters assists users in selecting the desired character, significantly reducing the time spent searching for the desired character among numerous options and improving character search efficiency.
[0062] Specifically, the display method may be to enlarge or shrink the second character, display the second character according to a specified color, or display the second character in descending order of matching degree. This application embodiment does not make specific limitations.
[0063] For example, such as Figure 7As shown, when a user long-presses the first highlighted character, a punctuation selector pops up on the screen. The system sorts the punctuation marks clockwise according to their probability of occurrence (matching degree) and displays different punctuation marks around the punctuation mark that needs to be replaced. The higher the matching degree, the larger the display area and the more it is located in the upper right corner, making it easier for the user to find the appropriate punctuation mark.
[0064] In one embodiment of this application, the step of displaying the first character includes: displaying the first character according to the character type.
[0065] The first input indicates the character type of the first character. Character types include, but are not limited to, at least one of the following: text, numbers, punctuation marks, and emoticons. That is, the automatic character input function of the electronic device can not only add symbols but also text, and the character types can also include more types, such as Chinese punctuation marks, English punctuation marks, and simplified and traditional Chinese characters.
[0066] In this embodiment, at least one matching rule for triggering character input by a first input can be predefined for the electronic device, with each matching rule corresponding to a different character type. This allows different character types to be matched using different forms of first input, further improving the convenience of user input and enhancing the accuracy of character prediction.
[0067] It is understandable that when the user's first input to the target control is received, the first input is compared with the matching rule. If the first input meets the matching rule, the first character is predicted according to the character type corresponding to the matching rule in response to the first input. For example, if the matching rule is defined as inserting punctuation by double-clicking the target control, then when the user double-clicks the target control, the punctuation is predicted based on the context semantics. If the matching rule is defined as inserting text by long-pressing the target position, then when the user long-presses the target position, the text to be added is predicted based on the context semantics. The same applies to emoticons. This application embodiment does not specifically limit the matching rule. Of course, the first input can also trigger the display of a character type selection window, which includes three options: text, punctuation, and emoticons. The user confirms the desired character type by clicking on the option.
[0068] Furthermore, if the first input indicates a character type, to facilitate user replacement of the first character, at least one character displayed triggered by the third input belongs to the same character type as the first character. Thus, in scenarios where the character type of at least one character displayed by the system's default setting differs from the first character, the user does not need to manually switch between different character types, simplifying the steps for finding the desired character and further improving the speed of file editing. For example, if the system defaults to displaying an English input keyboard, but the first character's character type is an emoji, then in response to the third input, an emoji keyboard is displayed, which includes at least one emoji different from the first character.
[0069] In one embodiment of this application, Figure 4 A flowchart of a character input method according to an embodiment of this application is shown as fifth, including:
[0070] Step 402: If the character type is the target character type, determine the display area associated with the symbol identifier as the first display area;
[0071] The target character type is used to indicate two related sub-characters. Examples include parentheses, book titles, or quotation marks in punctuation; paired words in text, such as "not only...but also..." or "because...therefore..."; or two user-defined identical or different sub-characters. The target character type can also be determined by the specific input method of the first input.
[0072] Furthermore, the symbol identifier in the first display area can be displayed in a different way than the symbol identifiers in other display areas to highlight the position of the first character of the target character type that needs to be inserted.
[0073] Step 404: Display the first sub-character in the first display area and the second sub-character in the second display area.
[0074] The first character includes the first sub-character and the second sub-character.
[0075] In this embodiment, when a user needs to input a character of a target character type, the display area associated with the symbol is determined as the first display area. When displaying the first character, the first sub-character is displayed in the first display area, and the second sub-character in the associated relationship is displayed in the second display area. This further improves the accuracy of the system's recommended punctuation marks and avoids the occurrence of mismatched paired symbols.
[0076] For example, for punctuation marks that appear in pairs, such as left and right book titles and top and bottom quotation marks, in order to improve the accuracy of the system's automatic recommendation, the user can long press the automatic symbol button (target control) where paired punctuation marks need to be entered. The electronic device will automatically mark these as paired punctuation mark areas, and these areas will be associated and processed uniformly when punctuation marks are automatically generated subsequently.
[0077] In this embodiment, the second display area can be the same as or adjacent to the first display area, representing the same target character type. For example, if only a left parenthesis needs to be inserted in the text, the second display area is the same as the first display area. If only a pair of book title marks need to be inserted in the text, the area of the character preceding the first character of the book title is the first display area, and the area of the character following the last character of the book title is the second display area.
[0078] In one embodiment of this application, displaying a symbol identifier includes: displaying the symbol identifier in a target display manner.
[0079] The target display mode is associated with the character type indicated by the first input. The target display mode includes color, size, shape, format, etc.
[0080] In this embodiment, the symbol identifiers are displayed according to the target display method related to the character type, so that users can clearly distinguish the target positions belonging to different character types, which facilitates users to check and modify, and improves the efficiency of file editing.
[0081] For example, the target location where text needs to be inserted is highlighted in red, and the target location where punctuation marks need to be inserted is highlighted in yellow.
[0082] The character input method provided in this application can be executed by a character input device. This application uses a character input device to perform the character input method as an example to illustrate the character input device provided in this application.
[0083] In one embodiment of this application, such as Figure 8 As shown, the character input device 800 includes: a receiving module 802 for receiving a first input from a user; a display module 804 for displaying a symbol identifier at a target location in a text editing interface in response to the first input; and for displaying a first character in a display area associated with the symbol identifier when the text editing interface includes at least one character.
[0084] In this embodiment, during text file editing, the user can trigger the character prediction function of the electronic device through a first input. Specifically, after receiving the first input, the electronic device determines the target position of the character to be input and displays a symbol at that target position. Then, it analyzes at least one character at the target position to determine the first character, and then adds the first character to the display area associated with the symbol to display the first character. Thus, by predicting, adding, and marking the first character to be input based on context, quick character insertion is achieved. While ensuring the similarity between the first character and the character needed by the user, it avoids input interruptions caused by the user repeatedly switching keyboards, reduces the time and effort required for the user to find the required character, and improves the smoothness and efficiency of file editing.
[0085] Optionally, the receiving module 802 is also used to receive a second input from the user; the character input device 800 further includes an update module (not shown in the figure), which is used to update the first character indicated by the second input in response to the second input.
[0086] Optionally, the receiving module 802 is further configured to receive a third input from the user; the display module 804 is further configured to display at least one second character in response to the third input; the receiving module 802 is further configured to receive a second input from the user for a target character among the at least one second character; and the updating module is further configured to update the first character to the target character in response to the second input.
[0087] Optionally, the first input is used to indicate the character type of the first character; the display module 804 is also used to display the first character according to the character type.
[0088] Optionally, the character input device 800 further includes: a determining module (not shown in the figure), which is used to determine the display area associated with the symbol identifier as the first display area when the character type is the target character type; and a display module 804, which is further used to display a first sub-character in the first display area and a second sub-character in the second display area; wherein the first character includes a first sub-character and a second sub-character.
[0089] Optionally, the display module 804 is also configured to display the symbol in a target display mode, which is associated with the character type indicated by the first input.
[0090] In the embodiments of this application, when each module of the character input device 800 performs its respective function, it implements the steps of the character input method in any embodiment of the first aspect. Therefore, the character input device 800 also includes all the beneficial effects of the character input method in any embodiment of the first aspect, which will not be repeated here.
[0091] The character input device in this application embodiment can be an electronic device or a component of an electronic device. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0092] The character input device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other capable operating systems; this application embodiment does not specifically limit the specific operating system.
[0093] In one embodiment of this application, such as Figure 9 As shown, an electronic device 900 is provided, including a processor 901 and a memory 902. The memory 902 stores programs or instructions that can run on the processor 901. When the program or instructions are executed by the processor 901, they implement the steps of the character input method provided in any of the above embodiments. Therefore, the electronic device 900 includes all the beneficial effects of the character input method provided in any of the above embodiments, which will not be repeated here.
[0094] It should be noted that the electronic devices in the embodiments of this application include the aforementioned mobile electronic devices and non-mobile electronic devices.
[0095] Figure 10 This is a schematic diagram of the hardware structure of an electronic device 1000 according to an embodiment of this application. The electronic device 1000 includes, but is not limited to, components such as: 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 memory 1009, and a processor 1010.
[0096] Those skilled in the art will understand that the electronic device 1000 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1010 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 10 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0097] The user input unit 1007 is used to receive a first input from the user; the display unit 1006 is used to display a symbol identifier at a target position in the text editing interface in response to the first input; and to display the first character in the display area associated with the symbol identifier when the text editing interface includes at least one character.
[0098] In this embodiment, during text file editing, the user can trigger the character prediction function of the electronic device through a first input. Specifically, after receiving the first input, the electronic device determines the target position of the character to be input and displays a symbol at that target position. Then, it analyzes at least one character at the target position to determine the first character, and then adds the first character to the display area associated with the symbol to display the first character. Thus, by predicting, adding, and marking the first character to be input based on context, quick character insertion is achieved. While ensuring the similarity between the first character and the character needed by the user, it avoids the user repeatedly switching keyboards, thus reducing the time and effort required to find the desired character and improving the smoothness and efficiency of file editing.
[0099] Furthermore, the user input unit 1007 is also used to receive a second input from the user; the processor 1010 is used to update the first character indicated by the second input in response to the second input.
[0100] Furthermore, the user input unit 1007 is also configured to receive a third input from the user; the display unit 1006 is also configured to display at least one second character in response to the third input; the user input unit 1007 is also configured to receive a second input from the user for a target character among the at least one second character; and the processor 1010 is also configured to update the first character to the target character in response to the second input.
[0101] Furthermore, the first input is used to indicate the character type of the first character; the display unit 1006 is also used to display the first character according to the character type.
[0102] Furthermore, the processor 1010 is also configured to determine the display area associated with the symbol identifier as the first display area when the character type is the target character type; the display unit 1006 is also configured to display the first sub-character in the first display area and the second sub-character in the second display area; wherein, the first character includes the first sub-character and the second sub-character.
[0103] Furthermore, the display unit 1006 is also used to display the symbol identifier in a target display mode, which is associated with the character type of the first input indication.
[0104] It should be understood that, in this embodiment, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042. The GPU 10041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0105] The memory 1009 can be used to store software programs and various data. The memory 1009 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1009 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1009 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0106] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor 1010.
[0107] In one embodiment of this application, a read storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements the various processes of the character input method embodiment provided in any of the above embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0108] The processor is the processor in the communication device described in the above embodiments. The read storage medium includes computer read storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0109] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described character input method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0110] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0111] This application provides a computer program product that is stored in a storage medium and executed by at least one processor to implement the various processes of the character input method embodiment described above, and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0112] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0113] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0114] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A character input method, characterized in that, include: Receive the user's first input; In response to the first input, a symbol is displayed at the target location in the text editing interface, wherein the target location is automatically identified according to a preset recognition rule; When the text editing interface includes at least two characters, the semantic features of at least one character related to the target position are analyzed and processed to predict at least two first characters. At least two first characters are displayed in the display area associated with the symbol identifier, wherein the display area associated with the symbol identifier is the character area required to input the first character, one first character is associated with one display area associated with the symbol identifier, and the character area where at least one first character is located is different from the position where the input cursor is located.
2. The character input method according to claim 1, characterized in that, After displaying at least two of the first characters, the method further includes: Receive the user's second input; In response to the second input, update the first character indicated by the second input.
3. The character input method according to claim 2, characterized in that, Receiving a second input from the user, and updating the first character indicating the second input in response to the second input, includes: Receive third input from the user; In response to the third input, at least one second character is displayed; Receive a second input from the user for a target character in the at least one second character; In response to the second input, the first character is updated to the target character.
4. The character input method according to claim 1, characterized in that, The first input is used to indicate the character type of the first character; The display of at least two of the first characters includes: Display at least two of the first characters according to the character type.
5. The character input method according to claim 4, characterized in that, Also includes: If the character type is the target character type, the display area associated with the symbol identifier is determined as the first display area; The display of at least two of the first characters includes: The first sub-character is displayed in the first display area, and the second sub-character is displayed in the second display area; The first character includes the first sub-character and the second sub-character.
6. The character input method according to any one of claims 1 to 5, characterized in that, The display symbol identifier includes: The symbol is displayed in a target display mode, which is associated with the character type indicated by the first input.
7. A character input device, characterized in that, include: The receiving module is used to receive the user's initial input; A display module is configured to, in response to the first input, display a symbol at a target location in the text editing interface, wherein the target location is automatically identified according to preset recognition rules; and When the text editing interface includes at least two characters, the semantic features of at least one character related to the target position are analyzed and processed to predict at least two first characters. At least two first characters are displayed in the display area associated with the symbol identifier, wherein the display area associated with the symbol identifier is the character area required to input the first character, one first character is associated with one display area associated with the symbol identifier, and the character area where at least one first character is located is different from the position where the input cursor is located.
8. The character input device according to claim 7, characterized in that, The receiving module is also used to receive a second input from the user; The character input device further includes: An update module is used to update the first character indicated by the second input in response to the second input.
9. The character input device according to claim 8, characterized in that, The receiving module is also used to receive a third input from the user; The display module is also configured to display at least one second character in response to the third input; The receiving module is further configured to receive a second input from the user for the target character in the at least one second character; The update module is further configured to update the first character to the target character in response to the second input.
10. The character input device according to claim 7, characterized in that, The first input is used to indicate the character type of the first character; The display module is also used to display at least two of the first characters according to the character type.
11. The character input device according to claim 10, characterized in that, Also includes: The determining module is used to determine the display area associated with the symbol identifier as the first display area when the character type is the target character type; The display module is further configured to display a first sub-character in the first display area and a second sub-character in the second display area; The first character includes the first sub-character and the second sub-character.
12. The character input device according to any one of claims 7 to 11, characterized in that, The display module is further configured to display the symbol identifier in a target display mode, the target display mode being associated with the character type indicated by the first input.
13. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the character input method as described in any one of claims 1 to 6.
14. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the character input method as described in any one of claims 1 to 6.